/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 52 void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded() 64 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsStorageResultSparseArray; 91 loaderManager.restartLoader(STORAGE_JOB_ID, Bundle.EMPTY, new AppsStorageResult()); in startLoading() 137 private class AppsStorageResult implements class in StorageSettingsManager 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()
|
D | StorageAsyncLoader.java | 48 extends AsyncLoader<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 63 public SparseArray<AppsStorageResult> loadInBackground() { in loadInBackground() 65 SparseArray<AppsStorageResult> result = new SparseArray<>(); in loadInBackground() 74 private AppsStorageResult getStorageResultForUser(int userId, ArraySet<String> seenPackages) { in getStorageResultForUser() 140 AppsStorageResult result = new AppsStorageResult(gameAppSize, musicAppsSize, photosAppsSize, in getStorageResultForUser() 157 public static class AppsStorageResult { class in StorageAsyncLoader 166 AppsStorageResult(long gamesSize, long musicAppsSize, long photosAppsSize, in AppsStorageResult() method in StorageAsyncLoader.AppsStorageResult
|
D | StorageOtherCategoryPreferenceController.java | 39 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 41 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
|
D | StorageMediaCategoryPreferenceController.java | 44 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 46 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
|
D | StorageSystemCategoryPreferenceController.java | 44 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage() 47 StorageAsyncLoader.AppsStorageResult otherData = result.valueAt(i); in calculateCategoryUsage()
|
D | StorageUsageBasePreferenceController.java | 59 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes); in calculateCategoryUsage() 68 public void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded()
|
D | StorageFileCategoryPreferenceController.java | 57 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 59 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageUsageBasePreferenceControllerTest.java | 62 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage() 86 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setsSummary() 87 StorageAsyncLoader.AppsStorageResult result = in onDataLoaded_setsSummary() 88 new StorageAsyncLoader.AppsStorageResult(0, 0, 0, 0, 0); in onDataLoaded_setsSummary() 103 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setProgressBarPercentage() 104 StorageAsyncLoader.AppsStorageResult result = in onDataLoaded_setProgressBarPercentage() 105 new StorageAsyncLoader.AppsStorageResult(0, 0, 0, 0, 0); in onDataLoaded_setProgressBarPercentage()
|
D | StorageAsyncLoaderTest.java | 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() 227 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree()
|
D | StorageSettingsManagerTest.java | 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()
|