/frameworks/native/libs/fakeservicemanager/ |
D | test_sm.cpp | 49 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 55 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 57 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 65 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST() 80 EXPECT_EQ(sm->addService(String16("sd"), getBinder(), false /*allowIsolated*/, in TEST() 82 EXPECT_EQ(sm->addService(String16("sc"), getBinder(), false /*allowIsolated*/, in TEST() 84 EXPECT_EQ(sm->addService(String16("sb"), getBinder(), false /*allowIsolated*/, in TEST() 86 EXPECT_EQ(sm->addService(String16("sa"), getBinder(), false /*allowIsolated*/, in TEST() 106 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST() 122 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
|
D | ServiceManager.h | 46 status_t addService(const String16& name, const sp<IBinder>& service,
|
D | ServiceManager.cpp | 36 status_t ServiceManager::addService(const String16& name, const sp<IBinder>& service, in addService() function in android::ServiceManager
|
/frameworks/native/cmds/servicemanager/ |
D | test_sm.cpp | 80 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() 86 EXPECT_FALSE(sm->addService("", getBinder(), false /*allowIsolated*/, in TEST() 92 EXPECT_TRUE(sm->addService(std::string(127, 'a'), getBinder(), false /*allowIsolated*/, in TEST() 98 EXPECT_FALSE(sm->addService(std::string(128, 'a'), getBinder(), false /*allowIsolated*/, in TEST() 104 EXPECT_FALSE(sm->addService("happy$foo$foo", getBinder(), false /*allowIsolated*/, in TEST() 110 EXPECT_FALSE(sm->addService("foo", nullptr, false /*allowIsolated*/, in TEST() 124 EXPECT_FALSE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() 132 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() 134 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() 146 EXPECT_FALSE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ServiceManager.java | 165 public static void addService(String name, IBinder service) { in addService() method in ServiceManager 166 addService(name, service, false, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT); in addService() 179 public static void addService(String name, IBinder service, boolean allowIsolated) { in addService() method in ServiceManager 180 addService(name, service, allowIsolated, IServiceManager.DUMP_FLAG_PRIORITY_DEFAULT); in addService() 194 public static void addService(String name, IBinder service, boolean allowIsolated, in addService() method in ServiceManager 197 getIServiceManager().addService(name, service, allowIsolated, dumpPriority); in addService()
|
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/java/com/android/server/ |
D | SystemServer.java | 559 LocalServices.addService(SystemServiceManager.class, mSystemServiceManager); in run() 724 ServiceManager.addService(Context.PLATFORM_COMPAT_SERVICE, platformCompat); in startBootstrapServices() 725 ServiceManager.addService(Context.PLATFORM_COMPAT_NATIVE_SERVICE, in startBootstrapServices() 1078 ServiceManager.addService("sec_key_att_app_id_provider", in startOtherServices() 1087 ServiceManager.addService("scheduling_policy", new SchedulingPolicyService()); in startOtherServices() 1097 ServiceManager.addService("telephony.registry", telephonyRegistry); in startOtherServices() 1130 ServiceManager.addService("vibrator", vibrator); in startOtherServices() 1135 ServiceManager.addService("dynamic_system", dynamicSystem); in startOtherServices() 1141 ServiceManager.addService(Context.CONSUMER_IR_SERVICE, consumerIr); in startOtherServices() 1159 ServiceManager.addService(Context.WINDOW_SERVICE, wm, /* allowIsolated= */ false, in startOtherServices() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiServiceTestCase.java | 63 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup() 81 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
|
/frameworks/native/libs/binder/ndk/test/ |
D | libbinder_ndk_unit_test.cpp | 99 binder_status_t status = (new MyFoo)->addService(instance); in manualService() 225 EXPECT_EQ(STATUS_OK, foo->addService(kInstanceName)); in TEST() 272 EXPECT_EQ(STATUS_OK, foo->addService(kInstanceName1)); in TEST() 273 EXPECT_EQ(STATUS_OK, foo->addService(kInstanceName2)); in TEST()
|
/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 | 45 defaultServiceManager()->addService( in main()
|
/frameworks/base/cmds/incidentd/src/ |
D | main.cpp | 48 if (defaultServiceManager()->addService(String16("incident"), service) != 0) { in main()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | ServiceManager.java | 47 public static void addService(String name, IBinder service) { in addService() method in ServiceManager
|
/frameworks/native/libs/binder/ndk/test/include/iface/ |
D | iface.h | 34 binder_status_t addService(const char* instance);
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 185 LocalServices.addService(UriGrantsManagerInternal.class, ugmi); 207 LocalServices.addService(UsageStatsManagerInternal.class, usmi); 211 LocalServices.addService(PackageManagerInternal.class, packageManagerInternal); 227 LocalServices.addService(PermissionPolicyInternal.class, ppi); 272 LocalServices.addService(ActivityManagerInternal.class, amInternal); 275 LocalServices.addService(ActivityTaskManagerInternal.class, mAtmService.getAtmInternal());
|
/frameworks/native/include/binder/ |
D | BinderService.h | 40 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
|
/frameworks/native/libs/binder/include/binder/ |
D | BinderService.h | 40 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | main.cpp | 23 sm->addService(android::String16(touchpad_service->SERVICE_NAME()), in main()
|
/frameworks/base/core/java/com/android/server/ |
D | LocalServices.java | 54 public static <T> void addService(Class<T> type, T service) { in addService() method in LocalServices
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 258 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_lowStorageException() 275 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateProfileForUser_unknownParentUser() 293 LocalServices.addService(DeviceStorageMonitorInternal.class, dsmMock); in testCreateManagedProfileForUser_maxManagedUsersException()
|
/frameworks/native/libs/binder/ |
D | IServiceManager.cpp | 71 status_t addService(const String16& name, const sp<IBinder>& service, 255 status_t ServiceManagerShim::addService(const String16& name, const sp<IBinder>& service, in addService() function in android::ServiceManagerShim 258 Status status = mTheRealServiceManager->addService( in addService()
|
/frameworks/native/libs/binder/aidl/android/os/ |
D | IServiceManager.aidl | 76 void addService(@utf8InCpp String name, IBinder service, in addService() method
|
/frameworks/native/services/vr/hardware_composer/ |
D | vr_hardware_composer_service.cpp | 45 android::status_t status = sm->addService( in main()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | StorageManagerServiceTest.java | 50 LocalServices.addService(PackageManagerInternal.class, mPmi); in setUp()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 63 LocalServices.addService(DevicePolicyManagerInternal.class, mDpmi); in setUp() 72 LocalServices.addService(DevicePolicyManagerInternal.class, mSystemDpmi); in tearDown()
|