/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/ |
D | InstalledAppResultLoaderTest.java | 71 private InstalledAppResultLoader mLoader; field in InstalledAppResultLoaderTest 106 mLoader = new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_noMatchingQuery_shouldReturnEmptyResult() 109 assertThat(mLoader.loadInBackground()).isEmpty(); in query_noMatchingQuery_shouldReturnEmptyResult() 116 mLoader = spy(new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_matchingQuery_shouldReturnNonSystemApps() 118 when(mLoader.getContext()).thenReturn(mContext); in query_matchingQuery_shouldReturnNonSystemApps() 122 assertThat(mLoader.loadInBackground().size()).isEqualTo(3); in query_matchingQuery_shouldReturnNonSystemApps() 135 mLoader = spy(new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_matchingQuery_shouldReturnSystemAppUpdates() 137 when(mLoader.getContext()).thenReturn(mContext); in query_matchingQuery_shouldReturnSystemAppUpdates() 139 assertThat(mLoader.loadInBackground().size()).isEqualTo(1); in query_matchingQuery_shouldReturnSystemAppUpdates() 158 mLoader = new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_matchingQuery_shouldReturnSystemAppIfLaunchable() [all …]
|
D | SavedQueryLoaderTest.java | 46 private SavedQueryLoader mLoader; field in SavedQueryLoaderTest 52 mLoader = new SavedQueryLoader(mContext); in setUp() 63 final List<? extends SearchResult> results = mLoader.loadInBackground(); in loadInBackground_shouldReturnSavedQueries()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 72 private StorageAsyncLoader mLoader; field in StorageAsyncLoaderTest 79 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp() 94 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps() 105 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered() 118 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered() 129 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored() 145 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers() 158 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted() 168 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered() 184 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash() [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(); 379 mLoader = new CursorLoader(mContext, uri, EVENT_PROJECTION, selection, null, [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoaderTest.java | 70 private AppsAsyncLoader mLoader; field in AppsAsyncLoaderTest 101 mLoader = in setUp() 110 mLoader.mClock = mClock; in setUp() 221 mLoader.mFilter = AppsAsyncLoader.FILTER_USAGE_STATS; in test_multipleApps_processCorrectly() 222 mLoader.mFilter.init(); in test_multipleApps_processCorrectly() 249 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_multipleApps_processCorrectly() 259 mLoader.mFilter = AppsAsyncLoader.FILTER_NO_THRESHOLD; in test_noThresholdFilter_ignoresUsageForFiltering() 260 mLoader.mFilter.init(); in test_noThresholdFilter_ignoresUsageForFiltering() 287 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_noThresholdFilter_ignoresUsageForFiltering() 306 assertThat(mLoader.getGreaterUsageStats(PACKAGE_NAME, null, secondary)) in test_getGreaterUsageStats_primaryIsNull() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthByWeekFragment.java | 91 private CursorLoader mLoader; field in MonthByWeekFragment 138 if (!mShouldLoad || mLoader == null) { 147 mLoader.setUri(mEventUri); 148 mLoader.startLoading(); 149 mLoader.onContentChanged(); 161 mLoader = (CursorLoader) getLoaderManager().initLoader(0, null, 223 if (mLoader != null) { in stopLoader() 224 mLoader.stopLoading(); in stopLoader() 314 mLoader = (CursorLoader) getLoaderManager().initLoader(0, null, this); in onActivityCreated() 373 if (prevHideDeclined != mHideDeclined && mLoader != null) { in doResumeUpdates() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | WallpaperChooserDialogFragment.java | 62 private WallpaperLoader mLoader; field in WallpaperChooserDialogFragment 87 if (mLoader != null && mLoader.getStatus() != WallpaperLoader.Status.FINISHED) { in cancelLoader() 88 mLoader.cancel(true); in cancelLoader() 89 mLoader = null; in cancelLoader() 182 if (mLoader != null && mLoader.getStatus() != WallpaperLoader.Status.FINISHED) { in onItemSelected() 183 mLoader.cancel(); in onItemSelected() 185 mLoader = (WallpaperLoader) new WallpaperLoader().execute(position); in onItemSelected() 304 mLoader = null; in onPostExecute()
|
/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()
|
D | PackageIconLoaderTest.java | 62 assertNull(mLoader.getIcon(uri)); in testGetIconCrashingProvider()
|
/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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppObserver.java | 54 BluetoothMapAccountLoader mLoader; field in BluetoothMapAppObserver 62 mLoader = new BluetoothMapAccountLoader(mContext); in BluetoothMapAppObserver() 63 mFullList = mLoader.parsePackages(false); /* Get the current list of apps */ in BluetoothMapAppObserver() 89 ArrayList<BluetoothMapAccountItem> newAccountList = mLoader.parseAccounts(app); in handleAccountChanges() 261 BluetoothMapAccountItem app = mLoader.createAppItem(resolveInfo, in createReceiver() 267 mLoader.parseAccounts(app); in createReceiver()
|
D | BluetoothMapSettings.java | 37 BluetoothMapAccountLoader mLoader = new BluetoothMapAccountLoader(this); field in BluetoothMapSettings 46 mGroups = mLoader.parsePackages(true); in onCreate() 54 listView, mGroups, mLoader.getAccountsEnabledCount()); in onCreate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryStatsHelperLoaderTest.java | 48 private BatteryStatsHelperLoader mLoader; field in BatteryStatsHelperLoaderTest 54 mLoader = new BatteryStatsHelperLoader(mContext, mBundle); in setUp() 55 mLoader.mUserManager = mUserManager; in setUp() 60 mLoader.initBatteryStatsHelper(mBatteryStatsHelper); in testInitBatteryStatsHelper_init()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | NotificationApps.java | 35 private final SummaryLoader mLoader; field in NotificationApps.SummaryProvider 40 mLoader = loader; in SummaryProvider() 65 mLoader.setSummary(this, mContext.getString(R.string.notification_summary_none)); in updateSummary() 67 mLoader.setSummary(this, mContext.getResources().getQuantityString( in updateSummary()
|
D | AppOpsCategory.java | 99 final AppListLoader mLoader; field in AppOpsCategory.PackageIntentReceiver 102 mLoader = loader; in PackageIntentReceiver() 107 mLoader.getContext().registerReceiver(this, filter); in PackageIntentReceiver() 112 mLoader.getContext().registerReceiver(this, sdFilter); in PackageIntentReceiver() 117 mLoader.onContentChanged(); in onReceive()
|
D | ManageApplications.java | 1429 private final SummaryLoader mLoader; field in ManageApplications.SummaryProvider 1434 mLoader = loader; in SummaryProvider() 1444 mLoader.setSummary(SummaryProvider.this, in setListening()
|
/packages/apps/Dialer/java/com/android/dialer/interactions/ |
D | PhoneNumberInteraction.java | 115 private CursorLoader mLoader; field in PhoneNumberInteraction 238 if (mLoader != null) { in startInteraction() 239 mLoader.reset(); in startInteraction() 256 mLoader = in startInteraction() 259 mLoader.registerListener(0, this); in startInteraction() 260 mLoader.startLoading(); in startInteraction() 346 return mLoader; in getLoader()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppPrefLoaderTest.java | 55 private AppPrefLoader mLoader; field in AppPrefLoaderTest 64 mLoader = in setUp() 74 ArraySet<Preference> preferences = mLoader.loadInBackground(); in loadInBackground_packageNotFound_shouldReturnEmptySet() 87 Preference preference = mLoader.loadInBackground().valueAt(0); in loadInBackground_shouldReturnPreference()
|
/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()
|
D | ImageGallery.java | 92 private ImageLoader mLoader; field in ImageGallery 140 mLoader = new ImageLoader(getContentResolver(), mHandler); in onCreate() 362 mLoader.stop(); 403 mGvs.setLoader(mLoader);
|
/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()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageSettings.java | 513 private final SummaryLoader mLoader; field in StorageSettings.SummaryProvider 518 mLoader = loader; in SummaryProvider() 536 mLoader.setSummary(this, mContext.getString(R.string.storage_summary, in updateSummary()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummary.java | 683 private final SummaryLoader mLoader; field in PowerUsageSummary.SummaryProvider 688 mLoader = loader; in SummaryProvider() 694 mLoader.setSummary(SummaryProvider.this, info.chargeLabelString); in SummaryProvider()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionServiceSystemTest.java | 281 StubLoader mLoader; field in ActionServiceSystemTest 301 mLoader = new StubLoader(); in setUp()
|
D | ActionServiceTest.java | 141 StubLoader mLoader; field in ActionServiceTest
|