Home
last modified time | relevance | path

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

1234567

/frameworks/native/libs/fakeservicemanager/
Dtest_sm.cpp49 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()
DServiceManager.h46 status_t addService(const String16& name, const sp<IBinder>& service,
DServiceManager.cpp36 status_t ServiceManager::addService(const String16& name, const sp<IBinder>& service, in addService() function in android::ServiceManager
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp80 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/
DServiceManager.java165 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()
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/java/com/android/server/
DSystemServer.java559 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/
DUiServiceTestCase.java63 LocalServices.addService(PackageManagerInternal.class, mPmi); in setup()
81 LocalServices.addService(UriGrantsManagerInternal.class, mUgmInternal); in setup()
/frameworks/native/libs/binder/ndk/test/
Dlibbinder_ndk_unit_test.cpp99 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/
Dmain_gpuservice.cpp31 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
/frameworks/av/services/mediametrics/
Dmain_mediametrics.cpp45 defaultServiceManager()->addService( in main()
/frameworks/base/cmds/incidentd/src/
Dmain.cpp48 if (defaultServiceManager()->addService(String16("incident"), service) != 0) { in main()
/frameworks/layoutlib/bridge/src/android/os/
DServiceManager.java47 public static void addService(String name, IBinder service) { in addService() method in ServiceManager
/frameworks/native/libs/binder/ndk/test/include/iface/
Diface.h34 binder_status_t addService(const char* instance);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java185 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/
DBinderService.h40 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
/frameworks/native/libs/binder/include/binder/
DBinderService.h40 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated,
/frameworks/native/services/vr/virtual_touchpad/
Dmain.cpp23 sm->addService(android::String16(touchpad_service->SERVICE_NAME()), in main()
/frameworks/base/core/java/com/android/server/
DLocalServices.java54 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/
DUserManagerServiceCreateProfileTest.java258 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/
DIServiceManager.cpp71 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/
DIServiceManager.aidl76 void addService(@utf8InCpp String name, IBinder service, in addService() method
/frameworks/native/services/vr/hardware_composer/
Dvr_hardware_composer_service.cpp45 android::status_t status = sm->addService( in main()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DStorageManagerServiceTest.java50 LocalServices.addService(PackageManagerInternal.class, mPmi); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java63 LocalServices.addService(DevicePolicyManagerInternal.class, mDpmi); in setUp()
72 LocalServices.addService(DevicePolicyManagerInternal.class, mSystemDpmi); in tearDown()

1234567