Home
last modified time | relevance | path

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

/frameworks/base/tests/utils/testutils/tests/src/com/android/internal/util/test/
DLocalServiceKeeperRuleTest.java41 LocalServices.removeServiceForTest(TestService.class); in tearDown()
46 TestService service = new TestService() {}; in testFailedIfCalledOutsideOfTheRule()
49 () -> mRule.overrideLocalService(TestService.class, service)); in testFailedIfCalledOutsideOfTheRule()
54 LocalServices.removeServiceForTest(TestService.class); in testSetsLocalServiceIfNotPresent()
55 TestService service = new TestService() {}; in testSetsLocalServiceIfNotPresent()
58 mRule.overrideLocalService(TestService.class, service); in testSetsLocalServiceIfNotPresent()
59 assertEquals(service, LocalServices.getService(TestService.class)); in testSetsLocalServiceIfNotPresent()
65 TestService service = new TestService() {}; in testOverridesLocalServiceIfPresent()
66 LocalServices.addService(TestService.class, service); in testOverridesLocalServiceIfPresent()
67 TestService overriddenService = new TestService() {}; in testOverridesLocalServiceIfPresent()
[all …]
/frameworks/native/libs/binder/rust/tests/parcel_fuzzer/random_parcel/fuzz_service_test/
Dservice_fuzzer.rs26 struct TestService; struct
28 impl Interface for TestService {} implementation
30 impl ITestService::ITestService for TestService { implementation
37 let service = BnTestService::new_binder(TestService, BinderFeatures::default());
/frameworks/native/libs/vr/libpdx_uds/
Dservice_framework_tests.cpp81 friend class TestService;
91 class TestService : public ServiceBase<TestService> { class
236 std::shared_ptr<TestService> other_service_;
242 TestService(const std::string& name, in TestService() function in __anon1740f0670111::TestService
243 const std::shared_ptr<TestService>& other_service) in TestService()
244 : TestService(name, other_service, false) {} in TestService()
246 TestService(const std::string& name, in TestService() function in __anon1740f0670111::TestService
247 const std::shared_ptr<TestService>& other_service, bool blocking) in TestService()
253 explicit TestService(const std::string& name) : TestService(name, nullptr) {} in TestService() function in __anon1740f0670111::TestService
255 TestService(const TestService&) = delete;
[all …]
Dremote_method_tests.cpp343 class TestService : public ServiceBase<TestService> { class
348 DispatchRemoteMethod<TestInterface::Add>(*this, &TestService::OnAdd, in HandleMessage()
353 DispatchRemoteMethod<TestInterface::Foo>(*this, &TestService::OnFoo, in HandleMessage()
359 *this, &TestService::OnConcatenate, message); in HandleMessage()
364 *this, &TestService::OnSumVector, message); in HandleMessage()
369 *this, &TestService::OnStringLength, message); in HandleMessage()
374 *this, &TestService::OnSendTestType, message); in HandleMessage()
379 *this, &TestService::OnSendVector, message); in HandleMessage()
383 DispatchRemoteMethod<TestInterface::Rot13>(*this, &TestService::OnRot13, in HandleMessage()
389 *this, &TestService::OnNoArgs, message); in HandleMessage()
[all …]
Dclient_channel_tests.cpp46 class TestService : public ServiceBase<TestService> { class
48 explicit TestService(std::unique_ptr<Endpoint> endpoint) in TestService() function in __anone29504600111::TestService
54 DispatchRemoteMethod<TestProtocol::Sum>(*this, &TestService::OnSum, in HandleMessage()
84 service_ = TestService::Create(std::move(endpoint)); in TestServiceRunner()
98 std::shared_ptr<TestService> service_;
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfActivity.java73 TestService.Op mFgTest;
74 TestService.Op mBgTest;
124 case TestService.RES_TEST_FINISHED: {
140 mAvailOpLabels = new String[TestService.mAvailOps.length]; in FrameworkPerfActivity()
141 mAvailOpDescriptions = new String[TestService.mAvailOps.length]; in FrameworkPerfActivity()
142 for (int i=0; i<TestService.mAvailOps.length; i++) { in FrameworkPerfActivity()
143 TestService.Op op = TestService.mAvailOps[i]; in FrameworkPerfActivity()
213 TestService.Op op = TestService.mAvailOps[position]; in onItemSelected()
282 Message msg = Message.obtain(null, TestService.CMD_START_TEST, bundle); in dispatchCurOp()
310 if (mCurOpIndex >= TestService.mOpPairs.length) { in completeCurOp()
[all …]
DLocalTestService.java3 public class LocalTestService extends TestService {
DRunResult.java31 RunResult(TestService.TestRunner op) { in RunResult()
DTestService.java57 public class TestService extends Service { class
333 mForegroundOp.onInit(TestService.this, true); in run()
334 mBackgroundOp.onInit(TestService.this, false); in run()
400 mForegroundOp.onTerm(TestService.this); in threadFinished()
401 mBackgroundOp.onTerm(TestService.this); in threadFinished()
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/
Dmain.rs38 struct TestService { struct
44 impl TestService { impl
55 impl Drop for TestService { implementation
61 impl Interface for TestService {} implementation
63 impl IBinderRpcSession for TestService { implementation
69 impl IBinderRpcTest for TestService { implementation
121 BnBinderRpcTest::new_binder(TestService::default(), BinderFeatures::default()) in alwaysGiveMeTheSameBinder()
220 let service = BnBinderRpcTest::new_binder(TestService::default(), BinderFeatures::default()); in main()
/frameworks/base/core/tests/fuzzers/java_service_fuzzer/
DServiceFuzzer.java29 TestService service = new TestService(); in fuzzerTestOneInput()
DTestService.java19 public class TestService extends ITestService.Stub { class
DAndroid.bp20 "TestService.java",
/frameworks/native/libs/binder/tests/parcel_fuzzer/test_fuzzer/
DTestServiceFuzzer.cpp42 class TestService : public BnTestService { class
44 TestService(CrashType crash) : mCrash(crash) {} in TestService() function in android::TestService
155 auto service = sp<TestService>::make(gCrashType); in LLVMFuzzerTestOneInput()
/frameworks/native/libs/binder/rust/tests/
Dintegration.rs58 let mut service = Binder::new(BnTest(Box::new(TestService::new(&service_name)))); in main()
62 BnTest::new_binder(TestService::new(&extension_name), BinderFeatures::default()); in main()
81 struct TestService { struct
86 impl TestService { implementation
120 impl Interface for TestService { implementation
128 impl ITest for TestService { implementation
388 use super::{BnTest, IATest, ITest, ITestSameDescriptor, TestService, RUST_SERVICE_BINARY};
880 let service = Binder::new(BnTest(Box::new(TestService::new("testing_service")))); in associate_existing_class()
894 BnTest::new_binder(TestService::new(service_name), BinderFeatures::default()) in reassociate_rust_binder()
906 let service = BnTest::new_binder(TestService::new(service_name), BinderFeatures::default()); in weak_binder_upgrade()
[all …]
/frameworks/base/services/tests/powerstatstests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
DTestService.java44 public class TestService extends Service { class
45 private static final String TAG = TestService.class.getSimpleName();
143 final Handler handler = new Handler(TestService.this.getMainLooper());
/frameworks/base/services/tests/PackageManagerServiceTests/apks/install_complete_package_info/src/com/android/frameworks/coretests/
DTestService.java24 public class TestService extends Service { class
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/
DTestService.java27 public class TestService extends Service { class
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DServiceConnectorTest.java61 Intent testServiceConnectorServiceIntent = new Intent(TestService.ACTION_TEST_SERVICE); in setup()
215 public static final class TestService extends Service { class in ServiceConnectorTest
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/
DTestService.java31 public class TestService extends Service { class
/frameworks/base/tests/EnforcePermission/service-app/src/android/tests/enforcepermission/service/
DTestService.java37 public class TestService extends Service { class
/frameworks/native/cmds/lshal/
Dtest.cpp358 class TestService : public IBase { class
360 explicit TestService(pid_t id) : mId(id) {} in TestService() function in android::lshal::TestService
425 return sp<IBase>(new TestService(id)); in initMockServiceManager()