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 …]
DDownloadProviderFunctionalTest.java88 mSystemFacade.mActiveNetworkType = ConnectivityManager.TYPE_MOBILE; in testRoaming()
89 mSystemFacade.mIsRoaming = true; in testRoaming()
102 mSystemFacade.mIsRoaming = false; in testRoaming()
111 mSystemFacade.mCleartextTrafficPermitted = true; in testCleartextTrafficPermittedFlagHonored()
116 mSystemFacade.mCleartextTrafficPermitted = false; in testCleartextTrafficPermittedFlagHonored()
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()
DAbstractPublicApiTest.java118 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
124 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
DThreadingTest.java67 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
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()
410 = mSystemFacade.isCleartextTrafficPermitted(mInfo.mPackage, url.getHost()); in executeDownload()
413 appContext = mSystemFacade.getSSLContextForPackage(mContext, mInfo.mPackage); in executeDownload()
717 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
582 if (mSystemFacade == null) { in onCreate()
583 mSystemFacade = new RealSystemFacade(getContext()); in onCreate()
814 long lastMod = mSystemFacade.currentTimeMillis(); in insert()
823 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()
1774 mSystemFacade.currentTimeMillis()); in openFile()
1799 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;