Home
last modified time | relevance | path

Searched refs:defaultServiceManager (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/native/libs/binder/ndk/
Dservice_manager.cpp24 using ::android::defaultServiceManager;
38 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_addService()
49 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_addServiceWithFlags()
79 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_checkService()
91 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_getService()
113 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_waitForService()
164 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_registerForServiceNotifications()
187 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_isDeclared()
196 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_forEachDeclaredInstance()
206 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_isUpdatableViaApex()
[all …]
/frameworks/native/libs/binder/tests/
DbinderHostDeviceTest.cpp94 ASSERT_NE(nullptr, defaultServiceManager()) << "No defaultServiceManager() over RPC"; in SetUp()
119 auto sm = defaultServiceManager(); in TEST_F()
126 auto sm = defaultServiceManager(); in TEST_F()
136 auto sm = defaultServiceManager(); in TEST_F()
149 auto sm = defaultServiceManager(); in TEST_F()
159 auto sm = defaultServiceManager(); in TEST_F()
DbinderAllocationLimits.cpp137 using android::defaultServiceManager;
154 sp<IBinder> binder = defaultServiceManager()->checkService(String16("manager")); in GetRemoteBinder()
166 defaultServiceManager(); // first call may alloc in TEST()
168 defaultServiceManager(); in TEST()
214 sp<IServiceManager> manager = defaultServiceManager(); in TEST()
DbinderStabilityTest.cpp160 sp<IBinder> serverBinder = android::defaultServiceManager()->getService(kSystemStabilityServer); in TEST()
196 android::defaultServiceManager()->addService(String16("."), vintfServer)) << instance8; in TEST()
197 EXPECT_FALSE(android::defaultServiceManager()->isDeclared(instance)) << instance8; in TEST()
198 EXPECT_EQ(std::nullopt, android::defaultServiceManager()->updatableViaApex(instance)) in TEST()
204 sp<IServiceManager> sm = android::defaultServiceManager(); in TEST()
214 sp<IBinder> serverBinder = android::defaultServiceManager()->getService(kSystemStabilityServer); in TEST()
386 android::defaultServiceManager()->addService(kSystemStabilityServer, server); in main()
DbinderClearBufTest.cpp80 sp<IBinder> binder = defaultServiceManager()->getService(kServerName); in TEST()
105 android::defaultServiceManager()->addService(kServerName, server); in main()
/frameworks/native/libs/fakeservicemanager/
Dtest_sm.cpp35 using android::defaultServiceManager;
148 EXPECT_EQ(defaultServiceManager()->getService(String16("foo")), nullptr); in TEST()
155 EXPECT_EQ(defaultServiceManager()->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
158 EXPECT_EQ(defaultServiceManager()->getService(String16("foo")), service); in TEST()
166 EXPECT_EQ(defaultServiceManager()->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
170 EXPECT_EQ(defaultServiceManager()->getService(String16("foo")), nullptr); in TEST()
/frameworks/native/libs/binder/include/binder/
DIServiceManager.h152 LIBBINDER_EXPORTED sp<IServiceManager> defaultServiceManager();
164 const sp<IServiceManager> sm = defaultServiceManager(); in waitForService()
170 const sp<IServiceManager> sm = defaultServiceManager(); in waitForDeclaredService()
177 const sp<IServiceManager> sm = defaultServiceManager(); in checkDeclaredService()
199 const sp<IServiceManager> sm = defaultServiceManager(); in getService()
/frameworks/native/include/binder/
DIServiceManager.h152 LIBBINDER_EXPORTED sp<IServiceManager> defaultServiceManager();
164 const sp<IServiceManager> sm = defaultServiceManager(); in waitForService()
170 const sp<IServiceManager> sm = defaultServiceManager(); in waitForDeclaredService()
177 const sp<IServiceManager> sm = defaultServiceManager(); in checkDeclaredService()
199 const sp<IServiceManager> sm = defaultServiceManager(); in getService()
/frameworks/native/libs/binderdebug/
Dstats.cpp34 for (const String16& name : defaultServiceManager()->listServices()) { in main()
35 sp<IBinder> binder = defaultServiceManager()->checkService(name); in main()
/frameworks/av/media/utils/fuzzers/
DSchedulingPolicyServiceFuzz.cpp30 using android::defaultServiceManager;
35 const sp<IServiceManager> sm(defaultServiceManager()); in getBatteryService()
/frameworks/native/libs/binderdebug/tests/
Dbinderdebug_test.cpp71 sp<IBinder> binder = android::defaultServiceManager()->getService(String16("binderdebug")); in main()
80 android::defaultServiceManager()->addService(String16("binderdebug"), iface); in main()
/frameworks/native/libs/binder/
Dservicedispatcher.cpp36 using android::defaultServiceManager;
80 auto sm = defaultServiceManager(); in Dispatch()
85 auto binder = std::invoke(serviceRetriever, defaultServiceManager(), String16(name)); in Dispatch()
195 auto sm = defaultServiceManager(); in wrapServiceManager()
200 auto service = std::invoke(serviceRetriever, defaultServiceManager(), String16("manager")); in wrapServiceManager()
/frameworks/av/services/tuner/
DTunerHelper.cpp26 using ::android::defaultServiceManager;
46 sp<IServiceManager> serviceMgr = defaultServiceManager(); in checkTunerFeature()
/frameworks/native/libs/ui/tests/
DGraphicBufferOverBinder_test.cpp66 sp<IServiceManager> sm = defaultServiceManager(); in runBinderServer()
87 mService = defaultServiceManager()->getService(kTestServiceName); in SetUp()
/frameworks/av/media/utils/
DSchedulingPolicyService.cpp52 sp<IBinder> binder = defaultServiceManager()->checkService(_scheduling_policy); in requestPriority()
81 sp<IBinder> binder = defaultServiceManager()->checkService(_scheduling_policy); in requestCpusetBoost()
DProcessInfo.cpp55 sp<IBinder> binder = defaultServiceManager()->waitForService(String16("processinfo")); in checkProcessExistent()
90 sp<IBinder> binder = defaultServiceManager()->waitForService(String16("processinfo")); in getPriority()
/frameworks/av/drm/drmserver/
Dmain_drmserver.cpp34 sp<IServiceManager> sm = defaultServiceManager(); in main()
/frameworks/av/media/libmediaplayerservice/
DActivityManager.cpp31 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile()
/frameworks/native/cmds/dumpsys/
Dmain.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in main()
/frameworks/native/services/gpuservice/
Dmain_gpuservice.cpp30 sp<IServiceManager> sm(defaultServiceManager()); 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/av/camera/cameraserver/
Dmain_cameraserver.cpp38 sp<IServiceManager> sm = defaultServiceManager(); in main()
/frameworks/av/media/mediaserver/
Dmain_mediaserver.cpp38 sp<IServiceManager> sm(defaultServiceManager()); in main()
/frameworks/av/services/mediaextractor/
Dmain_extractorservice.cpp71 sp<IServiceManager> sm = defaultServiceManager(); in main()

123456