Home
last modified time | relevance | path

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

/cts/tests/app/app/src/android/app/stubs/
DMockService.java26 public class MockService extends Service { class
38 MockService getService() { in getService()
39 return MockService.this; in getService()
127 intent.setClass(context, MockService.class); in stopService()
/cts/tests/tests/content/src/android/content/cts/
DMockService.java24 public class MockService extends Service { class
29 MockService getService() { in getService()
30 return MockService.this; in getService()
DBroadcastReceiverTest.java106 Intent serviceIntent = new Intent(context, MockService.class); in onReceive()
370 Intent intent = new Intent(activity, MockService.class); in testPeekService()
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java22 import android.app.stubs.MockService;
279 MockService.prepareStart(); in testGetService()
281 mIntent.setClass(mContext, MockService.class); in testGetService()
287 MockService.waitForStart(WAIT_TIME); in testGetService()
288 assertTrue(MockService.result); in testGetService()
303 MockService.prepareStart(); in testStartServiceOnFinishedHandler()
306 mIntent.setClass(mContext, MockService.class); in testStartServiceOnFinishedHandler()
312 MockService.waitForStart(WAIT_TIME); in testStartServiceOnFinishedHandler()
314 assertTrue(MockService.result); in testStartServiceOnFinishedHandler()
320 MockService.prepareStart(); in testStartServiceOnFinishedHandler()
[all …]
DActivityManagerTest.java32 import android.app.stubs.MockService;
309 intent.setClass(mInstrumentation.getTargetContext(), MockService.class);
310 intent.putExtra(MockService.EXTRA_NO_STOP, true);
312 MockService.waitForStart(WAIT_TIME);
323 MockService.prepareDestroy();
325 boolean destroyed = MockService.waitForDestroy(WAIT_TIME);