Searched refs:mFakeClock (Results 1 – 5 of 5) sorted by relevance
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
D | ScheduledProgramReaperTest.java | 36 private FakeClock mFakeClock; field in ScheduledProgramReaperTest 44 mFakeClock = FakeClock.createWithTimeOne(); in setUp() 45 mDvrDataManager = new DvrDataManagerInMemoryImpl(null, mFakeClock); in setUp() 46 mReaper = new ScheduledProgramReaper(mDvrDataManager, mFakeClock); in setUp() 69 mFakeClock.increment(TimeUnit.DAYS); in testRun_oneRecordingsStarted() 79 mFakeClock.increment(TimeUnit.DAYS); in testRun_oneRecordingsFinished() 80 mFakeClock.increment(TimeUnit.MINUTES, 2); in testRun_oneRecordingsFinished() 90 mFakeClock.increment(TimeUnit.DAYS, 1 + ScheduledProgramReaper.DAYS); in testRun_oneRecordingsExpired() 91 mFakeClock.increment(TimeUnit.MILLISECONDS, DURATION); in testRun_oneRecordingsExpired() 93 mFakeClock.increment(TimeUnit.SECONDS, 1); in testRun_oneRecordingsExpired() [all …]
|
D | BaseDvrDataManagerTest.java | 38 private FakeClock mFakeClock; field in BaseDvrDataManagerTest 43 mFakeClock = FakeClock.createWithCurrentTime(); in setUp() 44 mDvrDataManager = new DvrDataManagerInMemoryImpl(getContext(), mFakeClock); in setUp() 56 mFakeClock.increment(TimeUnit.MINUTES, 6); in testGetNonStartedScheduledRecordings_past() 67 mFakeClock.currentTimeMillis(), in createNewScheduledRecordingStartingNow() 68 mFakeClock.currentTimeMillis() + TimeUnit.MINUTES.toMillis(5))) in createNewScheduledRecordingStartingNow()
|
D | SchedulerTest.java | 50 private FakeClock mFakeClock; field in SchedulerTest 63 mFakeClock = FakeClock.createWithCurrentTime(); in setUp() 64 mDataManager = new DvrDataManagerInMemoryImpl(getContext(), mFakeClock); in setUp() 66 mChannelDataManager, getContext(), mFakeClock, mMockAlarmManager); in setUp() 75 long now = mFakeClock.currentTimeMillis(); in testUpdate_nextIn12Hours() 89 long now = mFakeClock.currentTimeMillis(); in testStartsWithin()
|
D | RecordingTaskTest.java | 62 private FakeClock mFakeClock; field in RecordingTaskTest 76 mFakeClock = FakeClock.createWithCurrentTime(); in setUp() 77 mDataManager = new DvrDataManagerInMemoryImpl(getContext(), mFakeClock); in setUp() 139 long startTime = mFakeClock.currentTimeMillis() + START_OFFSET; in createRecording() 148 mMockSessionManager, mDataManager, mFakeClock); in createRecordingTask()
|
D | DvrRecordingServiceTest.java | 49 private FakeClock mFakeClock = FakeClock.createWithCurrentTime(); field in DvrRecordingServiceTest 56 mDataManager = new DvrDataManagerInMemoryImpl(getContext(), mFakeClock); in setUp()
|