Home
last modified time | relevance | path

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

/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.java49 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
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.java60 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes); in calculateCategoryUsage()
69 public void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded()
DStorageFileCategoryPreferenceController.java66 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/
DStorageCategoryFragment.java43 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 …]
DStorageDashboardFragment.java49 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/
DStorageAsyncLoaderTest.java78 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/
DStorageUsageBasePreferenceControllerTest.java66 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()
DStorageAsyncLoaderTest.java66 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 …]
DStorageSettingsManagerTest.java56 .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/
DNonCurrentUserController.java44 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler,
184 public void handleResult(SparseArray<StorageAsyncLoader.StorageResult> stats) { in handleResult()
189 final StorageAsyncLoader.StorageResult result = stats.get(getUser().id); in handleResult()
DStorageAsyncLoader.java55 public class StorageAsyncLoader class
56 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.StorageResult>> {
65 public StorageAsyncLoader(Context context, UserManager userManager, in StorageAsyncLoader() method in StorageAsyncLoader
DStorageItemPreferenceController.java443 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/
DNonCurrentUserControllerTest.java193 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()
DStorageItemPreferenceControllerTest.java379 final StorageAsyncLoader.StorageResult result = new StorageAsyncLoader.StorageResult(); in testMeasurementCompletedUpdatesPreferences()
390 final SparseArray<StorageAsyncLoader.StorageResult> results = new SparseArray<>(); in testMeasurementCompletedUpdatesPreferences()