/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 181 static void AddStorageExtParams(struct HksParam *params, bool isDeStorage, uint32_t *idx, int32_t osAccountId) in AddStorageExtParams() argument 185 params[*idx].tag = HKS_TAG_AUTH_STORAGE_LEVEL; in AddStorageExtParams() 186 params[(*idx)++].uint32Param = HKS_AUTH_STORAGE_LEVEL_DE; in AddStorageExtParams() 188 params[*idx].tag = HKS_TAG_AUTH_STORAGE_LEVEL; in AddStorageExtParams() 189 params[(*idx)++].uint32Param = HKS_AUTH_STORAGE_LEVEL_CE; in AddStorageExtParams() 190 params[*idx].tag = HKS_TAG_SPECIFIC_USER_ID; in AddStorageExtParams() 191 params[(*idx)++].uint32Param = osAccountId; in AddStorageExtParams() 196 (void)idx; in AddStorageExtParams() 279 uint32_t idx = 0; in ConstructCheckParamSet() local 280 AddStorageExtParams(checkParams, isDeStorage, &idx, osAccountI in ConstructCheckParamSet() 341 uint32_t idx = 0; ConstructDeleteParamSet() local 406 uint32_t idx = 0; ConstructHmacParamSet() local 489 uint32_t idx = 0; ConstructDeriveParamSet() local 517 uint32_t idx = 0; ConstructFinishParamSet() local 634 uint32_t idx = 0; ConstructHkdfParamSet() local 726 uint32_t idx = 0; ConstructPseudonymParamSet() local 897 uint32_t idx = 0; ConstructGetKeyExtInfoParamSet() local 997 uint32_t idx = 0; ConstructAesGcmEncryptParamSet() local 1085 uint32_t idx = 0; ConstructAesGcmDecryptParamSet() local 1167 uint32_t idx = 0; ConstructInitParamsP256() local 1192 uint32_t idx = 0; ConstructFinishParamsP256() local 1276 uint32_t idx = 0; ConstructAgreeWithStorageParams() local 1407 uint32_t idx = 0; ConstructAgreeParamSet() local 1514 uint32_t idx = 0; ConstructGenerateKeyPairWithStorageParams() local 1707 uint32_t idx = 0; ConstructExportParams() local 1784 uint32_t idx = 0; ConstructSignParams() local 1875 uint32_t idx = 0; ConstructVerifyParams() local 1954 uint32_t idx = 0; ConstructImportPublicKeyParams() local 2171 uint32_t idx = 0; ConstructImportSymmetricKeyParam() local [all...] |
/base/security/device_auth/frameworks/src/lite/ |
H A D | ipc_dev_auth_stub.c | 133 ipcData->idx = SetRemoteObject(&tmp); in WithObject() 134 if (ipcData->idx >= 0) { in WithObject() 135 ipcData->val = (uint8_t *)(&(ipcData->idx)); in WithObject() 136 LOGI("object trans success, set id %d", ipcData->idx); in WithObject() 277 int32_t idx = -1; in SetRemoteObject() local 283 idx = i; in SetRemoteObject() 287 LOGI("remote object cache index %d", idx); in SetRemoteObject() 288 if (idx == -1) { in SetRemoteObject() 292 g_cbStub[idx].cbStub = *object; in SetRemoteObject() 293 g_cbStub[idx] in SetRemoteObject() 330 ResetRemoteObject(int32_t idx) ResetRemoteObject() argument [all...] |
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/ |
H A D | conversion_mfcc.cpp | 43 uint32_t idx = i + (bin * numFilters_); in HandleMelFilterAndLogSquare() local 44 melBands_[i] += (melFilters_[idx] * powerSpectrum[bin]); in HandleMelFilterAndLogSquare() 107 uint32_t idx = i + (j * numCoeffs_); in HandleDiscreteCosineTransform() local 108 coeffs_[i] += (dctMatrix_[idx] * melBands_[j]); in HandleDiscreteCosineTransform() 115 int32_t ConversionMfcc::SetMelFilters(uint32_t idx, double binFreq, double prevFreq, double thisFreq, double nextFreq) in SetMelFilters() argument 125 melFilters_[idx] = 0; in SetMelFilters() 132 melFilters_[idx] = (binFreq - prevFreq) * (height / (thisFreq - prevFreq)); in SetMelFilters() 138 melFilters_[idx] = height + ((binFreq - thisFreq) * (-height / (nextFreq - thisFreq))); in SetMelFilters() 169 uint32_t idx = i + (j * numFilters_); in CalcMelFilterBank() local 170 if (SetMelFilters(idx, binF in CalcMelFilterBank() 202 uint32_t idx = i + (j * numCoeffs_); CreateDCTCoeffs() local [all...] |
/base/request/request/services/src/task/ |
H A D | files.rs | 64 for (idx, fs) in config.file_specs.iter().enumerate() { in open_task_files() 71 error!("None user file failed - task_id: {}, idx: {}", tid, idx); in open_task_files() 78 "Open file RO failed - task_id: {}, idx: {}", in open_task_files() 80 idx in open_task_files() 85 "Cannot get upload file's size - task_id: {}, idx: {}", in open_task_files() 87 idx in open_task_files() 91 "Get file size succeed - task_id: {}, idx: {}, size: {}", in open_task_files() 92 tid, idx, size in open_task_files() 101 error!("None user file failed - task_id: {}, idx in open_task_files() [all...] |
/base/update/updater/utils/include/ |
H A D | macros_updater.h | 76 #define GET_MEMBER_DECLARTION(idx, tuple) GET_TYPE tuple GET_NAME tuple; 77 #define GET_MEMBER_KEY(idx, tuple) GET_KEY tuple COMMA_IF(idx) 78 #define GET_MEMBER(idx, tuple) obj.GET_NAME tuple COMMA_IF(idx) 94 template <std::size_t idx> constexpr static auto &Get(NAME &obj) \ 96 return Detail::Get<idx>(REPEAT(GET_MEMBER, __VA_ARGS__)); \
|
/base/msdp/device_status/utils/ipc/src/ |
H A D | stream_client.cpp | 61 int32_t idx = 0;
in SendMsg() local 66 ssize_t number = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL);
in SendMsg() 75 idx += number;
in SendMsg() 83 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_);
in SendMsg()
|
H A D | stream_session.cpp | 55 int32_t idx = 0;
in SendMsg() local 61 ssize_t count = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL);
in SendMsg() 71 idx += count;
in SendMsg() 79 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_);
in SendMsg()
|
/base/update/packaging_tools/ |
H A D | update_package.py | 178 idx = 0
180 if idx < len(extend_component_list):
181 file_path = extend_path_list[idx]
183 file_path = all_image_file_obj_list[idx - len(extend_component_list)].name
190 component_list[idx].digest = (ctypes.c_ubyte * 32).from_buffer_copy(
192 component_list[idx].file_path = file_path.encode("utf-8")
194 component_list[idx].component_addr = ('/%s' % component[0]).encode("utf-8")
196 component_list[idx].component_addr = ('%s' % component[0]).encode("utf-8")
197 component_list[idx].version = component[4].encode("utf-8")
198 component_list[idx] [all...] |
H A D | image_class.py | 59 for idx, each_name in enumerate(self.full_img_list):
61 self.full_image_path_list[idx])
62 img_name = self.full_img_name_list[idx][:-4]
153 for idx, value in enumerate(care_value_list):
154 if idx != 0 and (idx + 1) % 2 == 0:
155 be_value = int(care_value_list[idx - 1])
156 af_value = int(care_value_list[idx])
227 idx = bisect.bisect_right(self.offset_index, each_value) - 1
229 self.offset_value_list[idx]
[all...] |
/base/security/device_auth/frameworks/src/standard/ |
H A D | ipc_dev_auth_stub.cpp | 180 ipcData.idx = ServiceDevAuth::SetRemoteObject(tmp); in WithObject() 181 if (ipcData.idx >= 0) { in WithObject() 182 ipcData.val = reinterpret_cast<uint8_t *>(&(ipcData.idx)); in WithObject() 183 LOGI("object trans success, set id %d", ipcData.idx); in WithObject() 329 int32_t idx = -1; in SetRemoteObject() local 335 idx = i; in SetRemoteObject() 339 LOGI("remote object cache index %d", idx); in SetRemoteObject() 340 if (idx == -1) { in SetRemoteObject() 343 g_cbStub[idx].cbStub = object; in SetRemoteObject() 344 g_cbStub[idx] in SetRemoteObject() 361 ResetRemoteObject(int32_t idx) ResetRemoteObject() argument [all...] |
/base/update/updater/services/ui/driver/ |
H A D | input_event.cpp | 106 uint32_t idx = sta[i].devIndex; in HdfInit() local 108 if ((idx == 0) || (inputInterface_->iInputManager->OpenInputDevice(idx) == INPUT_FAILURE)) { in HdfInit() 111 devTypeMap_.insert(std::pair<uint32_t, uint32_t>(idx, dev)); in HdfInit() 113 LOG(INFO) << "hdf devType:" << dev << ", devIndex:" << idx; in HdfInit() local
|
/base/update/updater/utils/json/ |
H A D | json_node.h | 55 const JsonNode &operator[](int idx) const; 57 JsonNode &operator[](int idx); 123 inline JsonNode &GetNodeByIdx(T &innerObj, int size, int idx) in GetNodeByIdx() argument 130 if (idx < 0 || idx >= size) { in GetNodeByIdx() 133 return *nodeVec[idx]; in GetNodeByIdx()
|
H A D | json_node.cpp | 143 JsonNode &JsonNode::operator[](int idx) in operator []() argument 145 return GetNodeByIdx(innerObj_, size_, idx); in operator []() 153 const JsonNode &JsonNode::operator[](int idx) const in operator []() 155 return GetNodeByIdx(innerObj_, size_, idx); in operator []()
|
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | hilog_collector_test.cpp | 61 for (uint32_t idx = 0; idx < HILOG_LINE_NUM; idx++) { in HWTEST_F()
|
/base/msdp/device_status/intention/ipc/socket/src/ |
H A D | socket_session.cpp | 70 int32_t idx = 0;
in SendMsg() local 78 ssize_t count = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL);
in SendMsg() 88 idx += count;
in SendMsg() 96 "pid:%{public}d", retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_, pid_);
in SendMsg()
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
H A D | stream_session.rs | 125 let mut idx: usize = 0; in session_send_msg() variables 133 libc::send(self.fd as c_int, buf.add(idx) as *const libc::c_void, rem_size, in session_send_msg() 149 idx += count as usize; in session_send_msg() 157 retry_count, SEND_RETRY_LIMIT, idx, buf_size, self.fd); in session_send_msg()
|
/base/startup/init/ueventd/ |
H A D | ueventd.c | 146 size_t idx = 0; in HandleRequiredDynamicDeviceNodes() local 152 while (idx < sizeof(DYNAMIC_DEVICES) / sizeof(DYNAMIC_DEVICES[0])) { in HandleRequiredDynamicDeviceNodes() 153 if (strcmp(uevent->deviceName, DYNAMIC_DEVICES[idx].dev + DEV_NODE_PATH_PREFIX_LEN) != 0) { in HandleRequiredDynamicDeviceNodes() 154 idx++; in HandleRequiredDynamicDeviceNodes() 165 if (mknod(DYNAMIC_DEVICES[idx].dev, DYNAMIC_DEVICES[idx].mode, in HandleRequiredDynamicDeviceNodes() 167 INIT_LOGE("Create device node %s failed. %s", DYNAMIC_DEVICES[idx].dev, strerror(errno)); in HandleRequiredDynamicDeviceNodes()
|
/base/update/updater/test/unittest/utils/json/ |
H A D | utils_json_test.cpp | 224 int idx = 0; in HWTEST_F() local 225 node["key"][idx++] = intVal; in HWTEST_F() 226 node["key"][idx++] = boolVal; in HWTEST_F() 227 node["key"][idx++] = strVal; in HWTEST_F() 228 EXPECT_EQ(node["key"][--idx], strVal); in HWTEST_F() 229 EXPECT_EQ(node["key"][--idx], boolVal); in HWTEST_F() 230 EXPECT_EQ(node["key"][--idx], intVal); in HWTEST_F()
|
/base/update/updater/test/fuzztest/updaterutils_fuzzer/ |
H A D | updater_utils_fuzzer.cpp | 307 int idx = 0; in TestJsonNodeOperation() local 308 node["key"][idx++] = intVal; in TestJsonNodeOperation() 309 node["key"][idx++] = boolVal; in TestJsonNodeOperation() 310 node["key"][idx++] = strVal; in TestJsonNodeOperation() 311 node["key"][--idx]; in TestJsonNodeOperation() 312 node["key"][--idx]; in TestJsonNodeOperation() 313 node["key"][--idx]; in TestJsonNodeOperation()
|
/base/sensors/sensor/utils/ipc/src/ |
H A D | stream_session.cpp | 65 size_t idx = 0; in SendMsg() 70 auto count = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL); in SendMsg() 84 idx += static_cast<size_t>(count); in SendMsg() 96 retryCount, SEND_RETRY_LIMIT, idx, size, fd_); in SendMsg()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_elf_parser.cpp | 322 for (uint32_t idx = 0; idx < count; ++idx) { in ParseElfSymbols() 323 uintptr_t offset = static_cast<uintptr_t>(shdr.offset + idx * shdr.entSize); in ParseElfSymbols() 369 for (uint32_t idx = 0; idx < count; ++idx) { in ParseElfSymbolByAddr() 370 uintptr_t offset = static_cast<uintptr_t>(shdr.offset + idx * shdr.entSize); in ParseElfSymbolByAddr() 431 bool ElfParser::GetSectionInfo(ShdrInfo& shdr, const uint32_t idx) in GetSectionInfo() argument 435 if (tmpPair.first == idx) { in GetSectionInfo() [all...] |
H A D | dfx_regs.cpp | 139 uintptr_t* DfxRegs::GetReg(size_t idx) in GetReg() argument 141 if (idx >= REG_LAST) { in GetReg() 144 return &(regsData_[idx]); in GetReg() 147 void DfxRegs::SetReg(const int idx, const uintptr_t* val) in SetReg() argument 149 if (idx >= REG_LAST) { in SetReg() 152 regsData_[idx] = *val; in SetReg()
|
/base/security/access_token/interfaces/innerkits/token_setproc/src/ |
H A D | perm_setproc.cpp | 63 uint32_t idx = opCode / UINT32_T_BITS; in AddPermissionToKernel() local 66 data.perm[idx] |= static_cast<uint32_t>(0x01) << bitIdx; in AddPermissionToKernel() 68 data.perm[idx] &= ~(static_cast<uint32_t>(0x01) << bitIdx); in AddPermissionToKernel()
|
/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 152 std::string::size_type idx; in CheckKeyWords() local 157 idx = t.at(i).find(keywords[j]); in CheckKeyWords() 158 if (idx != std::string::npos) { in CheckKeyWords() 202 std::string::size_type idx; in GetKeywordsNum() local 204 idx = msg.find(keywords[i]); in GetKeywordsNum() 205 if (idx != std::string::npos) { in GetKeywordsNum()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_regs.h | 48 inline uintptr_t& operator[](size_t idx) { return regsData_[idx]; } in operator []() argument 55 uintptr_t* GetReg(size_t idx); 56 void SetReg(const int idx, const uintptr_t* val);
|