Home
last modified time | relevance | path

Searched refs:fakeClock (Results 1 – 8 of 8) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java269 AutomaticStorageManagementJobService.Clock fakeClock = in disableSmartStorageIfPastThreshold() local
271 when(fakeClock.currentTimeMillis()).thenReturn(1001L); in disableSmartStorageIfPastThreshold()
275 mStorageManagementJobProvider, mContext, fakeClock); in disableSmartStorageIfPastThreshold()
290 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() local
292 when(fakeClock.currentTimeMillis()).thenReturn(1001L); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast()
296 mStorageManagementJobProvider, mContext, fakeClock); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast()
309 AutomaticStorageManagementJobService.Clock fakeClock = in logDisabledByPolicyIfPastThreshold() local
311 when(fakeClock.currentTimeMillis()).thenReturn(1001L); in logDisabledByPolicyIfPastThreshold()
315 mStorageManagementJobProvider, mContext, fakeClock); in logDisabledByPolicyIfPastThreshold()
329 AutomaticStorageManagementJobService.Clock fakeClock = in dontDisableSmartStorageIfNotPastThreshold() local
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeEpgReader.java53 public final FakeClock fakeClock; field in FakeEpgReader
55 public FakeEpgReader(FakeClock fakeClock) { in FakeEpgReader() argument
56 this.fakeClock = fakeClock; in FakeEpgReader()
66 return fakeClock.currentTimeMillis(); in getEpgTimestamp()
135 fakeClock.currentTimeMillis(), fakeClock.currentTimeMillis() + duration); in getPrograms()
DTestSingletonApp.java65 public final FakeClock fakeClock = FakeClock.createWithCurrentTime(); field in TestSingletonApp
66 public final FakeEpgReader epgReader = new FakeEpgReader(fakeClock);
92 mDvrDataManager = new DvrDataManagerInMemoryImpl(this, fakeClock); in onCreate()
101 testData.init(this, fakeClock, durationMs); in loadTestData()
189 return fakeClock; in getClock()
DEpgTestData.java167 loadData(testSingletonApp.fakeClock, testSingletonApp.epgReader); in loadData()
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/
DProgramTableAdapterTest.java67 app.fakeClock.setBootTimeMillis(mTestStartTimeMs + TimeUnit.HOURS.toMillis(-12)); in setup()
68 app.fakeClock.setCurrentTimeMillis(mTestStartTimeMs); in setup()
DProgramItemViewTest.java142 app.fakeClock.setBootTimeMillis(testStartTimeMs + TimeUnit.HOURS.toMillis(-12)); in setup()
143 app.fakeClock.setCurrentTimeMillis(testStartTimeMs); in setup()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DMockTvSingletons.java54 public final FakeClock fakeClock = FakeClock.createWithCurrentTime(); field in MockTvSingletons
96 return fakeClock; in getClock()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DSeriesRecordingSchedulerTest.java77 FakeClock fakeClock = FakeClock.createWithCurrentTime(); in setUp() local
78 mDataManager = new DvrDataManagerInMemoryImpl(RuntimeEnvironment.application, fakeClock); in setUp()