Home
last modified time | relevance | path

Searched refs:mSystemFacade (Results 1 – 8 of 8) sorted by relevance

/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DPublicApiFunctionalTest.java121 mSystemFacade.incrementTimeMillis(10); in testBasicRequest()
262 mSystemFacade.incrementTimeMillis(1); in testFiltering()
284 mSystemFacade.incrementTimeMillis(1); in testFiltering()
300 mSystemFacade.incrementTimeMillis(1); in testOrdering()
304 mSystemFacade.incrementTimeMillis(1); in testOrdering()
401 mSystemFacade.mIsMetered = true; in testSizeLimitOverMobile()
406 mSystemFacade.mIsMetered = false; in testSizeLimitOverMobile()
602 mSystemFacade.mIsMetered = true; in testAllowedNetworkTypes()
614 mSystemFacade.mIsMetered = false; in testAllowedNetworkTypes()
622 mSystemFacade.mIsRoaming = true; in testRoaming()
[all …]
H A DDownloadProviderFunctionalTest.java87 mSystemFacade.mActiveNetworkType = ConnectivityManager.TYPE_MOBILE; in testRoaming()
88 mSystemFacade.mIsRoaming = true; in testRoaming()
101 mSystemFacade.mIsRoaming = false; in testRoaming()
110 mSystemFacade.mCleartextTrafficPermitted = true; in testCleartextTrafficPermittedFlagHonored()
115 mSystemFacade.mCleartextTrafficPermitted = false; in testCleartextTrafficPermittedFlagHonored()
H A DAbstractDownloadProviderFunctionalTest.java75 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadProviderFunctionalTest
180 mSystemFacade = systemFacade; in AbstractDownloadProviderFunctionalTest()
198 provider.mSystemFacade = mSystemFacade; in setUp()
209 Helpers.setSystemFacade(mSystemFacade); in setUp()
212 mSystemFacade.setUp(); in setUp()
H A DAbstractPublicApiTest.java118 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
124 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
H A DThreadingTest.java66 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace()
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadThread.java122 private final SystemFacade mSystemFacade; field in DownloadThread
192 values.put(Downloads.Impl.COLUMN_LAST_MODIFICATION, mSystemFacade.currentTimeMillis()); in buildContentValues()
249 mSystemFacade = Helpers.getSystemFacade(mContext); in DownloadThread()
290 mNetwork = mSystemFacade.getNetwork(mParams); in run()
334 if (null != mSystemFacade.getNetworkCapabilities(mNetwork)) { in run()
409 = mSystemFacade.isCleartextTrafficPermitted(mInfo.mPackage, url.getHost()); in executeDownload()
412 appContext = mSystemFacade.getSSLContextForPackage(mContext, mInfo.mPackage); in executeDownload()
716 final NetworkCapabilities caps = mSystemFacade.getNetworkCapabilities(mNetwork); in checkConnectivity()
H A DDownloadInfo.java195 private final SystemFacade mSystemFacade; field in DownloadInfo
199 mSystemFacade = Helpers.getSystemFacade(context); in DownloadInfo()
254 mSystemFacade.sendBroadcast(intent); in sendIntentIfRequested()
286 final long now = mSystemFacade.currentTimeMillis(); in getMinimumLatency()
315 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType()
318 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType()
H A DDownloadProvider.java251 SystemFacade mSystemFacade; field in DownloadProvider
582 if (mSystemFacade == null) { in onCreate()
583 mSystemFacade = new RealSystemFacade(getContext()); in onCreate()
797 long lastMod = mSystemFacade.currentTimeMillis(); in insert()
806 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()
1757 mSystemFacade.currentTimeMillis()); in openFile()
1782 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;