Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 - 25 of 1220) sorted by relevance

12345678910>>...49

/test/xts/acts/security/asset/asset_ndk/entry/src/main/cpp/
H A 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()
66 size_t bufferSize = BUFF_MAX; in Asset_AddCE() local
69 napi_get_value_string_utf8(env, args[0], aliasBuffer, bufferSize, &copied); in Asset_AddCE()
72 bufferSize = BUFF_MAX; in Asset_AddCE()
75 napi_get_value_string_utf8(env, args[1], secretBuffer, bufferSize, &copied); in Asset_AddCE()
118 size_t bufferSize = BUFF_MAX; in Asset_Add_Auth() local
121 napi_get_value_string_utf8(env, args[0], aliasBuffer, bufferSize, in Asset_Add_Auth()
186 size_t bufferSize = BUFF_MAX; Asset_PreAndPostQueryNormal() local
227 size_t bufferSize = BUFF_MAX; Asset_PreAndPostQueryError() local
280 size_t bufferSize = BUFF_MAX; Asset_PreQuery() local
316 size_t bufferSize = BUFF_MAX; Asset_PreAndPostQuery() local
359 size_t bufferSize = BUFF_MAX; Asset_PostQuery() local
393 size_t bufferSize = BUFF_MAX; Asset_Remove() local
417 size_t bufferSize = BUFF_MAX; Asset_RemoveLabel() local
451 size_t bufferSize = BUFF_MAX; Asset_RemoveError() local
509 size_t bufferSize = BUFF_MAX; Asset_QueryAll() local
596 size_t bufferSize = BUFF_MAX; Asset_QueryError() local
676 size_t bufferSize = BUFF_MAX; Asset_QueryLabel() local
708 size_t bufferSize = BUFF_MAX; Asset_UpdateEasy() local
745 size_t bufferSize = BUFF_MAX; Asset_UpdateLabel() local
798 size_t bufferSize = BUFF_MAX; Asset_UpdateError() local
[all...]
/test/xts/acts/graphic/nativebuffer/entry/src/main/cpp/
H A Dnativebuffer.cpp872 int32_t bufferSize; in OHNativeBufferSetDynamicMetadataValue1() local
881 flag = OH_NativeBuffer_GetMetadataValue(nativeBuffer, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in OHNativeBufferSetDynamicMetadataValue1()
892 flag = OH_NativeBuffer_GetMetadataValue(nativeBuffer, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in OHNativeBufferSetDynamicMetadataValue1()
904 flag = OH_NativeBuffer_GetMetadataValue(nativeBuffer, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in OHNativeBufferSetDynamicMetadataValue1()
909 if (bufferSize != X) { in OHNativeBufferSetDynamicMetadataValue1()
920 int32_t bufferSize; in OHNativeBufferSetDynamicMetadataValue2() local
932 flag = OH_NativeBuffer_GetMetadataValue(nativeBuffer, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in OHNativeBufferSetDynamicMetadataValue2()
937 if (bufferSize != X) { in OHNativeBufferSetDynamicMetadataValue2()
951 flag = OH_NativeBuffer_GetMetadataValue(nativeBuffer, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in OHNativeBufferSetDynamicMetadataValue2()
956 if (bufferSize ! in OHNativeBufferSetDynamicMetadataValue2()
967 int32_t bufferSize; OHNativeBufferSetDynamicMetadataValue3() local
1083 int32_t bufferSize; OHNativeBufferSetStaticMetadataValue1() local
1131 int32_t bufferSize; OHNativeBufferSetStaticMetadataValue2() local
1178 int32_t bufferSize; OHNativeBufferSetStaticMetadataValue3() local
1257 int32_t bufferSize; OHNativeBufferSetMetadataValue1() local
1307 int32_t bufferSize; OHNativeBufferSetMetadataValue2() local
1355 int32_t bufferSize; OHNativeBufferSetMetadataValue3() local
1399 int32_t bufferSize; OHNativeBufferSetMetadataValue4() local
[all...]
/test/xts/hats/hdf/codec/hdi_idlomx/
H A Dcodec_function_utils.cpp61 void FunctionUtil::InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, shared_ptr<OmxCodecBuffer> omxBuffer, in InitCodecBufferWithAshMem() argument
66 omxBuffer->allocLen = bufferSize; in InitCodecBufferWithAshMem()
141 int bufferSize) in UseDynaBuffer()
143 if (bufferCount <= 0 || bufferSize <= 0) { in UseDynaBuffer()
144 HDF_LOGE("bufferCount <= 0 or bufferSize <= 0"); in UseDynaBuffer()
170 int bufferCount, int bufferSize) in UseHandleBuffer()
172 if (bufferCount <= 0 || bufferSize <= 0) { in UseHandleBuffer()
173 HDF_LOGE("bufferCount <= 0 or bufferSize <= 0"); in UseHandleBuffer()
199 int32_t bufferCount, int32_t bufferSize) in UseBufferOnPort()
203 int fd = OHOS::AshmemCreate(0, bufferSize); in UseBufferOnPort()
140 UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize) UseDynaBuffer() argument
169 UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize) UseHandleBuffer() argument
198 UseBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount, int32_t bufferSize) UseBufferOnPort() argument
229 AllocateBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount, int32_t bufferSize) AllocateBufferOnPort() argument
[all...]
H A Dcodec_function_utils.h125 void InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, std::shared_ptr<OmxCodecBuffer> omxBuffer,
133 bool UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
135 bool UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
138 int32_t bufferSize);
141 int32_t bufferSize);
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/common/
H A 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/musl/entry/src/main/cpp/common/
H A 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/
H A 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/
H A 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/
H A 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/
H A 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/
H A 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/nativewindow/entry/src/main/cpp/
H A Dnativewindow2.cpp1143 int32_t bufferSize; in testNativeWindowSetDynamicMetadataValue1() local
1152 flag = OH_NativeWindow_GetMetadataValue(nativeWindow, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in testNativeWindowSetDynamicMetadataValue1()
1164 flag = OH_NativeWindow_GetMetadataValue(nativeWindow, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in testNativeWindowSetDynamicMetadataValue1()
1176 int32_t bufferSize; in testNativeWindowSetDynamicMetadataValue2() local
1186 flag = OH_NativeWindow_GetMetadataValue(nativeWindow, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in testNativeWindowSetDynamicMetadataValue2()
1191 if (bufferSize != X) { in testNativeWindowSetDynamicMetadataValue2()
1204 flag = OH_NativeWindow_GetMetadataValue(nativeWindow, OH_HDR_DYNAMIC_METADATA, &bufferSize, &buffer); in testNativeWindowSetDynamicMetadataValue2()
1209 if (bufferSize != X) { in testNativeWindowSetDynamicMetadataValue2()
1220 int32_t bufferSize; in testNativeWindowSetDynamicMetadataValue3() local
1229 flag = OH_NativeWindow_GetMetadataValue(nativeWindow, OH_HDR_DYNAMIC_METADATA, &bufferSize, in testNativeWindowSetDynamicMetadataValue3()
1260 int32_t bufferSize; testNativeWindowSetDynamicMetadataValue4() local
1337 int32_t bufferSize; testNativeWindowSetMetadataValueTimes() local
1372 int32_t bufferSize; testNativeWindowSetStaticMetadataValue1() local
1407 int32_t bufferSize; testNativeWindowSetStaticMetadataValue2() local
1451 int32_t bufferSize; testNativeWindowSetStaticMetadataValue3() local
1492 int32_t bufferSize; testNativeWindowSetStaticMetadataValue4() local
1553 int32_t bufferSize; testNativeWindowSetMetadataValue1() local
1586 int32_t bufferSize; testNativeWindowSetMetadataValue2() local
1630 int32_t bufferSize; testNativeWindowSetMetadataValue3() local
1673 int32_t bufferSize; testNativeWindowSetMetadataValue4() local
[all...]
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/
H A Dimage_packing_test.cpp84 const char* utf8name, char** buffer, size_t *bufferSize) in GetStringProperty()
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()
83 GetStringProperty(napi_env env, napi_value root, const char* utf8name, char** buffer, size_t *bufferSize) GetStringProperty() argument
/test/xts/acts/multimedia/av_codec/vcodec/swdecoder/src/
H A Dvideodec_ndk_sample.cpp453 void VDecNdkSample::CopyStartCode(uint8_t *frameBuffer, uint32_t bufferSize, OH_AVCodecBufferAttr &attr) 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) << SIXTEEN) | 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 in SendData()
[all...]
/test/xts/hats/hdf/display/composer/moduletest/
H A Dhdi_device_test.cpp240 std::shared_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 in AdjustLayerSettings()
[all...]
/test/xts/acts/distributeddatamgr/relationalStoretest/rdbnapitest/entry/src/main/cpp/napi/
H A 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/imageSourceNDK/entry/src/main/cpp/napi/
H A Dimage_source_test.cpp114 uint8_t** buffer, size_t* bufferSize) in GetArrayBufferProperty()
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)) || bu in parseImageSource()
113 GetArrayBufferProperty(napi_env env, napi_value root, const char* utf8name, uint8_t** buffer, size_t* bufferSize) GetArrayBufferProperty() argument
350 size_t bufferSize = 0; CreateFromData() local
470 size_t bufferSize = 0; CreateIncrementalFromData() local
[all...]
/test/xts/device_attest_lite/services/core/utils/
H A 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/multimedia/av_codec/vcodec/hwdecoder/src/
H A Dvideodec_ndk_sample.cpp532 uint32_t bufferSize = (uint32_t)(((ch[3] & 0xFF)) | ((ch[2] & 0xFF) << EIGHT) | ((ch[1] & 0xFF) << SIXTEEN) | in PushData() local
534 if (bufferSize >= DEFAULT_WIDTH * DEFAULT_HEIGHT * THREE >> 1) { in PushData()
535 cout << "read bufferSize abnormal. buffersize = " << bufferSize << endl; in PushData()
539 return SendData(bufferSize, index, buffer); in PushData()
542 uint32_t VDecNdkSample::SendData(uint32_t bufferSize, uint32_t index, OH_AVMemory *buffer) in SendData() argument
545 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData()
550 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData()
553 (void)inFile_->read((char *)fileBuffer + START_CODE_SIZE, bufferSize); in SendData()
561 if (size < bufferSize in SendData()
[all...]
/test/xts/acts/arkui/ace_ets_web_napis/entry/src/main/cpp/
H A 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/ostest/wukong/shell_command/src/
H A 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/distributed_schedule_lite/distributed_schedule_posix/src/utils/
H A 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()
/test/xts/acts/multimedia/av_codec/vcodec/hdrcodec/src/
H A Dhdrcodec_ndk_sample.cpp118 uint32_t bufferSize = 0; in SendData() local
122 (void)inFile_->read(reinterpret_cast<char *>(&bufferSize), sizeof(uint32_t)); in SendData()
140 uint8_t *fileBuffer = new uint8_t[bufferSize]; in SendData()
146 (void)inFile_->read(reinterpret_cast<char *>(fileBuffer), bufferSize); in SendData() local
147 if (memcpy_s(avBuffer, size, fileBuffer, bufferSize) != EOK) { in SendData()
154 attr.size = bufferSize; in SendData()
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/cpp/napi/
H A 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/hats/hdf/display/composer/benchmark/
H A Ddisplay_benchmark_test.cpp92 std::shared_ptr<HdiTestLayer> layer = display->CreateHdiTestLayer(setting.bufferSize.w, setting.bufferSize.h); in CreateTestLayer()
150 setting.bufferSize.h = static_cast<uint32_t>(setting.bufferRatio.h * h); in AdjustLayerSettings()
151 setting.bufferSize.w = static_cast<uint32_t>(setting.bufferRatio.w * w); in AdjustLayerSettings()
153 setting.bufferRatio.w, setting.bufferRatio.h, setting.bufferSize.w, setting.bufferSize.h); in AdjustLayerSettings()
156 if ((setting.bufferSize.w == 0) || (setting.bufferSize.h == 0)) { in AdjustLayerSettings()
158 setting.bufferSize.w, setting.bufferSize in AdjustLayerSettings()
[all...]

Completed in 18 milliseconds

12345678910>>...49