/frameworks/base/packages/SystemUI/shared/tests/src/com/android/systemui/shared/recents/model/ |
D | HighResThumbnailLoaderTest.java | 51 private HighResThumbnailLoader mLoader; field in HighResThumbnailLoaderTest 63 mLoader = new HighResThumbnailLoader(mMockActivityManagerWrapper, Looper.getMainLooper(), in setUp() 68 mLoader.setVisible(true); in setUp() 69 mLoader.setTaskLoadQueueIdle(true); in setUp() 74 mLoader.setVisible(true); in testLoading() 75 assertTrue(mLoader.isLoading()); in testLoading() 76 mLoader.setVisible(false); in testLoading() 77 assertFalse(mLoader.isLoading()); in testLoading() 78 mLoader.setVisible(true); in testLoading() 79 mLoader.setFlingingFast(true); in testLoading() [all …]
|
/frameworks/base/core/java/android/app/ |
D | LoaderManager.java | 240 Loader<Object> mLoader; field in LoaderManagerImpl.LoaderInfo 276 if (mLoader == null && mCallbacks != null) { in start() 277 mLoader = mCallbacks.onCreateLoader(mId, mArgs); in start() 279 if (mLoader != null) { in start() 280 if (mLoader.getClass().isMemberClass() in start() 281 && !Modifier.isStatic(mLoader.getClass().getModifiers())) { in start() 284 + mLoader); in start() 287 mLoader.registerListener(mId, this); in start() 288 mLoader.registerOnLoadCanceledListener(this); in start() 291 mLoader.startLoading(); in start() [all …]
|
/frameworks/support/loader/src/main/java/androidx/loader/app/ |
D | LoaderManagerImpl.java | 55 private final @NonNull Loader<D> mLoader; field in LoaderManagerImpl.LoaderInfo 64 mLoader = loader; in LoaderInfo() 66 mLoader.registerListener(id, this); in LoaderInfo() 71 return mLoader; in getLoader() 77 mLoader.startLoading(); in onActive() 83 mLoader.stopLoading(); in onInactive() 98 LoaderObserver<D> observer = new LoaderObserver<>(mLoader, callback); in setCallback() 107 return mLoader; in setCallback() 151 mLoader.cancelLoad(); in destroy() 152 mLoader.abandon(); in destroy() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | DocumentLoaderTest.java | 39 private DocumentLoader mLoader; field in DocumentLoaderTest 64 mLoader.close(); in tearDown() 78 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() 88 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() 99 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() 118 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectHandles() 139 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectInfo() 154 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask() 164 mLoader.cancelTask(mParentIdentifier); in testCancelTask() 171 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterLoaderTest.java | 65 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testPersistAndLoadSnapshot() 158 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, true /* reduced */); in testLowResolutionPersistAndLoadSnapshot() 164 final TaskSnapshot snapshotNotExist = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testLowResolutionPersistAndLoadSnapshot() 181 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testIsRealSnapshotPersistAndLoadSnapshot() 182 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testIsRealSnapshotPersistAndLoadSnapshot() 202 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testWindowingModePersistAndLoadSnapshot() 203 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testWindowingModePersistAndLoadSnapshot() 223 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testIsTranslucentPersistAndLoadSnapshot() 224 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testIsTranslucentPersistAndLoadSnapshot() 246 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testSystemUiVisibilityPersistAndLoadSnapshot() [all …]
|
D | TaskSnapshotPersisterTestBase.java | 47 TaskSnapshotLoader mLoader; field in TaskSnapshotPersisterTestBase 62 mLoader = new TaskSnapshotLoader(mPersister); in setUp()
|
D | TaskSnapshotCacheTest.java | 46 mCache = new TaskSnapshotCache(sWm, mLoader); in setUp()
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/ |
D | LoaderCustomSupport.java | 86 mLoader = loader; in AppEntry() 102 mIcon = mInfo.loadIcon(mLoader.mPm); in getIcon() 112 mIcon = mInfo.loadIcon(mLoader.mPm); in getIcon() 120 mLoader.getContext(), android.R.drawable.sym_def_app_icon); in getIcon() 140 private final AppListLoader mLoader; field in LoaderCustomSupport.AppEntry 184 final AppListLoader mLoader; field in LoaderCustomSupport.PackageIntentReceiver 187 mLoader = loader; in PackageIntentReceiver() 192 mLoader.getContext().registerReceiver(this, filter); in PackageIntentReceiver() 197 mLoader.getContext().registerReceiver(this, sdFilter); in PackageIntentReceiver() 202 mLoader.onContentChanged(); in onReceive()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/ |
D | LoaderManagerTest.java | 125 callback.mLoader.isReset()); in testDestroyLoaderBeforeDeliverData() 150 callback.mLoader.isReset()); in testDestroyLoaderAfterDeliverData() 172 initialCallback.mLoader.isReset()); in testRestartLoaderBeforeDeliverData() 201 initialCallback.mLoader.isReset()); in testRestartLoaderAfterDeliverData() 204 initialCallback.mLoader.isReset()); in testRestartLoaderAfterDeliverData() 236 initialCallback.mLoader.isReset()); in testRestartLoaderMultiple() 238 intermediateCallback.mLoader.isReset()); in testRestartLoaderMultiple() 241 initialCallback.mLoader.isReset()); in testRestartLoaderMultiple()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/test/ |
D | DelayLoaderCallbacks.java | 32 public Loader<Boolean> mLoader; field in DelayLoaderCallbacks 44 mLoader = new DelayLoader(mContext, mDeliverResultLatch); in onCreateLoader() 45 return mLoader; in onCreateLoader()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
D | VrActivity.java | 52 VolumeLoader mLoader; field in VrActivity 64 mLoader = new VolumeLoader(dir); in onCreate() 66 String [] names = mLoader.getNames(); in onCreate() 85 mLoader.setProgressListener(new VolumeLoader.ProgressListener() { in onPreExecute() 100 return mLoader.getVolume(mRs, names[0]); in doInBackground() 174 String[] volumes = mLoader.getNames(); in dataClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 66 private AsyncTask<Void, Void, LoaderResult> mLoader; field in LockscreenWallpaper 174 if (mLoader != null) { in run() 175 mLoader.cancel(false /* interrupt */); in run() 180 mLoader = new AsyncTask<Void, Void, LoaderResult>() { in run() 199 mLoader = null; in run()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotCache.java | 36 private final TaskSnapshotLoader mLoader; field in TaskSnapshotCache 42 mLoader = loader; in TaskSnapshotCache() 80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution); in tryRestoreFromDisk()
|
D | TaskSnapshotController.java | 96 private final TaskSnapshotLoader mLoader = new TaskSnapshotLoader(mPersister); field in TaskSnapshotController 120 mCache = new TaskSnapshotCache(mService, mLoader); in TaskSnapshotController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 101 private AsyncTask<Void, Void, Bitmap> mLoader; field in ImageWallpaper.DrawableEngine 358 if (mLoader != null) { in loadWallpaper() 364 mLoader = new AsyncTask<Void, Void, Bitmap>() { in loadWallpaper() 409 mLoader = null; in loadWallpaper() 434 if (mLoader != null) { in unloadWallpaper() 435 mLoader.cancel(false); in unloadWallpaper() 436 mLoader = null; in unloadWallpaper()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | RecentsTaskLoader.java | 71 private final BackgroundTaskLoader mLoader; field in RecentsTaskLoader 112 mLoader = new BackgroundTaskLoader(mLoadQueue, mIconLoader, in RecentsTaskLoader() 395 mLoader.start(ctx); in startLoader() 402 mLoader.stop(); in stopLoader()
|
D | HighResThumbnailLoader.java | 62 mLoadThread = new Thread(mLoader, "Recents-HighResThumbnailLoader"); in HighResThumbnailLoader() 194 private final Runnable mLoader = new Runnable() { field in HighResThumbnailLoader
|