Home
last modified time | relevance | path

Searched refs:TestcaseType (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBatterySaverModeTest.java61 if (!runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_OFF, false)) { in testAll()
65 runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_ON, true); in testAll()
70 if (!runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_ON, true)) { in testAll()
74 runTest(BroadcastUtils.TestcaseType.BATTERYSAVER_MODE_OFF, false); in testAll()
78 … private boolean runTest(BroadcastUtils.TestcaseType test, boolean expectedMode) throws Exception { in runTest()
DAirplaneModeTest.java71 if (!runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_ON, AIRPLANE_MODE_IS_ON)) { in testAll()
75 runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_OFF, AIRPLANE_MODE_IS_OFF); in testAll()
80 if (!runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_OFF, AIRPLANE_MODE_IS_OFF)) { in testAll()
84 runTest(BroadcastUtils.TestcaseType.AIRPLANE_MODE_ON, AIRPLANE_MODE_IS_ON); in testAll()
88 private boolean runTest(BroadcastUtils.TestcaseType test, int expectedMode) throws Exception { in runTest()
DZenModeTest.java76 if (!runTest(BroadcastUtils.TestcaseType.ZEN_MODE_ON, ZEN_MODE_IS_ALARMS)) { in testAll()
80 runTest(BroadcastUtils.TestcaseType.ZEN_MODE_OFF, ZEN_MODE_IS_OFF); in testAll()
85 if (!runTest(BroadcastUtils.TestcaseType.ZEN_MODE_OFF, ZEN_MODE_IS_OFF)) { in testAll()
89 runTest(BroadcastUtils.TestcaseType.ZEN_MODE_ON, ZEN_MODE_IS_ALARMS); in testAll()
93 private boolean runTest(BroadcastUtils.TestcaseType test, int expectedMode) throws Exception { in runTest()
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DDismissAlarmTest.java20 import android.alarmclock.common.Utils.TestcaseType;
28 assertEquals(Utils.COMPLETION_RESULT, runTest(TestcaseType.SET_ALARM_FOR_DISMISSAL)); in testAll()
29 assertEquals(Utils.COMPLETION_RESULT, runTest(TestcaseType.DISMISS_ALARM)); in testAll()
DAlarmClockTestBase.java20 import android.alarmclock.common.Utils.TestcaseType;
44 private TestcaseType mTestCaseType;
71 private void registerBroadcastReceiver(TestcaseType testCaseType) throws Exception { in registerBroadcastReceiver()
79 private boolean isIntentSupported(TestcaseType testCaseType) { in isIntentSupported()
108 protected String runTest(TestcaseType testCaseType) throws Exception { in runTest()
127 private boolean startTestActivity(TestcaseType testCaseType) { in startTestActivity()
DSetAlarmTest.java20 import android.alarmclock.common.Utils.TestcaseType;
28 assertEquals(Utils.COMPLETION_RESULT, runTest(TestcaseType.SET_ALARM)); in testAll()
DSnoozeAlarmTest.java20 import android.alarmclock.common.Utils.TestcaseType;
28 String result = runTest(TestcaseType.SNOOZE_ALARM); in testAll()
/cts/libs/deviceutil/src/android/cts/util/
DBroadcastTestBase.java44 private BroadcastUtils.TestcaseType mTestCaseType;
92 …protected void registerBroadcastReceiver(BroadcastUtils.TestcaseType testCaseType) throws Exceptio… in registerBroadcastReceiver()
100 protected boolean startTestAndWaitForBroadcast(BroadcastUtils.TestcaseType testCaseType, in startTestAndWaitForBroadcast()
DBroadcastUtils.java21 public enum TestcaseType { enum in BroadcastUtils
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
DMainInteractionSession.java20 import android.alarmclock.common.Utils.TestcaseType;
37 private TestcaseType mTestType;
65 mTestType = TestcaseType.valueOf(testCaseType); in onShow()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java31 import android.cts.util.BroadcastUtils.TestcaseType;
45 TestcaseType mTestType;
72 mTestType = TestcaseType.valueOf(testCaseType); in onShow()
/cts/tests/tests/alarmclock/common/src/android/alarmclock/common/
DUtils.java25 public enum TestcaseType { enum in Utils