Home
last modified time | relevance | path

Searched refs:MockReceiver (Results 1 – 8 of 8) sorted by relevance

/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastReceiverTest.java223 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage()
224 MockReceiver.RESULT_EXTRAS_INVARIABLE_VALUE); in testManifestReceiverPackage()
225 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage()
226 MockReceiver.RESULT_EXTRAS_REMOVE_VALUE); in testManifestReceiverPackage()
235 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPackage()
236 assertEquals(MockReceiver.RESULT_DATA, internalReceiver.getResultData()); in testManifestReceiverPackage()
239 assertEquals(MockReceiver.RESULT_EXTRAS_INVARIABLE_VALUE, in testManifestReceiverPackage()
240 resultExtras.getString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY)); in testManifestReceiverPackage()
241 assertEquals(MockReceiver.RESULT_EXTRAS_ADD_VALUE, in testManifestReceiverPackage()
242 resultExtras.getString(MockReceiver.RESULT_EXTRAS_ADD_KEY)); in testManifestReceiverPackage()
[all …]
DMockReceiver.java29 public class MockReceiver extends BroadcastReceiver { class
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java24 import android.app.stubs.MockReceiver;
301 MockReceiver.prepareReceive(null, 0); in testGetBroadcast()
302 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast()
303 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast()
309 MockReceiver.waitForReceive(WAIT_TIME); in testGetBroadcast()
310 assertEquals(MockReceiver.MOCKACTION, MockReceiver.sAction); in testGetBroadcast()
582 MockReceiver.prepareReceive(null, -1); in testSend()
584 mIntent.setAction(MockReceiver.MOCKACTION); in testSend()
585 mIntent.setClass(mContext, MockReceiver.class); in testSend()
591 MockReceiver.waitForReceive(WAIT_TIME); in testSend()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DMockReceiver.java29 public class MockReceiver extends BroadcastReceiver { class
DIntentTest.java2106 mIntent.setComponent(new ComponentName(mContext, MockReceiver.class)); in testFilterEquals()
/cts/tests/app/app/src/android/app/stubs/
DMockReceiver.java24 public class MockReceiver extends BroadcastReceiver { class
/cts/tests/tests/content/
DAndroid.bp316 "src/android/content/cts/MockReceiver.java",
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java104 import android.content.cts.MockReceiver;
1557 final ComponentName componentName = new ComponentName(mContext, MockReceiver.class); in testGetInfo_noMetaData_InBroadcastReceiver()
1638 final ComponentName componentName = new ComponentName(mContext, MockReceiver.class); in testGetInfo_checkMetaData_InBroadcastReceiver()