Home
last modified time | relevance | path

Searched refs:broadcastReceiver (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java161 LocalBroadcastReceiver broadcastReceiver = new LocalBroadcastReceiver(); in testCreateAndManageUser_SwitchUser() local
162 localBroadcastManager.registerReceiver(broadcastReceiver, in testCreateAndManageUser_SwitchUser()
166 assertEquals(userHandle, broadcastReceiver.waitForBroadcastReceived()); in testCreateAndManageUser_SwitchUser()
168 localBroadcastManager.unregisterReceiver(broadcastReceiver); in testCreateAndManageUser_SwitchUser()
186 LocalBroadcastReceiver broadcastReceiver = new LocalBroadcastReceiver(); in testCreateAndManageUser_CannotStopCurrentUser() local
187 localBroadcastManager.registerReceiver(broadcastReceiver, in testCreateAndManageUser_CannotStopCurrentUser()
191 assertEquals(userHandle, broadcastReceiver.waitForBroadcastReceived()); in testCreateAndManageUser_CannotStopCurrentUser()
195 localBroadcastManager.unregisterReceiver(broadcastReceiver); in testCreateAndManageUser_CannotStopCurrentUser()
213 LocalBroadcastReceiver broadcastReceiver = new LocalBroadcastReceiver(); in testCreateAndManageUser_StartInBackground() local
214 localBroadcastManager.registerReceiver(broadcastReceiver, in testCreateAndManageUser_StartInBackground()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java546 final TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testSendOrderedBroadcast2() local
547 broadcastReceiver.mIsOrderedBroadcasts = true; in testSendOrderedBroadcast2()
554 mContext.sendOrderedBroadcast(intent, null, broadcastReceiver, null, 1, in testSendOrderedBroadcast2()
565 assertTrue("Receiver didn't make any response.", broadcastReceiver.hadReceivedBroadCast()); in testSendOrderedBroadcast2()
566 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), 3, in testSendOrderedBroadcast2()
567 broadcastReceiver.getResultCode()); in testSendOrderedBroadcast2()
568 assertEquals(ACTUAL_RESULT, broadcastReceiver.getResultData()); in testSendOrderedBroadcast2()
569 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testSendOrderedBroadcast2()
680 final FilteredReceiver broadcastReceiver = new FilteredReceiver(); in testRegisterReceiver1() local
684 mContext.registerReceiver(broadcastReceiver, filter); in testRegisterReceiver1()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java60 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in startScanAndWaitForResults() local
71 mContext.registerReceiver(broadcastReceiver, intentFilter); in startScanAndWaitForResults()
79 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults()
87 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults()
92 mContext.unregisterReceiver(broadcastReceiver); in startScanAndWaitForResults()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java1911 public LaunchActivityBuilder setUseBroadcastReceiver(final ComponentName broadcastReceiver,
1913 mBroadcastReceiver = broadcastReceiver;