Home
last modified time | relevance | path

Searched refs:mSystemFacade (Results 1 – 9 of 9) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java84 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
87 mSystemFacade.incrementTimeMillis(10); in testBasicRequest()
101 assertEquals(mSystemFacade.currentTimeMillis(), in testBasicRequest()
147 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedDownload()
161 mSystemFacade.incrementTimeMillis(RETRY_DELAY_MILLIS); in testInterruptedExternalDownload()
193 mSystemFacade.incrementTimeMillis(1); // ensure downloads are correctly ordered by time in testFiltering()
197 mSystemFacade.incrementTimeMillis(1); in testFiltering()
219 mSystemFacade.incrementTimeMillis(1); in testFiltering()
232 mSystemFacade.incrementTimeMillis(1); in testOrdering()
237 mSystemFacade.incrementTimeMillis(1); in testOrdering()
[all …]
DAbstractDownloadManagerFunctionalTest.java61 protected FakeSystemFacade mSystemFacade; field in AbstractDownloadManagerFunctionalTest
140 mSystemFacade = systemFacade; in AbstractDownloadManagerFunctionalTest()
155 getService().mSystemFacade = mSystemFacade; in setUp()
179 provider.mSystemFacade = mSystemFacade; in setupProviderAndResolver()
239 mSystemFacade.runAllThreads(); in runService()
DDownloadManagerFunctionalTest.java73 mSystemFacade.mActiveNetworkType = ConnectivityManager.TYPE_MOBILE; in testRoaming()
74 mSystemFacade.mIsRoaming = true; in testRoaming()
89 mSystemFacade.mIsRoaming = false; in testRoaming()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadService.java102 SystemFacade mSystemFacade; field in DownloadService
204 if (mSystemFacade == null) { in onCreate()
205 mSystemFacade = new RealSystemFacade(this); in onCreate()
216 mNotifier = new DownloadNotification(this, mSystemFacade); in onCreate()
217 mSystemFacade.cancelAllNotifications(); in onCreate()
251 mSystemFacade.startThread(mUpdateThread); in updateFromProvider()
290 long now = mSystemFacade.currentTimeMillis(); in run()
415 mSystemFacade.currentTimeMillis() + wakeUp, in scheduleAlarm()
496 DownloadInfo info = reader.newDownloadInfo(this, mSystemFacade); in insertDownload()
524 mSystemFacade.cancelNotification(info.mId); in updateDownload()
[all …]
DDownloadReceiver.java42 SystemFacade mSystemFacade = null; field in DownloadReceiver
45 if (mSystemFacade == null) { in onReceive()
46 mSystemFacade = new RealSystemFacade(context); in onReceive()
111 mSystemFacade.cancelNotification(ContentUris.parseId(uri)); in hideNotification()
187 mSystemFacade.sendBroadcast(appIntent); in sendNotificationClickedIntent()
DDownloadInfo.java250 private SystemFacade mSystemFacade; field in DownloadInfo
255 mSystemFacade = systemFacade; in DownloadInfo()
287 mSystemFacade.sendBroadcast(intent); in sendIntentIfRequested()
355 Integer networkType = mSystemFacade.getActiveNetworkType(); in checkCanUseNetwork()
359 if (!isRoamingAllowed() && mSystemFacade.isNetworkRoaming()) { in checkCanUseNetwork()
442 Long maxBytesOverMobile = mSystemFacade.getMaxBytesOverMobile(); in checkSizeAllowedForNetwork()
447 Long recommendedMaxBytesOverMobile = mSystemFacade.getRecommendedMaxBytesOverMobile(); in checkSizeAllowedForNetwork()
473 DownloadThread downloader = new DownloadThread(mContext, mSystemFacade, this); in startIfReady()
475 mSystemFacade.startThread(downloader); in startIfReady()
DDownloadNotification.java43 private SystemFacade mSystemFacade; field in DownloadNotification
100 mSystemFacade = systemFacade; in DownloadNotification()
205 mSystemFacade.postNotification(item.mId, n); in updateActiveNotification()
256 mSystemFacade.postNotification(download.mId, n); in updateCompletedNotification()
DDownloadThread.java54 private SystemFacade mSystemFacade; field in DownloadThread
58 mSystemFacade = systemFacade; in DownloadThread()
397 long now = mSystemFacade.currentTimeMillis(); in reportProgress()
524 "Net " + (Helpers.isNetworkAvailable(mSystemFacade) ? "Up" : "Down")); in logNetworkState()
776 if (!Helpers.isNetworkAvailable(mSystemFacade)) { in getFinalStatusForHttpError()
875 values.put(Downloads.Impl.COLUMN_LAST_MODIFICATION, mSystemFacade.currentTimeMillis()); in notifyThroughDatabase()
DDownloadProvider.java147 SystemFacade mSystemFacade; field in DownloadProvider
391 if (mSystemFacade == null) { in onCreate()
392 mSystemFacade = new RealSystemFacade(getContext()); in onCreate()
507 mSystemFacade.currentTimeMillis()); in insert()
514 if (uid == 0 || mSystemFacade.userOwnsPackage(uid, pckg)) { in insert()