Home
last modified time | relevance | path

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

1234

/system/bt/btif/src/
Dbtif_hf.cc216 static void send_at_result(uint8_t ok_flag, uint16_t errcode, int idx) { in send_at_result() argument
222 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in send_at_result()
271 int idx = btif_hf_idx_by_bdaddr(bd_addr); in IsSlcConnected() local
272 if (idx < 0 || idx > BTA_AG_MAX_NUM_CLIENTS) { in IsSlcConnected()
273 LOG(WARNING) << __func__ << ": invalid index " << idx << " for " in IsSlcConnected()
277 return btif_hf_cb[idx].state == BTHF_CONNECTION_STATE_SLC_CONNECTED; in IsSlcConnected()
299 int idx = p_data->hdr.handle - 1; in btif_hf_upstreams_evt() local
303 if ((idx < 0) || (idx >= BTA_AG_MAX_NUM_CLIENTS)) { in btif_hf_upstreams_evt()
304 BTIF_TRACE_ERROR("%s: Invalid index %d", __func__, idx); in btif_hf_upstreams_evt()
314 btif_hf_cb[idx].handle = p_data->reg.hdr.handle; in btif_hf_upstreams_evt()
[all …]
/system/core/libcutils/
Dfs_config_test.cpp83 for (size_t idx = 0; idx < paths.size(); ++idx) { in check_unique() local
85 std::string path(paths[idx]); in check_unique()
87 for (second = idx + 1; second < paths.size(); ++second) { in check_unique()
89 GTEST_LOG_(ERROR) << "duplicate paths in " << config_name << ": " << paths[idx]; in check_unique()
102 << paths[idx] << " and " << paths[second] in check_unique()
119 GTEST_LOG_(ERROR) << "replace path in " << config_name << ": " << paths[idx] in check_unique()
136 for (size_t idx = 0; paths[idx].prefix; ++idx) { in check_unique() local
137 if (idx > max_idx) { in check_unique()
142 paths_tmp.push_back(paths[idx].prefix); in check_unique()
150 for (size_t idx = 0; tests[idx].prefix; ++idx) { in check_fs_config_cmp() local
[all …]
/system/tools/hidl/
DDocComment.cpp40 size_t idx = 0; in DocComment() local
41 for (; idx < line.size() && isspace(line[idx]); idx++) in DocComment()
43 if (idx < line.size() && line[idx] == '*') idx++; in DocComment()
44 if (idx < line.size() && line[idx] == ' ') idx++; in DocComment()
46 const std::string& sanitizedLine = line.substr(idx); in DocComment()
/system/bt/bta/ag/
Dbta_ag_at.cc81 uint16_t idx; in bta_ag_process_at() local
86 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at()
87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at()
93 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at()
95 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
130 if ((arg_type & p_cb->p_at_tbl[idx].arg_type) != 0) { in bta_ag_process_at()
133 p_cb->p_at_tbl[idx].fmt == BTA_AG_AT_INT) { in bta_ag_process_at()
135 if (int_arg < (int16_t)p_cb->p_at_tbl[idx].min || in bta_ag_process_at()
136 int_arg > (int16_t)p_cb->p_at_tbl[idx].max) { in bta_ag_process_at()
141 p_cb->p_at_tbl[idx].command_id, arg_type, p_arg, in bta_ag_process_at()
[all …]
Dbta_ag_main.cc369 uint8_t idx; in bta_ag_scb_dealloc() local
385 for (idx = 0; idx < BTA_AG_MAX_NUM_CLIENTS; idx++) { in bta_ag_scb_dealloc()
386 if (bta_ag_cb.scb[idx].in_use) { in bta_ag_scb_dealloc()
423 tBTA_AG_SCB* bta_ag_scb_by_idx(uint16_t idx) { in bta_ag_scb_by_idx() argument
427 if (idx > 0 && idx <= BTA_AG_MAX_NUM_CLIENTS) { in bta_ag_scb_by_idx()
428 p_scb = &bta_ag_cb.scb[idx - 1]; in bta_ag_scb_by_idx()
431 APPL_TRACE_WARNING("ag scb idx %d not allocated", idx); in bta_ag_scb_by_idx()
435 APPL_TRACE_DEBUG("ag scb idx %d out of range", idx); in bta_ag_scb_by_idx()
/system/bt/stack/avct/
Davct_bcb_act.cc164 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_ind() local
226 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_fail() local
248 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_close_ind() local
283 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_close_cfm() local
393 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_cong_ind() local
594 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_dealloc() local
598 AVCT_TRACE_DEBUG("%s used by ccb: %d", __func__, idx); in avct_bcb_dealloc()
663 uint8_t idx = 0; in avct_bcb_get_last_ccb_index() local
668 idx = (uint8_t)(i + 1); in avct_bcb_get_last_ccb_index()
671 return idx; in avct_bcb_get_last_ccb_index()
[all …]
Davct_ccb.cc120 tAVCT_CCB* avct_ccb_by_idx(uint8_t idx) { in avct_ccb_by_idx() argument
124 if (idx < AVCT_NUM_CONN) { in avct_ccb_by_idx()
125 p_ccb = &avct_cb.ccb[idx]; in avct_ccb_by_idx()
130 AVCT_TRACE_WARNING("ccb %d not allocated", idx); in avct_ccb_by_idx()
134 AVCT_TRACE_WARNING("No ccb for idx %d", idx); in avct_ccb_by_idx()
/system/nfc/src/nfc/llcp/
Dllcp_util.cc183 uint8_t idx, rx_congest_start; in llcp_util_adjust_dl_rx_congestion() local
188 for (idx = 0; idx < LLCP_MAX_DATA_LINK; idx++) { in llcp_util_adjust_dl_rx_congestion()
189 if (llcp_cb.dlcb[idx].state == LLCP_DLC_STATE_CONNECTED) { in llcp_util_adjust_dl_rx_congestion()
190 if (rx_congest_start > llcp_cb.dlcb[idx].local_rw) { in llcp_util_adjust_dl_rx_congestion()
195 if (llcp_cb.dlcb[idx].local_rw + 1 > LLCP_DL_MIN_RX_CONGEST) in llcp_util_adjust_dl_rx_congestion()
196 llcp_cb.dlcb[idx].rx_congest_threshold = in llcp_util_adjust_dl_rx_congestion()
197 llcp_cb.dlcb[idx].local_rw + 1; in llcp_util_adjust_dl_rx_congestion()
199 llcp_cb.dlcb[idx].rx_congest_threshold = LLCP_DL_MIN_RX_CONGEST; in llcp_util_adjust_dl_rx_congestion()
201 llcp_cb.dlcb[idx].rx_congest_threshold = LLCP_DL_MIN_RX_CONGEST; in llcp_util_adjust_dl_rx_congestion()
205 "DLC[%d], local_rw=%d, rx_congest_threshold=%d", idx, in llcp_util_adjust_dl_rx_congestion()
[all …]
Dllcp_link.cc393 uint8_t local_sap, idx; in llcp_link_deactivate() local
422 for (idx = 0; idx < LLCP_MAX_DATA_LINK; idx++) { in llcp_link_deactivate()
423 if (llcp_cb.dlcb[idx].state != LLCP_DLC_STATE_IDLE) { in llcp_link_deactivate()
424 p_dlcb = &(llcp_cb.dlcb[idx]); in llcp_link_deactivate()
608 uint8_t sap, idx; in llcp_link_check_congestion() local
653 for (idx = 0; idx < LLCP_MAX_DATA_LINK; idx++) { in llcp_link_check_congestion()
654 if ((llcp_cb.dlcb[idx].state == LLCP_DLC_STATE_CONNECTED) && in llcp_link_check_congestion()
655 (llcp_cb.dlcb[idx].remote_busy == false) && in llcp_link_check_congestion()
656 (llcp_cb.dlcb[idx].is_tx_congested == false)) { in llcp_link_check_congestion()
657 llcp_cb.dlcb[idx].is_tx_congested = true; in llcp_link_check_congestion()
[all …]
/system/media/audio_utils/fuzz/sndfile_fuzzer/
Dsndfile_fuzzer.cpp84 int idx = 0; in LLVMFuzzerTestOneInput() local
85 idx += in LLVMFuzzerTestOneInput()
86 parseValue(bytes, idx, &desired_frame_count, sizeof(desired_frame_count)); in LLVMFuzzerTestOneInput()
87 idx += parseValue(bytes, idx, &input_format, sizeof(input_format)); in LLVMFuzzerTestOneInput()
100 file.write((char *)(bytes + idx), size - idx); in LLVMFuzzerTestOneInput()
/system/bt/embdrv/sbc/decoder/srce/
Dframing.c158 OI_UINT idx; in crc_iterate() local
159 idx = oldcrc ^ next; in crc_iterate()
160 crc = crc8_wide[idx >> 1]; in crc_iterate()
161 if (idx % 2) { in crc_iterate()
172 OI_UINT idx; in crc_iterate_top4() local
173 idx = (oldcrc ^ next) >> 4; in crc_iterate_top4()
174 crc = crc8_wide[idx >> 1]; in crc_iterate_top4()
175 if (idx % 2) { in crc_iterate_top4()
/system/libziparchive/
Dzip_error.cpp45 const uint32_t idx = -error_code; in ErrorCodeString() local
46 if (idx < arraysize(kErrorMessages)) { in ErrorCodeString()
47 return kErrorMessages[idx]; in ErrorCodeString()
/system/core/fastboot/device/
Dflashing.cpp132 for (int idx = 0; idx < AVB_FOOTER_MAGIC_LEN; idx++) { in CopyAVBFooter() local
133 footer.push_back(data->at(footer_offset + idx)); in CopyAVBFooter()
142 for (int idx = 0; idx < AVB_FOOTER_SIZE; idx++) { in CopyAVBFooter() local
143 data->at(block_device_size - 1 - idx) = data->at(original_data_size - 1 - idx); in CopyAVBFooter()
/system/tools/xsdc/src/com/android/xsdc/java/
DUtils.java38 for (int idx = 1; idx < words.length; ++idx) { in toCamelCase()
39 res += capitalize(words[idx]); in toCamelCase()
/system/teeui/libteeui/include/teeui/
Dmsg_formatting.h35 template <size_t... idx, typename... T>
36 std::tuple<std::remove_reference_t<T>&&...> tuple_move_helper(std::index_sequence<idx...>, in tuple_move_helper() argument
38 return {std::move(std::get<idx>(t))...}; in tuple_move_helper()
167 template <size_t first_idx, size_t... idx, typename HEAD, typename... T>
168 std::tuple<T&&...> tuple_tail(std::index_sequence<first_idx, idx...>, std::tuple<HEAD, T...>&& t) {
169 return {std::move(std::get<idx>(t))...};
172 template <size_t first_idx, size_t... idx, typename HEAD, typename... T>
173 std::tuple<const T&...> tuple_tail(std::index_sequence<first_idx, idx...>,
175 return {std::get<idx>(t)...};
/system/tools/xsdc/src/com/android/xsdc/cpp/
DUtils.java41 for (int idx = 1; idx < words.length; ++idx) { in toCamelCase()
42 res += capitalize(words[idx]); in toCamelCase()
/system/update_engine/payload_consumer/
Dcached_file_descriptor_unittest.cc99 for (size_t idx = 0; idx < blob_in.size(); idx++) { in TEST_F() local
100 Write(&blob_in[idx], 1); in TEST_F()
115 for (size_t idx = 0; idx < kRandomIterations; idx++) { in TEST_F() local
119 std::fill_n(&blob_in[start], size, idx % 256); in TEST_F()
/system/core/init/
Dkeychords.cpp53 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in SetBit() local
54 if (idx >= bits_.size()) return; in SetBit()
56 bits_[idx] |= mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t))); in SetBit()
58 bits_[idx] &= ~(mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in SetBit()
63 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in GetBit() local
64 return bits_[idx] & (mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in GetBit()
80 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in resize() local
81 if (idx >= bits_.size()) { in resize()
82 bits_.resize(idx + 1, 0); in resize()
/system/security/keystore-engine/
Dmethods.h33 int keyhandle_new(void*, void*, CRYPTO_EX_DATA* ad, int idx, long, void*);
35 int keyhandle_dup(CRYPTO_EX_DATA* to, CRYPTO_EX_DATA*, void *ptrRef, int idx, long, void *);
/system/sepolicy/tools/sepolicy-analyze/
Dutils.c12 void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms) in display_allow() argument
16 ? key->source_type - 1 : idx], in display_allow()
19 ? key->target_type - 1 : idx], in display_allow()
/system/libufdt/
Dufdt_prop_dict.c47 int idx = hash & (size - 1); in _ufdt_prop_dict_find_index_by_name() local
50 const struct fdt_property **prop_ptr = &dict->props[idx]; in _ufdt_prop_dict_find_index_by_name()
57 idx = (idx + 1) & (size - 1); in _ufdt_prop_dict_find_index_by_name()
/system/memory/lmkd/include/
Dlmkd.h82 int idx = 0; in lmkd_pack_set_target() local
83 packet[idx++] = htonl(LMK_TARGET); in lmkd_pack_set_target()
85 packet[idx++] = htonl(targets->minfree); in lmkd_pack_set_target()
86 packet[idx++] = htonl(targets->oom_adj_score); in lmkd_pack_set_target()
90 return idx * sizeof(int); in lmkd_pack_set_target()
/system/media/audio_utils/
DPowerLog.cpp128 const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; in dumpToString() local
130 const int64_t time = mEntries[idx].first; in dumpToString()
131 const float energy = mEntries[idx].second; in dumpToString()
181 const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; in dumpToString() local
182 const int64_t time = mEntries[idx].first; in dumpToString()
183 const float energy = mEntries[idx].second; in dumpToString()
/system/libufdt/utils/src/
Dmkdtboimg.py492 def extract_dt_file(self, idx, fout, decompress): argument
506 if idx > self.dt_entry_count:
507 raise ValueError('Invalid index %d of DtEntry' % idx)
509 size = self.dt_entries[idx].size
510 offset = self.dt_entries[idx].dt_offset
513 compression_format = self.dt_entries[idx].compression_info(self.version)
604 idx = 0
608 img_file_idx.append(idx)
609 idx = idx + 1
615 for idx in xrange(total_images):
[all …]
/system/libufdt/tests/
DverifyDTBO.sh33 for idx in ${overlay_idx//,/ }
35 arg="${arg}dumped_dtbo.${idx} "

1234