Home
last modified time | relevance | path

Searched refs:mLoader (Results 1 – 13 of 13) 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/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java79 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* isLowResolution */); in testPersistAndLoadSnapshot()
169 PreRLegacySnapshotConfig highResConf = mLoader.getLegacySnapshotConfig( in testLegacyPLowRamConfig()
175 PreRLegacySnapshotConfig lowResConf = mLoader.getLegacySnapshotConfig( in testLegacyPLowRamConfig()
199 PreRLegacySnapshotConfig highResConf = mLoader.getLegacySnapshotConfig( in testLegacyPNonLowRamConfig()
205 PreRLegacySnapshotConfig lowResConf = mLoader.getLegacySnapshotConfig( in testLegacyPNonLowRamConfig()
229 PreRLegacySnapshotConfig highResConf = mLoader.getLegacySnapshotConfig( in testLegacyQLowRamConfig()
236 PreRLegacySnapshotConfig lowResConf = mLoader.getLegacySnapshotConfig( in testLegacyQLowRamConfig()
261 PreRLegacySnapshotConfig highResConf = mLoader.getLegacySnapshotConfig( in testLegacyQNonLowRamConfig()
268 PreRLegacySnapshotConfig lowResConf = mLoader.getLegacySnapshotConfig( in testLegacyQNonLowRamConfig()
286 PreRLegacySnapshotConfig highResConf = mLoader.getLegacySnapshotConfig( in testNonLegacyRConfig()
[all …]
DTaskSnapshotLowResDisabledTest.java64 mCache = new TaskSnapshotCache(mWm, mLoader); in setUp()
78 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* isLowResolution */); in testPersistAndLoadSnapshot()
84 assertNull(mLoader.loadTask(1, mTestUserId, true /* isLowResolution */)); in testPersistAndLoadSnapshot()
DTaskSnapshotPersisterTestBase.java68 TaskSnapshotLoader mLoader; field in TaskSnapshotPersisterTestBase
110 mLoader = new TaskSnapshotLoader(mPersister); in setUp()
DTaskSnapshotCacheTest.java61 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/services/core/java/com/android/server/wm/
DTaskSnapshotCache.java33 private final TaskSnapshotLoader mLoader; field in TaskSnapshotCache
39 mLoader = loader; in TaskSnapshotCache()
81 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, isLowResolution); in tryRestoreFromDisk()
DTaskSnapshotController.java100 private final TaskSnapshotLoader mLoader; field in TaskSnapshotController
126 mLoader = new TaskSnapshotLoader(mPersister); in TaskSnapshotController()
127 mCache = new TaskSnapshotCache(mService, mLoader); in TaskSnapshotController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java78 private AsyncTask<Void, Void, LoaderResult> mLoader; field in LockscreenWallpaper
204 if (mLoader != null) { in run()
205 mLoader.cancel(false /* interrupt */); in run()
210 mLoader = new AsyncTask<Void, Void, LoaderResult>() { in run()
229 mLoader = null; in run()