Searched refs:mSystemFacade (Results 1 – 8 of 8) sorted by relevance
118 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 …]
88 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()
75 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadProviderFunctionalTest180 mSystemFacade = systemFacade; in AbstractDownloadProviderFunctionalTest()198 provider.mSystemFacade = mSystemFacade; in setUp()209 Helpers.setSystemFacade(mSystemFacade); in setUp()212 mSystemFacade.setUp(); in setUp()
118 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()124 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
67 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace()
122 private final SystemFacade mSystemFacade; field in DownloadThread192 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()
195 private final SystemFacade mSystemFacade; field in DownloadInfo199 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()
251 SystemFacade mSystemFacade; field in DownloadProvider582 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;