Searched refs:ShadowSystemClock (Results 1 – 9 of 9) sorted by relevance
38 assertThat(ShadowSystemClock.now()).isEqualTo(1000); in testSetCurrentTime()40 assertThat(ShadowSystemClock.now()).isEqualTo(1034); in testSetCurrentTime()42 assertThat(ShadowSystemClock.now()).isEqualTo(1034); in testSetCurrentTime()63 ShadowSystemClock.setNanoTime(3141592L); in shouldInterceptSystemTimeCalls()75 ShadowSystemClock.setNanoTime(123456000000L); in currentNetworkTimeMillis_networkTimeAvailable_shouldReturnCurrentTime()82 ShadowSystemClock.setNetworkTimeAvailable(false); in currentNetworkTimeMillis_networkTimeNotAvailable_shouldThrowDateTimeException()
78 ShadowSystemClock.setCurrentTimeMillis(today); in isToday_shouldReturnFalseForNotToday()
17 import org.robolectric.shadows.ShadowSystemClock;47 ShadowSystemClock.setNanoTime(123456); in systemNanoTime_shouldReturnShadowClockTime()54 ShadowSystemClock.setNanoTime(TimeUnit.MILLISECONDS.toNanos(54321)); in systemCurrentTimeMillis_shouldReturnShadowClockTime()
19 public class ShadowSystemClock { class109 ShadowSystemClock.nanoTime = nanoTime; in setNanoTime()
27 time.set(ShadowSystemClock.currentTimeMillis()); in setToNow()
19 import org.robolectric.shadows.ShadowSystemClock;128 return lookup.findStatic(ShadowSystemClock.class,131 return lookup.findStatic(ShadowSystemClock.class,
26 import com.android.volley.mock.ShadowSystemClock;39 @Config(shadows = {ShadowSystemClock.class})
29 import com.android.volley.mock.ShadowSystemClock;49 @Config(shadows = {ShadowSystemClock.class})
23 public class ShadowSystemClock { class