Home
last modified time | relevance | path

Searched refs:StorageAsyncLoader (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageCategoryFragment.java41 import com.android.settings.deviceinfo.storage.StorageAsyncLoader;
73 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>>,
87 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult;
248 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateSecondaryUserControllers()
251 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateSecondaryUserControllers()
252 StorageAsyncLoader.ResultHandler userController = in updateSecondaryUserControllers()
253 (StorageAsyncLoader.ResultHandler) controller; in updateSecondaryUserControllers()
260 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader()
263 return new StorageAsyncLoader(context, mUserManager, in onCreateLoader()
270 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished()
[all …]
DStorageDashboardFragment.java49 import com.android.settings.deviceinfo.storage.StorageAsyncLoader;
88 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.StorageResult>>,
103 private SparseArray<StorageAsyncLoader.StorageResult> mAppsResult;
419 SparseArray<StorageAsyncLoader.StorageResult> stats) { in updateSecondaryUserControllers()
422 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateSecondaryUserControllers()
423 StorageAsyncLoader.ResultHandler userController = in updateSecondaryUserControllers()
424 (StorageAsyncLoader.ResultHandler) controller; in updateSecondaryUserControllers()
460 public Loader<SparseArray<StorageAsyncLoader.StorageResult>> onCreateLoader(int id, in onCreateLoader()
463 return new StorageAsyncLoader(context, mUserManager, in onCreateLoader()
470 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.StorageResult>> loader, in onLoadFinished()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java76 private StorageAsyncLoader mLoader;
83 mLoader = new StorageAsyncLoader(mContext, mSource); in setUp()
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()
[all …]
DStorageUsageBasePreferenceControllerTest.java62 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()
DStorageSettingsManagerTest.java56 .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/Car/Settings/src/com/android/car/settings/storage/
DStorageSettingsManager.java52 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()
DStorageAsyncLoader.java47 public class StorageAsyncLoader class
48 extends AsyncLoader<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
49 private static final Logger LOG = new Logger(StorageAsyncLoader.class);
55 public StorageAsyncLoader(Context context, StorageStatsSource source) { in StorageAsyncLoader() method in StorageAsyncLoader
DStorageOtherCategoryPreferenceController.java39 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage()
41 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
DStorageMediaCategoryPreferenceController.java44 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage()
46 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
DStorageSystemCategoryPreferenceController.java44 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage()
47 StorageAsyncLoader.AppsStorageResult otherData = result.valueAt(i); in calculateCategoryUsage()
DStorageUsageBasePreferenceController.java59 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes); in calculateCategoryUsage()
68 public void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded()
DStorageFileCategoryPreferenceController.java57 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage()
59 StorageAsyncLoader.AppsStorageResult data = result.get(UserHandle.myUserId()); in calculateCategoryUsage()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java77 private StorageAsyncLoader mLoader;
85 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp()
104 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()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DSecondaryUserController.java44 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler,
185 public void handleResult(SparseArray<StorageAsyncLoader.StorageResult> stats) { in handleResult()
186 final StorageAsyncLoader.StorageResult result = stats.get(getUser().id); in handleResult()
DStorageAsyncLoader.java53 public class StorageAsyncLoader class
54 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.StorageResult>> {
63 public StorageAsyncLoader(Context context, UserManager userManager, in StorageAsyncLoader() method in StorageAsyncLoader
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/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()