/frameworks/native/libs/fakeservicemanager/ |
D | test_sm.cpp | 51 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/ |
D | test_sm.cpp | 92 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/ |
D | audiopolicy_aidl_fuzzer.cpp | 43 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/ |
D | audioflinger_aidl_fuzzer.cpp | 41 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/ |
D | ServiceManager.java | 217 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()
|
D | ServiceManagerNative.java | 70 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/ |
D | CompatModePackagesTests.java | 81 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/ |
D | LocalServiceKeeperRule.java | 58 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/ |
D | LocalServiceKeeperRuleTest.java | 66 LocalServices.addService(TestService.class, service); in testOverridesLocalServiceIfPresent() 89 LocalServices.addService(TestService.class, expectedService); in testRestroresLocalServiceAfterTestIfPresent()
|
/frameworks/native/services/surfaceflinger/ |
D | main_surfaceflinger.cpp | 148 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/ |
D | BinderTest.java | 98 sServiceManager.addService("ValidName", binder, in testServiceManagerNativeSecurityException() 109 sServiceManager.addService("ValidName", null, in testServiceManagerNativeNullptrException()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AsyncProcessStartTest.java | 117 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()
|
D | ProcessObserverTest.java | 118 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/ |
D | SystemServer.java | 884 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/ |
D | GracePeriodObserverTest.java | 58 LocalServices.addService(UserManagerInternal.class, userManagerInternal); in setUpOnce() 60 LocalServices.addService(ActivityManagerInternal.class, activityManagerInternal); in setUpOnce()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiServiceTestCase.java | 78 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup() 96 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
|
/frameworks/native/services/gpuservice/ |
D | main_gpuservice.cpp | 31 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
|
/frameworks/av/services/mediametrics/ |
D | main_mediametrics.cpp | 44 defaultServiceManager()->addService( in main()
|
/frameworks/base/cmds/incidentd/src/ |
D | main.cpp | 48 if (defaultServiceManager()->addService(String16("incident"), service) != 0) { in main()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | NativeTombstoneManagerService.java | 41 LocalServices.addService(NativeTombstoneManager.class, mManager); in onStart()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | ServiceManager.java | 53 public static void addService(String name, IBinder service) { in addService() method in ServiceManager
|
/frameworks/native/libs/binder/ndk/tests/include/iface/ |
D | iface.h | 44 binder_status_t addService(const char* instance);
|
/frameworks/av/media/audioserver/ |
D | main_audioserver.cpp | 181 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/ |
D | BinderService.h | 57 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
|
/frameworks/native/include/binder/ |
D | BinderService.h | 57 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
|