/packages/modules/Bluetooth/system/btif/src/ |
D | btif_hf.cc | 239 static void send_at_result(uint8_t ok_flag, uint16_t errcode, int idx) { in send_at_result() argument 245 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in send_at_result() 294 int idx = btif_hf_idx_by_bdaddr(bd_addr); in IsSlcConnected() local 295 if (idx < 0 || idx > BTA_AG_MAX_NUM_CLIENTS) { in IsSlcConnected() 296 LOG(WARNING) << __func__ << ": invalid index " << idx << " for " in IsSlcConnected() 300 return btif_hf_cb[idx].state == BTHF_CONNECTION_STATE_SLC_CONNECTED; in IsSlcConnected() 322 int idx = p_data->hdr.handle - 1; in btif_hf_upstreams_evt() local 326 if ((idx < 0) || (idx >= BTA_AG_MAX_NUM_CLIENTS)) { in btif_hf_upstreams_evt() 327 LOG_ERROR("%s Invalid client index:%d", dump_hf_event(event), idx); in btif_hf_upstreams_evt() 337 btif_hf_cb[idx].handle = p_data->reg.hdr.handle; in btif_hf_upstreams_evt() [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | indexed_priority_queue.h | 78 void sift_up(size_t idx); 79 void sift_down(size_t idx); 97 size_t idx = size(); // index of last element since 1-indexed in push() local 98 indices.insert({a, idx}); in push() 99 sift_up(idx); // get the pq back in order in push() 106 size_t idx = indices[a]; in remove() local 107 if (idx >= pq.size()) { in remove() 110 if (idx == size()) { // if a is the last element, i.e. at index idx == size() == (pq.size()-1) in remove() 117 pq[idx] = last_a; in remove() 119 indices[last_a] = idx; in remove() [all …]
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/ |
D | LocalDrive.java | 126 int idx = args.length - remainingArgsLength; in main() local 128 switch (args[idx]) { in main() 130 cmdClear(args, idx, deviceSerial); in main() 133 cmdGetData(args, idx, deviceSerial); in main() 136 cmdRemove(args, idx); in main() 139 cmdUpdate(args, idx, deviceSerial); in main() 142 cmdUpload(args, idx, deviceSerial); in main() 154 private static boolean cmdUpload(String[] args, int idx, String deviceSerial) { in cmdUpload() argument 155 return updateConfig(args, idx, true, deviceSerial); in cmdUpload() 159 private static boolean cmdUpdate(String[] args, int idx, String deviceSerial) { in cmdUpdate() argument [all …]
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | StridedSlice.cpp | 60 for (int32_t idx = numInputDims - 1; idx >= 0; --idx) { in compute() local 61 starts.emplace_back(beginData[idx]); in compute() 62 stops.emplace_back(endData[idx]); in compute() 63 strides.emplace_back(stridesData[idx]); in compute() 129 for (int32_t idx = 0; idx < static_cast<int32_t>(numInputDims); idx++) { in prepare() local 130 int32_t dim = static_cast<int32_t>(getSizeOfDimension(inputShape, idx)); in prepare() 131 int32_t stride = stridesData[idx]; in prepare() 136 int32_t begin = beginMask & (1 << idx) ? positiveStride ? 0 : dim - 1 in prepare() 137 : ClampedIndex(beginData[idx], dim, positiveStride); in prepare() 138 int32_t end = endMask & (1 << idx) ? positiveStride ? dim : -1 in prepare() [all …]
|
D | Squeeze.cpp | 55 for (int32_t idx = 0; idx < numInputDims; ++idx) { in prepare() local 56 if (getSizeOfDimension(inputShape, idx) == 1) { in prepare() 57 shouldSqueeze[idx] = true; in prepare() 63 for (int32_t idx = 0; idx < squeezeDimsSize; ++idx) { in prepare() local 65 squeezeDims[idx] < 0 ? squeezeDims[idx] + numInputDims : squeezeDims[idx]; in prepare()
|
D | Transpose.cpp | 103 for (int32_t idx = 0; idx < static_cast<int32_t>(numInputDims); ++idx) { in prepare() local 104 NN_RET_CHECK(permData[idx] >= 0 && permData[idx] < static_cast<int32_t>(numInputDims)); in prepare() 105 outDims[idx] = getSizeOfDimension(input, permData[idx]); in prepare()
|
D | HashtableLookup.cpp | 53 int idx = -1; in Eval() local 57 idx = (reinterpret_cast<uint8_t*>(pointer) - key_->buffer) / sizeof(float); in Eval() 60 if (idx >= num_rows || idx < 0) { in Eval() 64 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes, row_bytes); in Eval()
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_at.cc | 85 uint16_t idx; in bta_ag_process_at() local 90 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 91 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 97 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 99 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at() 133 if ((arg_type & p_cb->p_at_tbl[idx].arg_type) != 0) { in bta_ag_process_at() 136 p_cb->p_at_tbl[idx].fmt == BTA_AG_AT_INT) { in bta_ag_process_at() 138 if (int_arg < (int16_t)p_cb->p_at_tbl[idx].min || in bta_ag_process_at() 139 int_arg > (int16_t)p_cb->p_at_tbl[idx].max) { in bta_ag_process_at() 145 p_cb->p_at_tbl[idx].command_id, arg_type, p_arg, in bta_ag_process_at() [all …]
|
/packages/modules/Bluetooth/system/stack/avct/ |
D | avct_bcb_act.cc | 163 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_ind() local 225 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_fail() local 247 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 593 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_dealloc() local 597 AVCT_TRACE_DEBUG("%s used by ccb: %d", __func__, idx); in avct_bcb_dealloc() 662 uint8_t idx = 0; in avct_bcb_get_last_ccb_index() local 667 idx = (uint8_t)(i + 1); in avct_bcb_get_last_ccb_index() 670 return idx; in avct_bcb_get_last_ccb_index() [all …]
|
D | avct_ccb.cc | 121 tAVCT_CCB* avct_ccb_by_idx(uint8_t idx) { in avct_ccb_by_idx() argument 125 if (idx < AVCT_NUM_CONN) { in avct_ccb_by_idx() 126 p_ccb = &avct_cb.ccb[idx]; in avct_ccb_by_idx() 131 AVCT_TRACE_WARNING("ccb %d not allocated", idx); in avct_ccb_by_idx() 135 AVCT_TRACE_WARNING("No ccb for idx %d", idx); in avct_ccb_by_idx()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | ConfigManager.cpp | 601 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 611 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 626 for (auto idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 720 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 730 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 741 for (auto idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 865 for (int idx = 0; idx < kStreamCfgSz; ++idx) { in writeConfigDataToBinary() local 866 outFile.write(reinterpret_cast<const char *>(&cfg[idx]), in writeConfigDataToBinary() 890 for (auto idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local 891 if (get_camera_metadata_entry(camInfo->characteristics, idx, &entry)) { in writeConfigDataToBinary() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | StockSource.java | 87 int idx = Integer.valueOf(data.id); in getStream() local 88 is = mResources.openRawResource(PHOTOS[idx]); in getStream() 99 int idx = Integer.valueOf(current.id); in naturalNext() local 100 idx = (idx + 1) % PHOTOS.length; in naturalNext() 101 return mImageCache.get(idx); in naturalNext() 106 int idx = Integer.valueOf(current.id); in naturalPrevious() local 107 idx = (PHOTOS.length + idx - 1) % PHOTOS.length; in naturalPrevious() 108 return mImageCache.get(idx); in naturalPrevious()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/job/ |
D | JobSchedulerHelper.java | 49 for (int idx = 0; idx < startedJobs.size(); idx++) { in getNumberOfRunningJobsAtIdle() 50 JobInfo jobInfo = startedJobs.get(idx); in getNumberOfRunningJobsAtIdle() 67 for (int idx = 0; idx < jobCount; idx++) { in getNumberOfPendingJobs() 68 JobSnapshot scheduledJob = allScheduledJobs.get(idx); in getNumberOfPendingJobs()
|
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/procedure/ |
D | mod.rs | 101 $idx:tt { $procedure:expr } 104 let $idx = async { loop { $procedure.await; } }; 105 crate::future::pin!($idx); 113 struct Join<'a, $($idx),+> { 114 $($idx: Pin<&'a mut $idx>),+ 118 impl<'a, $($idx: Future<Output = ()>),+> Future for Join<'a, $($idx),+> { 122 $(assert!(self.$idx.as_mut().poll(cx).is_pending());)+ 128 $($idx),+
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | MosaicFrameProcessor.java | 210 int idx = mOldestIdx; in calculateTranslationRate() local 211 mTotalTranslationX -= mDeltaX[idx]; in calculateTranslationRate() 212 mTotalTranslationY -= mDeltaY[idx]; in calculateTranslationRate() 213 mTotalDeltaTime -= mDeltaTime[idx]; in calculateTranslationRate() 214 mDeltaX[idx] = Math.abs(translationCurrX - mTranslationLastX); in calculateTranslationRate() 215 mDeltaY[idx] = Math.abs(translationCurrY - mTranslationLastY); in calculateTranslationRate() 216 mDeltaTime[idx] = (now - mLastProcessedFrameTimestamp) / 1000.0f; in calculateTranslationRate() 217 mTotalTranslationX += mDeltaX[idx]; in calculateTranslationRate() 218 mTotalTranslationY += mDeltaY[idx]; in calculateTranslationRate() 219 mTotalDeltaTime += mDeltaTime[idx]; in calculateTranslationRate()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Fingerprint.java | 114 for (int idx = STREAM_ID_CS_PREFIX.length(); idx < STREAM_ID_CS_01_LENGTH; in fromStreamId() 115 idx += 2) { in fromStreamId() 116 int value = (toDigit(streamId, idx) << 4) | toDigit(streamId, idx + 1); in fromStreamId() 181 for (int idx = 0; idx < FINGERPRINT_BYTE_LENGTH; idx++) { in appendHexFingerprint() 182 int value = bytes[idx]; in appendHexFingerprint()
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 348 int idx = 0; in get_PrinterStateReason() local 379 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason() 382 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason() 383 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason() 397 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason() 411 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason() 414 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason() 417 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_WARN, in get_PrinterStateReason() 422 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_NEEDED, in get_PrinterStateReason() 425 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_EMPTY, in get_PrinterStateReason() [all …]
|
D | ippstatus_monitor.c | 378 int idx; in _cancel() local 379 for (idx = 0; idx < ippGetCount(attr); idx++) { in _cancel() 380 LOGD("before job-state-reason (%d): %s", idx, in _cancel() 381 ippGetString(attr, idx, NULL)); in _cancel() 420 int idx; in _cancel() local 421 for (idx = 0; ippGetCount(attr); idx++) { in _cancel() 422 LOGD("job-state-reason (%d): %s", idx, ippGetString(attr, idx, NULL)); in _cancel()
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | ConfigManager.cpp | 551 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 563 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 577 for (size_t idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 658 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 670 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 680 for (size_t idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 797 for (size_t idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local 798 if (get_camera_metadata_entry(camInfo->characteristics, idx, &entry)) { in writeConfigDataToBinary() 799 LOG(ERROR) << "Failed to retrieve camera metadata entry " << idx; in writeConfigDataToBinary() 879 for (size_t idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/ |
D | framing.c | 158 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()
|
/packages/services/Car/tools/emulator/ |
D | diagnostic_builder.py | 67 def addIntSensor(self, idx, value): argument 68 self.int32_values[idx] = value 69 self.bitmask.setBit(idx) 72 def addFloatSensor(self, idx, value): argument 73 self.float_values[idx] = value 74 self.bitmask.setBit(len(self.int32_values)+idx)
|
D | vhal_emulator_test.py | 66 def _generateTestValue(self, cfg, idx, origValue): argument 77 testValue = self._getMidpoint(cfg.area_configs[idx].min_int32_value, 78 cfg.area_configs[idx].max_int32_value) 84 testValue = self._getMidpoint(cfg.area_configs[idx].min_int64_value, 85 cfg.area_configs[idx].max_int64_value) 91 testValue = self._getMidpoint(cfg.area_configs[idx].min_float_value, 92 cfg.area_configs[idx].max_float_value) 221 idx = -1 222 while (idx == -1) | (areas != 0): 223 idx += 1 [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioCodecConfig.java | 50 for (int idx = 0; idx < mCodecConfigOffloading.length; idx++) { in LeAudioCodecConfig() 52 idx, mCodecConfigOffloading[idx].toString())); in LeAudioCodecConfig()
|
/packages/modules/Bluetooth/system/embdrv/tests/src/ |
D | aptx.cc | 70 size_t idx = 0; in TEST_F() local 74 while (idx * BYTES_PER_CODEWORD < sizeof(input) - 1) { in TEST_F() 75 memcpy(pcm, input + idx * BYTES_PER_CODEWORD, BYTES_PER_CODEWORD); in TEST_F() 76 codeword_cmp(pcm, aptx_codeword[idx]); in TEST_F() 77 ++idx; in TEST_F()
|
D | aptxhd.cc | 74 size_t idx = 0; in TEST_F() local 77 while (idx * BYTES_PER_CODEWORD < sizeof(input) - 1) { in TEST_F() 78 memcpy(pcm, input + idx * BYTES_PER_CODEWORD, BYTES_PER_CODEWORD); in TEST_F() 79 codeword_cmp(pcm, aptxhd_codeword + idx * 2); in TEST_F() 80 ++idx; in TEST_F()
|