Home
last modified time | relevance | path

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

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java118 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
121 mSystemFacade.incrementTimeMillis(10); in testBasicRequest()
135 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
199 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedDownload()
213 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedExternalDownload()
258 mSystemFacade.incrementTimeMillis(1); // ensure downloads are correctly ordered by time in testFiltering()
262 mSystemFacade.incrementTimeMillis(1); in testFiltering()
284 mSystemFacade.incrementTimeMillis(1); in testFiltering()
300 mSystemFacade.incrementTimeMillis(1); in testOrdering()
304 mSystemFacade.incrementTimeMillis(1); in testOrdering()
[all …]
DAbstractDownloadProviderFunctionalTest.java75 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadProviderFunctionalTest
185 mSystemFacade = systemFacade; in AbstractDownloadProviderFunctionalTest()
203 provider.mSystemFacade = mSystemFacade; in setUp()
214 Helpers.setSystemFacade(mSystemFacade); in setUp()
216 mSystemFacade.setUp(); in setUp()
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()
DAbstractPublicApiTest.java118 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
124 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
DThreadingTest.java66 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java121 private final SystemFacade mSystemFacade; field in DownloadThread
191 values.put(Downloads.Impl.COLUMN_LAST_MODIFICATION, mSystemFacade.currentTimeMillis()); in buildContentValues()
250 mSystemFacade = Helpers.getSystemFacade(mContext); in DownloadThread()
291 mNetwork = mSystemFacade.getNetwork(mParams); in run()
299 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
343 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
420 = mSystemFacade.isCleartextTrafficPermitted(mInfo.mPackage, url.getHost()); in executeDownload()
423 appContext = mSystemFacade.getSSLContextForPackage(mContext, mInfo.mPackage); in executeDownload()
727 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, mIgnoreBlocked); in checkConnectivity()
728 final NetworkCapabilities caps = mSystemFacade.getNetworkCapabilities(mNetwork); in checkConnectivity()
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()
DDownloadProvider.java251 SystemFacade mSystemFacade; field in DownloadProvider
581 if (mSystemFacade == null) { in onCreate()
582 mSystemFacade = new RealSystemFacade(getContext()); in onCreate()
796 long lastMod = mSystemFacade.currentTimeMillis(); in insert()
805 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()
1837 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;