/ohos5.0/base/security/device_auth/common_lib/impl/src/ |
H A D | uint8buff_utils.c | 23 int32_t InitUint8Buff(Uint8Buff *buff, uint32_t buffLen) in InitUint8Buff() argument 28 if (buffLen == 0) { in InitUint8Buff() 31 buff->val = (uint8_t *)HcMalloc(buffLen, 0); in InitUint8Buff() 35 buff->length = buffLen; in InitUint8Buff() 85 uint32_t buffLen = buff->length; in ToLowerCase() local 86 char *buffStr = (char *)HcMalloc(buffLen + 1, 0); in ToLowerCase() 90 if (memcpy_s(buffStr, buffLen + 1, buff->val, buffLen) != EOK) { in ToLowerCase() 94 for (uint32_t i = 0; i < buffLen; i++) { in ToLowerCase() 97 if (memcpy_s(buff->val, buffLen, buffStr, buffLen) != EOK) { in ToLowerCase()
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ipc/lite/ |
H A D | ipc_cmd_parser.cpp | 70 size_t buffLen) in ON_IPC_SET_REQUEST() argument 76 IpcIoInit(&request, buffer, buffLen, 1); in ON_IPC_SET_REQUEST() 95 IpcIoInit(&request, buffer, buffLen, 0); in ON_IPC_SET_REQUEST() 106 size_t buffLen) in ON_IPC_SET_REQUEST() argument 133 size_t buffLen) in ON_IPC_SET_REQUEST() argument 167 size_t buffLen) in ON_IPC_SET_REQUEST() argument 187 size_t buffLen) in ON_IPC_SET_REQUEST() argument 205 size_t buffLen) in ON_IPC_SET_REQUEST() argument 231 size_t buffLen) in ON_IPC_SET_REQUEST() argument 257 size_t buffLen) in ON_IPC_SET_REQUEST() argument [all …]
|
/ohos5.0/base/startup/init/services/loopevent/task/ |
H A D | le_asynctask.c | 133 const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen) in LE_StartAsyncEvent() argument 136 BufferHandle handle = LE_CreateBuffer(loopHandle, buffLen + 1 + sizeof(eventId)); in LE_StartAsyncEvent() 141 if (data != NULL && buffLen > 0) { in LE_StartAsyncEvent() 142 ret = memcpy_s(buff + sizeof(eventId), buffLen, data, buffLen); in LE_StartAsyncEvent() 144 buff[sizeof(eventId) + buffLen] = '\0'; in LE_StartAsyncEvent() 146 return LE_Send(loopHandle, taskHandle, handle, buffLen); in LE_StartAsyncEvent()
|
H A D | le_task.c | 170 const TaskHandle taskHandle, const BufferHandle buffHandle, uint32_t buffLen) in LE_Send() argument 180 buffer->dataSize = buffLen; in LE_Send()
|
/ohos5.0/base/security/dlp_permission_service/frameworks/common/src/ |
H A D | permission_policy.cpp | 96 static void FreeUint8Buffer(uint8_t** buff, uint32_t& buffLen) in FreeUint8Buffer() argument 103 memset_s(*buff, buffLen, 0, buffLen); in FreeUint8Buffer() 107 buffLen = 0; in FreeUint8Buffer() 292 void FreeCharBuffer(char* buff, uint32_t buffLen) in FreeCharBuffer() argument 295 memset_s(buff, buffLen, 0, buffLen); in FreeCharBuffer()
|
/ohos5.0/base/startup/appspawn/modules/common/ |
H A D | appspawn_cgroup.c | 36 …PAWN_STATIC int GetCgroupPath(const AppSpawnedProcessInfo *appInfo, char *buffer, uint32_t buffLen) in GetCgroupPath() argument 40 …int ret = snprintf_s(buffer, buffLen, buffLen - 1, APPSPAWN_BASE_DIR "/dev/pids/testpids/%d/%s/%d/… in GetCgroupPath() 43 …int ret = snprintf_s(buffer, buffLen, buffLen - 1, "/dev/pids/%d/%s/app_%d/", userId, appInfo->nam… in GetCgroupPath()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | db_ability.cpp | 56 uint32_t buffLen = (curAbility.GetAbilityBitsLen() % SERIALIZE_BIT_SIZE != 0) ? div + 1 : div; in Serialize() local 57 std::vector<uint64_t> dstBuf(buffLen, 0); in Serialize() 101 uint32_t buffLen = (curAbility.GetAbilityBitsLen() % SERIALIZE_BIT_SIZE != 0) ? div + 1 : div; in CalculateLen() local 102 return Parcel::GetVectorLen<uint64_t>(std::vector<uint64_t>(buffLen, 0)); in CalculateLen()
|
/ohos5.0/base/startup/init/interfaces/innerkits/include/ |
H A D | loop_event.h | 102 typedef void (*LE_RecvMessage)(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t buffLen… 132 const TaskHandle taskHandle, const BufferHandle handle, uint32_t buffLen); 140 uint64_t eventId, const uint8_t *buffer, uint32_t buffLen); 146 const TaskHandle taskHandle, uint64_t eventId, const uint8_t *data, uint32_t buffLen);
|
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/ |
H A D | ipc_cmd_parser.cpp | 60 size_t buffLen) in ON_IPC_SET_REQUEST() argument 67 IpcIoInit(&request, buffer, buffLen, 0); in ON_IPC_SET_REQUEST() 80 size_t buffLen) in ON_IPC_SET_REQUEST() argument 87 IpcIoInit(&request, buffer, buffLen, 0); in ON_IPC_SET_REQUEST() 100 size_t buffLen) in ON_IPC_SET_REQUEST() argument 107 IpcIoInit(&request, buffer, buffLen, 0); in ON_IPC_SET_REQUEST()
|
/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/ |
H A D | sys_event_repeat_guard.cpp | 45 constexpr int buffLen = SHA256_DIGEST_LENGTH * 2 + 1; in GetShaStr() local 46 char buff[buffLen] = {0}; in GetShaStr() 48 … eventData + eventInfo.dataPos, eventInfo.dataSize - eventInfo.dataPos, buff, buffLen) != 0) { in GetShaStr()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon.cpp | 217 size_t buffLen = 0; in StoreContentToFileInvoke() local 218 const char *buff = reinterpret_cast<char *>(ReadString(req, &buffLen)); in StoreContentToFileInvoke() 219 if (buff == nullptr || buffLen == 0) { in StoreContentToFileInvoke() 222 int32_t ret = BundleDaemon::GetInstance().handler_.StoreContentToFile(path, buff, buffLen); in StoreContentToFileInvoke()
|
/ohos5.0/foundation/distributedhardware/device_manager/common/src/ipc/lite/ |
H A D | ipc_cmd_register.cpp | 27 size_t buffLen) in SetRequest() argument 38 return (setRequestMapIter->second)(pBaseReq, request, buffer, buffLen); in SetRequest()
|
/ohos5.0/drivers/peripheral/connected_nfc_tag/hdi_service/ |
H A D | connected_nfc_tag_impl.cpp | 31 static int EventCallback(uint8_t event, uint8_t *buff, uint32_t buffLen) in EventCallback() argument 34 std::vector<uint8_t> data(buff, buff + buffLen); in EventCallback()
|
/ohos5.0/drivers/peripheral/connected_nfc_tag/vendor_adapter/ |
H A D | connected_nfc_tag_vendor_adapter.cpp | 222 uint32_t buffLen = sizeof(buff); in ReadNdefData() local 223 int32_t ret = infHandle.readNdefData(buff, &buffLen); in ReadNdefData() 229 std::vector<uint8_t> data(buff, buff + buffLen); in ReadNdefData()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_query_sync_test.cpp | 1172 uint32_t buffLen = obj1.CalculateParcelLen(SOFTWARE_VERSION_CURRENT); variable 1173 vector<uint8_t> buffer(buffLen, 0); 1174 Parcel writeParcel(buffer.data(), buffLen); 1181 Parcel readParcel(buffer.data(), buffLen); 1348 uint32_t buffLen = obj1.CalculateParcelLen(SOFTWARE_VERSION_CURRENT); variable 1349 vector<uint8_t> buffer(buffLen, 0); 1350 Parcel writeParcel(buffer.data(), buffLen); 1357 EXPECT_EQ(buffLen, 120u); // 120 is the max buffer len 1361 Parcel readParcel(buffer.data(), buffLen); 1370 Parcel writeParcel2(buffer.data() + 116, buffLen); // 116 is the starting bit of key [all …]
|
/ohos5.0/base/security/device_auth/common_lib/interfaces/ |
H A D | uint8buff_utils.h | 31 int32_t InitUint8Buff(Uint8Buff *buff, uint32_t buffLen);
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_util.h | 31 struct HdiElems *elems, char* buff, int buffLen);
|
/ohos5.0/base/startup/appspawn/test/unittest/ |
H A D | app_spawn_test_helper.h | 51 … = std::function<void(struct TestConnection *connection, const uint8_t *buffer, uint32_t buffLen)>; 248 …static void OnReceiveRequest(const TaskHandle taskHandle, const uint8_t *buffer, uint32_t buffLen);
|
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_capi_skeleton.cpp | 724 int32_t buffLen = 0; in SendAndEchoBuffer() local 725 int ret = OH_IPCParcel_ReadInt32(this->currentData_, &buffLen); in SendAndEchoBuffer() 730 const uint8_t *buffer = OH_IPCParcel_ReadBuffer(this->currentData_, buffLen); in SendAndEchoBuffer() 736 return OH_IPCParcel_WriteBuffer(this->currentReply_, buffer, buffLen); in SendAndEchoBuffer()
|
/ohos5.0/base/startup/init/interfaces/innerkits/control_fd/ |
H A D | control_fd_client.c | 75 …_STATIC void CmdClientOnRecvMessage(const TaskHandle task, const uint8_t *buffer, uint32_t buffLen) in CmdClientOnRecvMessage() argument 77 BEGET_LOGI("[control_fd] CmdOnRecvMessage %s len %d.", (char *)buffer, buffLen); in CmdClientOnRecvMessage()
|
/ohos5.0/base/update/updater/test/unittest/package/ |
H A D | pkg_package_unittest.cpp | 136 int32_t buffLen = MAX_FILE_NAME + sizeof(LocalFileHeader) + sizeof(DataDescriptor) + in TestBigZipEntry() local 138 std::vector<uint8_t> buff(buffLen); in TestBigZipEntry()
|
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/ |
H A D | dlp_permission_serializer.cpp | 78 …c int32_t ReadUint8ArrayFromJson(const unordered_json& permJson, uint8_t** buff, uint32_t& buffLen, in ReadUint8ArrayFromJson() argument 82 permJson.at(lenName).get_to(buffLen); in ReadUint8ArrayFromJson() 89 if (length != buffLen) { in ReadUint8ArrayFromJson() 90 buffLen = length; in ReadUint8ArrayFromJson()
|
/ohos5.0/base/startup/appspawn/test/mock/ |
H A D | app_spawn_stub.h | 66 int GetCgroupPath(const AppSpawnedProcess *appInfo, char *buffer, uint32_t buffLen);
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/wifi_hal_interface/ |
H A D | wifi_sta_hal_interface.cpp | 329 int buffLen = HDI_SCAN_RESULTS_MAX_LEN; in ParseScanInfo() local 330 buffLen = GetScanResultText(&wifiScanResultExt, &elems, buff, buffLen); in ParseScanInfo() 333 if (DelScanInfoLine(&scanInfo, buff, buffLen)) { in ParseScanInfo()
|
/ohos5.0/base/startup/init/test/unittest/loopevent/ |
H A D | loopevent_unittest.cpp | 60 …sAsyncEvent(const TaskHandle taskHandle, uint64_t eventId, const uint8_t *buffer, uint32_t buffLen) in ProcessAsyncEvent() argument 65 UNUSED(buffLen); in ProcessAsyncEvent()
|