/packages/modules/Bluetooth/system/btif/src/ |
D | btif_hf.cc | 236 static void send_at_result(uint8_t ok_flag, uint16_t errcode, int idx) { in send_at_result() argument 242 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in send_at_result() 291 int idx = btif_hf_idx_by_bdaddr(bd_addr); in IsSlcConnected() local 292 if (idx < 0 || idx > BTA_AG_MAX_NUM_CLIENTS) { in IsSlcConnected() 293 log::warn("invalid index {} for {}", idx, *bd_addr); in IsSlcConnected() 296 return btif_hf_cb[idx].state == BTHF_CONNECTION_STATE_SLC_CONNECTED; in IsSlcConnected() 318 int idx = p_data->hdr.handle - 1; in btif_hf_upstreams_evt() local 322 if ((idx < 0) || (idx >= BTA_AG_MAX_NUM_CLIENTS)) { in btif_hf_upstreams_evt() 323 log::error("{} Invalid client index:{}", dump_hf_event(event), idx); in btif_hf_upstreams_evt() 333 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 | 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 | 91 uint16_t idx; in bta_ag_process_at() local 96 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 97 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 103 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 105 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at() 139 if ((arg_type & p_cb->p_at_tbl[idx].arg_type) != 0) { in bta_ag_process_at() 142 p_cb->p_at_tbl[idx].fmt == BTA_AG_AT_INT) { in bta_ag_process_at() 144 if (p_cb->p_at_tbl[idx].command_id == BTA_AG_LOCAL_EVT_BRSF) { in bta_ag_process_at() 163 if (int_arg < (int16_t)p_cb->p_at_tbl[idx].min || in bta_ag_process_at() 164 int_arg > (int16_t)p_cb->p_at_tbl[idx].max) { in bta_ag_process_at() [all …]
|
/packages/services/Car/tools/watchdog/parser/ |
D | carwatchdog_dump_parser.py | 599 lines: List[str], idx: int 605 while not _is_stats_section_end(line := lines[idx].rstrip()): 634 idx += 1 636 return package_cpu_stats, idx 640 lines: List[str], idx: int 645 while not _is_stats_section_end(line := lines[idx].rstrip()): 662 idx += 1 664 return package_storage_io_stats, idx 668 lines: List[str], idx: int, match: re.Match[str] 678 re.fullmatch(STATS_COLLECTION_PATTERN, (line := lines[idx].strip())) [all …]
|
/packages/modules/Bluetooth/system/stack/avct/ |
D | avct_bcb_act.cc | 164 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 284 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_close_cfm() local 394 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_cong_ind() local 607 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_dealloc() local 611 log::verbose("used by ccb: {}", idx); in avct_bcb_dealloc() 676 uint8_t idx = 0; in avct_bcb_get_last_ccb_index() local 681 idx = (uint8_t)(i + 1); in avct_bcb_get_last_ccb_index() 684 return idx; in avct_bcb_get_last_ccb_index() [all …]
|
D | avct_ccb.cc | 126 tAVCT_CCB* avct_ccb_by_idx(uint8_t idx) { in avct_ccb_by_idx() argument 130 if (idx < AVCT_NUM_CONN) { in avct_ccb_by_idx() 131 p_ccb = &avct_cb.ccb[idx]; in avct_ccb_by_idx() 136 log::warn("ccb {} not allocated", idx); in avct_ccb_by_idx() 140 log::warn("No ccb for idx {}", idx); in avct_ccb_by_idx()
|
/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 | 47 for (int idx = 0; idx < startedJobs.size(); idx++) { in getRunningJobsAtIdle() 48 JobInfo jobInfo = startedJobs.get(idx); in getRunningJobsAtIdle() 64 for (int idx = 0; idx < allScheduledJobs.size(); idx++) { in getPendingJobs() 65 JobSnapshot scheduledJob = allScheduledJobs.get(idx); in getPendingJobs()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | ConfigManager.cpp | 552 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 562 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 577 for (auto idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 657 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 667 for (auto idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 678 for (auto idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 775 for (int idx = 0; idx < kStreamCfgSz; ++idx) { in writeConfigDataToBinary() local 776 outFile.write(reinterpret_cast<const char*>(&cfg[idx]), sizeof(int32_t)); in writeConfigDataToBinary() 796 for (auto idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local 797 if (get_camera_metadata_entry(camInfo->characteristics, idx, &entry)) { in writeConfigDataToBinary() [all …]
|
/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/modules/Bluetooth/tools/rootcanal/rust/src/lmp/procedure/ |
D | mod.rs | 116 $idx:tt { $procedure:expr } 119 let $idx = async { loop { $procedure.await; } }; 120 crate::future::pin!($idx); 128 struct Join<'a, $($idx),+> { 129 $($idx: Pin<&'a mut $idx>),+ 133 impl<'a, $($idx: Future<Output = ()>),+> Future for Join<'a, $($idx),+> { 137 $(assert!(self.$idx.as_mut().poll(cx).is_pending());)+ 143 $($idx),+
|
/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | json.lua | 143 local function next_char(str, idx, set, negate) 144 for i = idx, #str do 153 local function decode_error(str, idx, msg) 156 for i = 1, idx - 1 do 343 parse = function(str, idx) 344 local chr = str:sub(idx, idx) 347 return f(str, idx) 349 decode_error(str, idx, "unexpected character '" .. chr .. "'") 357 local res, idx = parse(str, next_char(str, 1, space_chars, true)) 358 idx = next_char(str, idx, space_chars, true) [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/ |
D | framing.c | 106 OI_UINT idx; in crc_iterate() local 107 idx = oldcrc ^ next; in crc_iterate() 108 crc = crc8_wide[idx >> 1]; in crc_iterate() 109 if (idx % 2) { in crc_iterate() 120 OI_UINT idx; in crc_iterate_top4() local 121 idx = (oldcrc ^ next) >> 4; in crc_iterate_top4() 122 crc = crc8_wide[idx >> 1]; in crc_iterate_top4() 123 if (idx % 2) { in crc_iterate_top4()
|
/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 657 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 669 for (size_t idx = 0; idx < sz; ++idx) { in readConfigDataFromBinary() local 679 for (size_t idx = 0; idx < num_entry; ++idx) { in readConfigDataFromBinary() local 795 for (size_t idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local 796 if (get_camera_metadata_entry(camInfo->characteristics, idx, &entry)) { in writeConfigDataToBinary() 797 LOG(ERROR) << "Failed to retrieve camera metadata entry " << idx; in writeConfigDataToBinary() 877 for (size_t idx = 0; idx < num_entry; ++idx) { in writeConfigDataToBinary() local [all …]
|
/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 …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioCodecConfig.java | 51 for (int idx = 0; idx < mCodecConfigOffloading.length; idx++) { in LeAudioCodecConfig() 56 idx, mCodecConfigOffloading[idx].toString())); in LeAudioCodecConfig()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/fastpair/ |
D | FastPairDevicePreferenceController.java | 149 int idx = Collections.binarySearch(mPreferenceList, preference); in onDeviceAdded() local 155 if (idx >= 0) { in onDeviceAdded() 161 idx = -1 * (idx + 1); in onDeviceAdded() 162 mPreferenceList.add(idx, preference); in onDeviceAdded() 163 if (idx < MAX_DEVICE_NUM) { in onDeviceAdded() 183 final int idx = mPreferenceList.indexOf(preference); in onDeviceRemoved() local 185 if (idx < MAX_DEVICE_NUM) { in onDeviceRemoved()
|
/packages/modules/Bluetooth/system/embdrv/tests/src/ |
D | aptx.cc | 68 size_t idx = 0; in TEST_F() local 72 while (idx * BYTES_PER_CODEWORD < sizeof(input) - 1) { in TEST_F() 73 memcpy(pcm, input + idx * BYTES_PER_CODEWORD, BYTES_PER_CODEWORD); in TEST_F() 74 codeword_cmp(pcm, aptx_codeword[idx]); in TEST_F() 75 ++idx; in TEST_F()
|
D | aptxhd.cc | 72 size_t idx = 0; in TEST_F() local 75 while (idx * BYTES_PER_CODEWORD < sizeof(input) - 1) { in TEST_F() 76 memcpy(pcm, input + idx * BYTES_PER_CODEWORD, BYTES_PER_CODEWORD); in TEST_F() 77 codeword_cmp(pcm, aptxhd_codeword + idx * 2); in TEST_F() 78 ++idx; in TEST_F()
|
/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)
|