Home
last modified time | relevance | path

Searched refs:getDeviceTimeOffset (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DTimeStatusCheckerTest.java55 when(mMockDevice.getDeviceTimeOffset(Mockito.any())).thenReturn(2000L); in testCheckTimeDiff_small()
66 when(mMockDevice.getDeviceTimeOffset(Mockito.any())).thenReturn(15000L); in testCheckTimeDiff_large()
81 when(mMockDevice.getDeviceTimeOffset(Mockito.any())).thenReturn(15000L); in testCheckTimeDiff_multiFailure()
90 verify(mMockDevice, times(2)).getDeviceTimeOffset(Mockito.any()); in testCheckTimeDiff_multiFailure()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DTimeStatusChecker.java35 long difference = device.getDeviceTimeOffset(new Date()); in postExecutionCheck()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DWaitForDeviceDatetimePreparer.java111 long timeOffset = device.getDeviceTimeOffset(null); in waitForDeviceDatetime()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DNativeDeviceTest.java1247 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testIsNewer()
1278 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testIsNewer_timeOffset()
1310 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testIsNewer_fails()
1917 assertEquals(10000L, mTestDevice.getDeviceTimeOffset(date)); in testGetDeviceTimeOffset()
1936 assertEquals(-10000L, mTestDevice.getDeviceTimeOffset(date)); in testGetDeviceTimeOffset_delay()
1954 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testSetDate()
1985 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testSetDate_lowApi()
2008 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in testSetDate_NoAction()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java1462 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException; in getDeviceTimeOffset() method
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java2363 offset = getDeviceTimeOffset(null); in isNewer()
4811 public long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException { in getDeviceTimeOffset() method in NativeDevice
4831 long timeOffset = getDeviceTimeOffset(date); in setDate()