/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
D | StorageAsyncLoader.java | 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() 91 private AppsStorageResult getStorageResultForUser(int userId) { in getStorageResultForUser() 95 AppsStorageResult result = new AppsStorageResult(); in getStorageResultForUser() 164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult() 167 public static class AppsStorageResult { class in StorageAsyncLoader 182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
|
D | CachedStorageValuesHelper.java | 81 public SparseArray<StorageAsyncLoader.AppsStorageResult> getCachedAppsStorageResult() { in getCachedAppsStorageResult() 120 final StorageAsyncLoader.AppsStorageResult result = in getCachedAppsStorageResult() 121 new StorageAsyncLoader.AppsStorageResult(); in getCachedAppsStorageResult() 129 final SparseArray<StorageAsyncLoader.AppsStorageResult> resultArray = new SparseArray<>(); in getCachedAppsStorageResult() 135 PrivateStorageInfo storageInfo, StorageAsyncLoader.AppsStorageResult result) { in cacheResult()
|
D | UserProfileController.java | 97 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() 101 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoader.java | 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() 91 private AppsStorageResult getStorageResultForUser(int userId) { in getStorageResultForUser() 95 AppsStorageResult result = new AppsStorageResult(); in getStorageResultForUser() 164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult() 167 public static class AppsStorageResult { class in StorageAsyncLoader 182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
|
D | StorageItemPreferenceController.java | 254 public void onLoadFinished(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onLoadFinished() 256 final StorageAsyncLoader.AppsStorageResult data = result.get(userId); in onLoadFinished() 257 final StorageAsyncLoader.AppsStorageResult profileData = result.get( in onLoadFinished() 272 final StorageAsyncLoader.AppsStorageResult otherData = result.valueAt(i); in onLoadFinished() 326 private long getPhotosSize(StorageAsyncLoader.AppsStorageResult data, in getPhotosSize() 327 StorageAsyncLoader.AppsStorageResult profileData) { in getPhotosSize() 358 private long getAudioSize(StorageAsyncLoader.AppsStorageResult data, in getAudioSize() 359 StorageAsyncLoader.AppsStorageResult profileData) { in getAudioSize() 385 private long getAppsSize(StorageAsyncLoader.AppsStorageResult data, in getAppsSize() 386 StorageAsyncLoader.AppsStorageResult profileData) { in getAppsSize() [all …]
|
D | CachedStorageValuesHelper.java | 81 public SparseArray<StorageAsyncLoader.AppsStorageResult> getCachedAppsStorageResult() { in getCachedAppsStorageResult() 120 final StorageAsyncLoader.AppsStorageResult result = in getCachedAppsStorageResult() 121 new StorageAsyncLoader.AppsStorageResult(); in getCachedAppsStorageResult() 129 final SparseArray<StorageAsyncLoader.AppsStorageResult> resultArray = new SparseArray<>(); in getCachedAppsStorageResult() 135 PrivateStorageInfo storageInfo, StorageAsyncLoader.AppsStorageResult result) { in cacheResult()
|
/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()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 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() 218 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageDashboardFragment.java | 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() 302 SparseArray<StorageAsyncLoader.AppsStorageResult> loaderResult = in initializeCachedValues()
|
D | StorageProfileFragment.java | 36 import com.android.car.developeroptions.deviceinfo.storage.StorageAsyncLoader.AppsStorageResult; 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/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult; 219 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() 259 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 269 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 270 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 277 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset() 296 public SparseArray<StorageAsyncLoader.AppsStorageResult> getAppsStorageResult() { in getAppsStorageResult() 301 public void setAppsStorageResult(SparseArray<StorageAsyncLoader.AppsStorageResult> info) { in setAppsStorageResult() 308 SparseArray<StorageAsyncLoader.AppsStorageResult> loaderResult = in initializeCachedValues()
|
D | StorageProfileFragment.java | 36 import com.android.settings.deviceinfo.storage.StorageAsyncLoader.AppsStorageResult; 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/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | StorageProfileFragmentTest.java | 41 private ArgumentCaptor<SparseArray<StorageAsyncLoader.AppsStorageResult>> mCaptor; 47 StorageAsyncLoader.AppsStorageResult result = new StorageAsyncLoader.AppsStorageResult(); in verifyAppSizesAreNotZeroedOut() 53 SparseArray<StorageAsyncLoader.AppsStorageResult> resultsArray = new SparseArray<>(); in verifyAppSizesAreNotZeroedOut() 62 StorageAsyncLoader.AppsStorageResult extractedResult = mCaptor.getValue().get(0); in verifyAppSizesAreNotZeroedOut()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelperTest.java | 128 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = in getCachedAppsStorageResult_cachedValuesAreLoaded() 131 StorageAsyncLoader.AppsStorageResult primaryResult = result.get(0); in getCachedAppsStorageResult_cachedValuesAreLoaded() 193 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = in getCachedAppsStorageResult_nullIfDataIsStale() 246 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = in getCachedAppsStorageResult_nullIfWrongUser() 259 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = in getCachedAppsStorageResult_nullIfEmpty() 269 final StorageAsyncLoader.AppsStorageResult result = in cacheResult_succeeds() 270 new StorageAsyncLoader.AppsStorageResult(); in cacheResult_succeeds()
|
D | UserProfileControllerTest.java | 105 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = new SparseArray<>(); in acceptingResultUpdatesPreferenceSize() 106 final StorageAsyncLoader.AppsStorageResult userResult = in acceptingResultUpdatesPreferenceSize() 107 new StorageAsyncLoader.AppsStorageResult(); in acceptingResultUpdatesPreferenceSize()
|
D | SecondaryUserControllerTest.java | 178 final StorageAsyncLoader.AppsStorageResult userResult = in controllerUpdatesPreferenceOnAcceptingResult() 179 new StorageAsyncLoader.AppsStorageResult(); in controllerUpdatesPreferenceOnAcceptingResult() 180 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = new SparseArray<>(); in controllerUpdatesPreferenceOnAcceptingResult()
|