/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | TracePointRuleTest.java | 16 package android.platform.test.rule; 39 TestableTracePointRule rule = new TestableTracePointRule(); in testNoNameGiven() local 40 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testNoNameGiven() 42 assertThat(rule.getOperations()).contains("begin: mthd(clzz)"); in testNoNameGiven() 50 TestableTracePointRule rule = new TestableTracePointRule(""); in testEmptyStringGiven() local 51 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testEmptyStringGiven() 53 assertThat(rule.getOperations()).contains("begin: mthd(clzz)"); in testEmptyStringGiven() 61 TestableTracePointRule rule = new TestableTracePointRule("FakeName"); in testTagGiven() local 62 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testTagGiven() 64 assertThat(rule.getOperations()).contains("begin: FakeName"); in testTagGiven() [all …]
|
D | KillAppsRuleTest.java | 16 package android.platform.test.rule; 44 KillAppsRule rule = new KillAppsRule(); in testNoAppToKillFails() local 56 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), "example.package.name"); in testOneAppToKill() local 57 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testOneAppToKill() 59 assertThat(rule.getOperations()).containsExactly( in testOneAppToKill() 69 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), in testMultipleAppsToKill() local 73 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testMultipleAppsToKill() 75 assertThat(rule.getOperations()).containsExactly( in testMultipleAppsToKill() 90 TestableKillAppsRule rule = new TestableKillAppsRule(noKillAppsBundle, in testDisableKillsAppsRuleOption() local 93 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDisableKillsAppsRuleOption() [all …]
|
D | UnlockScreenRuleTest.java | 16 package android.platform.test.rule; 40 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(false, false); in testScreenOff() local 46 verify(rule.getUiDevice(), times(1)).wakeUp(); in testScreenOff() 47 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenOff() 50 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testScreenOff() 56 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, false); in testScreenLocked() local 62 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenLocked() 63 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenLocked() 66 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testScreenLocked() 72 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, true); in testScreenOn() local [all …]
|
D | QuickstepPressureRuleTest.java | 16 package android.platform.test.rule; 37 QuickstepPressureRule rule = new QuickstepPressureRule(); in testNoAppToOpenFails() local 47 TestableQuickstepPressureRule rule = in testOneAppToOpen() local 49 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testOneAppToOpen() 51 assertThat(rule.getOperations()) in testOneAppToOpen() 59 TestableQuickstepPressureRule rule = in testMultipleAppsToOpen() local 62 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testMultipleAppsToOpen() 64 assertThat(rule.getOperations()) in testMultipleAppsToOpen()
|
D | IorapCompilationRuleTest.java | 16 package android.platform.test.rule; 45 IorapCompilationRule rule = new IorapCompilationRule(); in testNoAppToKillFails() local 57 TestableIorapCompilationRule rule = in testDoingNothingWhenParamsUnset() local 59 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDoingNothingWhenParamsUnset() 61 assertThat(rule.getOperations()).containsExactly( in testDoingNothingWhenParamsUnset() 73 TestableIorapCompilationRule rule = in testDisablingIorapdWhenParamsAreSet() local 75 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDisablingIorapdWhenParamsAreSet() 77 assertThat(rule.getOperations()).containsExactly( in testDisablingIorapdWhenParamsAreSet() 93 TestableIorapCompilationRule rule = in testEnablingIorapdWhenParamsAreSet() local 95 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testEnablingIorapdWhenParamsAreSet() [all …]
|
D | CompilationFilterRuleTest.java | 16 package android.platform.test.rule; 41 CompilationFilterRule rule = new CompilationFilterRule(); in testNoAppToCompileFails() local 52 TestableCompilationFilterRule rule = in testAppToCompile_badFilterThrows() local 55 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_badFilterThrows() 66 TestableCompilationFilterRule rule = in testAppToCompile_failCompilationThrows() local 75 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_failCompilationThrows() 86 TestableCompilationFilterRule rule = in testOneAppToCompile() local 94 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testOneAppToCompile() 97 assertThat(rule.getOperations()).containsExactly(compileCmd, "test").inOrder(); in testOneAppToCompile() 105 TestableCompilationFilterRule rule = in testMultipleAppsToCompile() local [all …]
|
D | DropCachesRuleTest.java | 16 package android.platform.test.rule; 41 TestableDropCachesRule rule = new TestableDropCachesRule(new Bundle()); in testDropCachesCommand() local 42 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDropCachesCommand() 44 assertThat(rule.getOperations()).containsExactly( in testDropCachesCommand() 56 TestableDropCachesRule rule = new TestableDropCachesRule(noDropCacheBundle); in testNoDropCacheFlag() local 58 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testNoDropCacheFlag() 60 assertThat(rule.getOperations()).containsExactly("test") in testNoDropCacheFlag()
|
D | NotificationPressureRuleTest.java | 17 package android.platform.test.rule; 42 TestableNotificationPressureRule rule = in testPostNotifications_withoutPackage() local 49 verify(rule.initNotificationHelper()) in testPostNotifications_withoutPackage() 54 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")) in testPostNotifications_withoutPackage() 58 verify(rule.initNotificationHelper()).cancelNotifications(); in testPostNotifications_withoutPackage() 67 TestableNotificationPressureRule rule = in testPostNotifications_withPackage() local 74 verify(rule.initNotificationHelper()) in testPostNotifications_withPackage() 79 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPostNotifications_withPackage() 82 verify(rule.initNotificationHelper()).cancelNotifications(); in testPostNotifications_withPackage()
|
D | StopwatchRuleTest.java | 17 package android.platform.test.rule; 40 StopwatchRule rule = new StopwatchRule(); in testMeasurementIsCorrect() local 41 rule.apply( in testMeasurementIsCorrect() 52 Bundle metric = rule.getMetric(); in testMeasurementIsCorrect() 61 StopwatchRule rule = new StopwatchRule(); in testMetricSendToInstr() local 63 rule.setInstrumentation(instr); in testMetricSendToInstr() 64 rule.apply( in testMetricSendToInstr() 71 verify(instr).sendStatus(StopwatchRule.INST_STATUS_IN_PROGRESS, rule.getMetric()); in testMetricSendToInstr()
|
D | PressHomeRuleTest.java | 16 package android.platform.test.rule; 47 TestablePressHomeRule rule = new TestablePressHomeRule(pressHomeBundle); in testPressHomeEnabled() local 53 verify(rule.getUiDevice(), never()).pressHome(); in testPressHomeEnabled() 56 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPressHomeEnabled() 58 verify(rule.getUiDevice(), times(1)).pressHome(); in testPressHomeEnabled() 69 TestablePressHomeRule rule = new TestablePressHomeRule(pressHomeBundle); in testPressHomeDisabled() local 75 verify(rule.getUiDevice(), never()).pressHome(); in testPressHomeDisabled() 78 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPressHomeDisabled() 80 verify(rule.getUiDevice(), times(0)).pressHome(); in testPressHomeDisabled()
|
D | NaturalOrientationRuleTest.java | 16 package android.platform.test.rule; 42 TestableNaturalOrientationRule rule = new TestableNaturalOrientationRule(); in testNaturalOrientationSetAndUnset() local 47 verify(rule.getUiDevice(), times(1)).setOrientationNatural(); in testNaturalOrientationSetAndUnset() 48 verify(rule.getUiDevice(), never()).unfreezeRotation(); in testNaturalOrientationSetAndUnset() 51 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testNaturalOrientationSetAndUnset() 53 verify(rule.getUiDevice(), times(1)).unfreezeRotation(); in testNaturalOrientationSetAndUnset()
|
D | GarbageCollectRuleTest.java | 16 package android.platform.test.rule; 44 GarbageCollectRule rule = new GarbageCollectRule(); in testNoAppToGcFails() local 56 GarbageCollectRule rule = new TestableGarbageCollectRule("package.name1"); in testCallsGcBeforeTest() local 66 rule.apply(testStatement, in testCallsGcBeforeTest()
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/generic/ |
D | OpenAppMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.IorapCompilationRule; 22 import android.platform.test.rule.KillAppsRule; 23 import android.platform.test.rule.PressHomeRule;
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/performancelaunch/hermeticapp/ |
D | OpenSimpleSurfaceGLActivityMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
D | OpenManyConfigResourceActivityMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
D | OpenEmptyWebViewActivityMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
D | OpenEmptyActivityMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/businesscard/ |
D | OpenAppMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/performancelaunch/ |
D | OpenAppMicrobenchmark.java | 19 import android.platform.test.rule.CompilationFilterRule; 20 import android.platform.test.rule.DropCachesRule; 21 import android.platform.test.rule.KillAppsRule; 22 import android.platform.test.rule.PressHomeRule;
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/sleep/ |
D | IdleSystemServerMemoryMicrobenchmark.java | 20 import android.platform.test.rule.GarbageCollectRule;
|
D | IdleSystemUiMemoryMicrobenchmark.java | 20 import android.platform.test.rule.GarbageCollectRule;
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | PressHomeRule.java | 16 package android.platform.test.rule;
|
D | NaturalOrientationRule.java | 16 package android.platform.test.rule;
|
D | GarbageCollectRule.java | 16 package android.platform.test.rule;
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/hermeticapp/ |
D | OpenEmptyWebViewActivity.java | 18 import android.platform.test.rule.NaturalOrientationRule;
|