Home
last modified time | relevance | path

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

12

/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java163 for (int idx = 0; idx < jobList.size(); idx++) { in dump()
164 outString.add(" " + (idx + 1) + ": " + jobList.get(idx)); in dump()
170 for (int idx = 0; idx < jobList.size(); idx++) { in dump()
171 outString.add(" " + (idx + 1) + ": " + jobList.get(idx)); in dump()
284 for (int idx = 0; idx < startedJobs.size(); idx++) { in getListOfIdleJobsRunning()
285 JobInfo jobInfo = startedJobs.get(idx); in getListOfIdleJobsRunning()
309 for (int idx = 0; idx < allScheduledJobs.size(); idx++) { in getListOfPendingJobs()
310 JobSnapshot scheduledJob = allScheduledJobs.get(idx); in getListOfPendingJobs()
DGarageModeService.java74 for (int idx = 0; idx < status.size(); idx++) { in dump()
75 writer.println(status.get(idx)); in dump()
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c284 int idx = 0; in get_PrinterStateReason() local
315 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason()
318 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason()
319 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason()
333 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason()
347 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason()
350 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason()
353 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_OTHER_WARN, in get_PrinterStateReason()
358 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_NEEDED, in get_PrinterStateReason()
361 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MEDIA_EMPTY, in get_PrinterStateReason()
[all …]
Dippstatus_monitor.c341 int idx; in _cancel() local
342 for (idx = 0; idx < ippGetCount(attr); idx++) { in _cancel()
343 LOGD("before job-state-reason (%d): %s", idx, in _cancel()
344 ippGetString(attr, idx, NULL)); in _cancel()
383 int idx; in _cancel() local
384 for (idx = 0; ippGetCount(attr); idx++) { in _cancel()
385 LOGD("job-state-reason (%d): %s", idx, ippGetString(attr, idx, NULL)); in _cancel()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DStockSource.java87 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()
DPhotoTouchListener.java162 int idx = ev.findPointerIndex(mA); in onTouch() local
163 float x = pts[2 * idx]; in onTouch()
164 float y = pts[2 * idx + 1]; in onTouch()
201 int idx = ev.findPointerIndex(mA); in onTouch() local
202 float x0 = pts[2 * idx]; in onTouch()
203 float y0 = pts[2 * idx + 1]; in onTouch()
DPhotoDreamSettingsReceiver.java64 for (int idx = 0; idx < settings.length; idx++) { in onReceive()
65 settings[idx].setAlbumEnabled(albumId, shown); in onReceive()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java210 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/
DFingerprint.java114 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/Car/evs/sampleDriver/
DEvsV4lCamera.cpp427 size_t idx = 0; in forwardFrame() local
439 for (idx = 0; idx < mBuffers.size(); idx++) { in forwardFrame()
440 if (!mBuffers[idx].inUse) { in forwardFrame()
441 if (mBuffers[idx].handle != nullptr) { in forwardFrame()
447 if (idx >= mBuffers.size()) { in forwardFrame()
452 mBuffers[idx].inUse = true; in forwardFrame()
470 buff.bufferId = idx; in forwardFrame()
471 buff.memHandle = mBuffers[idx].handle; in forwardFrame()
512 mBuffers[idx].inUse = false; in forwardFrame()
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py66 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)
215 idx = -1
216 while (idx == -1) | (areas != 0):
217 idx += 1
[all …]
Ddiagnostic_builder.py67 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)
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalEventVerifier.java39 public final int idx; field in VhalEventVerifier.MismatchedEventPair
44 int idx) { in MismatchedEventPair() argument
45 this.idx = idx; in MismatchedEventPair()
89 resultBuilder.append("Index " + pair.idx + ": Expected " in getResultString()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DStatusBarTouchController.java102 int idx = ev.getActionIndex(); in onControllerInterceptTouchEvent() local
103 int pid = ev.getPointerId(idx); in onControllerInterceptTouchEvent()
112 mDownEvents.put(pid, new PointF(ev.getX(idx), ev.getY(idx))); in onControllerInterceptTouchEvent()
118 float dy = ev.getY(idx) - mDownEvents.get(pid).y; in onControllerInterceptTouchEvent()
119 float dx = ev.getX(idx) - mDownEvents.get(pid).x; in onControllerInterceptTouchEvent()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailSettingsActivity.java553 for (int idx = 0; idx < adapter.getCount(); idx++) { in simulatePreferenceClick()
554 if (adapter.getItem(idx) == preference) { in simulatePreferenceClick()
556 null, idx, adapter.getItemId(idx)); in simulatePreferenceClick() local
756 private void handleForwardingSettingsReadResult(AsyncResult ar, int idx) { in handleForwardingSettingsReadResult() argument
757 if (DBG) Log.d(LOG_TAG, "handleForwardingSettingsReadResult: " + idx); in handleForwardingSettingsReadResult()
771 if (DBG) Log.d(LOG_TAG, "Ignoring fwd reading result: " + idx); in handleForwardingSettingsReadResult()
777 if (DBG) Log.d(LOG_TAG, "Error discovered for fwd read : " + idx); in handleForwardingSettingsReadResult()
785 mForwardingReadResults[idx] = CallForwardInfoUtil.getCallForwardInfo( in handleForwardingSettingsReadResult()
787 VoicemailProviderSettings.FORWARDING_SETTINGS_REASONS[idx]); in handleForwardingSettingsReadResult()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexAppParameters.java80 int idx = 0; in getHeader() local
84 ret[idx++] = entry.getKey(); in getHeader()
85 ret[idx++] = (byte) length; in getHeader()
86 System.arraycopy(entry.getValue(), 0, ret, idx, length); in getHeader() local
87 idx += length; in getHeader()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DObexAppParameters.java80 int idx = 0; in getHeader() local
84 ret[idx++] = entry.getKey(); in getHeader()
85 ret[idx++] = (byte) length; in getHeader()
86 System.arraycopy(entry.getValue(), 0, ret, idx, length); in getHeader() local
87 idx += length; in getHeader()
/packages/apps/Camera2/jni/
Djpegutil.h243 for (int idx = plane_start; idx >= min(plane_start, plane_end) && in LoadAt() local
244 idx <= max(plane_start, plane_end); in LoadAt()
245 idx += stride) { in LoadAt()
246 buf_ptrs[i][outX] = plane_.data[idx]; in LoadAt()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java197 int idx = layers.length - 1; in initOptions()
200 checkedFrame.setLayerGravity(idx, Gravity.BOTTOM | Gravity.RIGHT); in initOptions()
201 checkedFrame.setLayerWidth(idx, checkSize); in initOptions()
202 checkedFrame.setLayerHeight(idx, checkSize); in initOptions()
203 checkedFrame.setLayerInsetBottom(idx, checkOffset); in initOptions()
204 checkedFrame.setLayerInsetRight(idx, checkOffset); in initOptions()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramSelectorExt.java320 int idx = identifierType - ProgramSelector.IDENTIFIER_TYPE_VENDOR_START; in typeToUri() local
321 return URI_VENDOR_PREFIX + idx; in typeToUri()
329 int idx; in uriToType() local
331 idx = Integer.parseInt(typeUri.substring(URI_VENDOR_PREFIX.length())); in uriToType()
335 if (idx > ProgramSelector.IDENTIFIER_TYPE_VENDOR_END in uriToType()
339 return ProgramSelector.IDENTIFIER_TYPE_VENDOR_START + idx; in uriToType()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java349 for (Integer idx : mCalls.keySet()) { in queryCallsDone()
350 BluetoothHeadsetClientCall c1 = mCalls.get(idx); in queryCallsDone()
367 for (Integer idx : callRemovedIds) { in queryCallsDone()
368 BluetoothHeadsetClientCall c = mCalls.remove(idx); in queryCallsDone()
374 for (Integer idx : callAddedIds) { in queryCallsDone()
375 BluetoothHeadsetClientCall c = mCallsUpdate.get(idx); in queryCallsDone()
376 mCalls.put(idx, c); in queryCallsDone()
381 for (Integer idx : callRetainedIds) { in queryCallsDone()
382 BluetoothHeadsetClientCall cOrig = mCalls.get(idx); in queryCallsDone()
383 BluetoothHeadsetClientCall cUpdate = mCallsUpdate.get(idx); in queryCallsDone()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCreateConnectionProcessorTest.java688 private PhoneAccount.Builder makeQuickAccountBuilder(String id, int idx) { in makeQuickAccountBuilder() argument
689 return new PhoneAccount.Builder(makeQuickAccountHandle(id), "label" + idx); in makeQuickAccountBuilder()
692 private PhoneAccount makeQuickAccount(String id, int idx) { in makeQuickAccount() argument
693 return makeQuickAccountBuilder(id, idx) in makeQuickAccount()
694 .setAddress(Uri.parse("http://foo.com/" + idx)) in makeQuickAccount()
695 .setSubscriptionAddress(Uri.parse("tel:555-000" + idx)) in makeQuickAccount()
696 .setCapabilities(idx) in makeQuickAccount()
699 .setShortDescription("desc" + idx) in makeQuickAccount()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java207 int idx = 0; in saveState() local
217 playlist.songs[idx] = song; in saveState()
218 idx++; in saveState()
312 int idx = 0; in startPlayback() local
316 foundIdx = idx; in startPlayback()
319 idx++; in startPlayback()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DAction.java248 long idx = 0; in getActionIdx() local
250 idx = ++sActionIdx; in getActionIdx()
252 return idx; in getActionIdx()
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java629 int idx = VmsOfferingMessageIntegerValuesIndex.OFFERING_START; in handleOfferingEvent() local
631 VmsLayer offeredLayer = parseVmsLayerAtIndex(message, idx); in handleOfferingEvent()
632 idx += NUM_INTEGERS_IN_VMS_LAYER; in handleOfferingEvent()
634 int numDependenciesForLayer = message.get(idx++); in handleOfferingEvent()
641 VmsLayer dependantLayer = parseVmsLayerAtIndex(message, idx); in handleOfferingEvent()
642 idx += NUM_INTEGERS_IN_VMS_LAYER; in handleOfferingEvent()

12