Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 151) sorted by relevance

1234567

/test/xts/acts/security/asset/asset_ndk/src/main/cpp/
Dhello.cpp32 size_t bufferSize = BUFF_MAX; in Asset_Add() local
35 napi_get_value_string_utf8(env, args[0], aliasBuffer, bufferSize, &copied); in Asset_Add()
38 bufferSize = BUFF_MAX; in Asset_Add()
41 napi_get_value_string_utf8(env, args[1], secretBuffer, bufferSize, &copied); in Asset_Add()
67 size_t bufferSize = BUFF_MAX; in Asset_Add_Auth() local
70 napi_get_value_string_utf8(env, args[0], aliasBuffer, bufferSize, &copied); in Asset_Add_Auth()
73 bufferSize = BUFF_MAX; in Asset_Add_Auth()
76 napi_get_value_string_utf8(env, args[1], secretBuffer, bufferSize, &copied); in Asset_Add_Auth()
135 size_t bufferSize = BUFF_MAX; in Asset_PreAndPostQueryNormal() local
138 napi_get_value_string_utf8(env, args[0], aliasBuffer, bufferSize, &copied); in Asset_PreAndPostQueryNormal()
[all …]
/test/xts/acts/validator/acts_validator/src/main/ets/pages/model/
DAudioRenderer.ts57 let bufferSize = await this.audioRenderer.getBufferSize()
58 Logger.info(this.tag, `audioRenderer bufferSize:` + JSON.stringify(bufferSize))
59 …let len = this.length % bufferSize == 0 ? Math.floor(this.length / bufferSize) : Math.floor(this.l…
60 let buf = new ArrayBuffer(bufferSize);
64 offset: i * bufferSize + this.offset,
65 length: bufferSize
DAudioCapturer.ts83 let bufferSize = await this.audioCapturer.getBufferSize();
84 Logger.info(this.tag, `audioCapture bufferSize: ${bufferSize}`);
88 let buffer = await this.audioCapturer.read(bufferSize, true);
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/graphic/nativeimage/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/graphic/graphicEGL/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/graphic/nativedrawing/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/common/
Dnapi_helper.cpp23 size_t bufferSize = 0; in GetString() local
25 napi_get_value_string_utf8(env, value, nullptr, 0, &bufferSize); in GetString()
26 if (bufferSize > MAX_CHAR_LENGTH) { in GetString()
27 bufferSize = MAX_CHAR_LENGTH; in GetString()
29 char *buffer = new char[bufferSize + 1]{0}; in GetString()
30 napi_get_value_string_utf8(env, value, buffer, bufferSize + 1, &strLength); in GetString()
/test/xts/device_attest_lite/services/core/utils/
Dattest_utils_file.c60 uint32_t bufferSize = fileSize + 1; in ReadFileBuffer() local
61 char* buffer = (char *)ATTEST_MEM_MALLOC(bufferSize); in ReadFileBuffer()
66 int32_t ret = ReadFile(path, fileName, buffer, bufferSize); in ReadFileBuffer()
/test/xts/acts/distributeddatamgr/relationalStoretest/rdbnapitest/entry/src/main/cpp/napi/
Drdb_store_encrypt_test.cpp99 size_t bufferSize = 0; in RdbFilePath() local
100 napi_get_value_string_latin1(env, args[0], nullptr, 0, &bufferSize); in RdbFilePath()
102 char *buffer = (char*)malloc((bufferSize) + 1); in RdbFilePath()
103 napi_get_value_string_utf8(env, args[0], buffer, bufferSize+1, &bufferSize); in RdbFilePath()
105 RDB_TEST_PATH = (char*)malloc((bufferSize) + 1); in RdbFilePath()
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/
Dimage_packing_test.cpp84 const char* utf8name, char** buffer, size_t *bufferSize) in GetStringProperty() argument
93 if (napi_ok != napi_get_value_string_utf8(env, value, nullptr, SIZE_ZERO, bufferSize) in GetStringProperty()
94 && *bufferSize == SIZE_ZERO) { in GetStringProperty()
99 *buffer = (char*)malloc((*bufferSize) + 1); in GetStringProperty()
100 for (size_t i = SIZE_ZERO; i < (*bufferSize) + 1; i++) { in GetStringProperty()
104 if (napi_ok != napi_get_value_string_utf8(env, value, *buffer, (*bufferSize) + 1, bufferSize)) { in GetStringProperty()
108 return (*bufferSize > SIZE_ZERO); in GetStringProperty()
/test/xts/acts/multimedia/image/image_js_standard/image/src/main/js/test/
DaddImage.test.js76 let bufferSize = 5000;
88 var oneStep = testimagebuffer.slice(offset, offset + bufferSize);
90 if (oneStep.length < bufferSize) {
127 let bufferSize = 5000;
137 var oneStep = testimagebuffer.slice(offset, offset + bufferSize);
139 if (oneStep.length < bufferSize) {
/test/xts/hats/hdf/display/composer/moduletest/
Dhdi_device_test.cpp240 …_ptr<HdiTestLayer> layer = display->CreateHdiTestLayer(setting.bufferSize.w, setting.bufferSize.h); in CreateTestLayer()
305 setting.bufferSize.h = static_cast<uint32_t>(setting.bufferRatio.h * h); in AdjustLayerSettings()
306 setting.bufferSize.w = static_cast<uint32_t>(setting.bufferRatio.w * w); in AdjustLayerSettings()
308 setting.bufferRatio.h, setting.bufferSize.w, setting.bufferSize.h); in AdjustLayerSettings()
311 if ((setting.bufferSize.w == 0) || (setting.bufferSize.h == 0)) { in AdjustLayerSettings()
313 … setting.bufferSize.w, setting.bufferSize.h, setting.displayRect.w, setting.displayRect.h); in AdjustLayerSettings()
315 setting.bufferSize.w = setting.displayRect.w; in AdjustLayerSettings()
316 setting.bufferSize.h = setting.displayRect.h; in AdjustLayerSettings()
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/cpp/napi/
Dimage_source_test.cpp114 uint8_t** buffer, size_t* bufferSize) in GetArrayBufferProperty() argument
123 status = napi_get_arraybuffer_info(env, property, &tmp, bufferSize); in GetArrayBufferProperty()
128 static bool GetStringValue(napi_env env, napi_value value, char** buffer, size_t *bufferSize) in GetStringValue() argument
130 if (napi_ok != napi_get_value_string_utf8(env, value, nullptr, SIZE_ZERO, bufferSize) in GetStringValue()
131 && *bufferSize == SIZE_ZERO) { in GetStringValue()
135 *buffer = (char*)malloc((*bufferSize) + 1); in GetStringValue()
136 if (napi_ok != napi_get_value_string_utf8(env, value, *buffer, (*bufferSize) + 1, bufferSize)) { in GetStringValue()
140 return (*bufferSize > SIZE_ZERO); in GetStringValue()
195 … if (napi_ok != napi_get_arraybuffer_info(env, arg, &buf, &(src.bufferSize)) || buf == nullptr || in parseImageSource()
196 src.bufferSize == SIZE_ZERO) { in parseImageSource()
[all …]
/test/xts/acts/graphic/webGL/src/main/js/test/
DWebGL1.buffer.js332 let bufferSize = gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE);
333 finish(bufferSize, arr);
353 let bufferSize = gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE);
354 console.info("webgltest bufferSize:", bufferSize);
355 expect(bufferSize).assertEqual(arr.length * arr.BYTES_PER_ELEMENT);
381 let bufferSize = gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE);
382 console.info("webgltest bufferSize:", bufferSize);
383 expect(bufferSize).assertEqual(arr.length * arr.BYTES_PER_ELEMENT);
400 }, (bufferSize, arr) => {
401 expect(bufferSize).assertEqual(arr.length * arr.BYTES_PER_ELEMENT);
[all …]
/test/ostest/wukong/shell_command/src/
Dwukong_main.cpp93 const int bufferSize = 32; in IsRunning() local
104 char pid[bufferSize] = {0}; in IsRunning()
105 if (fgets(pid, bufferSize - 1, fp) != nullptr) { in IsRunning()
/test/xts/acts/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/
DGetCurrentOutputDevices.test.ets77 let bufferSize
79 bufferSize = await audioRen.getBufferSize()
80 console.info( `audioRenderer getBufferSize success,bufferSize:${bufferSize} \n`);
105 …len = stat.size % bufferSize == 0 ? Math.floor(stat.size / bufferSize) : Math.floor(stat.size / bu…
113 let buf = new ArrayBuffer(bufferSize);
117 offset: i * bufferSize,
118 length: bufferSize
DSetChannelBlendMode.test.ets77 let bufferSize
79 bufferSize = await audioRen.getBufferSize()
80 console.info( `audioRenderer getBufferSize success,bufferSize:${bufferSize} \n`);
105 …len = stat.size % bufferSize == 0 ? Math.floor(stat.size / bufferSize) : Math.floor(stat.size / bu…
114 let buf = new ArrayBuffer(bufferSize);
126 offset: i * bufferSize,
127 length: bufferSize
/test/xts/acts/multimedia/av_codec/vcodec/swdecoder/src/
Dvideodec_ndk_sample.cpp453 void VDecNdkSample::CopyStartCode(uint8_t *frameBuffer, uint32_t bufferSize, OH_AVCodecBufferAttr &… in CopyStartCode() argument
459 … if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode()
463 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode()
468 … if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode()
472 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode()
502 …uint32_t bufferSize = (uint32_t)(((ch[3] & 0xFF)) | ((ch[2] & 0xFF) << EIGHT) | ((ch[1] & 0xFF) <<… in ReadData() local
504 if (bufferSize > MAX_WIDTH * MAX_HEIGHT << 1) { in ReadData()
508 return SendData(bufferSize, index, buffer); in ReadData()
511 uint32_t VDecNdkSample::SendData(uint32_t bufferSize, uint32_t index, OH_AVMemory *buffer) in SendData() argument
514 uint8_t *frameBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData()
[all …]
/test/xts/acts/arkui/ace_ets_web_napis/entry/src/main/cpp/
Dhello.cpp102 size_t bufferSize = 0; in RunJavaScript() local
103 napi_get_value_string_utf8(env, args[1], nullptr, 0, &bufferSize); in RunJavaScript()
104 char *jsCode = new (std::nothrow) char[bufferSize + 1]; in RunJavaScript()
106 napi_get_value_string_utf8(env, args[1], jsCode, bufferSize + 1, &byteLength); in RunJavaScript()
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/cpp/napi/
DmediaAssetManager.cpp159 size_t bufferSize = NUM0; in GetUtf8String() local
160 napi_get_value_string_utf8(env, root, nullptr, NUM0, &bufferSize); in GetUtf8String()
163 bufferSize = bufferSize + NUM1; in GetUtf8String()
165 std::vector<char> buffer(bufferSize); in GetUtf8String()
166 napi_get_value_string_utf8(env, root, &(buffer[NUM0]), bufferSize, &resultSize); in GetUtf8String()
/test/xts/acts/distributed_schedule_lite/distributed_schedule_posix/src/utils/
Ddms_packet.cpp47 bool DmsPacket::BuildDmsPacket(const DmsMsgInfo& dmsMsgInfo, uint16_t& bufferSize) in BuildDmsPacket() argument
49 bufferSize = 0; in BuildDmsPacket()
60 bufferSize = counter_; in BuildDmsPacket()
Ddms_packet.h48 DmsPacket(char* buffer, uint16_t bufferSize);
51 bool BuildDmsPacket(const DmsMsgInfo& dmsMsgInfo, uint16_t& bufferSize);

1234567