| /packages/apps/Settings/src/com/android/settings/utils/ |
| D | SensorPrivacyManagerHelper.java | 23 import android.util.SparseArray; 40 private final SparseArray<Boolean> mCurrentUserCachedState = new SparseArray<>(); 41 private final SparseArray<SparseArray<Boolean>> mCachedState = new SparseArray<>(); 43 private final SparseArray<OnSensorPrivacyChangedListener> 44 mCurrentUserServiceListeners = new SparseArray<>(); 45 private final SparseArray<SparseArray<OnSensorPrivacyChangedListener>> 46 mServiceListeners = new SparseArray<>(); 141 SparseArray<Boolean> userCachedState = createUserCachedStateIfNeededLocked(userId); in isSensorBlocked() 247 SparseArray<OnSensorPrivacyChangedListener> in registerListenerIfNeeded() 252 SparseArray<Boolean> userCachedState = in registerListenerIfNeeded() [all …]
|
| /packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
| D | CarDuckingTest.java | 35 import android.util.SparseArray; 59 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); 63 private final SparseArray<List<AudioFocusInfo>> mMediaFocusHolders = new SparseArray<>(); 64 private final SparseArray<List<AudioFocusInfo>> mMediaNavFocusHolders = new SparseArray<>(); 83 SparseArray<CarDuckingInfo> currentDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in constructor_initializesEmptyDuckingInfoForZones() 100 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_updatesUsagesHoldingFocus() 109 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_forPrimaryZone_doesNotUpdateSecondaryZones() 118 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withMultipleFocusHolders_updatesAddressesToDuck() 129 SparseArray<CarDuckingInfo> newDuckingInfo = mCarDucking.getCurrentDuckingInfo(); in onFocusChange_withDuckedDevices_updatesAddressesToUnduck() 168 SparseArray<List<AudioFocusInfo>> focusChanges = new SparseArray<>(); in onFocusChange_withMultipleZones_notifiesForEachZone() [all …]
|
| D | CarZonesAudioFocusUnitTest.java | 40 import android.util.SparseArray; 60 private final SparseArray<CarAudioFocus> mFocusMocks = generateMockFocus(); 61 private final SparseArray<CarAudioZone> mMockZones = generateAudioZones(); 112 mMockPackageManager, new SparseArray<>(), mCarAudioSettings, true, in newCarZonesAudioFocus_withEmptyCarAudioZones_throws() 186 ArgumentCaptor<SparseArray<List<AudioFocusInfo>>> captor = in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 187 ArgumentCaptor.forClass(SparseArray.class); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 190 SparseArray<List<AudioFocusInfo>> results = captor.getValue(); in onAudioFocusRequest_withFocusCallback_callsOnFocusChange() 225 ArgumentCaptor<SparseArray<List<AudioFocusInfo>>> captor = in setRestrictFocus_notifiesFocusCallbackForAllZones() 226 ArgumentCaptor.forClass(SparseArray.class); in setRestrictFocus_notifiesFocusCallbackForAllZones() 233 private static SparseArray<CarAudioZone> generateAudioZones() { in generateAudioZones() [all …]
|
| /packages/services/Car/service/src/com/android/car/storagemonitoring/ |
| D | IoStatsTracker.java | 21 import android.util.SparseArray; 51 private SparseArray<IoStatsEntry> mTotal; 53 private SparseArray<IoStatsEntry> mCurrentSample; 57 mTotal = new SparseArray<>(initialValue.size()); in IoStatsTracker() 67 public void update(SparseArray<UidIoRecord> newMetrics) { in update() 75 SparseArray<IoStatsEntry> newSample = new SparseArray<>(); in update() 76 SparseArray<IoStatsEntry> newTotal = new SparseArray<>(); in update() 128 public SparseArray<IoStatsEntry> getTotal() { in getTotal() 137 public SparseArray<IoStatsEntry> getCurrentSample() { in getCurrentSample()
|
| /packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
| D | SparseArrayStreamTest.java | 24 import android.util.SparseArray; 38 SparseArray<String> array = createSparseStringArray(); in testKeyStream() 49 SparseArrayStream.keyStream(new SparseArray<String>()).boxed(), ImmutableList.of()); in testKeyStream_empty() 54 SparseArray<String> array = createSparseStringArray(); in testValueStream() 65 SparseArrayStream.valueStream(new SparseArray<String>()), ImmutableList.of()); in testValueStream_empty() 70 SparseArray<String> array = createSparseStringArray(); in testPairStream() 82 SparseArrayStream.pairStream(new SparseArray<String>()), ImmutableList.of()); in testPairStream_empty() 85 private static SparseArray<String> createSparseStringArray() { in createSparseStringArray() 86 SparseArray<String> array = new SparseArray<>(); in createSparseStringArray()
|
| /packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
| D | UserIconLoader.java | 23 import android.util.SparseArray; 32 public class UserIconLoader extends AsyncLoaderCompat<SparseArray<Drawable>> { 39 SparseArray<Drawable> getUserIcons(); in getUserIcons() 46 void handleUserIcons(SparseArray<Drawable> fetchedIcons); in handleUserIcons() 55 public SparseArray<Drawable> loadInBackground() { in loadInBackground() 60 protected void onDiscardResult(SparseArray<Drawable> result) {} in onDiscardResult() 66 public static SparseArray<Drawable> loadUserIconsWithContext(Context context) { in loadUserIconsWithContext() 67 SparseArray<Drawable> value = new SparseArray<>(); in loadUserIconsWithContext()
|
| /packages/apps/Settings/src/com/android/settings/deviceinfo/ |
| D | StorageCategoryFragment.java | 28 import android.util.SparseArray; 73 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>>, 87 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult; 248 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateSecondaryUserControllers() 260 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader() 270 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished() 271 SparseArray<StorageAsyncLoader.StorageResult> data) { in onLoadFinished() 277 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader) { in onLoaderReset() 306 public SparseArray<StorageAsyncLoader.StorageResult> getStorageResult() { in getStorageResult() 311 public void setStorageResult(SparseArray<StorageAsyncLoader.StorageResult> info) { in setStorageResult() [all …]
|
| D | StorageDashboardFragment.java | 35 import android.util.SparseArray; 88 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>>, 103 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult; 419 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateSecondaryUserControllers() 460 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader() 470 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished() 471 SparseArray<StorageAsyncLoader.StorageResult> data) { in onLoadFinished() 477 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader) { in onLoaderReset() 506 public SparseArray<StorageAsyncLoader.StorageResult> getStorageResult() { in getStorageResult() 511 public void setStorageResult(SparseArray<StorageAsyncLoader.StorageResult> info) { in setStorageResult() [all …]
|
| /packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
| D | CarAudioZonesValidatorTest.java | 21 import android.util.SparseArray; 43 CarAudioZonesValidator.validate(new SparseArray<CarAudioZone>()); in validate_thereIsAtLeastOneZone() 48 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_volumeGroupsForEachZone() 76 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_eachAddressAppearsInOnlyOneZone() 90 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_passesWithoutExceptionForValidZoneConfiguration() 95 private SparseArray<CarAudioZone> generateAudioZonesWithPrimary() { in generateAudioZonesWithPrimary() 97 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZonesWithPrimary()
|
| /packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/ |
| D | DiagnosticJson.java | 22 import android.util.SparseArray; 31 public final SparseArray<Integer> intValues; 32 public final SparseArray<Float> floatValues; 38 SparseArray<Integer> intValues, in DiagnosticJson() 39 SparseArray<Float> floatValues, in DiagnosticJson() 86 final SparseArray<Integer> mIntValues = new SparseArray<>(); 87 final SparseArray<Float> mFloatValues = new SparseArray<>();
|
| /packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
| D | StorageSettingsManagerTest.java | 30 import android.util.SparseArray; 56 .LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>>> mAppsStorageResult; 91 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled() 109 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled() 130 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_storageResultNotLoaded_noListenersCalled() 150 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
|
| D | StorageAsyncLoaderTest.java | 35 import android.util.SparseArray; 105 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 116 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 129 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 140 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 155 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 168 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 178 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 194 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() 215 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted() [all …]
|
| /packages/services/Car/service/src/com/android/car/watchdog/ |
| D | WatchdogProcessHandler.java | 37 import android.util.SparseArray; 62 private final SparseArray<ArrayList<ClientInfo>> mClientMap = new SparseArray<>(); 69 private final SparseArray<SparseArray<ClientInfo>> mPingedClientMap = new SparseArray<>(); 76 private final SparseArray<Boolean> mClientCheckInProgress = new SparseArray<>(); 94 mPingedClientMap.put(timeout, new SparseArray<ClientInfo>()); in init() 198 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in tellClientAlive() 237 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in prepareHealthCheck() 263 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in analyzeClientResponse() 278 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in sendPingToClients()
|
| /packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
| D | MockWifiMonitor.java | 23 import android.util.SparseArray; 34 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 38 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 40 ifaceHandlers = new SparseArray<>(); in registerHandler() 59 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 65 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 75 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
|
| /packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
| D | MockWifiP2pMonitor.java | 23 import android.util.SparseArray; 34 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 38 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 40 ifaceHandlers = new SparseArray<>(); in registerHandler() 59 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 65 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 75 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
|
| /packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
| D | StorageSettingsManager.java | 26 import android.util.SparseArray; 52 void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded() 64 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsStorageResultSparseArray; 138 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 142 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 149 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 150 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 157 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
|
| /packages/modules/Wifi/service/java/com/android/server/wifi/ |
| D | WifiChannelUtilization.java | 26 import android.util.SparseArray; 76 private ArrayDeque<SparseArray<ChannelStats>> mChannelStatsMapCache = new ArrayDeque<>(); 103 mChannelStatsMapCache.addFirst(new SparseArray<>()); in init() 108 mChannelStatsMapCache.addFirst(new SparseArray<>()); in init() 183 SparseArray<ChannelStats> channelStatsMap = wifiLinkLayerStats.channelStatsMap; in refreshChannelStatsAndChannelUtilization() 245 SparseArray<ChannelStats> channelStatsMap = (SparseArray<ChannelStats>) iterator.next(); in findChanStatsReference() 271 private void updateChannelStatsCache(SparseArray<ChannelStats> channelStatsMap, int freq) { in updateChannelStatsCache() 290 SparseArray<ChannelStats> channelStatsMap = mChannelStatsMapCache.peekFirst(); in isChannelStatsMapCacheEmpty()
|
| /packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
| D | StorageAsyncLoaderTest.java | 39 import android.util.SparseArray; 104 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 115 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 128 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 139 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 155 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 168 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 183 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() 192 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree() 205 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testAppsAreFiltered()
|
| /packages/services/Car/service/src/com/android/car/audio/ |
| D | CarZonesAudioFocus.java | 31 import android.util.SparseArray; 56 private final SparseArray<CarAudioFocus> mFocusZones; 60 @NonNull SparseArray<CarAudioZone> carAudioZones, in createCarZonesAudioFocus() 71 SparseArray<CarAudioFocus> audioFocusPerZone = new SparseArray<>(); in createCarZonesAudioFocus() 87 CarZonesAudioFocus(SparseArray<CarAudioFocus> focusZones, in CarZonesAudioFocus() 216 SparseArray<List<AudioFocusInfo>> focusHoldersByZoneId = new SparseArray<>(); in notifyFocusCallback() 262 @NonNull SparseArray<List<AudioFocusInfo>> focusHoldersByZoneId); in onFocusChange()
|
| D | CarDucking.java | 24 import android.util.SparseArray; 39 private final SparseArray<CarAudioZone> mCarAudioZones; 44 private final SparseArray<CarDuckingInfo> mCurrentDuckingInfo = new SparseArray<>(); 46 CarDucking(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarDucking() 58 SparseArray<CarDuckingInfo> getCurrentDuckingInfo() { in getCurrentDuckingInfo() 66 @NonNull SparseArray<List<AudioFocusInfo>> focusHoldersByZoneId) { in onFocusChange()
|
| /packages/services/Car/service/src/com/android/car/ |
| D | Utils.java | 26 import android.util.SparseArray; 50 private static final SparseArray<String> sAdapterStates = new SparseArray<String>(); 51 private static final SparseArray<String> sBondStates = new SparseArray<String>(); 52 private static final SparseArray<String> sConnectionStates = new SparseArray<String>(); 53 private static final SparseArray<String> sProfileNames = new SparseArray<String>();
|
| D | CarPropertyService.java | 37 import android.util.SparseArray; 68 private final SparseArray<SparseArray<Client>> mSetOperationClientMap = new SparseArray<>(); 74 private SparseArray<CarPropertyConfig<?>> mConfigs = new SparseArray<>(); 76 private SparseArray<Pair<String, String>> mPropToPermission = new SparseArray<>(); 90 private final SparseArray<Float> mRateMap = new SparseArray<Float>(); // key is propId 199 SparseArray areaIdToClient = mSetOperationClientMap.valueAt(i); in dump() 517 SparseArray<Client> areaIdToClient = new SparseArray<>(); in updateSetOperationRecorder() 525 SparseArray<Client> areaIdToClient = mSetOperationClientMap.get(propId); in clearSetOperationRecorderLocked()
|
| /packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
| D | CivicLocation.java | 25 import android.util.SparseArray; 60 private SparseArray<String> mCivicAddressElements = 61 new SparseArray<>(MIN_CIVIC_BUFFER_SIZE); 115 parcel.writeSparseArray((android.util.SparseArray) mCivicAddressElements); in writeToParcel() 163 public SparseArray<String> toSparseArray() { in toSparseArray() 289 private boolean isSparseArrayStringEqual(SparseArray<String> sa1, SparseArray<String> sa2) { in isSparseArrayStringEqual() 310 private int[] getSparseArrayKeys(SparseArray<String> sa) { in getSparseArrayKeys() 325 private String[] getSparseArrayValues(SparseArray<String> sa) { in getSparseArrayValues()
|
| /packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/ |
| D | PersonalStorage.java | 28 import android.util.SparseArray; 57 public void store(SparseArray<Set<String>> preference) { in store() 100 public SparseArray<Set<String>> getAllPrefApps() { in getAllPrefApps() 101 SparseArray<Set<String>> prefs = new SparseArray<>(); in getAllPrefApps() 110 SparseArray<Set<String>> prefs = new SparseArray<>(); in resetNetworkPreferences()
|
| /packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
| D | TunnelModeChildSessionParamsTest.java | 40 import android.util.SparseArray; 90 SparseArray expectedAttrCntMap, TunnelModeChildSessionParams childParams) { in verifyAttrTypes() 93 SparseArray<Integer> atrrCntMap = expectedAttrCntMap.clone(); in verifyAttrTypes() 150 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithAddressReq() 171 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithDnsServerReq() 191 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithDhcpServerReq()
|