Searched refs:mSystemFacade (Results 1 – 8 of 8) sorted by relevance
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 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 …]
|
D | AbstractDownloadProviderFunctionalTest.java | 75 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadProviderFunctionalTest 180 mSystemFacade = systemFacade; in AbstractDownloadProviderFunctionalTest() 198 provider.mSystemFacade = mSystemFacade; in setUp() 209 Helpers.setSystemFacade(mSystemFacade); in setUp() 211 mSystemFacade.setUp(); in setUp()
|
D | DownloadProviderFunctionalTest.java | 87 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()
|
D | AbstractPublicApiTest.java | 118 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() 124 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus()
|
D | ThreadingTest.java | 66 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 121 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() 720 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, mIgnoreBlocked); in checkConnectivity() 721 final NetworkCapabilities caps = mSystemFacade.getNetworkCapabilities(mNetwork); in checkConnectivity()
|
D | DownloadInfo.java | 195 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()
|
D | DownloadProvider.java | 264 SystemFacade mSystemFacade; field in DownloadProvider 637 if (mSystemFacade == null) { in onCreate() 638 mSystemFacade = new RealSystemFacade(getContext()); in onCreate() 866 long lastMod = mSystemFacade.currentTimeMillis(); in insert() 875 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert() 1905 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;
|