Home
last modified time | relevance | path

Searched refs:mLoader (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/
DInstalledAppResultLoaderTest.java71 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 …]
DSavedQueryLoaderTest.java46 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/
DStorageAsyncLoaderTest.java72 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/
DCalendarAppWidgetService.java129 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/
DAppsAsyncLoaderTest.java70 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/
DMonthByWeekFragment.java91 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/
DWallpaperChooserDialogFragment.java62 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/
DIconLoaderTest.java30 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()
DPackageIconLoaderTest.java62 assertNull(mLoader.getIcon(uri)); in testGetIconCrashingProvider()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java38 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/
DBluetoothMapAppObserver.java54 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()
DBluetoothMapSettings.java37 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/
DBatteryStatsHelperLoaderTest.java48 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/
DNotificationApps.java35 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()
DAppOpsCategory.java99 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()
DManageApplications.java1429 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/
DPhoneNumberInteraction.java115 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/
DAppPrefLoaderTest.java55 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/
DGridViewSpecial.java115 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()
DImageGallery.java92 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/
DLensPickerAdapter.java49 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/
DStorageSettings.java513 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/
DPowerUsageSummary.java683 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/
DActionServiceSystemTest.java281 StubLoader mLoader; field in ActionServiceSystemTest
301 mLoader = new StubLoader(); in setUp()
DActionServiceTest.java141 StubLoader mLoader; field in ActionServiceTest

12