Home
last modified time | relevance | path

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

1234567

/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/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java118 readOnlyMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFd()
145 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testIsEmpty()
148 mTestMap.deleteEntry((mTestData.keyAt(0))); in testIsEmpty()
155 assertFalse(mTestMap.containsKey(mTestData.keyAt(0))); in testGetFirstKey()
157 assertNull(mTestMap.getValue(mTestData.keyAt(0))); in testGetFirstKey()
160 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFirstKey()
161 assertEquals(mTestData.keyAt(0), mTestMap.getFirstKey()); in testGetFirstKey()
180 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey()
181 resultMap.put(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey()
189 mTestMap.insertEntry(mTestData.keyAt(1), mTestData.valueAt(1)); in testGetNextKey()
[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/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java681 pw.println(" " + mHistogramAwareAvailableDurationMs.keyAt(i) + ": " in dump()
691 pw.println(" " + mHistogramAwareEnabledDurationMs.keyAt(i) + ": " in dump()
703 pw.println(" " + mAttachStatusData.keyAt(i) + ": " in dump()
708 pw.println(" " + mHistogramAttachDuration.keyAt(i) + ": " in dump()
720 pw.println(" " + mPublishStatusData.keyAt(i) + ": " in dump()
725 pw.println(" " + mSubscribeStatusData.keyAt(i) + ": " in dump()
730 pw.println(" " + mHistogramPublishDuration.keyAt(i) + ": " in dump()
735 pw.println(" " + mHistogramSubscribeDuration.keyAt(i) + ": " in dump()
750 pw.println(" " + mHistogramSubscribeGeofenceMin.keyAt(i) + ": " in dump()
755 pw.println(" " + mHistogramSubscribeGeofenceMax.keyAt(i) + ": " in dump()
[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/
DCarOccupantZoneService.java294 if (config.userId == userId && zoneId != mActiveOccupantConfigs.keyAt(i)) { in init()
408 writer.println(" zoneId=" + mOccupantsConfig.keyAt(i) in dump()
413 writer.println(" port=" + mDisplayPortConfigs.keyAt(i) in dump()
417 writer.println(" uniqueId=" + mDisplayUniqueIdConfigs.keyAt(i) in dump()
422 int audioZoneId = mAudioZoneIdToOccupantZoneIdMapping.keyAt(index); in dump()
428 writer.println(" zoneId=" + mActiveOccupantConfigs.keyAt(i) in dump()
451 int zoneId = mActiveOccupantConfigs.keyAt(i); in getAllOccupantZones()
545 int audioZoneId = mAudioZoneIdToOccupantZoneIdMapping.keyAt(index); in getAudioZoneIdForOccupantLocked()
616 return mActiveOccupantConfigs.keyAt(i); in getOccupantZoneIdForUserId()
646 int audioZoneId = audioZoneIdToOccupantZoneMapping.keyAt(index); in setAudioZoneIdsForOccupantZoneIds()
[all …]
DCarBluetoothService.java281 int key = mProfileDeviceManagers.keyAt(i); in createBluetoothProfileDeviceManagersLocked()
293 int key = mProfileDeviceManagers.keyAt(i); in destroyBluetoothProfileDeviceManagersLocked()
375 int key = mProfileDeviceManagers.keyAt(i); in connectDevices()
507 int key = mProfileDeviceManagers.keyAt(i); in dump()
DSparseArrayStream.java33 return IntStream.range(0, array.size()).map(array::keyAt); in keyStream()
42 i -> new Pair<>(array.keyAt(i), array.valueAt(i))); in pairStream()
DCarPropertyService.java119 int propId = mRateMap.keyAt(i); in binderDied()
198 int propId = mSetOperationClientMap.keyAt(i); in dump()
201 int areaId = areaIdToClient.keyAt(j); in dump()
368 allPropId[i] = mConfigs.keyAt(i); in getPropertyList()
537 + " areaId: 0x" + toHexString(areaIdToClient.keyAt(index))); in clearSetOperationRecorderLocked()
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java136 int zoneId = mHalFocusRequestsByZoneAndUsage.keyAt(i); in reset()
141 int usage = requestsByUsage.keyAt(j); in reset()
157 activeUsages[index] = halFocusRequestsForZone.keyAt(index); in getActiveUsagesForZone()
176 int zoneId = mHalFocusRequestsByZoneAndUsage.keyAt(i); in dump()
183 int usage = requestsByUsage.keyAt(j); in dump()
/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/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java109 carAudioContexts[i] = mContextToAddress.keyAt(i); in getContexts()
129 carAudioContexts.add(mContextToAddress.keyAt(i)); in getContextsForAddress()
217 CarAudioContext.toString(mContextToAddress.keyAt(i)), in dump()
259 int audioContext = contextToAddress.keyAt(i); in containsCriticalAudioContext()
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java223 String roleName = mRoles.keyAt(i); in setRoleNames()
320 roleNames.add(mRoles.keyAt(i)); in getHeldRoles()
407 String roleName = roles.keyAt(rolesIndex); in dump()
443 String roleName = mRoles.keyAt(i); in snapshotRolesLocked()
/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/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java267 final int netdPermission = netdPermToSystemPerm.keyAt(i); in startMonitoring()
754 allPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
757 internetPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
760 updateStatsPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
763 noPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
766 uninstalledAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
770 + netdPermissionsAppIds.keyAt(i)); in sendPackagePermissionsToNetd()
/packages/modules/ExtServices/java/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/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/modules/StatsD/framework/java/android/util/
DStatsEvent.java537 final int key = intMap.keyAt(i); in writeKeyValuePairs()
545 final int key = longMap.keyAt(i); in writeKeyValuePairs()
553 final int key = stringMap.keyAt(i); in writeKeyValuePairs()
563 final int key = floatMap.keyAt(i); in writeKeyValuePairs()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java297 h[i].statusType = histogram.keyAt(i); in consolidateOverallStatus()
326 h[i].statusType = histogram.keyAt(i); in consolidateIndividualStatus()
339 protoArray[i].start = data.keyAt(i); in consolidateNumPeersPerRequest()
340 protoArray[i].end = data.keyAt(i); in consolidateNumPeersPerRequest()
/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/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/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java243 constructResourceOveruseStats(mPackageNamesByUids.keyAt(0), in testGetResourceOveruseStats()
273 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(0), in testGetAllResourceOveruseStatsWithNoMinimum()
279 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(1), in testGetAllResourceOveruseStatsWithNoMinimum()
288 constructResourceOveruseStats(mPackageNamesByUids.keyAt(0), in testGetAllResourceOveruseStatsWithNoMinimum()
291 constructResourceOveruseStats(mPackageNamesByUids.keyAt(1), in testGetAllResourceOveruseStatsWithNoMinimum()
333 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(0), in testGetAllResourceOveruseStatsWithMinimum()
339 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(1), in testGetAllResourceOveruseStatsWithMinimum()
348 constructResourceOveruseStats(mPackageNamesByUids.keyAt(1), in testGetAllResourceOveruseStatsWithMinimum()
367 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(0), in testGetResourceOveruseStatsForUserPackage()
373 constructPackageIoOveruseStats(mPackageNamesByUids.keyAt(1), in testGetResourceOveruseStatsForUserPackage()
[all …]
/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()

1234567