Home
last modified time | relevance | path

Searched refs:BroadcastUtils (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DZenModeTest.java24 import android.cts.util.BroadcastUtils;
76 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()
102 Log.i(TAG, "results_received: " + BroadcastUtils.toBundleString(mResultExtras)); in runTest()
106 assertEquals(BroadcastUtils.NUM_MINUTES_FOR_ZENMODE, in runTest()
DBatterySaverModeTest.java22 import android.cts.util.BroadcastUtils;
61 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.java22 import android.cts.util.BroadcastUtils;
71 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()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionService.java24 import android.cts.util.BroadcastUtils;
41 mIntent.getStringExtra(BroadcastUtils.TESTCASE_TYPE)); in onStartCommand()
54 args.putString(BroadcastUtils.TESTCASE_TYPE, in maybeStart()
55 mIntent.getStringExtra(BroadcastUtils.TESTCASE_TYPE)); in maybeStart()
57 args.getString(BroadcastUtils.TESTCASE_TYPE)); in maybeStart()
DMainInteractionSession.java30 import android.cts.util.BroadcastUtils;
31 import android.cts.util.BroadcastUtils.TestcaseType;
69 String testCaseType = args.getString(BroadcastUtils.TESTCASE_TYPE); in onShow()
86 BroadcastUtils.NUM_MINUTES_FOR_ZENMODE); in onShow()
122 intent.toString() + BroadcastUtils.toBundleString(extras)); in onTaskFinished()
123 Intent broadcastIntent = new Intent(BroadcastUtils.BROADCAST_INTENT + in onTaskFinished()
128 extras.putString(BroadcastUtils.TESTCASE_TYPE, mTestType.toString()); in onTaskFinished()
130 Log.i(TAG, "sending_broadcast: Bundle = " + BroadcastUtils.toBundleString(extras) + in onTaskFinished()
DVoiceInteractionMain.java25 import android.cts.util.BroadcastUtils;
34 String testCaseType = getIntent().getStringExtra(BroadcastUtils.TESTCASE_TYPE); in onCreate()
36 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); in onCreate()
/cts/libs/deviceutil/src/android/cts/util/
DBroadcastTestBase.java27 import android.cts.util.BroadcastUtils;
44 private BroadcastUtils.TestcaseType mTestCaseType;
92 …protected void registerBroadcastReceiver(BroadcastUtils.TestcaseType testCaseType) throws Exceptio… in registerBroadcastReceiver()
97 new IntentFilter(BroadcastUtils.BROADCAST_INTENT + testCaseType.toString())); in registerBroadcastReceiver()
100 protected boolean startTestAndWaitForBroadcast(BroadcastUtils.TestcaseType testCaseType, in startTestAndWaitForBroadcast()
116 BroadcastUtils.BROADCAST_INTENT + in onReceive()
119 Log.i(TAG, "received_broadcast for " + BroadcastUtils.toBundleString(extras)); in onReceive()
DBroadcastTestStartActivity.java25 import android.cts.util.BroadcastUtils;
45 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); in startTest()
DBroadcastUtils.java20 public class BroadcastUtils { class