Searched refs:broadcastReceiver (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | CreateAndManageUserTest.java | 161 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/ |
D | ContextTest.java | 546 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/ |
D | TestUtils.java | 60 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/ |
D | ActivityManagerTestBase.java | 1911 public LaunchActivityBuilder setUseBroadcastReceiver(final ComponentName broadcastReceiver, 1913 mBroadcastReceiver = broadcastReceiver;
|