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
87 switch (testCaseType) { in isIntentSupported()
112 protected String runTest(TestcaseType testCaseType) throws Exception { in runTest() argument
113 Log.i(TAG, "Begin Testing: " + testCaseType); in runTest()
115 if (!isIntentSupported(testCaseType)) return Utils.COMPLETION_RESULT; in runTest()
117 if (!startTestActivity(testCaseType)) { in runTest()
118 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/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastTestBase.java90 …protected void registerBroadcastReceiver(BroadcastUtils.TestcaseType testCaseType) throws Exceptio… in registerBroadcastReceiver() argument
91 mTestCaseType = testCaseType; in registerBroadcastReceiver()
95 new IntentFilter(BroadcastUtils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
98 protected boolean startTestAndWaitForBroadcast(BroadcastUtils.TestcaseType testCaseType, in startTestAndWaitForBroadcast() argument
100 Log.i(TAG, "Begin Testing: " + testCaseType); in startTestAndWaitForBroadcast()
101 registerBroadcastReceiver(testCaseType); in startTestAndWaitForBroadcast()
102 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast()
DBroadcastTestStartActivity.java40 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument
42 Log.i(TAG, "received_testcasetype = " + testCaseType); in startTest()
43 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); in startTest()
44 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.java70 String testCaseType = args.getString(BroadcastUtils.TESTCASE_TYPE); in onShow() local
71 Log.i(TAG, "received_testcasetype = " + testCaseType); in onShow()
73 mTestType = TestcaseType.valueOf(testCaseType); in onShow()
/cts/tests/tests/assist/common/src/android/assist/common/
DUtils.java154 public static final String getTestActivity(String testCaseType) { in getTestActivity() argument
155 switch (testCaseType) { in getTestActivity()
180 public static final ComponentName getTestAppComponent(String testCaseType) { in getTestAppComponent() argument
181 switch (testCaseType) { in getTestAppComponent()
219 public static final int getAssistDataTimeout(String testCaseType) { in getAssistDataTimeout() argument
220 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()