Searched refs:fakeClock (Results 1 – 8 of 8) sorted by relevance
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 269 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/ |
D | FakeEpgReader.java | 53 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()
|
D | TestSingletonApp.java | 65 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()
|
D | EpgTestData.java | 167 loadData(testSingletonApp.fakeClock, testSingletonApp.epgReader); in loadData()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/ |
D | ProgramTableAdapterTest.java | 67 app.fakeClock.setBootTimeMillis(mTestStartTimeMs + TimeUnit.HOURS.toMillis(-12)); in setup() 68 app.fakeClock.setCurrentTimeMillis(mTestStartTimeMs); in setup()
|
D | ProgramItemViewTest.java | 142 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/ |
D | MockTvSingletons.java | 54 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/ |
D | SeriesRecordingSchedulerTest.java | 77 FakeClock fakeClock = FakeClock.createWithCurrentTime(); in setUp() local 78 mDataManager = new DvrDataManagerInMemoryImpl(RuntimeEnvironment.application, fakeClock); in setUp()
|