Searched refs:mSystemFacade (Results 1 – 8 of 8) sorted by relevance
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 115 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 …]
|
D | AbstractDownloadProviderFunctionalTest.java | 67 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()
|
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 | 117 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() 123 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 | 117 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()
|
D | DownloadInfo.java | 190 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()
|
D | DownloadProvider.java | 183 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;
|