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

  /cts/tests/tests/content/src/android/content/cts/
ContextWrapperTest.java 23 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) {
183 final TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver();
184 broadcastReceiver.mIsOrderedBroadcasts = true;
190 null, broadcastReceiver, null, 1, INTIAL_RESULT, bundle);
200 assertTrue("Receiver didn't make any response.", broadcastReceiver.hadReceivedBroadCast());
201 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), 3
    [all...]
  /external/robolectric/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...]
ShadowContextWrapper.java 3 import android.content.BroadcastReceiver;
86 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
91 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) {
92 getApplicationContext().unregisterReceiver(broadcastReceiver);
  /external/robolectric/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...]
  /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...]

Completed in 268 milliseconds