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 | 543 final TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testSendOrderedBroadcast2() local 544 broadcastReceiver.mIsOrderedBroadcasts = true; in testSendOrderedBroadcast2() 551 mContext.sendOrderedBroadcast(intent, null, broadcastReceiver, null, 1, in testSendOrderedBroadcast2() 562 assertTrue("Receiver didn't make any response.", broadcastReceiver.hadReceivedBroadCast()); in testSendOrderedBroadcast2() 563 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), 3, in testSendOrderedBroadcast2() 564 broadcastReceiver.getResultCode()); in testSendOrderedBroadcast2() 565 assertEquals(ACTUAL_RESULT, broadcastReceiver.getResultData()); in testSendOrderedBroadcast2() 566 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testSendOrderedBroadcast2() 573 final FilteredReceiver broadcastReceiver = new FilteredReceiver(); in testRegisterReceiver1() local 577 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 | 1838 public LaunchActivityBuilder setUseBroadcastReceiver(final ComponentName broadcastReceiver, 1840 mBroadcastReceiver = broadcastReceiver;
|