Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java69 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 …]
DNetworkCycleDataForUidLoaderTest.java55 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()
DNetworkCycleChartDataLoaderTest.java49 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/
DLoaderManager.java240 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/
DDocumentLoaderTest.java39 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/
DTaskSnapshotPersisterLoaderTest.java65 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 …]
DTaskSnapshotPersisterTestBase.java58 TaskSnapshotLoader mLoader; field in TaskSnapshotPersisterTestBase
82 mLoader = new TaskSnapshotLoader(mPersister); in setUp()
DTaskSnapshotCacheTest.java48 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/
DLicenseHtmlLoaderCompatTest.java45 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/
DVrActivity.java52 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/
DLockscreenWallpaper.java71 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/
DTaskSnapshotCache.java36 private final TaskSnapshotLoader mLoader; field in TaskSnapshotCache
42 mLoader = loader; in TaskSnapshotCache()
80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution); in tryRestoreFromDisk()
DTaskSnapshotController.java94 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/
DRecentsTaskLoader.java76 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()
DHighResThumbnailLoader.java65 mLoadThread = new Thread(mLoader, "Recents-HighResThumbnailLoader"); in HighResThumbnailLoader()
202 private final Runnable mLoader = new Runnable() { field in HighResThumbnailLoader
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt7420 Landroid/app/LoaderManagerImpl$LoaderInfo;->mLoader:Landroid/content/Loader;