Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 55) sorted by relevance

123

/base/security/device_auth/frameworks/src/lite/
Dipc_dev_auth_stub.c130 ipcData->idx = SetRemoteObject(&tmp); in WithObject()
131 if (ipcData->idx >= 0) { in WithObject()
132 ipcData->val = (uint8_t *)(&(ipcData->idx)); in WithObject()
133 LOGI("object trans success, set id %d", ipcData->idx); in WithObject()
272 int32_t idx = -1; in SetRemoteObject() local
278 idx = i; in SetRemoteObject()
282 LOGI("remote object cache index %d", idx); in SetRemoteObject()
283 if (idx == -1) { in SetRemoteObject()
287 g_cbStub[idx].cbStub = *object; in SetRemoteObject()
288 g_cbStub[idx].cbDieId = 0; in SetRemoteObject()
[all …]
/base/security/device_auth/frameworks/src/standard/
Dipc_dev_auth_stub.cpp145 ipcData.idx = ServiceDevAuth::SetRemoteObject(tmp); in WithObject()
146 if (ipcData.idx >= 0) { in WithObject()
147 ipcData.val = reinterpret_cast<uint8_t *>(&(ipcData.idx)); in WithObject()
148 LOGI("object trans success, set id %d", ipcData.idx); in WithObject()
263 int32_t idx = -1; in SetRemoteObject() local
269 idx = i; in SetRemoteObject()
273 LOGI("remote object cache index %d", idx); in SetRemoteObject()
274 if (idx == -1) { in SetRemoteObject()
277 g_cbStub[idx].cbStub = object; in SetRemoteObject()
278 g_cbStub[idx].inUse = true; in SetRemoteObject()
[all …]
/base/update/packaging_tools/
Dimage_class.py58 for idx, each_name in enumerate(self.full_img_list):
60 self.full_image_path_list[idx])
61 img_name = self.full_img_name_list[idx][:-4]
150 for idx, value in enumerate(care_value_list):
151 if idx != 0 and (idx + 1) % 2 == 0:
152 be_value = int(care_value_list[idx - 1])
153 af_value = int(care_value_list[idx])
223 idx = bisect.bisect_right(self.offset_index, each_value) - 1
225 self.offset_value_list[idx]
362 idx = bisect.bisect_right(self.offset_index, start) - 1
[all …]
Dupdate_package.py175 idx = 0
177 if idx < len(extend_component_list):
178 file_path = extend_path_list[idx]
181 all_image_file_obj_list[idx - len(extend_component_list)].name
188 component_list[idx].digest = (ctypes.c_ubyte * 32).from_buffer_copy(
190 component_list[idx].file_path = file_path.encode("utf-8")
192 component_list[idx].component_addr = \
195 component_list[idx].component_addr = \
197 component_list[idx].version = component[4].encode("utf-8")
198 component_list[idx].size = os.path.getsize(file_path)
[all …]
/base/update/updater/utils/include/
Dmacros.h76 #define GET_MEMBER_DECLARTION(idx, tuple) GET_TYPE tuple GET_NAME tuple; argument
77 #define GET_MEMBER_KEY(idx, tuple) GET_KEY tuple COMMA_IF(idx) argument
78 #define GET_MEMBER(idx, tuple) obj.GET_NAME tuple COMMA_IF(idx) argument
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/
Dstream_client.cpp59 int32_t idx = 0; in SendMsg() local
65 ssize_t count = send(fd_, &buf[idx], remSize, MSG_DONTWAIT | MSG_NOSIGNAL); in SendMsg()
74 idx += count; in SendMsg()
82 retryCount, SEND_RETRY_LIMIT, idx, bufSize, fd_); in SendMsg()
Dstream_session.cpp55 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/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_config.h49 for (uint32_t idx = 0; idx < interfaces.size(); ++idx) { in USBConfig() local
50 interfaces_.emplace_back(interfaces[idx]); in USBConfig()
149 void SetiConfiguration(uint8_t idx) in SetiConfiguration() argument
151 this->iConfiguration_ = idx; in SetiConfiguration()
Dusb_interface.h56 for (uint32_t idx = 0; idx < endpoints.size(); ++idx) { in UsbInterface() local
57 endpoints_.emplace_back(endpoints[idx]); in UsbInterface()
169 void SetiInterface(uint8_t idx) in SetiInterface() argument
171 this->iInterface_ = idx; in SetiInterface()
Dusb_device.h65 for (uint32_t idx = 0; idx < configs.size(); ++idx) { in UsbDevice() local
66 configs_.emplace_back(configs[idx]); in UsbDevice()
/base/update/updater/services/ui/driver/
Dinput_event.cpp106 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()
/base/global/i18n/frameworks/intl/src/
Dpreferred_language.cpp90 int idx = index; in AddPreferredLanguage() local
92 idx = 0; in AddPreferredLanguage()
95 idx = (int)preferredLanguageList.size(); in AddPreferredLanguage()
106 status = AddPreferredLanguageNonExist(preferredLanguageList, idx, language); in AddPreferredLanguage()
108 if (idx == (int)preferredLanguageList.size()) { in AddPreferredLanguage()
109 idx -= 1; in AddPreferredLanguage()
111 status = AddPreferredLanguageExist(preferredLanguageList, languageIdx, idx, language); in AddPreferredLanguage()
134 int idx = index; in RemovePreferredLanguage() local
136 idx = 0; in RemovePreferredLanguage()
139 idx = (int)preferredLanguageList.size() - 1; in RemovePreferredLanguage()
[all …]
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
Dstream_session.rs125 let mut idx: usize = 0; in session_send_msg() localVariable
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/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/
Dhuks_adapter.c466 uint32_t idx = 0; in ConstructImportSymmetricKeyParam() local
475 importParam[idx].tag = HKS_TAG_KEY_AUTH_ID; in ConstructImportSymmetricKeyParam()
476 importParam[idx++].blob = authIdBlob; in ConstructImportSymmetricKeyParam()
477 importParam[idx].tag = HKS_TAG_KEY_ROLE; in ConstructImportSymmetricKeyParam()
478 importParam[idx++].uint32Param = roleInfoUnion.roleInfo; in ConstructImportSymmetricKeyParam()
481 importParam[idx].tag = HKS_TAG_ALGORITHM; in ConstructImportSymmetricKeyParam()
482 importParam[idx++].uint32Param = HKS_ALG_AES; in ConstructImportSymmetricKeyParam()
483 importParam[idx].tag = HKS_TAG_KEY_SIZE; in ConstructImportSymmetricKeyParam()
484 importParam[idx++].uint32Param = keyLen * BITS_PER_BYTE; in ConstructImportSymmetricKeyParam()
485 importParam[idx].tag = HKS_TAG_PADDING; in ConstructImportSymmetricKeyParam()
[all …]
/base/sensors/sensor/utils/ipc/src/
Dstream_session.cpp65 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/web/webview/ohos_adapter/net_proxy_adapter/src/
Dnet_proxy_adapter_impl.cpp118 …ach(charArrayFour.begin(), charArrayFour.end(), [&ret](uint8_t idx) { ret += BASE64_CHARS[idx]; }); in Encode() argument
161 …arArrayThree.begin(), charArrayThree.end(), [&ret](uint8_t idx) { ret += static_cast<char>(idx); }… in Decode() argument
172 std::string::size_type idx = BASE64_CHARS.find(static_cast<char>(i)); in Decode() local
173 if (idx != std::string::npos) { in Decode()
174 i = static_cast<unsigned char>(idx); in Decode()
/base/startup/init/ueventd/
Dueventd.c146 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/hiviewdfx/faultloggerd/test/utils/
Ddfx_test_util.cpp152 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/update/updater/utils/json/
Djson_node.cpp142 const JsonNode &JsonNode::operator[](int idx) const in operator []()
149 if (idx < 0 || idx >= size_) { in operator []()
152 return *nodeVec[idx]; in operator []()
Dtraits_util.h61 template<std::size_t idx, typename...T>
64 return std::get<idx>(std::forward_as_tuple(t...));
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dhuks_adapter.c1189 uint32_t idx = 0; in ConstructImportSymmetricKeyParam() local
1198 importParam[idx].tag = HKS_TAG_KEY_AUTH_ID; in ConstructImportSymmetricKeyParam()
1199 importParam[idx++].blob = authIdBlob; in ConstructImportSymmetricKeyParam()
1200 importParam[idx].tag = HKS_TAG_KEY_ROLE; in ConstructImportSymmetricKeyParam()
1201 importParam[idx++].uint32Param = roleInfoUnion.roleInfo; in ConstructImportSymmetricKeyParam()
1204 importParam[idx].tag = HKS_TAG_ALGORITHM; in ConstructImportSymmetricKeyParam()
1205 importParam[idx++].uint32Param = HKS_ALG_AES; in ConstructImportSymmetricKeyParam()
1206 importParam[idx].tag = HKS_TAG_KEY_SIZE; in ConstructImportSymmetricKeyParam()
1207 importParam[idx++].uint32Param = keyLen * BITS_PER_BYTE; in ConstructImportSymmetricKeyParam()
1208 importParam[idx].tag = HKS_TAG_PADDING; in ConstructImportSymmetricKeyParam()
[all …]
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
Dhuks_adapter.c1311 uint32_t idx = 0; in ConstructImportSymmetricKeyParam() local
1320 importParam[idx].tag = HKS_TAG_KEY_AUTH_ID; in ConstructImportSymmetricKeyParam()
1321 importParam[idx++].blob = authIdBlob; in ConstructImportSymmetricKeyParam()
1322 importParam[idx].tag = HKS_TAG_KEY_ROLE; in ConstructImportSymmetricKeyParam()
1323 importParam[idx++].uint32Param = roleInfoUnion.roleInfo; in ConstructImportSymmetricKeyParam()
1326 importParam[idx].tag = HKS_TAG_ALGORITHM; in ConstructImportSymmetricKeyParam()
1327 importParam[idx++].uint32Param = HKS_ALG_AES; in ConstructImportSymmetricKeyParam()
1328 importParam[idx].tag = HKS_TAG_KEY_SIZE; in ConstructImportSymmetricKeyParam()
1329 importParam[idx++].uint32Param = keyLen * BITS_PER_BYTE; in ConstructImportSymmetricKeyParam()
1330 importParam[idx].tag = HKS_TAG_PADDING; in ConstructImportSymmetricKeyParam()
[all …]
/base/update/updater/services/updater_binary/
Dupdate_partitions.h33 bool SetPartitionInfo(const cJSON* partitions, int idx, struct Partition* myPartition) const;
Dupdate_partitions.cpp32 bool UpdatePartitions::SetPartitionInfo(const cJSON *partitions, int idx, struct Partition *myParti… in SetPartitionInfo() argument
34 cJSON *thisPartition = cJSON_GetArrayItem(partitions, idx); in SetPartitionInfo()
36 LOG(ERROR) << "Error get thisPartion: " << idx; in SetPartitionInfo()
/base/security/device_auth/frameworks/inc/lite/
Dipc_dev_auth_stub.h42 void ResetRemoteObject(int32_t idx);

123