Searched refs:expected (Results 1 – 10 of 10) sorted by relevance
/platform_testing/libraries/metrics-helper/src/android/support/test/metricshelper/ |
D | MetricsAsserts.java | 100 public static void assertHasLog(String message, MetricsReader reader, LogMaker expected) { in assertHasLog() argument 102 assertHasLog(message, new ReaderQueue(reader), expected); in assertHasLog() 108 public static void assertHasLog(String message, Queue<LogMaker> queue, LogMaker expected) { in assertHasLog() argument 109 assertTrue(message, !findMatchingLogs(queue, expected).isEmpty()); in assertHasLog()
|
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/ |
D | AbstractLeanbackAppHelper.java | 446 public void assertWidgetEquals(Widget expected) { 447 if (!hasWidget(expected)) { 448 throw new UnknownUiException("No widget matches " + expected.name()); 452 private boolean hasWidget(Widget expected) { 453 switch (expected) { 471 Log.w(TAG, "Unable to find the widget in the list: " + expected.name());
|
/platform_testing/libraries/aoa-helper/tests/src/com/android/helper/aoa/ |
D | AoaDeviceTest.java | 161 @Test(expected = UsbException.class) 167 @Test(expected = UsbException.class) 346 private void verifyTouches(Touch... expected) { in verifyTouches() argument 347 verifyTouches(Arrays.asList(expected)); in verifyTouches() 350 private void verifyTouches(List<Touch> expected) { in verifyTouches() argument 353 verify(mDelegate, times(expected.size())) in verifyTouches() 363 assertEquals(expected, events); in verifyTouches()
|
D | UsbDeviceTest.java | 94 @Test(expected = NullPointerException.class) 107 @Test(expected = NullPointerException.class)
|
D | UsbHelperTest.java | 112 @Test(expected = UsbException.class)
|
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/ |
D | PermissionHelper.java | 235 PermissionStatus expected) throws UiObjectNotFoundException { in verifyPermissionSettingStatus() argument 236 if (!expected.equals(PermissionStatus.ON) && !expected.equals(PermissionStatus.OFF)) { in verifyPermissionSettingStatus() 237 throw new RuntimeException(String.format("%s isn't valid permission status", expected)); in verifyPermissionSettingStatus() 246 return status.equals(expected.toString().toUpperCase()); in verifyPermissionSettingStatus()
|
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/ |
D | LongevitySuiteTest.java | 183 InitializationError expected = in testThrowingErrorReportingRunnerCauses() local 190 .thenReturn(new ErrorReportingRunner(IterationSuite.TestTwo.class, expected)); in testThrowingErrorReportingRunnerCauses()
|
D | ScheduledScenarioRunnerTest.java | 410 private long getWithinMarginMatcher(long expected, long margin) { in getWithinMarginMatcher() argument 411 return longThat(duration -> abs(duration - expected) <= margin); in getWithinMarginMatcher()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | TvLauncherStrategy.java | 596 UiObject2 expected = null; 599 expected = mDevice.wait(Until.findObject(appSelector), UI_WAIT_TIME_MS); 601 if (expected == null) { 612 Point targetPosition = expected.getVisibleCenter(); 636 return expected;
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | PerfettoListenerTest.java | 232 } catch (RuntimeException expected) { in testRunWithWakeLockHoldsAndReleasesAWakelockWhenThereIsAnException()
|