/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | GlobalSearchLoaderTest.java | 55 private GlobalSearchLoader mLoader; field in GlobalSearchLoaderTest 68 mLoader = new GlobalSearchLoader(mActivity, mEnv.providers, mEnv.state, in setUp() 89 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.PICKLES)); in testNotSearchableRoot_beIgnored() 96 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.PICKLES)); in testNotLocalOnlyRoot_beIgnored() 103 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.IMAGE)); in testShowAdvance_recentRoot_beIgnored() 111 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.IMAGE)); in testShowAdvance_imageRoot_beIgnored() 120 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.VIDEO)); in testShowAdvance_videoRoot_beIgnored() 129 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.AUDIO)); in testShowAdvance_audioRoot_beIgnored() 137 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)); in testShowAdvance_downloadRoot_beIgnored() 149 final DirectoryResult result = mLoader.loadInBackground(); in testSearchResult_includeDirectory() [all …]
|
D | RecentsLoaderTests.java | 51 private RecentsLoader mLoader; field in RecentsLoaderTests 63 mLoader = new RecentsLoader(mActivity, mEnv.providers, mEnv.state, in setUp() 69 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.PICKLES)); in testNotLocalOnlyRoot_beIgnored() 74 assertFalse(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_notIgnored() 85 final DirectoryResult result = mLoader.loadInBackground(); in testDocumentsNotIncludeDirectory() 101 final DirectoryResult result = mLoader.loadInBackground(); in testDocumentsNotMovable() 121 mLoader.setObserver(new LockingContentObserver(new ContentLock(), callback)); in testContentsUpdate_observable() 128 mLoader.loadInBackground(); in testContentsUpdate_observable()
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | SettingsPrintServicesLoader.java | 36 private PrintServicesLoader mLoader; field in SettingsPrintServicesLoader 42 mLoader = new PrintServicesLoader(printManager, context, selectionFlags) { in SettingsPrintServicesLoader() 55 mLoader.forceLoad(); in onForceLoad() 60 mLoader.startLoading(); in onStartLoading() 65 mLoader.stopLoading(); in onStopLoading() 70 return mLoader.cancelLoad(); in onCancelLoad() 75 mLoader.abandon(); in onAbandon() 80 mLoader.reset(); in onReset()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/ |
D | SettingsPrintServicesLoader.java | 36 private PrintServicesLoader mLoader; field in SettingsPrintServicesLoader 42 mLoader = new PrintServicesLoader(printManager, context, selectionFlags) { in SettingsPrintServicesLoader() 55 mLoader.forceLoad(); in onForceLoad() 60 mLoader.startLoading(); in onStartLoading() 65 mLoader.stopLoading(); in onStopLoading() 70 return mLoader.cancelLoad(); in onCancelLoad() 75 mLoader.abandon(); in onAbandon() 80 mLoader.reset(); in onReset()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoaderTest.java | 70 private AppsAsyncLoader mLoader; field in AppsAsyncLoaderTest 103 mLoader = in setUp() 112 mLoader.mClock = mClock; in setUp() 223 mLoader.mFilter = AppsAsyncLoader.FILTER_USAGE_STATS; in test_multipleApps_processCorrectly() 224 mLoader.mFilter.init(); in test_multipleApps_processCorrectly() 251 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_multipleApps_processCorrectly() 261 mLoader.mFilter = AppsAsyncLoader.FILTER_NO_THRESHOLD; in test_noThresholdFilter_ignoresUsageForFiltering() 262 mLoader.mFilter.init(); in test_noThresholdFilter_ignoresUsageForFiltering() 289 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_noThresholdFilter_ignoresUsageForFiltering() 308 assertThat(mLoader.getGreaterUsageStats(PACKAGE_NAME, null, secondary)) in test_getGreaterUsageStats_primaryIsNull() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/ |
D | SuggestionsPreferenceControllerTest.java | 62 private Loader<List<Suggestion>> mLoader; field in SuggestionsPreferenceControllerTest 162 mController.onLoadFinished(mLoader, Collections.singletonList(SUGGESTION_1)); in onLoadFinished_groupContainsSuggestionPreference() 171 mController.onLoadFinished(mLoader, Collections.singletonList(SUGGESTION_1)); in onLoadFinished_newSuggestion_addsToGroup() 174 mController.onLoadFinished(mLoader, Arrays.asList(SUGGESTION_1, SUGGESTION_2)); in onLoadFinished_newSuggestion_addsToGroup() 181 mController.onLoadFinished(mLoader, Arrays.asList(SUGGESTION_1, SUGGESTION_2)); in onLoadFinished_removedSuggestion_removesFromGroup() 184 mController.onLoadFinished(mLoader, Collections.singletonList(SUGGESTION_2)); in onLoadFinished_removedSuggestion_removesFromGroup() 193 mController.onLoadFinished(mLoader, Collections.singletonList(SUGGESTION_1)); in onLoadFinished_noSuggestions_hidesGroup() 196 mController.onLoadFinished(mLoader, Collections.emptyList()); in onLoadFinished_noSuggestions_hidesGroup() 227 mController.onLoadFinished(mLoader, Arrays.asList(SUGGESTION_1, SUGGESTION_2)); in dismissSuggestion_removesSuggestion() 240 mController.onLoadFinished(mLoader, Collections.singletonList(SUGGESTION_1)); in dismissSuggestion_lastSuggestion_hidesGroup() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 75 private StorageAsyncLoader mLoader; field in StorageAsyncLoaderTest 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 …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 73 private StorageAsyncLoader mLoader; field in StorageAsyncLoaderTest 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/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | DocumentLoaderTest.java | 58 private DataSupplier mLoader; field in DocumentLoaderTest 72 mLoader = new RuntimeDataSupplier(mContext, mLoaderManager); in setUp() 102 mLoader.loadDocInfo(validUri, consumer); in testLoadsDocument() 123 mLoader.loadDocInfo(invalidUri, consumer); in testInvalidInput() 139 mLoader.loadDocInfo(invalidUri, consumer); in testNonContentUri() 155 mLoader.loadDirCount(info, consumer); in testDir_loadNumberOfChildren() 171 mLoader.loadDirCount(info, consumer); in testDir_notADirectory() 183 mLoader.getDocumentMetadata(uri, consumer); in testLoadMetadata() 200 mLoader.getDocumentMetadata(uri, consumer); in testLoadMetadata_Unsupported()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthByWeekFragment.java | 88 private CursorLoader mLoader; field in MonthByWeekFragment 121 if (!mShouldLoad || mLoader == null) { 130 mLoader.setUri(mEventUri); 131 mLoader.startLoading(); 132 mLoader.onContentChanged(); 144 mLoader = (CursorLoader) getLoaderManager().initLoader(0, null, 206 if (mLoader != null) { in stopLoader() 207 mLoader.stopLoading(); in stopLoader() 297 mLoader = (CursorLoader) getLoaderManager().initLoader(0, null, this); in onActivityCreated() 356 if (prevHideDeclined != mHideDeclined && mLoader != null) { in doResumeUpdates() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 129 private CursorLoader mLoader; field in CalendarAppWidgetService.CalendarFactory 141 if (mLoader != null) { 142 mLoader.forceLoad(); 153 if (mLoader != null && version >= currentVersion.get()) { in createUpdateLoaderRunnable() 155 mLoader.setUri(uri); in createUpdateLoaderRunnable() 156 mLoader.setSelection(selection); in createUpdateLoaderRunnable() 160 mLoader.forceLoad(); in createUpdateLoaderRunnable() 195 if (mLoader != null) { 196 mLoader.reset(); 377 mLoader = new CursorLoader(mContext, uri, EVENT_PROJECTION, selection, null, [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | IconLoaderTest.java | 30 protected IconLoader mLoader; field in IconLoaderTest 34 mLoader = create(); in setUp() 40 assertNull(mLoader.getIcon(null)); in testGetIcon() 41 assertNull(mLoader.getIcon("")); in testGetIcon() 42 assertNull(mLoader.getIcon("0")); in testGetIcon() 43 assertNotNull(mLoader.getIcon(String.valueOf(android.R.drawable.star_on))); in testGetIcon()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | TaskAdapter.java | 50 private final TaskListLoader mLoader; field in TaskAdapter 56 mLoader = loader; in TaskAdapter() 133 List<Task> tasks = mLoader.getCurrentTaskList(); in onBindViewHolderInternal() 141 mLoader.loadTaskIconAndLabel(task, () -> { in onBindViewHolderInternal() 148 mLoader.loadTaskThumbnail(task, () -> { in onBindViewHolderInternal() 175 itemCount += Math.min(mLoader.getCurrentTaskList().size(), MAX_TASKS_TO_DISPLAY); in getItemCount()
|
D | TaskActionController.java | 38 private final TaskListLoader mLoader; field in TaskActionController 44 mLoader = loader; in TaskActionController() 96 mLoader.removeTask(task); in removeTask() 107 mLoader.clearAllTasks(); in clearAllTasks()
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | BitmapJobDrawable.java | 38 private ThumbnailLoader mLoader; field in BitmapJobDrawable 51 if (mLoader != null) { in setMediaItem() 52 mLoader.cancelLoad(); in setMediaItem() 61 mLoader = new ThumbnailLoader(this); in setMediaItem() 62 mLoader.startLoad(); in setMediaItem() 70 Bitmap bitmap = mLoader.getBitmap(); in run()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | InspectorController.java | 51 private final DataSupplier mLoader; field in InspectorController 97 mLoader = loader; in InspectorController() 147 mLoader.reset(); in reset() 151 mLoader.loadDocInfo(uri, this::updateView); in loadInfo() 165 mLoader.loadDirCount(docInfo, this::displayChildCount); in updateView() 186 mLoader.getDocumentMetadata( in updateView()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppPrefLoaderTest.java | 48 private AppPrefLoader mLoader; field in AppPrefLoaderTest 56 mLoader = new AppPrefLoader(RuntimeEnvironment.application, pkgs, mPackageManager); in setUp() 65 assertThat(mLoader.loadInBackground()).isEmpty(); in loadInBackground_packageNotFound_shouldReturnEmptySet() 77 Preference preference = mLoader.loadInBackground().valueAt(0); in loadInBackground_shouldReturnPreference()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppObserver.java | 55 BluetoothMapAccountLoader mLoader; field in BluetoothMapAppObserver 63 mLoader = new BluetoothMapAccountLoader(mContext); in BluetoothMapAppObserver() 64 mFullList = mLoader.parsePackages(false); /* Get the current list of apps */ in BluetoothMapAppObserver() 100 ArrayList<BluetoothMapAccountItem> newAccountList = mLoader.parseAccounts(app); in handleAccountChanges() 306 mLoader.createAppItem(resolveInfo, false, msgType); in createReceiver() 311 mLoader.parseAccounts(app); in createReceiver()
|
D | BluetoothMapSettings.java | 35 BluetoothMapAccountLoader mLoader = new BluetoothMapAccountLoader(this); field in BluetoothMapSettings 44 mGroups = mLoader.parsePackages(true); in onCreate() 53 mLoader.getAccountsEnabledCount()); in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsCategory.java | 89 final AppListLoader mLoader; field in AppOpsCategory.PackageIntentReceiver 92 mLoader = loader; in PackageIntentReceiver() 97 mLoader.getContext().registerReceiver(this, filter); in PackageIntentReceiver() 102 mLoader.getContext().registerReceiver(this, sdFilter); in PackageIntentReceiver() 107 mLoader.onContentChanged(); in onReceive()
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsCategory.java | 89 final AppListLoader mLoader; field in AppOpsCategory.PackageIntentReceiver 92 mLoader = loader; in PackageIntentReceiver() 97 mLoader.getContext().registerReceiver(this, filter); in PackageIntentReceiver() 102 mLoader.getContext().registerReceiver(this, sdFilter); in PackageIntentReceiver() 107 mLoader.onContentChanged(); in onReceive()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 115 private ImageLoader mLoader; field in GridViewSpecial 166 mLoader = loader; in setLoader() 238 mAllImages, mLoader, mDrawAdapter, mSpec, mColumns, width, in onLayout() 448 Assert(mLoader != null); in start() 729 private final ImageLoader mLoader; field in ImageBlockManager 752 mLoader = loader; in ImageBlockManager() 792 int[] tags = mLoader.clearQueue(); in clearLoaderQueue() 1054 mLoader.getBitmap(image, cb, pos); in loadImages() 1163 if (mLoader.cancel(mImageList.getImageAt(pos))) { in cancelAllRequests()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | UserDictionaryCursorLoaderTest.java | 40 private UserDictionaryCursorLoader mLoader; field in UserDictionaryCursorLoaderTest 46 mLoader = new UserDictionaryCursorLoader(RuntimeEnvironment.application, "" /* locale */); in setUp() 52 final Cursor cursor = mLoader.loadInBackground(); in testLoad_shouldRemoveDuplicate()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaLibrary.java | 38 private final TmaLoader mLoader; field in TmaLibrary 48 mLoader = loader; in TmaLibrary() 78 result = mLoader.loadAssetFile(filePath); in loadAssetFile()
|
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
D | LensPickerAdapter.java | 49 private LoadTask mLoader; field in LensPickerAdapter 63 mLoader = new LoadTask(); in LensPickerAdapter() 64 mLoader.execute(null, null, null); in LensPickerAdapter()
|