Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java21 import android.app.stubs.MockReceiver;
181 MockReceiver.prepareReceive(null, 0); in testGetBroadcast()
182 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast()
183 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast()
189 MockReceiver.waitForReceive(WAIT_TIME); in testGetBroadcast()
190 assertEquals(MockReceiver.MOCKACTION, MockReceiver.sAction); in testGetBroadcast()
361 MockReceiver.prepareReceive(null, -1); in testSend()
363 mIntent.setAction(MockReceiver.MOCKACTION); in testSend()
364 mIntent.setClass(mContext, MockReceiver.class); in testSend()
370 MockReceiver.waitForReceive(WAIT_TIME); in testSend()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DBroadcastReceiverTest.java194 map.putString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY, in testManifestReceiverPackage()
195 MockReceiver.RESULT_EXTRAS_INVARIABLE_VALUE); in testManifestReceiverPackage()
196 map.putString(MockReceiver.RESULT_EXTRAS_REMOVE_KEY, in testManifestReceiverPackage()
197 MockReceiver.RESULT_EXTRAS_REMOVE_VALUE); in testManifestReceiverPackage()
206 assertEquals(MockReceiver.RESULT_CODE, internalReceiver.getResultCode()); in testManifestReceiverPackage()
207 assertEquals(MockReceiver.RESULT_DATA, internalReceiver.getResultData()); in testManifestReceiverPackage()
210 assertEquals(MockReceiver.RESULT_EXTRAS_INVARIABLE_VALUE, in testManifestReceiverPackage()
211 resultExtras.getString(MockReceiver.RESULT_EXTRAS_INVARIABLE_KEY)); in testManifestReceiverPackage()
212 assertEquals(MockReceiver.RESULT_EXTRAS_ADD_VALUE, in testManifestReceiverPackage()
213 resultExtras.getString(MockReceiver.RESULT_EXTRAS_ADD_KEY)); in testManifestReceiverPackage()
[all …]
DMockReceiver.java29 public class MockReceiver extends BroadcastReceiver { class
DIntentTest.java1764 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