Home
last modified time | relevance | path

Searched refs:buffLen (Results 1 – 22 of 22) sorted by relevance

/base/startup/appspawn/standard/
Dappspawn_service.c321 const uint8_t *buffer, uint32_t buffLen) in ReceiveRequestDataToDataGroup() argument
331 …APPSPAWN_CHECK(dataGroupInfoList->totalLength >= buffLen, LE_CloseTask(LE_GetDefaultLoop(), taskHa… in ReceiveRequestDataToDataGroup()
332 … return false, "ReceiveRequestDataToDataGroup: too many data for data group %{public}u ", buffLen); in ReceiveRequestDataToDataGroup()
334 int ret = memcpy_s(data, buffLen, buffer, buffLen); in ReceiveRequestDataToDataGroup()
343 const uint8_t *buffer, uint32_t buffLen) in ReceiveRequestDataToOverlay() argument
353 APPSPAWN_CHECK(overlayInfo->totalLength >= (buffLen - groupTotal), in ReceiveRequestDataToOverlay()
355 return false, "ReceiveRequestData: too many data for overlay %{public}u ", buffLen); in ReceiveRequestDataToOverlay()
357 int ret = memcpy_s(data, (buffLen - groupTotal), buffer, (buffLen - groupTotal)); in ReceiveRequestDataToOverlay()
362 buffLen -= overlayInfo->totalLength; in ReceiveRequestDataToOverlay()
364 return ReceiveRequestDataToDataGroup(taskHandle, client, buffer, buffLen); in ReceiveRequestDataToOverlay()
[all …]
/base/security/device_auth/common_lib/impl/src/
Duint8buff_utils.c22 int32_t InitUint8Buff(Uint8Buff *buff, uint32_t buffLen) in InitUint8Buff() argument
27 if (buffLen == 0) { in InitUint8Buff()
30 buff->val = (uint8_t *)HcMalloc(buffLen, 0); in InitUint8Buff()
34 buff->length = buffLen; in InitUint8Buff()
/base/startup/init/services/loopevent/task/
Dle_asynctask.c122 const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen) in LE_StartAsyncEvent() argument
125 BufferHandle handle = LE_CreateBuffer(loopHandle, buffLen + 1 + sizeof(eventId)); in LE_StartAsyncEvent()
129 if (data != NULL || buffLen == 0) { in LE_StartAsyncEvent()
130 ret = memcpy_s(buff + sizeof(eventId), buffLen, data, buffLen); in LE_StartAsyncEvent()
132 buff[sizeof(eventId) + buffLen] = '\0'; in LE_StartAsyncEvent()
134 return LE_Send(loopHandle, taskHandle, handle, buffLen); in LE_StartAsyncEvent()
Dle_task.c170 const TaskHandle taskHandle, const BufferHandle buffHandle, uint32_t buffLen) in LE_Send() argument
178 buffer->dataSize = buffLen; in LE_Send()
/base/security/dlp_permission_service/frameworks/common/src/
Dpermission_policy.cpp94 static void FreeUint8Buffer(uint8_t** buff, uint32_t& buffLen) in FreeUint8Buffer() argument
97 memset_s(*buff, buffLen, 0, buffLen); in FreeUint8Buffer()
101 buffLen = 0; in FreeUint8Buffer()
277 void FreeCharBuffer(char* buff, uint32_t buffLen) in FreeCharBuffer() argument
280 memset_s(buff, buffLen, 0, buffLen); in FreeCharBuffer()
/base/startup/init/services/loopevent/include/
Dloop_event.h101 typedef void (*LE_RecvMessage)(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t buffLen
129 const TaskHandle taskHandle, const BufferHandle handle, uint32_t buffLen);
137 uint64_t eventId, const uint8_t *buffer, uint32_t buffLen);
143 const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen);
/base/security/device_auth/common_lib/interfaces/
Duint8buff_utils.h31 int32_t InitUint8Buff(Uint8Buff *buff, uint32_t buffLen);
/base/security/dlp_permission_service/frameworks/common/include/
Dpermission_policy.h133 void FreeCharBuffer(char* buff, uint32_t buffLen);
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_client.c67 …_STATIC void CmdClientOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen) in CmdClientOnRecvMessage() argument
69 BEGET_LOGI("[control_fd] CmdOnRecvMessage %s len %d.", (char *)buffer, buffLen); in CmdClientOnRecvMessage()
Dcontrol_fd_service.c55 …ROL_FD_STATIC void CmdOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen) in CmdOnRecvMessage() argument
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
Ddlp_permission_serializer.cpp65 …c int32_t ReadUint8ArrayFromJson(const unordered_json& permJson, uint8_t** buff, uint32_t& buffLen, in ReadUint8ArrayFromJson() argument
69 permJson.at(lenName).get_to(buffLen); in ReadUint8ArrayFromJson()
76 if (length != buffLen) { in ReadUint8ArrayFromJson()
77 buffLen = length; in ReadUint8ArrayFromJson()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp136 int32_t buffLen = MAX_FILE_NAME + sizeof(LocalFileHeader) + sizeof(DataDescriptor) + in TestBigZipEntry() local
138 std::vector<uint8_t> buff(buffLen); in TestBigZipEntry()
/base/startup/init/test/unittest/loopevent/
Dloopevent_unittest.cpp60 …sAsyncEvent(const TaskHandle taskHandle, uint64_t eventId, const uint8_t *buffer, uint32_t buffLen) in ProcessAsyncEvent() argument
65 UNUSED(buffLen); in ProcessAsyncEvent()
Dloopserver_unittest.cpp120 …sAsyncEvent(const TaskHandle taskHandle, uint64_t eventId, const uint8_t *buffer, uint32_t buffLen) in ProcessAsyncEvent() argument
125 UNUSED(buffLen); in ProcessAsyncEvent()
/base/startup/init/test/unittest/init/
Dgroup_unittest.cpp64 size_t buffLen = strlen(buff); in TestHashKeyFunction() local
65 for (size_t i = 0; i < buffLen; i++) { in TestHashKeyFunction()
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_watch.cpp85 …etParamValue(napi_env env, napi_value arg, napi_valuetype valueType, char *buffer, size_t &buffLen) in GetParamValue() argument
92 status = napi_get_value_string_utf8(env, arg, buffer, buffLen, &buffLen); in GetParamValue()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp40 void CmdOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen);
46 void CmdClientOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen);
/base/startup/init/test/unittest/param/
Dparam_stub.cpp65 size_t buffLen = strlen(buff); in TestGenHashCode() local
66 for (size_t i = 0; i < buffLen; i++) { in TestGenHashCode()
/base/startup/init/services/param/trigger/
Dtrigger_manager.c622 size_t buffLen = strlen(buff); in JobNodeGetKeyHasCode() local
623 for (size_t i = 0; i < buffLen; i++) { in JobNodeGetKeyHasCode()
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.cpp242 size_t buffLen = MAX_FILE_NAME + sizeof(LocalFileHeader) + sizeof(DataDescriptor) in ParseFileEntries() local
244 PkgBuffer buffer(buffLen); in ParseFileEntries()
/base/location/frameworks/native/source/
Dnapi_util.cpp572 int buffLen = 100; in GetLocationArray() local
573 JsObjectToString(env, elementValue, "additions", buffLen, additions); in GetLocationArray()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_standard_test.cpp53 const uint8_t *buffer, uint32_t buffLen);