Home
last modified time | relevance | path

Searched refs:valueAt (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java75 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
77 assertThat(localPaths.valueAt(1)).isEqualTo(100); in calculateLocalPaths_singlePath()
79 assertThat(localPaths.valueAt(2)).isEqualTo(-1); in calculateLocalPaths_singlePath()
99 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_multiplePaths()
101 assertThat(localPaths.valueAt(1)).isEqualTo(50); in calculateLocalPaths_multiplePaths()
103 assertThat(localPaths.valueAt(2)).isEqualTo(-1); in calculateLocalPaths_multiplePaths()
106 assertThat(localPaths.valueAt(3)).isEqualTo(100); in calculateLocalPaths_multiplePaths()
108 assertThat(localPaths.valueAt(4)).isEqualTo(150); in calculateLocalPaths_multiplePaths()
110 assertThat(localPaths.valueAt(5)).isEqualTo(-1); in calculateLocalPaths_multiplePaths()
126 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_similarPointMiddle()
[all …]
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java155 readOnlyMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFd()
182 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testIsEmpty()
197 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetFirstKey()
217 mTestMap.insertEntry(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey()
218 resultMap.put(mTestData.keyAt(0), mTestData.valueAt(0)); in testGetNextKey()
226 mTestMap.insertEntry(mTestData.keyAt(1), mTestData.valueAt(1)); in testGetNextKey()
227 resultMap.put(mTestData.keyAt(1), mTestData.valueAt(1)); in testGetNextKey()
252 final Tether6Value value = mTestData.valueAt(0); in testUpdateEntry()
253 final Tether6Value value2 = mTestData.valueAt(1); in testUpdateEntry()
275 final Tether6Value value = mTestData.valueAt(0); in testInsertOrReplaceEntry()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsResponseDecoderTests.java230 MdnsResponse response = responses.valueAt(0); in testDecodeMultipleAnswerPacket()
275 MdnsResponse response = responseArraySet.valueAt(0); in verifyResponse()
306 MdnsResponse response = new MdnsResponse(responses.valueAt(0)); in testIsComplete()
313 response = new MdnsResponse(responses.valueAt(0)); in testIsComplete()
325 response = new MdnsResponse(responses.valueAt(0)); in testIsComplete()
329 response = new MdnsResponse(responses.valueAt(0)); in testIsComplete()
352 assertEquals(responses.valueAt(0).getInterfaceIndex(), 10); in decode_withInterfaceIndex_populatesInterfaceIndex()
353 assertEquals(network, responses.valueAt(0).getNetwork()); in decode_withInterfaceIndex_populatesInterfaceIndex()
368 MdnsResponse response1 = responses.valueAt(0); in decode_singleHostname_multipleSrvRecords_flagEnabled_multipleCompleteResponses()
369 MdnsResponse response2 = responses.valueAt(0); in decode_singleHostname_multipleSrvRecords_flagEnabled_multipleCompleteResponses()
[all …]
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DSafeParcelableSparseArrayTest.java166 assertThat(actual.valueAt(i)).isEqualTo(expected.valueAt(i)); in assertEquals()
174 assertThat(actual.valueAt(i)).isEqualTo(expected.valueAt(i)); in assertEquals()
182 assertThat(actual.valueAt(i)).isEqualTo(expected.valueAt(i)); in assertEquals()
199 assertThat(actual.valueAt(i)).isEqualTo(expected.valueAt(i)); in assertEquals()
208 assertThat(actual.valueAt(i)).isEqualTo(expected.valueAt(i)); in assertByteArrayEquals()
217 assertTestBundleEquals(expected.valueAt(i), actual.valueAt(i)); in assertTestBundleEquals()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java104 if (!mCarAudioZoneConfigs.valueAt(c).isDefault()) { in getDefaultAudioZoneConfigInfo()
107 return mCarAudioZoneConfigs.valueAt(c).getCarAudioZoneConfigInfo(); in getDefaultAudioZoneConfigInfo()
118 zoneConfigList.add(mCarAudioZoneConfigs.valueAt(index)); in getAllCarAudioZoneConfigs()
177 CarAudioZoneConfig zoneConfig = mCarAudioZoneConfigs.valueAt(index); in validateZoneConfigs()
227 CarAudioZoneConfig config = mCarAudioZoneConfigs.valueAt(index); in init()
258 mCarAudioZoneConfigs.valueAt(i).dump(writer); in dump()
277 mCarAudioZoneConfigs.valueAt(i).dumpProto(proto); in dumpProto()
321 CarAudioZoneConfig config = mCarAudioZoneConfigs.valueAt(index); in updateVolumeGroupsSettingsForUser()
377 List<CarVolumeGroupEvent> eventsForZoneConfig = mCarAudioZoneConfigs.valueAt(index) in onAudioGainChanged()
390 List<CarVolumeGroupEvent> eventsForZoneConfig = mCarAudioZoneConfigs.valueAt(index) in onAudioPortsChanged()
[all …]
DZoneAudioPlaybackCallback.java124 newlyInactiveConfigurations.add(mLastActiveConfigs.valueAt(index)); in getNewlyInactiveConfigurationsLocked()
139 .add(newActiveConfigurations.valueAt(index)); in getNewlyActiveAudioAttributes()
182 long startTime = mAudioAttributesStartTime.valueAt(index); in getStillActiveContextAndRemoveExpiredContextsLocked()
222 mLastActiveConfigs.keyAt(i), mLastActiveConfigs.valueAt(i)); in dumpLastActiveConfigsAndAudioAttributesStartTime()
229 mAudioAttributesStartTime.keyAt(i), mAudioAttributesStartTime.valueAt(i)); in dumpLastActiveConfigsAndAudioAttributesStartTime()
253 .AudioDeviceAddressToConfig.CONFIG, mLastActiveConfigs.valueAt(i) in dumpProtoLastActiveConfigsAndAudioAttributesStartTime()
266 mAudioAttributesStartTime.valueAt(i)); in dumpProtoLastActiveConfigsAndAudioAttributesStartTime()
DMediaRequestHandler.java213 InternalMediaAudioRequest request = mMediaAudioRequestIdToCallback.valueAt(index); in getRequestIdForOccupant()
236 CarOccupantZoneManager.OccupantZoneInfo info = mAssignedOccupants.valueAt(index); in getAssignedRequestIdForOccupantZoneId()
253 if (callback.asBinder().equals(mRequestIdToApprover.valueAt(index))) { in getRequestsOwnedByApprover()
264 InternalMediaAudioRequest request = mMediaAudioRequestIdToCallback.valueAt(index); in callbackAlreadyPresentLocked()
410 CarOccupantZoneManager.OccupantZoneInfo info = mAssignedOccupants.valueAt(index); in dump()
418 InternalMediaAudioRequest value = mMediaAudioRequestIdToCallback.valueAt(index); in dump()
426 IBinder value = mRequestIdToApprover.valueAt(index); in dump()
449 mAssignedOccupants.valueAt(index).toString()); in dumpProto()
454 InternalMediaAudioRequest value = mMediaAudioRequestIdToCallback.valueAt(index); in dumpProto()
464 IBinder value = mRequestIdToApprover.valueAt(index); in dumpProto()
DCarAudioPlaybackCallback.java80 mCarAudioZonesToZonePlaybackCallback.valueAt(i).dump(writer); in dumpZoneCallbacks()
88 mCarAudioZonesToZonePlaybackCallback.valueAt(i).dumpProto(proto); in dumpProto()
96 mCarAudioZonesToZonePlaybackCallback.valueAt(i).onPlaybackConfigChanged(configurations); in onPlaybackConfigChanged()
106 mCarAudioZonesToZonePlaybackCallback.valueAt(i).resetStillActiveContexts(); in resetStillActiveContexts()
DCarAudioMirrorRequestHandler.java133 return mRequestIdToMirrorDevice.valueAt(index).getAudioDevice(); in getAudioDevice()
316 Arrays.toString(mRequestIdToZones.valueAt(index))); in dumpMirroringConfigurationsLocked()
329 mZonesToMirrorRequestId.valueAt(index)); in dumpZonesToIdMappingLocked()
341 mRequestIdToMirrorDevice.valueAt(index), in dumpMirrorDeviceMappingLocked()
395 for (int zoneIndex = 0; zoneIndex < mRequestIdToZones.valueAt(index).length; in dumpProtoMirroringConfigurationsLocked()
397 proto.write(RequestIdToZones.ZONE_IDS, mRequestIdToZones.valueAt(index)[zoneIndex]); in dumpProtoMirroringConfigurationsLocked()
409 mRequestIdToMirrorDevice.valueAt(index).dumpProto(CarAudioMirrorRequestHandlerProto in dumpProtoMirrorDeviceMappingLocked()
/packages/services/Car/service/src/com/android/car/watchdog/
DOveruseConfigurationCache.java91 writer.println(", Packages: " + mPackagesByAppCategoryType.valueAt(i)); in dump()
100 dumpPerStateBytes(mGenericIoThresholdsByComponent.valueAt(i), writer); in dump()
108 dumpPerStateBytes(mIoThresholdsBySystemPackages.valueAt(i), writer); in dump()
116 dumpPerStateBytes(mIoThresholdsByVendorPackages.valueAt(i), writer); in dump()
125 dumpPerStateBytes(mIoThresholdsByAppCategoryType.valueAt(i), writer); in dump()
139 mSafeToKillSystemPackages.valueAt(i)); in dumpProto()
143 mSafeToKillVendorPackages.valueAt(i)); in dumpProto()
155 ArraySet<String> packages = mPackagesByAppCategoryType.valueAt(i); in dumpProto()
158 packages.valueAt(j)); in dumpProto()
169 PerStateBytes perStateBytes = mGenericIoThresholdsByComponent.valueAt(i); in dumpProto()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DPairSparseArray.java159 return valueAt(index); in get()
268 Object value = valueAt(i); in toString()
286 public E valueAt(int index) { in valueAt() method in PairSparseArray
287 return mValues.valueAt(index); in valueAt()
324 mSecondKeysByFirstKey.valueAt(index).remove(secondKey); in removeSecondKeyByFirstKey()
325 if (mSecondKeysByFirstKey.valueAt(index).isEmpty()) { in removeSecondKeyByFirstKey()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java228 if (clients.valueAt(i).getUid() == uid) { in recordAttachSession()
300 WifiAwareClientState client = clients.valueAt(i); in recordDiscoverySessionInternal()
305 WifiAwareDiscoverySessionState session = sessions.valueAt(j); in recordDiscoverySessionInternal()
745 + mHistogramAwareAvailableDurationMs.valueAt(i)); in dump()
755 + mHistogramAwareEnabledDurationMs.valueAt(i)); in dump()
767 + mAttachStatusData.valueAt(i)); in dump()
772 + mHistogramAttachDuration.valueAt(i)); in dump()
784 + mPublishStatusData.valueAt(i)); in dump()
789 + mSubscribeStatusData.valueAt(i)); in dump()
794 + mHistogramPublishDuration.valueAt(i)); in dump()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java151 paths.put(points.keyAt(i), points.valueAt(i)); in addPathAndUpdate()
194 int y = paths.valueAt(i); in calculateLocalPaths()
212 int lastY = localPaths.valueAt(localPaths.size() - 1); in calculateLocalPaths()
281 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawLinePath()
284 int y = localPaths.valueAt(i); in drawLinePath()
287 mPath.moveTo(localPaths.keyAt(i), localPaths.valueAt(i)); in drawLinePath()
303 mPath.moveTo(localPaths.keyAt(0), localPaths.valueAt(0)); in drawFilledPath()
306 int y = localPaths.valueAt(i); in drawFilledPath()
313 mPath.moveTo(localPaths.keyAt(i), localPaths.valueAt(i)); in drawFilledPath()
/packages/modules/adb/client/
Dincremental_utils.cpp137 static T valueAt(borrowed_fd fd, off64_t offset) { in valueAt() function
178 sigBuf = valueAt<int32_t>(fd, maxEocdOffset - commentLen); in CentralDirOffset()
180 commentLenBuf = valueAt<int16_t>( in CentralDirOffset()
194 valueAt<int32_t>(fd, eocdOffset + kZipEocdCentralDirSizeFieldOffset)); in CentralDirOffset()
212 valueAt<int64_t>(fd, cdOffset - 2 * sizeof(int64_t)) != APK_SIG_BLOCK_MAGIC_LO || in SignerBlockOffset()
213 valueAt<int64_t>(fd, cdOffset - sizeof(int64_t)) != APK_SIG_BLOCK_MAGIC_HI) { in SignerBlockOffset()
216 int32_t signerSizeInFooter = valueAt<int32_t>(fd, cdOffset - kApkSigBlockFooterSize); in SignerBlockOffset()
221 int32_t signerSizeInHeader = valueAt<int32_t>(fd, signerBlockOffset); in SignerBlockOffset()
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DSubscriptionManager.java313 int propertyId = propertyIdsToUnregister.valueAt(i); in stageUnregister()
317 int areaId = areaIds.valueAt(j); in stageUnregister()
423 int[] propIdAreaId = mStagedAffectedPropIdAreaIds.valueAt(i); in diffBetweenCurrentAndStage()
455 int possiblePropIdToUnsubscribe = possiblePropIdsToUnsubscribe.valueAt(i); in diffBetweenCurrentAndStage()
484 int propertyId = propertyIds.valueAt(propertyIdIndex); in getCarSubscription()
491 int areaId = areaIds.valueAt(i); in getCarSubscription()
503 option.areaIds = convertToIntArray(areaIdsByRateInfo.valueAt(i)); in getCarSubscription()
527 mCurrentRateInfoByClientByPropIdAreaId.valueAt(i))); in cloneCurrentToStageIfClean()
535 RateInfoForClients<ClientType> rateInfoForClients = states.valueAt(i); in dumpStates()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java152 jsonWriter.name("value").value(mIntValues.valueAt(i)); in writeToJson()
161 jsonWriter.name("value").value(mFloatValues.valueAt(i)); in writeToJson()
402 int value = mIntValues.valueAt(i); in equals()
403 int otherValue = otherEvent.mIntValues.valueAt(i); in equals()
414 float value = mFloatValues.valueAt(i); in equals()
415 float otherValue = otherEvent.mFloatValues.valueAt(i); in equals()
431 intValues[i] = mIntValues.valueAt(i); in hashCode()
435 floatValues[i] = mFloatValues.valueAt(i); in hashCode()
507 return mIntValues.valueAt(index); in getSystemIntegerSensor()
518 return mFloatValues.valueAt(index); in getSystemFloatSensor()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java383 Permission permission = allPermissions.valueAt(i); in create()
408 Permission permission = allPermissions.valueAt(i); in create()
520 Permission permission = mPermissions.valueAt(i);
536 Permission permission = mPermissions.valueAt(i);
547 Permission permission = mPermissions.valueAt(i);
561 Permission permission = mPermissions.valueAt(i);
785 Permission permission = mPermissions.valueAt(i);
1264 Permission permission = mPermissions.valueAt(i);
1288 Permission permission = mPermissions.valueAt(i);
1305 Permission permission = mPermissions.valueAt(i);
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsAdvertiser.java333 advertiserRequest = mAdvertiserRequests.valueAt(i); in destroyAdvertiser()
435 if (mPendingRegistrations.valueAt(i) == originalRegistration) { in getConflictingRegistrationDueToService()
438 final NsdServiceInfo other = mPendingRegistrations.valueAt(i).getServiceInfo(); in getConflictingRegistrationDueToService()
462 final Registration otherRegistration = mPendingRegistrations.valueAt(i); in getConflictingRegistrationDueToHost()
490 mAdvertisers.valueAt(i).addService(id, registration.getServiceInfo(), in addService()
506 mAdvertisers.valueAt(i).updateService( in updateService()
514 final MdnsInterfaceAdvertiser advertiser = mAdvertisers.valueAt(i); in removeService()
526 repliedRequestsCount += mAdvertisers.valueAt(i).getServiceRepliedRequestsCount(id); in getServiceRepliedRequestsCount()
534 sentPacketCount += mAdvertisers.valueAt(i).getSentPacketCount(id); in getSentPacketCount()
554 final Registration registration = mPendingRegistrations.valueAt(i); in onSocketCreated()
[all …]
/packages/services/Car/service/src/com/android/car/hal/property/
DPropertyPermissionInfo.java216 if (!mPermissionsList.valueAt(i).isMet(context)) { in isMet()
227 stringBuffer.append(mPermissionsList.valueAt(i).toString()); in toString()
230 stringBuffer.append(mPermissionsList.valueAt(mPermissionsList.size() - 1)).append(')'); in toString()
282 if (mPermissionsList.valueAt(i).isMet(context)) { in isMet()
293 stringBuffer.append(mPermissionsList.valueAt(i).toString()); in toString()
296 stringBuffer.append(mPermissionsList.valueAt(mPermissionsList.size() - 1)).append(')'); in toString()
329 if (mPermissionsList.valueAt(i).equals(grantedPermission)) { in isMetIfGranted()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMultiInternetManager.java304 mNetworkConnectionStates.valueAt(i).setConnected(false); in onConnectionEnd()
443 mNetworkConnectionStates.valueAt(i).setConnected(false); in notifyBssidAssociatedEvent()
465 if (!mNetworkConnectionStates.valueAt(i).isConnected()) { in findUnconnectedRequestBand()
480 String bssid = mNetworkConnectionStates.valueAt(i).bssid; in getSpecifiedBssids()
493 mNetworkConnectionStates.valueAt(i).setConnected(false); in updateNetworkConnectionStates()
678 + mNetworkConnectionStates.valueAt(i).bssid + " connected " in dump()
679 + mNetworkConnectionStates.valueAt(i).isConnected() in dump()
680 + " validated " + mNetworkConnectionStates.valueAt(i).isValidated()); in dump()
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java358 OccupantConfig config = mActiveOccupantConfigs.valueAt(i); in init()
459 + " info=" + mOccupantsConfig.valueAt(i)); in dump()
464 + " config=" + mDisplayPortConfigs.valueAt(i)); in dump()
468 + " config=" + mDisplayUniqueIdConfigs.valueAt(i)); in dump()
474 + " zoneId=" + mAudioZoneIdToOccupantZoneIdMapping.valueAt(index)); in dump()
479 + " config=" + mActiveOccupantConfigs.valueAt(i)); in dump()
499 DisplayConfig displayConfig = mDisplayPortConfigs.valueAt(i); in dumpProto()
518 DisplayConfig displayConfig = mDisplayUniqueIdConfigs.valueAt(i); in dumpProto()
768 OccupantConfig config = mActiveOccupantConfigs.valueAt(i); in getOccupantZoneIdForUserId()
956 OccupantConfig config = mActiveOccupantConfigs.valueAt(i); in getZoneIdForUserIdLocked()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DUserInstanceManager.java173 mConsentManagerMapLocked.valueAt(i); in dumpPerUserManagers()
179 mAppConsentManagerMapLocked.valueAt(i); in dumpPerUserManagers()
186 mRollbackHandlingManagerMapLocked.valueAt(i); in dumpPerUserManagers()
194 mBlockedTopicsManagerMapLocked.valueAt(i); in dumpPerUserManagers()
205 perUserDumpHelpers.valueAt(i).dump(writer, prefix2, perUserDumpHelpers.keyAt(i)); in dumpPerUserManagers()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationParticipantsData.java68 final ParticipantData participant = mConversationParticipantsMap.valueAt(i); in getParticipantListExcludingSelf()
82 final ParticipantData participant = mConversationParticipantsMap.valueAt(i); in getOtherParticipant()
116 return mConversationParticipantsMap.valueAt(mCurrentIndex); in iterator()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DAutoFocusRing.java61 .lerp(0, 255, mEnterOpacityCurve.valueAt(rFade)); in draw()
65 .lerp(255, 0, mExitOpacityCurve.valueAt(rFade)); in draw()
70 .lerp(255, 0, mExitOpacityCurve.valueAt(rFade)); in draw()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsData.java267 .getMap().valueAt(ipkg); in getProcs()
269 final LongSparseArray<ProcessStats.PackageState> vpkgs = pkgUids.valueAt(iu); in getProcs()
271 final ProcessStats.PackageState st = vpkgs.valueAt(iv); in getProcs()
273 final ProcessState pkgProc = st.mProcesses.valueAt(iproc); in getProcs()
308 .valueAt(ip); in getProcs()
310 LongSparseArray<ProcessStats.PackageState> vpkgs = uids.valueAt(iu); in getProcs()
312 ProcessStats.PackageState ps = vpkgs.valueAt(iv); in getProcs()
314 ServiceState ss = ps.mServices.valueAt(is); in getProcs()

12345678910>>...17