Home
last modified time | relevance | path

Searched refs:StorageResult (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoader.java54 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.StorageResult>> {
73 public SparseArray<StorageResult> loadInBackground() { in loadInBackground()
77 private SparseArray<StorageResult> getStorageResultsForUsers() { in getStorageResultsForUsers()
79 final SparseArray<StorageResult> results = new SparseArray<>(); in getStorageResultsForUsers()
87 final StorageResult result = getAppsAndGamesSize(info.id); in getStorageResultsForUsers()
140 private StorageResult getAppsAndGamesSize(int userId) { in getAppsAndGamesSize()
144 final StorageResult result = new StorageResult(); in getAppsAndGamesSize()
210 protected void onDiscardResult(SparseArray<StorageResult> result) { in onDiscardResult()
214 public static class StorageResult { class in StorageAsyncLoader
237 void handleResult(SparseArray<StorageResult> result); in handleResult()
DSecondaryUserController.java185 public void handleResult(SparseArray<StorageAsyncLoader.StorageResult> stats) { in handleResult()
186 final StorageAsyncLoader.StorageResult result = stats.get(getUser().id); in handleResult()
DStorageItemPreferenceController.java364 public void onLoadFinished(SparseArray<StorageAsyncLoader.StorageResult> result, int userId) { in onLoadFinished()
365 final StorageAsyncLoader.StorageResult data = result.get(userId); in onLoadFinished()
380 final StorageAsyncLoader.StorageResult otherData = result.valueAt(i); in onLoadFinished()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java104 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/apps/Settings/src/com/android/settings/deviceinfo/
DStorageCategoryFragment.java73 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()
DStorageDashboardFragment.java88 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java204 final StorageAsyncLoader.StorageResult userResult = in controllerUpdatesPreferenceOnAcceptingResult()
205 new StorageAsyncLoader.StorageResult(); in controllerUpdatesPreferenceOnAcceptingResult()
206 final SparseArray<StorageAsyncLoader.StorageResult> result = new SparseArray<>(); in controllerUpdatesPreferenceOnAcceptingResult()
DStorageItemPreferenceControllerTest.java334 final StorageAsyncLoader.StorageResult result = new StorageAsyncLoader.StorageResult(); in testMeasurementCompletedUpdatesPreferences()
343 final SparseArray<StorageAsyncLoader.StorageResult> results = new SparseArray<>(); in testMeasurementCompletedUpdatesPreferences()