/foundation/arkui/ui_appearance/test/mock/ |
D | mock_parameter.cpp | 21 constexpr int32_t buffSize = 10; // buff len: 64 variable 22 char value_[buffSize] = "light"; 29 (void)strncpy_s(value, len, value_, buffSize); in GetParameter() 36 (void)strncpy_s(value_, buffSize, value, strlen(value) + 1); in SetParameter()
|
/foundation/ability/ability_runtime/test/unittest/runtime_test/ |
D | js_module_reader_test.cpp | 58 size_t buffSize = 0; variable 59 auto result = jsModuleReader("", &buff, &buffSize); 73 size_t buffSize = 0; variable 74 auto result = jsModuleReader("bundleName/moduleName", &buff, &buffSize);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
D | packet.c | 288 uint32_t buffSize = BufferGetSize(start->buf); in PacketCopyToBuffer() local 289 uint32_t copySize = ((remain <= buffSize) ? remain : buffSize); in PacketCopyToBuffer() 322 uint32_t buffSize = BufferGetSize(start->buf); in PacketCopyFromBuffer() local 323 uint32_t copySize = ((remain <= buffSize) ? remain : buffSize); in PacketCopyFromBuffer() 406 uint32_t buffSize = BufferGetSize(first->buf); in PacketExtractHead() local 407 (void)memcpy_s(data, buffSize, (uint8_t *)BufferPtr(first->buf), buffSize); in PacketExtractHead() 408 size -= buffSize; in PacketExtractHead() 409 data += buffSize; in PacketExtractHead() 431 size_t buffSize = BufferGetSize(last->buf); in PacketExtractTail() local 432 size -= buffSize; in PacketExtractTail() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/ |
D | att_receive.c | 55 … const AttConnectInfo *connect, const uint8_t *data, const Buffer *bufferallPtr, size_t buffSize); 57 uint8_t *data, const uint8_t *dataBuffer, size_t buffSize, uint8_t signature[12]); 634 size_t buffSize; in AttFindByTypeValueRequest() local 653 buffSize = BufferGetSize(buffer); in AttFindByTypeValueRequest() 655 if (data == NULL || buffSize < STEP_SIX) { in AttFindByTypeValueRequest() 663 if (buffSize - STEP_SIX > 0) { in AttFindByTypeValueRequest() 664 bufferNew = BufferSliceMalloc(buffer, STEP_SIX, buffSize - STEP_SIX); in AttFindByTypeValueRequest() 779 size_t buffSize; in AttReadByTypeRequest() local 800 buffSize = BufferGetSize(buffer); in AttReadByTypeRequest() 804 uuidLen = buffSize - STEP_FOUR; in AttReadByTypeRequest() [all …]
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/ |
D | convert_utils.h | 27 static AbilityInfo *ConvertStringToAbilityInfo(const char *str, size_t buffSize); 28 static BundleInfo *ConvertStringToBundleInfo(const char *str, size_t buffSize); 30 size_t buffSize);
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/ |
D | wrapper_decoder.h | 40 bool DecodeAscii(const char *buffer, int32_t buffSize); 48 bool DecodeBinary(const char *buffer, int32_t buffSize);
|
/foundation/arkui/ui_lite/test/autotest/src/ |
D | compare_tools.cpp | 82 uint32_t buffSize = bitmapInfo.biSizeImage / MATH_ABS(bitmapInfo.biHeight); in CompareByBit() local 83 auto buff = new uint8_t[buffSize]; in CompareByBit() 85 if (flag && (memset_s(buff, buffSize, 0, buffSize) != EOK)) { in CompareByBit() 89 int32_t ret = read(fd, buff, buffSize); in CompareByBit() 95 if (buff[j] != imageBit.data[i * buffSize + j]) { in CompareByBit()
|
/foundation/arkui/ui_appearance/services/src/ |
D | ui_appearance_ability.cpp | 140 constexpr int buffSize = 64; // buff len: 64 in OnGetDarkMode() local 141 char valueGet[buffSize] = { 0 }; in OnGetDarkMode() 144 auto res = GetParameter(PERSIST_DARKMODE_KEY.c_str(), LIGHT.c_str(), valueGet, buffSize); in OnGetDarkMode()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
D | js_module_reader.cpp | 43 bool JsModuleReader::operator()(const std::string& inputPath, uint8_t **buff, size_t *buffSize) con… in operator ()() 47 if (inputPath.empty() || buff == nullptr || buffSize == nullptr) { in operator ()() 72 *buffSize = data->GetDataLen(); in operator ()()
|
D | js_module_reader.h | 44 bool operator()(const std::string& inputPath, uint8_t **buff, size_t *buffSize) const;
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
D | appfreeze_inner.cpp | 86 const int buffSize = 128; in IsHandleAppfreeze() local 87 char paramOutBuff[buffSize] = {0}; in IsHandleAppfreeze() 88 GetParameter("hiviewdfx.appfreeze.filter_bundle_name", "", paramOutBuff, buffSize - 1); in IsHandleAppfreeze()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/ |
D | js_utils.cpp | 173 size_t buffSize = 0; in Convert2Value() local 174 napi_get_value_string_utf8(env, jsValue, nullptr, 0, &buffSize); in Convert2Value() 177 if (buffSize >= JSUtils::MAX_VALUE_LENGTH - 1) { in Convert2Value() 178 buffSize = JSUtils::MAX_VALUE_LENGTH - 1; in Convert2Value() 180 char *buffer = (char *)malloc((buffSize + 1) * sizeof(char)); in Convert2Value() 185 status = napi_get_value_string_utf8(env, jsValue, buffer, buffSize + 1, &buffSize); in Convert2Value()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
D | wrapper_decoder.cpp | 176 bool WrapperDecoder::DecodeAscii(const char *buffer, int32_t buffSize) in DecodeAscii() argument 180 const char *end = start + buffSize; in DecodeAscii() 182 if (buffSize == 0) { in DecodeAscii() 238 bool WrapperDecoder::DecodeBinary(const char *buffer, int32_t buffSize) in DecodeBinary() argument 243 NLMSG_OK(hdrMsg, (unsigned)buffSize) && (hdrMsg->nlmsg_type != NLMSG_DONE); in DecodeBinary() 244 hdrMsg = NLMSG_NEXT(hdrMsg, buffSize)) { in DecodeBinary()
|
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
D | appfreeze_manager.cpp | 89 const int buffSize = 128; in IsHandleAppfreeze() local 90 char paramOutBuff[buffSize] = {0}; in IsHandleAppfreeze() 91 GetParameter("hiviewdfx.appfreeze.filter_bundle_name", "", paramOutBuff, buffSize - 1); in IsHandleAppfreeze()
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
D | convert_utils.cpp | 112 AbilityInfo *ConvertUtils::ConvertStringToAbilityInfo(const char *str, size_t buffSize) in ConvertStringToAbilityInfo() argument 125 cJSON *root = cJSON_ParseWithLength(str, buffSize); in ConvertStringToAbilityInfo() 140 BundleInfo *ConvertUtils::ConvertStringToBundleInfo(const char *str, size_t buffSize) in ConvertStringToBundleInfo() argument 153 cJSON *root = cJSON_ParseWithLength(str, buffSize); in ConvertStringToBundleInfo() 169 size_t buffSize) in ConvertStringToBundleInfos() argument 174 cJSON *roots = cJSON_ParseWithLength(strs, buffSize); in ConvertStringToBundleInfos()
|
/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
D | input_manager_filter_manual_test.cpp | 134 int32_t buffSize = 255; in GetProcessPidByName() local 135 char buf[buffSize]; in GetProcessPidByName() 139 if (fgets(buf, buffSize, fp) != nullptr) { in GetProcessPidByName()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
D | zip_file.cpp | 438 size_t buffSize = sizeof(LocalHeader) + nameSize; in CheckCoherencyLocalHeader() local 439 auto buff = zipFileReader_->ReadBuffer(startPos, buffSize); in CheckCoherencyLocalHeader() 440 if (buff.size() < buffSize) { in CheckCoherencyLocalHeader()
|
/foundation/arkui/ui_lite/frameworks/components/ |
D | ui_canvas.cpp | 1534 uint32_t buffSize = gfxMapBuffer_->height * gfxMapBuffer_->stride; in InitGfxMapBuffer() local 1536 gfxMapBuffer_->virAddr = baseGfxEngine->AllocBuffer(buffSize, BUFFER_MAP_SURFACE); in InitGfxMapBuffer() 1539 errno_t err = memset_s(gfxMapBuffer_->virAddr, buffSize, 0, buffSize); in InitGfxMapBuffer() 1560 uint32_t buffSize = gfxMapBuffer_->height * gfxMapBuffer_->stride; in UpdateMapBufferInfo() local 1561 errno_t err = memset_s(gfxMapBuffer_->virAddr, buffSize, 0, buffSize); in UpdateMapBufferInfo()
|