/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; 138 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 142 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 144 return new StorageAsyncLoader(mContext, new StorageStatsSource(mContext)); 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 | 49 public class StorageAsyncLoader class 50 extends AsyncLoader<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 51 private static final Logger LOG = new Logger(StorageAsyncLoader.class); 57 public StorageAsyncLoader(Context context, StorageStatsSource source) { in StorageAsyncLoader() method in StorageAsyncLoader 62 StorageAsyncLoader(Context context, StorageStatsSource source, in StorageAsyncLoader() method in StorageAsyncLoader
|
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 | 60 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes); in calculateCategoryUsage() 69 public void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded()
|
D | StorageFileCategoryPreferenceController.java | 66 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 68 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageCategoryFragment.java | 43 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 72 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>> { 85 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult; 270 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateNonCurrentUserControllers() 272 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateNonCurrentUserControllers() 273 StorageAsyncLoader.ResultHandler userController = in updateNonCurrentUserControllers() 274 (StorageAsyncLoader.ResultHandler) controller; in updateNonCurrentUserControllers() 281 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader() 284 return new StorageAsyncLoader(context, mUserManager, in onCreateLoader() 291 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished() [all …]
|
D | StorageDashboardFragment.java | 49 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 85 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>> { 99 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult; 439 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateNonCurrentUserControllers() 441 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateNonCurrentUserControllers() 442 StorageAsyncLoader.ResultHandler userController = in updateNonCurrentUserControllers() 443 (StorageAsyncLoader.ResultHandler) controller; in updateNonCurrentUserControllers() 478 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader() 481 return new StorageAsyncLoader(context, mUserManager, in onCreateLoader() 488 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 78 private StorageAsyncLoader mLoader; 86 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp() 105 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 116 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 129 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 140 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 156 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 169 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 185 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() 194 SparseArray<StorageAsyncLoader.StorageResult> result = mLoader.loadInBackground(); in testCacheOveragesAreCountedAsFree() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageUsageBasePreferenceControllerTest.java | 66 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage() 94 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setsSummary() 95 StorageAsyncLoader.AppsStorageResult result = in onDataLoaded_setsSummary() 96 new StorageAsyncLoader.AppsStorageResult(0, 0, 0, 0, 0); in onDataLoaded_setsSummary() 111 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setProgressBarPercentage() 112 StorageAsyncLoader.AppsStorageResult result = in onDataLoaded_setProgressBarPercentage() 113 new StorageAsyncLoader.AppsStorageResult(0, 0, 0, 0, 0); in onDataLoaded_setProgressBarPercentage()
|
D | StorageAsyncLoaderTest.java | 66 private StorageAsyncLoader mLoader; 79 mLoader = new StorageAsyncLoader(mContext, mMockSource, mMockPackageManager, in setUp() 99 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 114 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 130 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 145 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 165 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 181 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 195 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 212 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() [all …]
|
D | StorageSettingsManagerTest.java | 56 .LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>>> mAppsStorageResult; 88 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled() 106 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled() 127 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_storageResultNotLoaded_noListenersCalled() 147 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | NonCurrentUserController.java | 44 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler, 184 public void handleResult(SparseArray<StorageAsyncLoader.StorageResult> stats) { in handleResult() 189 final StorageAsyncLoader.StorageResult result = stats.get(getUser().id); in handleResult()
|
D | StorageAsyncLoader.java | 55 public class StorageAsyncLoader class 56 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.StorageResult>> { 65 public StorageAsyncLoader(Context context, UserManager userManager, in StorageAsyncLoader() method in StorageAsyncLoader
|
D | StorageItemPreferenceController.java | 443 public void onLoadFinished(@Nullable SparseArray<StorageAsyncLoader.StorageResult> result, in onLoadFinished() 482 SparseArray<StorageAsyncLoader.StorageResult> result, int userId) { in getSizeInfo() 486 StorageAsyncLoader.StorageResult data = result.get(userId); in getSizeInfo() 501 final StorageAsyncLoader.StorageResult otherData = result.valueAt(i); in getSizeInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | NonCurrentUserControllerTest.java | 193 final StorageAsyncLoader.StorageResult userResult = in handleResult_noStatsResult_shouldShowCachedData() 194 new StorageAsyncLoader.StorageResult(); in handleResult_noStatsResult_shouldShowCachedData() 195 final SparseArray<StorageAsyncLoader.StorageResult> result = new SparseArray<>(); in handleResult_noStatsResult_shouldShowCachedData()
|
D | StorageItemPreferenceControllerTest.java | 379 final StorageAsyncLoader.StorageResult result = new StorageAsyncLoader.StorageResult(); in testMeasurementCompletedUpdatesPreferences() 390 final SparseArray<StorageAsyncLoader.StorageResult> results = new SparseArray<>(); in testMeasurementCompletedUpdatesPreferences()
|