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.java115 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
118 mSystemFacade.incrementTimeMillis(10); in testBasicRequest()
132 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
196 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedDownload()
210 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedExternalDownload()
255 mSystemFacade.incrementTimeMillis(1); // ensure downloads are correctly ordered by time in testFiltering()
259 mSystemFacade.incrementTimeMillis(1); in testFiltering()
281 mSystemFacade.incrementTimeMillis(1); in testFiltering()
297 mSystemFacade.incrementTimeMillis(1); in testOrdering()
301 mSystemFacade.incrementTimeMillis(1); in testOrdering()
[all …]
DAbstractDownloadProviderFunctionalTest.java67 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadProviderFunctionalTest
143 mSystemFacade = systemFacade; in AbstractDownloadProviderFunctionalTest()
161 provider.mSystemFacade = mSystemFacade; in setUp()
171 Helpers.setSystemFacade(mSystemFacade); in setUp()
173 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.java117 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
123 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.java117 private final SystemFacade mSystemFacade; field in DownloadThread
186 values.put(Downloads.Impl.COLUMN_LAST_MODIFICATION, mSystemFacade.currentTimeMillis()); in buildContentValues()
245 mSystemFacade = Helpers.getSystemFacade(mContext); in DownloadThread()
285 mNetwork = mSystemFacade.getActiveNetwork(mInfo.mUid, mIgnoreBlocked); in run()
293 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
337 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
417 boolean cleartextTrafficPermitted = mSystemFacade.isCleartextTrafficPermitted(mInfo.mUid); in executeDownload()
420 appContext = mSystemFacade.getSSLContextForPackage(mContext, mInfo.mPackage); in executeDownload()
738 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in checkConnectivity()
DDownloadInfo.java190 private final SystemFacade mSystemFacade; field in DownloadInfo
194 mSystemFacade = Helpers.getSystemFacade(context); in DownloadInfo()
249 mSystemFacade.sendBroadcast(intent); in sendIntentIfRequested()
281 final long now = mSystemFacade.currentTimeMillis(); in getMinimumLatency()
310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType()
313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType()
DDownloadProvider.java183 SystemFacade mSystemFacade; field in DownloadProvider
453 if (mSystemFacade == null) { in onCreate()
454 mSystemFacade = new RealSystemFacade(getContext()); in onCreate()
659 long lastMod = mSystemFacade.currentTimeMillis(); in insert()
668 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()
1449 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;