Home
last modified time | relevance | path

Searched refs:keyAt (Results 1 – 25 of 118) sorted by relevance

12345

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java74 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
76 assertThat(localPaths.keyAt(1)).isEqualTo(1000); in calculateLocalPaths_singlePath()
78 assertThat(localPaths.keyAt(2)).isEqualTo(1001); in calculateLocalPaths_singlePath()
98 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_multiplePaths()
100 assertThat(localPaths.keyAt(1)).isEqualTo(400); in calculateLocalPaths_multiplePaths()
102 assertThat(localPaths.keyAt(2)).isEqualTo(401); in calculateLocalPaths_multiplePaths()
105 assertThat(localPaths.keyAt(3)).isEqualTo(600); in calculateLocalPaths_multiplePaths()
107 assertThat(localPaths.keyAt(4)).isEqualTo(1000); in calculateLocalPaths_multiplePaths()
109 assertThat(localPaths.keyAt(5)).isEqualTo(1001); in calculateLocalPaths_multiplePaths()
125 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_similarPointMiddle()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DUsageGraph.java146 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate()
149 paths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPathAndUpdate()
188 int x = paths.keyAt(i); in calculateLocalPaths()
206 int lastX = localPaths.keyAt(localPaths.size() - 1); in calculateLocalPaths()
276 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawLinePath()
278 int x = localPaths.keyAt(i); in drawLinePath()
282 mPath.moveTo(localPaths.keyAt(i), localPaths.valueAt(i)); in drawLinePath()
293 float lastStartX = localPaths.keyAt(0); in drawFilledPath()
294 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawFilledPath()
296 int x = localPaths.keyAt(i); in drawFilledPath()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java146 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate()
149 paths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPathAndUpdate()
188 int x = paths.keyAt(i); in calculateLocalPaths()
206 int lastX = localPaths.keyAt(localPaths.size() - 1); in calculateLocalPaths()
276 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawLinePath()
278 int x = localPaths.keyAt(i); in drawLinePath()
282 mPath.moveTo(localPaths.keyAt(i), localPaths.valueAt(i)); in drawLinePath()
297 float lastStartX = localPaths.keyAt(0); in drawFilledPath()
298 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawFilledPath()
300 int x = localPaths.keyAt(i); in drawFilledPath()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java105 assertThat(points.keyAt(1)).isEqualTo(points.keyAt(2) - 1); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
155 assertThat(points.keyAt(0)).isEqualTo(-1); in calcPoints_shouldNotDrawPointForFutureDate()
156 assertThat(points.keyAt(1)).isEqualTo(0); in calcPoints_shouldNotDrawPointForFutureDate()
157 assertThat(points.keyAt(2)).isEqualTo(TimeUnit.DAYS.toMinutes(1)); in calcPoints_shouldNotDrawPointForFutureDate()
158 assertThat(points.keyAt(3)).isEqualTo(TimeUnit.DAYS.toMinutes(2)); in calcPoints_shouldNotDrawPointForFutureDate()
159 assertThat(points.keyAt(4)).isEqualTo(TimeUnit.DAYS.toMinutes(3)); in calcPoints_shouldNotDrawPointForFutureDate()
160 assertThat(points.keyAt(5)).isEqualTo(TimeUnit.DAYS.toMinutes(4)); in calcPoints_shouldNotDrawPointForFutureDate()
161 assertThat(points.keyAt(6)).isEqualTo(TimeUnit.DAYS.toMinutes(5)); in calcPoints_shouldNotDrawPointForFutureDate()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java99 int key = mFloatValues.keyAt(i); in writeToParcel()
105 int key = mIntValues.keyAt(i); in writeToParcel()
146 jsonWriter.name("id").value(mIntValues.keyAt(i)); in writeToJson()
155 jsonWriter.name("id").value(mFloatValues.keyAt(i)); in writeToJson()
314 int key = mIntValues.keyAt(i); in withVendorSensorsRemoved()
320 int key = mFloatValues.keyAt(i); in withVendorSensorsRemoved()
392 int key = mIntValues.keyAt(i); in equals()
393 int otherKey = otherEvent.mIntValues.keyAt(i); in equals()
404 int key = mFloatValues.keyAt(i); in equals()
405 int otherKey = otherEvent.mFloatValues.keyAt(i); in equals()
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java130 int zoneId = mHalFocusRequestsByZoneAndUsage.keyAt(i); in reset()
135 int usage = requestsByUsage.keyAt(j); in reset()
153 int zoneId = mHalFocusRequestsByZoneAndUsage.keyAt(i); in dump()
159 int usage = requestsByUsage.keyAt(j); in dump()
/packages/services/Car/service/src/com/android/car/
DCarBluetoothService.java279 int key = mProfileDeviceManagers.keyAt(i); in createBluetoothProfileDeviceManagersLocked()
291 int key = mProfileDeviceManagers.keyAt(i); in destroyBluetoothProfileDeviceManagersLocked()
373 int key = mProfileDeviceManagers.keyAt(i); in connectDevices()
503 int key = mProfileDeviceManagers.keyAt(i); in dump()
DSparseArrayStream.java28 return IntStream.range(0, array.size()).map(array::keyAt); in keyStream()
37 i -> new Pair<>(array.keyAt(i), array.valueAt(i))); in pairStream()
DCarPropertyService.java114 int propId = mRateMap.keyAt(i); in binderDied()
188 int propId = mSetOperationClientMap.keyAt(i); in dump()
191 int areaId = areaIdToClient.keyAt(j); in dump()
472 + " areaId: 0x" + toHexString(areaIdToClient.keyAt(index))); in clearSetOperationRecorderLocked()
DCarOccupantZoneService.java405 int audioZoneId = mAudioZoneIdToOccupantZoneIdMapping.keyAt(index); in dump()
491 int audioZoneId = mAudioZoneIdToOccupantZoneIdMapping.keyAt(index); in getAudioZoneIdForOccupantLocked()
589 int audioZoneId = audioZoneIdToOccupantZoneMapping.keyAt(index); in setAudioZoneIdsForOccupantZoneIds()
602 audioZoneIdToOccupantZoneMapping.get(audioZoneIdToOccupantZoneMapping.keyAt(i)); in validateOccupantZoneIdsLocked()
792 int userId = whitelists.keyAt(i); in updateUserAssignmentForDisplays()
1096 int audioZoneId = mAudioZoneIdToOccupantZoneIdMapping.keyAt(index); in handleAudioZoneChangesLocked()
DInputCaptureClientController.java382 int inputType = perInputStacks.keyAt(i); in requestInputEventCapture()
452 int inputType = perInputStacks.keyAt(i); in releaseInputEventCapture()
598 int inputType = perInputStacks.keyAt(i); in dump()
638 ICarInputCallback callback = clients.mClientsToDispatch.keyAt(i); in dispatchClientCallbackLocked()
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java108 uids.add(mForegroundUidPids.keyAt(i)); in getForegroundUids()
175 int foregroundUid = mForegroundUidPids.keyAt(i); in onForegroundActivitiesChanged()
182 Integer.toString(foregroundPids.keyAt(j))); in onForegroundActivitiesChanged()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseIntArray.java54 public int keyAt(final int index) { in keyAt() method in SparseIntArray
55 return mArray.keyAt(index); in keyAt()
/packages/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java166 String featureName = target.keyAt(i); in predict()
180 String featureName = target.keyAt(i); in update()
198 editor.putFloat(mFeatureWeights.keyAt(i), mFeatureWeights.valueAt(i)); in commitUpdate()
/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java107 carAudioContexts[i] = mContextToAddress.keyAt(i); in getContexts()
130 carAudioContexts.add(mContextToAddress.keyAt(i)); in getContextsForAddress()
325 CarAudioContext.toString(mContextToAddress.keyAt(i)), in dump()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java475 channelIds.add((long) mChannelInfoList.keyAt(i)); in update()
560 return mChannelInfoList.get(mChannelInfoList.keyAt(position)); in get()
567 public long keyAt(int position) { in keyAt() method in ChannelDataManagerTest.FakeContentProvider
568 return mChannelInfoList.keyAt(position); in keyAt()
611 return mContentProvider.keyAt(mPosition); in getLong()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryActiveView.java57 drawColor(canvas, array.keyAt(i), array.keyAt(i + 1), array.valueAt(i), period); in onDraw()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryActiveView.java57 drawColor(canvas, array.keyAt(i), array.keyAt(i + 1), array.valueAt(i), period); in onDraw()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DGroupingListAdapter.java107 if (lastIndex < 0 || cursorPosition <= groupMetadata.keyAt(lastIndex)) { in addGroup()
141 int cursorPosition = groupMetadata.keyAt(listPosition); in getItem()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeScheduleDaysSelection.java77 final int day = mDays.keyAt(i); in getDays()
83 rta[i] = rt.keyAt(i); in getDays()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeScheduleDaysSelection.java77 final int day = mDays.keyAt(i); in getDays()
83 rta[i] = rt.keyAt(i); in getDays()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java149 long oldManagedProfileId = oldManagedProfileIds.keyAt(i); in sanitizeDB()
162 profileIds[i] = Long.toString(profileMapping.keyAt(i)); in sanitizeDB()
192 long oldId = profileMapping.keyAt(i); in sanitizeDB()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java641 ENCODED_STRING_COLUMN_INDEX_MAP.keyAt(i)); in loadHeadersFromCursor()
646 TEXT_STRING_COLUMN_INDEX_MAP.keyAt(i)); in loadHeadersFromCursor()
651 OCTET_COLUMN_INDEX_MAP.keyAt(i)); in loadHeadersFromCursor()
656 LONG_COLUMN_INDEX_MAP.keyAt(i)); in loadHeadersFromCursor()
1354 final int field = ENCODED_STRING_COLUMN_NAME_MAP.keyAt(i); in persist()
1365 final byte[] text = header.getTextString(TEXT_STRING_COLUMN_NAME_MAP.keyAt(i)); in persist()
1372 final int b = header.getOctet(OCTET_COLUMN_NAME_MAP.keyAt(i)); in persist()
1379 final long l = header.getLongInteger(LONG_COLUMN_NAME_MAP.keyAt(i)); in persist()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DMultiStateCallback.java78 int state = mCallbacks.keyAt(i); in setState()
108 int state = mStateChangeListeners.keyAt(i); in notifyStateChangeListeners()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java268 areaIds[i] = mSupportedAreas.keyAt(i); in getAreaIds()
283 return mSupportedAreas.keyAt(0); in getFirstAndOnlyAreaId()
359 dest.writeInt(mSupportedAreas.keyAt(i)); in writeToParcel()

12345