/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageDashboardFragment.java | 43 import com.android.car.developeroptions.deviceinfo.storage.StorageAsyncLoader; 64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult; 212 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() 215 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateSecondaryUserControllers() 216 StorageAsyncLoader.ResultHandler userController = in updateSecondaryUserControllers() 217 (StorageAsyncLoader.ResultHandler) controller; in updateSecondaryUserControllers() 253 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 256 return new StorageAsyncLoader(context, context.getSystemService(UserManager.class), in onCreateLoader() 263 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() [all …]
|
D | StorageProfileFragment.java | 35 import com.android.car.developeroptions.deviceinfo.storage.StorageAsyncLoader; 36 import com.android.car.developeroptions.deviceinfo.storage.StorageAsyncLoader.AppsStorageResult; 117 return new StorageAsyncLoader(context, in onCreateLoader()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageDashboardFragment.java | 43 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult; 212 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers() 215 if (controller instanceof StorageAsyncLoader.ResultHandler) { in updateSecondaryUserControllers() 216 StorageAsyncLoader.ResultHandler userController = in updateSecondaryUserControllers() 217 (StorageAsyncLoader.ResultHandler) controller; in updateSecondaryUserControllers() 253 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 256 return new StorageAsyncLoader(context, context.getSystemService(UserManager.class), in onCreateLoader() 263 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() [all …]
|
D | StorageProfileFragment.java | 35 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 36 import com.android.settings.deviceinfo.storage.StorageAsyncLoader.AppsStorageResult; 117 return new StorageAsyncLoader(context, in onCreateLoader()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 75 private StorageAsyncLoader mLoader; 82 mLoader = new StorageAsyncLoader(mContext, mCarUserManagerHelper, mSource); in setUp() 103 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 114 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 127 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 138 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 153 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 166 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 176 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 192 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() [all …]
|
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 | 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 | 73 private StorageAsyncLoader mLoader; 80 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp() 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() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 53 void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded() 65 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsStorageResultSparseArray; 139 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 143 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader() 145 return new StorageAsyncLoader(mContext, new CarUserManagerHelper(mContext), in onCreateLoader() 151 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished() 152 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished() 159 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
|
D | StorageAsyncLoader.java | 47 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, CarUserManagerHelper carUserManagerHelper, in StorageAsyncLoader() method in StorageAsyncLoader
|
D | StorageOtherCategoryPreferenceController.java | 38 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 40 StorageAsyncLoader.AppsStorageResult data = result.get( in calculateCategoryUsage()
|
D | StorageMediaCategoryPreferenceController.java | 43 protected long calculateCategoryUsage(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in calculateCategoryUsage() 45 StorageAsyncLoader.AppsStorageResult data = result.get( in calculateCategoryUsage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | StorageProfileFragmentTest.java | 26 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 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()
|
D | StorageDashboardFragmentTest.java | 37 import com.android.settings.deviceinfo.storage.StorageAsyncLoader; 80 SparseArray<StorageAsyncLoader.AppsStorageResult> result = new SparseArray<>(); in test_cacheProviderProvidesValuesIfBothCached() 106 SparseArray<StorageAsyncLoader.AppsStorageResult> result = new SparseArray<>(); in test_cacheProviderDoesntProvideValuesIfVolumeInfoMissing()
|
/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 | 161 final StorageAsyncLoader.AppsStorageResult userResult = in controllerUpdatesPreferenceOnAcceptingResult() 162 new StorageAsyncLoader.AppsStorageResult(); in controllerUpdatesPreferenceOnAcceptingResult() 163 final SparseArray<StorageAsyncLoader.AppsStorageResult> result = new SparseArray<>(); in controllerUpdatesPreferenceOnAcceptingResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
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 | 43 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler, 96 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() 100 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
|
D | SecondaryUserController.java | 44 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler, 166 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() 168 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
|
D | StorageAsyncLoader.java | 47 public class StorageAsyncLoader class 48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 57 public StorageAsyncLoader(Context context, UserManager userManager, in StorageAsyncLoader() method in StorageAsyncLoader
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
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 | 43 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler, 96 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() 100 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
|
D | SecondaryUserController.java | 44 PreferenceControllerMixin, StorageAsyncLoader.ResultHandler, 166 public void handleResult(SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in handleResult() 168 StorageAsyncLoader.AppsStorageResult result = stats.get(userId); in handleResult()
|
D | StorageAsyncLoader.java | 47 public class StorageAsyncLoader class 48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> { 57 public StorageAsyncLoader(Context context, UserManager userManager, in StorageAsyncLoader() method in StorageAsyncLoader
|