Searched refs:mSystemFacade (Results 1 - 8 of 8) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DPublicApiFunctionalTest.java115 assertEquals(mSystemFacade.currentTimeMillis(),
118 mSystemFacade.incrementTimeMillis(10);
132 assertEquals(mSystemFacade.currentTimeMillis(),
196 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS);
210 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS);
255 mSystemFacade.incrementTimeMillis(1); // ensure downloads are correctly ordered by time
259 mSystemFacade.incrementTimeMillis(1);
281 mSystemFacade.incrementTimeMillis(1);
297 mSystemFacade.incrementTimeMillis(1);
301 mSystemFacade
[all...]
H A DAbstractDownloadProviderFunctionalTest.java67 protected FakeSystemFacade mSystemFacade; field in class:AbstractDownloadProviderFunctionalTest
143 mSystemFacade = systemFacade;
161 provider.mSystemFacade = mSystemFacade;
171 Helpers.setSystemFacade(mSystemFacade);
173 mSystemFacade.setUp();
H A DDownloadProviderFunctionalTest.java87 mSystemFacade.mActiveNetworkType = ConnectivityManager.TYPE_MOBILE;
88 mSystemFacade.mIsRoaming = true;
101 mSystemFacade.mIsRoaming = false;
110 mSystemFacade.mCleartextTrafficPermitted = true;
115 mSystemFacade.mCleartextTrafficPermitted = false;
H A DThreadingTest.java66 final long startMillis = mSystemFacade.currentTimeMillis();
H A DAbstractPublicApiTest.java117 final long startMillis = mSystemFacade.currentTimeMillis();
123 final long startMillis = mSystemFacade.currentTimeMillis();
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadInfo.java190 private final SystemFacade mSystemFacade; field in class:DownloadInfo
194 mSystemFacade = Helpers.getSystemFacade(context);
249 mSystemFacade.sendBroadcast(intent);
281 final long now = mSystemFacade.currentTimeMillis();
310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) {
313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile()
H A DDownloadThread.java117 private final SystemFacade mSystemFacade; field in class:DownloadThread
186 values.put(Downloads.Impl.COLUMN_LAST_MODIFICATION, mSystemFacade.currentTimeMillis());
245 mSystemFacade = Helpers.getSystemFacade(mContext);
285 mNetwork = mSystemFacade.getActiveNetwork(mInfo.mUid, mIgnoreBlocked);
293 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid,
337 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid,
417 boolean cleartextTrafficPermitted = mSystemFacade.isCleartextTrafficPermitted(mInfo.mUid);
420 appContext = mSystemFacade.getSSLContextForPackage(mContext, mInfo.mPackage);
738 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid,
H A DDownloadProvider.java182 SystemFacade mSystemFacade; field in class:DownloadProvider
452 if (mSystemFacade == null) {
453 mSystemFacade = new RealSystemFacade(getContext());
658 long lastMod = mSystemFacade.currentTimeMillis();
667 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) {
1446 final long modifiedAfter = mSystemFacade.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS;

Completed in 1023 milliseconds