Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 95) 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/tools/hidl/
DDocComment.cpp39 size_t idx = 0; in DocComment() local
40 for (; idx < line.size() && isspace(line[idx]); idx++) in DocComment()
42 if (idx < line.size() && line[idx] == '*') idx++; in DocComment()
43 if (idx < line.size() && line[idx] == ' ') idx++; in DocComment()
45 bool isEmptyLine = idx == line.size(); in DocComment()
50 is << line.substr(idx) << "\n"; in DocComment()
/system/core/libcutils/
Dfs_config_test.cpp81 for (size_t idx = 0; idx < paths.size(); ++idx) { in check_unique() local
83 std::string path(paths[idx]); in check_unique()
85 for (second = idx + 1; second < paths.size(); ++second) { in check_unique()
87 GTEST_LOG_(ERROR) << "duplicate paths in " << config_name << ": " << paths[idx]; in check_unique()
100 << paths[idx] << " and " << paths[second] in check_unique()
117 GTEST_LOG_(ERROR) << "replace path in " << config_name << ": " << paths[idx] in check_unique()
134 for (size_t idx = 0; paths[idx].prefix; ++idx) { in check_unique() local
135 if (idx > max_idx) { in check_unique()
140 paths_tmp.push_back(paths[idx].prefix); in check_unique()
148 for (size_t idx = 0; tests[idx].prefix; ++idx) { in check_fs_config_cmp() local
[all …]
/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/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/tools/hidl/docs/src/parser/files/
DAbstractFileParser.kt97 val idx = indexInsertionPointforDocTokens(tokensCopy) in insertDocsForRequiredTypes() constant
98 if (idx != -1) { in insertDocsForRequiredTypes()
100 repeat(idx) { in insertDocsForRequiredTypes()
119 var idx = 0 in indexInsertionPointforDocTokens() variable
125 idx++ in indexInsertionPointforDocTokens()
128 return if (token.identifier == TokenGrammar.DOC_END) -1 else idx+1 in indexInsertionPointforDocTokens()
/system/core/lmkd/include/
Dlmkd.h79 int idx = 0; in lmkd_pack_set_target() local
80 packet[idx++] = htonl(LMK_TARGET); in lmkd_pack_set_target()
82 packet[idx++] = htonl(targets->minfree); in lmkd_pack_set_target()
83 packet[idx++] = htonl(targets->oom_adj_score); in lmkd_pack_set_target()
87 return idx * sizeof(int); in lmkd_pack_set_target()
/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/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/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/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/tools/hidl/docs/src/parser/elements/declarations/
DEnumDeclarationParser.kt72 … val idx = statementTokens.indexOfFirst { it.identifier == TokenGrammar.DOC_END } in parseTokens() constant
73 … if (idx == -1) throw ParseException("Unable to find doc_end", this.indexStart) in parseTokens()
75 val docTokens = statementTokens.subList(0, idx+1) in parseTokens()
77 statementTokens = statementTokens.subList(idx+1, statementTokens.size) in parseTokens()
DCompoundDeclarationParser.kt67 … val idx = statementTokens.indexOfFirst { it.identifier == TokenGrammar.DOC_END } in parseTokens() constant
68 … if (idx == -1) throw ParseException("Unable to find doc_end", this.indexStart) in parseTokens()
69 val docTokens = statementTokens.subList(0, idx+1) in parseTokens()
71 statementTokens = statementTokens.subList(idx+1, statementTokens.size) in parseTokens()
/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/media/audio_utils/
DPowerLog.cpp128 … const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; // reverse direction in dumpToString() local
129 const int64_t time = mEntries[idx].first; in dumpToString()
130 const float energy = mEntries[idx].second; in dumpToString()
180 const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; in dumpToString() local
181 const int64_t time = mEntries[idx].first; in dumpToString()
182 const float energy = mEntries[idx].second; in dumpToString()
/system/security/keystore-engine/
Dmethods.h55 int keyhandle_new(void*, void*, CRYPTO_EX_DATA* ad, int idx, long, void*);
57 int keyhandle_dup(CRYPTO_EX_DATA* to, CRYPTO_EX_DATA*, void *ptrRef, int idx, long, void *);
/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} "
/system/core/libutils/
DProcessCallStack.cpp166 ssize_t idx = mThreadMap.add(tid, ThreadInfo()); in update() local
167 if (idx < 0) { // returns negative error value on error in update()
169 __FUNCTION__, strerror(-idx)); in update()
173 ThreadInfo& threadInfo = mThreadMap.editValueAt(static_cast<size_t>(idx)); in update()

1234