Searched refs:MockService (Results 1 – 5 of 5) sorted by relevance
26 public class MockService extends Service { class38 MockService getService() { in getService()39 return MockService.this; in getService()127 intent.setClass(context, MockService.class); in stopService()
24 public class MockService extends Service { class29 MockService getService() { in getService()30 return MockService.this; in getService()
106 Intent serviceIntent = new Intent(context, MockService.class); in onReceive()370 Intent intent = new Intent(activity, MockService.class); in testPeekService()
22 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 …]
32 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);