/packages/services/Car/service/src/com/android/car/storagemonitoring/ |
D | IoStatsTracker.java | 20 import android.util.SparseArray; 43 private SparseArray<IoStatsEntry> mTotal; 44 private SparseArray<IoStatsEntry> mCurrentSample; 48 mTotal = new SparseArray<>(initialValue.size()); in IoStatsTracker() 55 public synchronized void update(SparseArray<UidIoRecord> newMetrics) { in update() 63 SparseArray<IoStatsEntry> newSample = new SparseArray<>(); in update() 64 SparseArray<IoStatsEntry> newTotal = new SparseArray<>(); in update() 111 public synchronized SparseArray<IoStatsEntry> getTotal() { in getTotal() 115 public synchronized SparseArray<IoStatsEntry> getCurrentSample() { in getCurrentSample()
|
/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()
|
D | StorageAsyncLoader.java | 33 import android.util.SparseArray; 48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 67 public SparseArray<AppsStorageResult> loadInBackground() { in loadInBackground() 71 private SparseArray<AppsStorageResult> loadApps() { in loadApps() 73 SparseArray<AppsStorageResult> result = new SparseArray<>(); in loadApps() 164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult() 182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
|
D | StorageAsyncLoader.java | 33 import android.util.SparseArray; 48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 67 public SparseArray<AppsStorageResult> loadInBackground() { in loadInBackground() 71 private SparseArray<AppsStorageResult> loadApps() { in loadApps() 73 SparseArray<AppsStorageResult> result = new SparseArray<>(); in loadApps() 164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult() 182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageDashboardFragment.java | 30 import android.util.SparseArray; 64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult; 212 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() 253 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 263 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 264 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 271 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset() 290 public SparseArray<StorageAsyncLoader.AppsStorageResult> getAppsStorageResult() { in getAppsStorageResult() 295 public void setAppsStorageResult(SparseArray<StorageAsyncLoader.AppsStorageResult> info) { in setAppsStorageResult() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 30 import android.util.SparseArray; 64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult; 212 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() 253 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 263 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 264 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 271 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset() 290 public SparseArray<StorageAsyncLoader.AppsStorageResult> getAppsStorageResult() { in getAppsStorageResult() 295 public void setAppsStorageResult(SparseArray<StorageAsyncLoader.AppsStorageResult> info) { in setAppsStorageResult() [all …]
|
D | StorageProfileFragment.java | 26 import android.util.SparseArray; 50 implements LoaderManager.LoaderCallbacks<SparseArray<AppsStorageResult>> { 115 public Loader<SparseArray<AppsStorageResult>> onCreateLoader(int id, Bundle args) { in onCreateLoader() 125 public void onLoadFinished(Loader<SparseArray<AppsStorageResult>> loader, in onLoadFinished() 126 SparseArray<AppsStorageResult> result) { in onLoadFinished() 131 public void onLoaderReset(Loader<SparseArray<AppsStorageResult>> loader) { in onLoaderReset()
|
/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 | 36 import android.util.SparseArray; 103 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 114 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 127 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 138 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 153 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 166 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 176 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 192 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() 213 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted() [all …]
|
D | StorageUsageBasePreferenceControllerTest.java | 25 import android.util.SparseArray; 62 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage() 86 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setsSummary() 103 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setProgressBarPercentage()
|
/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/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 27 import android.util.SparseArray; 53 void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded() 65 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsStorageResultSparseArray; 139 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 143 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 151 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 152 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 159 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 36 import android.util.SparseArray; 95 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 106 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 119 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 130 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 146 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 159 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 169 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 185 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() 206 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted() [all …]
|
/packages/apps/Terminal/src/com/android/terminal/ |
D | TerminalActivity.java | 33 import android.util.SparseArray; 76 private SparseArray<SparseArray<Parcelable>> 77 mSavedState = new SparseArray<SparseArray<Parcelable>>(); 96 final SparseArray<Parcelable> state = mSavedState.get(term.key); 111 SparseArray<Parcelable> state = mSavedState.get(key); 113 state = new SparseArray<Parcelable>();
|
/packages/services/Car/service/src/com/android/car/ |
D | Utils.java | 24 import android.util.SparseArray; 46 private static final SparseArray<String> sAdapterStates = new SparseArray<String>(); 47 private static final SparseArray<String> sBondStates = new SparseArray<String>(); 48 private static final SparseArray<String> sConnectionStates = new SparseArray<String>(); 49 private static final SparseArray<String> sProfileNames = new SparseArray<String>();
|
/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()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/ |
D | PerUserUidToSensitivityLiveData.java | 33 import android.util.SparseArray; 51 AsyncTaskLiveData<SparseArray<ArrayMap<String, Integer>>> { 52 private static final SparseArray<PerUserUidToSensitivityLiveData> sInstances = 53 new SparseArray<>(); 110 public SparseArray<ArrayMap<String, Integer>> loadValueInBackground() { in loadValueInBackground() 117 SparseArray<ArrayMap<String, Integer>> uidsPermissions = new SparseArray<>(); in loadValueInBackground()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 23 import android.util.SparseArray; 63 private static final SparseArray<List<Integer>> sEmptyBigrams = new SparseArray<>(); 64 private static final SparseArray<List<Integer>> sStarBigrams = new SparseArray<>(); 65 private static final SparseArray<List<Integer>> sChainBigrams = new SparseArray<>(); 143 final SparseArray<List<Integer>> bigrams) { in addBigrams() 184 final SparseArray<List<Integer>> bigrams) { in checkDictionary() 214 final SparseArray<List<Integer>> bigrams, final int bufferType) { in timeReadingAndCheckDict() 236 final SparseArray<List<Integer>> bigrams, in runReadAndWrite() 358 final SparseArray<List<Integer>> expectedBigrams, in checkWordMap() 407 final List<String> words, final SparseArray<List<Integer>> bigrams, [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateAppOpsBridge.java | 30 import android.util.SparseArray; 136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo() 157 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries() 174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries() 201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates() 239 private void loadAppOpsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadAppOpsStates() 280 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesDeclaredPermission() 293 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesAllowedByAppOps()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | SaProposal.java | 23 import android.util.SparseArray; 85 private static final SparseArray<String> SUPPORTED_ENCRYPTION_ALGO_TO_STR; 88 SUPPORTED_ENCRYPTION_ALGO_TO_STR = new SparseArray<>(); 132 private static final SparseArray<String> SUPPORTED_PRF_TO_STR; 135 SUPPORTED_PRF_TO_STR = new SparseArray<>(); 168 private static final SparseArray<String> SUPPORTED_INTEGRITY_ALGO_TO_STR; 171 SUPPORTED_INTEGRITY_ALGO_TO_STR = new SparseArray<>(); 199 private static final SparseArray<String> SUPPORTED_DH_GROUP_TO_STR; 202 SUPPORTED_DH_GROUP_TO_STR = new SparseArray<>();
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 30 import android.util.SparseArray; 136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo() 157 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries() 174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries() 201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates() 239 private void loadAppOpsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadAppOpsStates() 280 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesDeclaredPermission() 293 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesAllowedByAppOps()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | ConnectivityFragment.java | 40 import android.util.SparseArray; 68 private SparseArray<Network> mNetworks = new SparseArray<Network>(); 113 SparseArray<NetworkByIdCallback> mNetworkCallbacks = new SparseArray<NetworkByIdCallback>(); 250 private static final SparseArray<String> sTransportNames = new SparseArray<String>(); 251 private static final SparseArray<String> sCapabilityNames = new SparseArray<String>(); 285 private static final SparseArray<String> sWifiStaStates = new SparseArray<>(); 294 private static final SparseArray<String> sWifiApStates = new SparseArray<>();
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomWidgetManager.java | 27 import android.util.SparseArray; 59 private final SparseArray<CustomWidgetPlugin> mPlugins; 60 private final SparseArray<WeakReference<Context>> mContexts; 62 private final SparseArray<ComponentName> mWidgetsIdMap; 66 mPlugins = new SparseArray<>(); in CustomWidgetManager() 67 mContexts = new SparseArray<>(); in CustomWidgetManager() 69 mWidgetsIdMap = new SparseArray<>(); in CustomWidgetManager()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | FormattedStringModel.java | 24 import android.util.SparseArray; 48 private final SparseArray<SparseArray<String>> mNumberFormatCache = new SparseArray<>(3); 112 SparseArray<String> valueCache = mNumberFormatCache.get(lengthCacheKey); in getFormattedNumber() 114 valueCache = new SparseArray<>((int) Math.pow(10, length)); in getFormattedNumber()
|