Home
last modified time | relevance | path

Searched refs:addService (Results 1 – 25 of 262) sorted by relevance

1234567891011

/frameworks/native/libs/fakeservicemanager/
Dtest_sm.cpp51 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
57 EXPECT_EQ(sm->addService(String16("foo"), nullptr, false /*allowIsolated*/, in TEST()
63 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
65 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
71 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
82 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
97 EXPECT_EQ(sm->addService(String16("sd"), getBinder(), false /*allowIsolated*/, in TEST()
99 EXPECT_EQ(sm->addService(String16("sc"), getBinder(), false /*allowIsolated*/, in TEST()
101 EXPECT_EQ(sm->addService(String16("sb"), getBinder(), false /*allowIsolated*/, in TEST()
103 EXPECT_EQ(sm->addService(String16("sa"), getBinder(), false /*allowIsolated*/, in TEST()
[all …]
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp92 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
98 EXPECT_FALSE(sm->addService("", getBinder(), false /*allowIsolated*/, in TEST()
104 EXPECT_TRUE(sm->addService(std::string(127, 'a'), getBinder(), false /*allowIsolated*/, in TEST()
110 EXPECT_FALSE(sm->addService(std::string(128, 'a'), getBinder(), false /*allowIsolated*/, in TEST()
116 EXPECT_FALSE(sm->addService("happy$foo$foo", getBinder(), false /*allowIsolated*/, in TEST()
122 EXPECT_FALSE(sm->addService("foo", nullptr, false /*allowIsolated*/, in TEST()
136 EXPECT_FALSE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
144 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
146 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
153 EXPECT_TRUE(sm->addService("foo", serviceA, false /*allowIsolated*/, in TEST()
[all …]
/frameworks/av/services/audiopolicy/fuzzer/aidl/
Daudiopolicy_aidl_fuzzer.cpp43 bool addService(const String16& serviceName, const sp<FakeServiceManager>& fakeServiceManager, in addService() function
49 CHECK_EQ(NO_ERROR, fakeServiceManager->addService(serviceName, binder)); in addService()
82 if (!addService(String16(service), gFakeServiceManager, fdp)) { in LLVMFuzzerTestOneInput()
92 gFakeServiceManager->addService(String16(IAudioFlinger::DEFAULT_SERVICE_NAME), in LLVMFuzzerTestOneInput()
99 gFakeServiceManager->addService(String16("media.audio_policy"), in LLVMFuzzerTestOneInput()
/frameworks/av/media/libaudioclient/aidl/fuzzer/
Daudioflinger_aidl_fuzzer.cpp41 bool addService(const String16& serviceName, const sp<FakeServiceManager>& fakeServiceManager, in addService() function
47 CHECK_EQ(NO_ERROR, fakeServiceManager->addService(serviceName, binder)); in addService()
80 if (!addService(String16(service), gFakeServiceManager, fdp)) { in LLVMFuzzerTestOneInput()
90 gFakeServiceManager->addService(String16(IAudioFlinger::DEFAULT_SERVICE_NAME), in LLVMFuzzerTestOneInput()
97 gFakeServiceManager->addService(String16("media.audio_policy"), audioPolicyService, in LLVMFuzzerTestOneInput()
/frameworks/base/core/java/android/os/
DServiceManager.java217 public static void addService(String name, IBinder service) { in addService() method in ServiceManager
218 addService(name, service, false, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT); in addService()
233 public static void addService(String name, IBinder service, boolean allowIsolated) { in addService() method in ServiceManager
234 addService(name, service, allowIsolated, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT); in addService()
250 public static void addService(String name, IBinder service, boolean allowIsolated, in addService() method in ServiceManager
253 getIServiceManager().addService(name, service, allowIsolated, dumpPriority); in addService()
260 public static void addService$ravenwood(String name, IBinder service, boolean allowIsolated, in addService$ravenwood()
DServiceManagerNative.java70 public void addService(String name, IBinder service, boolean allowIsolated, int dumpPriority) in addService() method in ServiceManagerProxy
72 mServiceManager.addService(name, service, allowIsolated, dumpPriority); in addService()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DCompatModePackagesTests.java81 LocalServices.addService(GameManagerInternal.class, mGm); in testGetCompatScale_gameManagerReturnsPositive()
90 LocalServices.addService(GameManagerInternal.class, mGm); in testGetCompatScale_gameManagerReturnsZero()
99 LocalServices.addService(GameManagerInternal.class, mGm); in testGetCompatScale_gameManagerReturnsNegative()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DLocalServiceKeeperRule.java58 LocalServices.addService(type, service); in overrideLocalService()
73 LocalServices.addService((Class) clazz, service); in apply()
/frameworks/base/tests/utils/testutils/tests/src/com/android/internal/util/test/
DLocalServiceKeeperRuleTest.java66 LocalServices.addService(TestService.class, service); in testOverridesLocalServiceIfPresent()
89 LocalServices.addService(TestService.class, expectedService); in testRestroresLocalServiceAfterTestIfPresent()
/frameworks/native/services/surfaceflinger/
Dmain_surfaceflinger.cpp148 sm->addService(String16(SurfaceFlinger::getServiceName()), flinger, false, in main()
156 sm->addService(String16("SurfaceFlingerAIDL"), composerAIDL, false, in main()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderTest.java98 sServiceManager.addService("ValidName", binder, in testServiceManagerNativeSecurityException()
109 sServiceManager.addService("ValidName", null, in testServiceManagerNativeNullptrException()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAsyncProcessStartTest.java117 LocalServices.addService(DropBoxManagerInternal.class, mDropBoxManagerInt); in setUp()
120 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
123 LocalServices.addService(ActivityManagerInternal.class, mActivityManagerInt); in setUp()
126 LocalServices.addService(ActivityTaskManagerInternal.class, mActivityTaskManagerInt); in setUp()
DProcessObserverTest.java118 LocalServices.addService(DropBoxManagerInternal.class, mDropBoxManagerInt); in setUp()
121 LocalServices.addService(PackageManagerInternal.class, mPackageManagerInt); in setUp()
124 LocalServices.addService(ActivityManagerInternal.class, mActivityManagerInt); in setUp()
127 LocalServices.addService(ActivityTaskManagerInternal.class, mActivityTaskManagerInt); in setUp()
/frameworks/base/services/java/com/android/server/
DSystemServer.java884 ServiceManager.addService("system_server_dumper", mDumper); in run()
893 LocalServices.addService(SystemServiceManager.class, mSystemServiceManager); in run()
1092 ServiceManager.addService(Context.PLATFORM_COMPAT_SERVICE, platformCompat); in startBootstrapServices()
1093 ServiceManager.addService(Context.PLATFORM_COMPAT_NATIVE_SERVICE, in startBootstrapServices()
1146 LocalServices.addService(PermissionMigrationHelper.class, in startBootstrapServices()
1148 LocalServices.addService(AppOpMigrationHelper.class, in startBootstrapServices()
1506 ServiceManager.addService("sec_key_att_app_id_provider", in startOtherServices()
1519 ServiceManager.addService("scheduling_policy", new SchedulingPolicyService()); in startOtherServices()
1535 ServiceManager.addService("telephony.registry", telephonyRegistry); in startOtherServices()
1593 ServiceManager.addService("dynamic_system", dynamicSystem); in startOtherServices()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java58 LocalServices.addService(UserManagerInternal.class, userManagerInternal); in setUpOnce()
60 LocalServices.addService(ActivityManagerInternal.class, activityManagerInternal); in setUpOnce()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiServiceTestCase.java78 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
96 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
/frameworks/native/services/gpuservice/
Dmain_gpuservice.cpp31 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
/frameworks/av/services/mediametrics/
Dmain_mediametrics.cpp44 defaultServiceManager()->addService( in main()
/frameworks/base/cmds/incidentd/src/
Dmain.cpp48 if (defaultServiceManager()->addService(String16("incident"), service) != 0) { in main()
/frameworks/base/services/core/java/com/android/server/os/
DNativeTombstoneManagerService.java41 LocalServices.addService(NativeTombstoneManager.class, mManager); in onStart()
/frameworks/layoutlib/bridge/src/android/os/
DServiceManager.java53 public static void addService(String name, IBinder service) { in addService() method in ServiceManager
/frameworks/native/libs/binder/ndk/tests/include/iface/
Diface.h44 binder_status_t addService(const char* instance);
/frameworks/av/media/audioserver/
Dmain_audioserver.cpp181 sm->addService(String16(IAudioFlinger::DEFAULT_SERVICE_NAME), afAdapter, in main()
183 sm->addService(String16(AudioPolicyService::getServiceName()), aps, in main()
/frameworks/native/libs/binder/include/binder/
DBinderService.h57 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
/frameworks/native/include/binder/
DBinderService.h57 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,

1234567891011