Home
last modified time | relevance | path

Searched refs:testCaseType (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DAlarmClockTestBase.java71 private void registerBroadcastReceiver(TestcaseType testCaseType) throws Exception { in registerBroadcastReceiver() argument
72 mTestCaseType = testCaseType; in registerBroadcastReceiver()
76 new IntentFilter(Utils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
79 private boolean isIntentSupported(TestcaseType testCaseType) { in isIntentSupported() argument
81 switch (testCaseType) { in isIntentSupported()
108 protected String runTest(TestcaseType testCaseType) throws Exception { in runTest() argument
109 Log.i(TAG, "Begin Testing: " + testCaseType); in runTest()
111 if (!isIntentSupported(testCaseType)) return Utils.COMPLETION_RESULT; in runTest()
113 if (!startTestActivity(testCaseType)) { in runTest()
114 fail("test activity start failed for testcase = " + testCaseType); in runTest()
[all …]
DTestStartActivity.java41 void startTest(String testCaseType) { in startTest() argument
43 Log.i(TAG, "received_testcasetype = " + testCaseType); in startTest()
44 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType); in startTest()
45 intent.setAction("android.intent.action.VIMAIN_" + testCaseType); in startTest()
/cts/libs/deviceutil/src/android/cts/util/
DBroadcastTestBase.java92 …protected void registerBroadcastReceiver(BroadcastUtils.TestcaseType testCaseType) throws Exceptio… in registerBroadcastReceiver() argument
93 mTestCaseType = testCaseType; in registerBroadcastReceiver()
97 new IntentFilter(BroadcastUtils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
100 protected boolean startTestAndWaitForBroadcast(BroadcastUtils.TestcaseType testCaseType, in startTestAndWaitForBroadcast() argument
102 Log.i(TAG, "Begin Testing: " + testCaseType); in startTestAndWaitForBroadcast()
103 registerBroadcastReceiver(testCaseType); in startTestAndWaitForBroadcast()
104 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast()
DBroadcastTestStartActivity.java42 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument
44 Log.i(TAG, "received_testcasetype = " + testCaseType); in startTest()
45 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); in startTest()
46 intent.setAction("android.intent.action.VIMAIN_" + testCaseType); in startTest()
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
DVoiceInteractionMain.java33 String testCaseType = getIntent().getStringExtra(Utils.TESTCASE_TYPE); in onCreate() local
34 Log.i(TAG, "received_testcasetype = " + testCaseType); in onCreate()
35 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType); in onCreate()
DMainInteractionSession.java62 String testCaseType = args.getString(Utils.TESTCASE_TYPE); in onShow() local
63 Log.i(TAG, "received_testcasetype = " + testCaseType); in onShow()
65 mTestType = TestcaseType.valueOf(testCaseType); in onShow()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DVoiceInteractionMain.java34 String testCaseType = getIntent().getStringExtra(BroadcastUtils.TESTCASE_TYPE); in onCreate() local
35 Log.i(TAG, "received_testcasetype = " + testCaseType); in onCreate()
36 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); in onCreate()
DMainInteractionSession.java69 String testCaseType = args.getString(BroadcastUtils.TESTCASE_TYPE); in onShow() local
70 Log.i(TAG, "received_testcasetype = " + testCaseType); in onShow()
72 mTestType = TestcaseType.valueOf(testCaseType); in onShow()
/cts/tests/tests/assist/common/src/android/assist/common/
DUtils.java141 public static final String getTestActivity(String testCaseType) { in getTestActivity() argument
142 switch (testCaseType) { in getTestActivity()
166 public static final ComponentName getTestAppComponent(String testCaseType) { in getTestAppComponent() argument
167 switch (testCaseType) { in getTestAppComponent()
204 public static final int getAssistDataTimeout(String testCaseType) { in getAssistDataTimeout() argument
205 switch (testCaseType) { in getAssistDataTimeout()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java118 private void verifySingleTestcaseResult(Utils.TestCaseType testCaseType, String result) { in verifySingleTestcaseResult() argument
119 Log.i(TAG, "Recevied testresult: " + result + " for " + testCaseType); in verifySingleTestcaseResult()
120 switch (testCaseType) { in verifySingleTestcaseResult()
158 Log.i(TAG, testCaseType + " passed"); in verifySingleTestcaseResult()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java231 Utils.TestCaseType testCaseType; in isTestTypeCancel() local
233 testCaseType = Utils.TestCaseType.valueOf(extras.getString(Utils.TESTCASE_TYPE)); in isTestTypeCancel()
238 return testCaseType == Utils.TestCaseType.COMPLETION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
239 testCaseType == Utils.TestCaseType.COMMANDREQUEST_CANCEL_TEST || in isTestTypeCancel()
240 testCaseType == Utils.TestCaseType.CONFIRMATION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
241 testCaseType == Utils.TestCaseType.PICKOPTION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
242 testCaseType == Utils.TestCaseType.ABORT_REQUEST_CANCEL_TEST; in isTestTypeCancel()