/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 69 private NetworkCycleDataTestLoader mLoader; field in NetworkCycleDataLoaderTest 84 mLoader = spy(new NetworkCycleDataTestLoader(mContext)); in loadInBackground_noNetworkPolicy_shouldLoad4WeeksData() 85 doNothing().when(mLoader).loadFourWeeksData(); in loadInBackground_noNetworkPolicy_shouldLoad4WeeksData() 87 mLoader.loadInBackground(); in loadInBackground_noNetworkPolicy_shouldLoad4WeeksData() 89 verify(mLoader).loadFourWeeksData(); in loadInBackground_noNetworkPolicy_shouldLoad4WeeksData() 94 mLoader = spy(new NetworkCycleDataTestLoader(mContext)); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData() 95 ReflectionHelpers.setField(mLoader, "mPolicy", mPolicy); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData() 97 mLoader.loadInBackground(); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData() 99 verify(mLoader).loadPolicyData(); in loadInBackground_hasNetworkPolicy_shouldLoadPolicyData() 104 mLoader = spy(new NetworkCycleDataTestLoader(mContext)); in loadInBackground_hasCyclePeriod_shouldLoadDataForSpecificCycles() [all …]
|
D | NetworkCycleDataForUidLoaderTest.java | 55 private NetworkCycleDataForUidLoader mLoader; field in NetworkCycleDataForUidLoaderTest 73 mLoader = spy(NetworkCycleDataForUidLoader.builder(mContext) in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState() 77 doReturn(1024L).when(mLoader).getTotalUsage(any()); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState() 79 mLoader.recordUsage(start, end); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState() 91 mLoader = spy(NetworkCycleDataForUidLoader.builder(mContext) in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState() 93 doReturn(1024L).when(mLoader).getTotalUsage(any()); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState() 95 mLoader.recordUsage(start, end); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState() 104 mLoader = spy(NetworkCycleDataForUidLoader.builder(mContext) in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid() 110 doReturn(1024L).when(mLoader).getTotalUsage(any()); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid() 112 mLoader.recordUsage(start, end); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
|
D | NetworkCycleChartDataLoaderTest.java | 49 private NetworkCycleChartDataLoader mLoader; field in NetworkCycleChartDataLoaderTest 65 mLoader = NetworkCycleChartDataLoader.builder(mContext) in recordUsage_shouldQueryNetworkSummaryForDevice() 69 mLoader.recordUsage(start, end); in recordUsage_shouldQueryNetworkSummaryForDevice()
|
/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/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/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterLoaderTest.java | 65 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testPersistAndLoadSnapshot() 162 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, true /* reduced */); in testLowResolutionPersistAndLoadSnapshot() 168 final TaskSnapshot snapshotNotExist = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testLowResolutionPersistAndLoadSnapshot() 185 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testIsRealSnapshotPersistAndLoadSnapshot() 186 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testIsRealSnapshotPersistAndLoadSnapshot() 206 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testWindowingModePersistAndLoadSnapshot() 207 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testWindowingModePersistAndLoadSnapshot() 227 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testIsTranslucentPersistAndLoadSnapshot() 228 final TaskSnapshot snapshotB = mLoader.loadTask(2, mTestUserId, false /* reduced */); in testIsTranslucentPersistAndLoadSnapshot() 250 final TaskSnapshot snapshotA = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testSystemUiVisibilityPersistAndLoadSnapshot() [all …]
|
D | TaskSnapshotPersisterTestBase.java | 58 TaskSnapshotLoader mLoader; field in TaskSnapshotPersisterTestBase 82 mLoader = new TaskSnapshotLoader(mPersister); in setUp()
|
D | TaskSnapshotCacheTest.java | 48 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlLoaderCompatTest.java | 45 private LicenseHtmlLoaderCompat mLoader; field in LicenseHtmlLoaderCompatTest 50 mLoader = new LicenseHtmlLoaderCompat(mContext); in setUp() 66 assertThat(mLoader.loadInBackground()).isEqualTo(cachedHtmlFile); in testLoadInBackground() 76 assertThat(mLoader.loadInBackground()).isNull(); in testLoadInBackgroundWithNoVaildXmlFiles() 87 assertThat(mLoader.loadInBackground()).isEqualTo(cachedHtmlFile); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile() 98 assertThat(mLoader.loadInBackground()).isNull(); in testLoadInBackgroundWithGenerateHtmlFileFailed()
|
/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 | 71 private AsyncTask<Void, Void, LoaderResult> mLoader; field in LockscreenWallpaper 187 if (mLoader != null) { in run() 188 mLoader.cancel(false /* interrupt */); in run() 193 mLoader = new AsyncTask<Void, Void, LoaderResult>() { in run() 212 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 | 94 private final TaskSnapshotLoader mLoader; field in TaskSnapshotController 120 mLoader = new TaskSnapshotLoader(mPersister); in TaskSnapshotController() 121 mCache = new TaskSnapshotCache(mService, mLoader); in TaskSnapshotController()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/ |
D | RecentsTaskLoader.java | 76 private final BackgroundTaskLoader mLoader; field in RecentsTaskLoader 117 mLoader = new BackgroundTaskLoader(mLoadQueue, mIconLoader, mHighResThumbnailLoader); in RecentsTaskLoader() 399 mLoader.start(ctx); in startLoader() 406 mLoader.stop(); in stopLoader()
|
D | HighResThumbnailLoader.java | 65 mLoadThread = new Thread(mLoader, "Recents-HighResThumbnailLoader"); in HighResThumbnailLoader() 202 private final Runnable mLoader = new Runnable() { field in HighResThumbnailLoader
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 7420 Landroid/app/LoaderManagerImpl$LoaderInfo;->mLoader:Landroid/content/Loader;
|