HomeSort by relevance Sort by last modified time
    Searched defs:broadcastReceiver (Results 1 - 16 of 16) sorted by null

  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
TestUtil.java 21 import android.content.BroadcastReceiver;
50 public static void sendNetworkStateChanged(BroadcastReceiver broadcastReceiver,
56 broadcastReceiver.onReceive(context, intent);
62 public static void sendScanResultsAvailable(BroadcastReceiver broadcastReceiver,
65 broadcastReceiver.onReceive(context, intent);
71 public static void sendWifiScanAvailable(BroadcastReceiver broadcastReceiver,
75 broadcastReceiver.onReceive(context, intent)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ContextWrapperTest.java 5 import android.content.BroadcastReceiver;
42 BroadcastReceiver receiver = broadcastReceiver("Larry");
57 BroadcastReceiver larryReceiver = broadcastReceiver("Larry");
60 BroadcastReceiver bobReceiver = broadcastReceiver("Bob");
75 BroadcastReceiver receiver = broadcastReceiver("Larry");
91 BroadcastReceiver receiver = broadcastReceiver("Larry")
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
PackageInstallerImpl.java 21 import android.content.BroadcastReceiver;
255 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
266 mContext.registerReceiver(broadcastReceiver, intentFilter);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowApplication.java 5 import android.content.BroadcastReceiver;
329 wrapper.broadcastReceiver.onReceive(realApplication, intent);
351 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
355 Intent registerReceiverWithContext(BroadcastReceiver receiver, IntentFilter filter, Context context) {
378 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) {
383 if (wrapper.broadcastReceiver == broadcastReceiver) {
389 throw new IllegalArgumentException("Receiver not registered: " + broadcastReceiver);
405 + registeredReceiver.broadcastReceiver + " that was originally registered here. "
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContextWrapperTest.java 22 import android.content.BroadcastReceiver;
92 private ArrayList<BroadcastReceiver> mRegisteredReceiverList;
105 mRegisteredReceiverList = new ArrayList<BroadcastReceiver>();
116 for (BroadcastReceiver receiver : mRegisteredReceiverList) {
123 private void registerBroadcastReceiver(BroadcastReceiver receiver, IntentFilter filter) {
184 final TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver();
185 broadcastReceiver.mIsOrderedBroadcasts = true;
192 mContextWrapper.sendOrderedBroadcast(intent, null, broadcastReceiver, null, 1,
203 assertTrue("Receiver didn't make any response.", broadcastReceiver.hadReceivedBroadCast());
204 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), 3
    [all...]
  /packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
SdpManagerTestServer.java 20 import android.content.BroadcastReceiver;
144 class SdpBroadcastReceiver extends BroadcastReceiver {
303 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(uuids, latch);
306 mContext.registerReceiver(broadcastReceiver, filter);
335 mContext.unregisterReceiver(broadcastReceiver);
ObexTest.java 39 import android.content.BroadcastReceiver;
626 static class SdpBroadcastReceiver extends BroadcastReceiver {
690 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(latch);
692 context.registerReceiver(broadcastReceiver, filter);
707 context.unregisterReceiver(broadcastReceiver);
708 return broadcastReceiver.getMasRecord();
  /frameworks/base/core/tests/coretests/src/android/app/activity/
BroadcastTest.java 21 import android.content.BroadcastReceiver;
225 private BroadcastReceiver mReceiver = new BroadcastReceiver() {
260 private class TestBroadcastReceiver extends BroadcastReceiver {
273 TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver();
281 null, broadcastReceiver, null, 1, "foo", map);
282 while (!broadcastReceiver.mHaveResult) {
292 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(),
293 3, broadcastReceiver.getResultCode());
295 assertEquals("bar", broadcastReceiver.getResultData())
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
ContextFixture.java 30 import android.content.BroadcastReceiver;
258 public void unregisterReceiver(BroadcastReceiver receiver) {
262 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
267 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter,
273 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user,
292 for (BroadcastReceiver broadcastReceiver :
294 broadcastReceiver.onReceive(mContext, intent);
313 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode,
325 BroadcastReceiver resultReceiver, Handler scheduler, int initialCode
    [all...]
  /external/robolectric/v3/
shadows-support-v4-3.1-SNAPSHOT.jar 
  /external/robolectric/v3/runtime/
shadows-core-3.1-SNAPSHOT-16.jar 
shadows-core-3.1-SNAPSHOT-17.jar 
shadows-core-3.1-SNAPSHOT-18.jar 
shadows-core-3.1-SNAPSHOT-19.jar 
shadows-core-3.1-SNAPSHOT-21.jar 
shadows-core-3.1-SNAPSHOT-22.jar 

Completed in 617 milliseconds