Loading services/tests/uiservicestests/src/com/android/server/notification/SnoozeHelperTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ public class SnoozeHelperTest extends UiServiceTestCase { verify(mAm, times(1)).setExactAndAllowWhileIdle( anyInt(), captor.capture(), any(PendingIntent.class)); long actualSnoozedUntilDuration = captor.getValue() - SystemClock.elapsedRealtime(); assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 25); assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 250); assertTrue(mSnoozeHelper.isSnoozed( UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); } Loading Loading
services/tests/uiservicestests/src/com/android/server/notification/SnoozeHelperTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ public class SnoozeHelperTest extends UiServiceTestCase { verify(mAm, times(1)).setExactAndAllowWhileIdle( anyInt(), captor.capture(), any(PendingIntent.class)); long actualSnoozedUntilDuration = captor.getValue() - SystemClock.elapsedRealtime(); assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 25); assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 250); assertTrue(mSnoozeHelper.isSnoozed( UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); } Loading