Home
last modified time | relevance | path

Searched refs:TestService (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java179 TestService testService = new TestService(InstrumentationRegistry.getContext()); in testGetSystemService_notRegistered_delegatesToBaseContext()
204 TestService testService = new TestService(InstrumentationRegistry.getContext()); in testGetSystemService_registered_mutatesService()
215 "service", (service, ctx) -> (((TestService) service)).initialize(ctx)); in testGetSystemService_registered_mutatesService()
226 TestService service = (TestService) sandboxedSdkContext.getSystemService("service"); in testGetSystemService_registered_mutatesService()
281 TestService testService = new TestService(InstrumentationRegistry.getContext()); in testCreateContextWithNewBase()
303 private final TestService mMockService;
305 private TestContext(TestService mockService) { in TestContext()
315 private static class TestService { class in SandboxedSdkContextUnitTest
320 private TestService(Context ctx) { in TestService() method in SandboxedSdkContextUnitTest.TestService
324 public TestService initialize(Context ctx) { in initialize()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarProjectionManagerTest.java42 public static final class TestService extends Service { class in CarProjectionManagerTest
87 InstrumentationRegistry.getInstrumentation().getContext(), TestService.class); in testRegisterProjectionRunner()
88 assertThat(TestService.isBound()).isFalse(); in testRegisterProjectionRunner()
90 synchronized (TestService.mLock) { in testRegisterProjectionRunner()
92 TestService.mLock.wait(1000); in testRegisterProjectionRunner()
97 assertThat(TestService.isBound()).isTrue(); in testRegisterProjectionRunner()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsDumpServiceTest.java54 private TestService mTestService;
60 when(mPackageManager.resolveActivity(TestService.BROWSER_INTENT, in setUp()
62 mTestService = spy(new TestService()); in setUp()
98 private class TestService extends SettingsDumpService { class in SettingsDumpServiceTest
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DOnDevicePersonalizationSystemEventManagerTest.java54 IOnDevicePersonalizationManagingService.Stub.asInterface(new TestService()));
132 class TestService extends IOnDevicePersonalizationManagingService.Stub { class in OnDevicePersonalizationSystemEventManagerTest
DOnDevicePersonalizationManagerTest.java66 IOnDevicePersonalizationManagingService.Stub.asInterface(new TestService()));
231 class TestService extends IOnDevicePersonalizationManagingService.Stub { class in OnDevicePersonalizationManagerTest
DIsolatedServiceTest.java61 private final TestService mTestService = new TestService();
730 class TestService extends IsolatedService { class in IsolatedServiceTest
/packages/modules/Virtualization/tests/testapk/src/native/
Dtestbinary.cpp168 class TestService : public BnTestService { in start_test_service() class
343 auto testService = ndk::SharedRefBase::make<TestService>(); in start_test_service()