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.java62 private void registerBroadcastReceiver(TestcaseType testCaseType) throws Exception { in registerBroadcastReceiver() argument
63 mTestCaseType = testCaseType; in registerBroadcastReceiver()
70 new IntentFilter(Utils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
73 private boolean isIntentAupported(TestcaseType testCaseType) { in isIntentAupported() argument
75 switch (testCaseType) { in isIntentAupported()
102 protected String runTest(TestcaseType testCaseType) throws Exception { in runTest() argument
103 Log.i(TAG, "Begin Testing: " + testCaseType); in runTest()
105 if (!isIntentAupported(testCaseType)) return Utils.COMPLETION_RESULT; in runTest()
107 if (!startTestActivity(testCaseType)) { in runTest()
108 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/tests/tests/voicesettings/src/android/voicesettings/cts/
DVoiceSettingsTestBase.java69 protected void registerBroadcastReceiver(Utils.TestcaseType testCaseType) throws Exception { in registerBroadcastReceiver() argument
70 mTestCaseType = testCaseType; in registerBroadcastReceiver()
77 new IntentFilter(Utils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
80 protected boolean startTestAndWaitForBroadcast(Utils.TestcaseType testCaseType) in startTestAndWaitForBroadcast() argument
82 Log.i(TAG, "Begin Testing: " + testCaseType); in startTestAndWaitForBroadcast()
83 registerBroadcastReceiver(testCaseType); in startTestAndWaitForBroadcast()
84 mActivity.startTest(testCaseType.toString()); in startTestAndWaitForBroadcast()
DTestStartActivity.java42 void startTest(String testCaseType) { in startTest() argument
44 Log.i(TAG, "received_testcasetype = " + testCaseType); in startTest()
45 intent.putExtra(Utils.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(Utils.TESTCASE_TYPE); in onCreate() local
35 Log.i(TAG, "received_testcasetype = " + testCaseType); in onCreate()
36 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType); in onCreate()
DMainInteractionSession.java69 String testCaseType = args.getString(Utils.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.java126 public static final String getTestActivity(String testCaseType) { in getTestActivity() argument
127 switch (testCaseType) { in getTestActivity()
147 public static final ComponentName getTestAppComponent(String testCaseType) { in getTestAppComponent() argument
148 switch (testCaseType) { in getTestAppComponent()
173 public static final int getAssistDataTimeout(String testCaseType) { in getAssistDataTimeout() argument
174 switch (testCaseType) { in getAssistDataTimeout()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java98 private void verifySingleTestcaseResult(Utils.TestCaseType testCaseType, String result) { in verifySingleTestcaseResult() argument
99 Log.i(TAG, "Recevied testresult: " + result + " for " + testCaseType); in verifySingleTestcaseResult()
100 switch (testCaseType) { in verifySingleTestcaseResult()
138 Log.i(TAG, testCaseType + " passed"); in verifySingleTestcaseResult()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java218 Utils.TestCaseType testCaseType; in isTestTypeCancel() local
220 testCaseType = Utils.TestCaseType.valueOf(extras.getString(Utils.TESTCASE_TYPE)); in isTestTypeCancel()
225 return testCaseType == Utils.TestCaseType.COMPLETION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
226 testCaseType == Utils.TestCaseType.COMMANDREQUEST_CANCEL_TEST || in isTestTypeCancel()
227 testCaseType == Utils.TestCaseType.CONFIRMATION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
228 testCaseType == Utils.TestCaseType.PICKOPTION_REQUEST_CANCEL_TEST || in isTestTypeCancel()
229 testCaseType == Utils.TestCaseType.ABORT_REQUEST_CANCEL_TEST; in isTestTypeCancel()