Home
last modified time | relevance | path

Searched refs:ServiceManager (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/frameworks/native/libs/fakeservicemanager/
DServiceManager.cpp21 ServiceManager::ServiceManager() {} in ServiceManager() function in android::ServiceManager
23 sp<IBinder> ServiceManager::getService( const String16& name) const { in getService()
28 sp<IBinder> ServiceManager::checkService( const String16& name) const { in checkService()
36 status_t ServiceManager::addService(const String16& name, const sp<IBinder>& service, in addService()
43 Vector<String16> ServiceManager::listServices(int /*dumpsysFlags*/) { in listServices()
52 IBinder* ServiceManager::onAsBinder() { in onAsBinder()
56 sp<IBinder> ServiceManager::waitForService(const String16& name) { in waitForService()
60 bool ServiceManager::isDeclared(const String16& name) { in isDeclared()
64 Vector<String16> ServiceManager::getDeclaredInstances(const String16& name) { in getDeclaredInstances()
76 std::optional<String16> ServiceManager::updatableViaApex(const String16& name) { in updatableViaApex()
Dtest_sm.cpp31 using android::ServiceManager;
48 auto sm = new ServiceManager(); in TEST()
54 auto sm = new ServiceManager(); in TEST()
62 auto sm = new ServiceManager(); in TEST()
72 auto sm = new ServiceManager(); in TEST()
78 auto sm = new ServiceManager(); in TEST()
97 auto sm = new ServiceManager(); in TEST()
103 auto sm = new ServiceManager(); in TEST()
113 auto sm = new ServiceManager(); in TEST()
119 auto sm = new ServiceManager(); in TEST()
/frameworks/base/core/java/android/os/
DTelephonyServiceManager.java54 ServiceManager.addService(mServiceName, service); in register()
65 return ServiceManager.getService(mServiceName); in get()
77 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
78 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
89 return ServiceManager.checkService(mServiceName); in tryGet()
98 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
DStatsServiceManager.java58 return ServiceManager.getService(mServiceName); in get()
70 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
71 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
82 return ServiceManager.checkService(mServiceName); in tryGet()
89 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp152 ServiceManager::ServiceManager(std::unique_ptr<Access>&& access) : mAccess(std::move(access)) { in ServiceManager() function in android::ServiceManager
168 ServiceManager::~ServiceManager() { in ~ServiceManager()
183 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
189 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
195 sp<IBinder> ServiceManager::tryGetService(const std::string& name, bool startIfNotFound) { in tryGetService()
246 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
276 binder->linkToDeath(sp<ServiceManager>::fromExisting(this)) != OK) { in addService()
301 Status ServiceManager::listServices(int32_t dumpPriority, std::vector<std::string>* outList) { in listServices()
327 Status ServiceManager::registerForNotifications( in registerForNotifications()
346 sp<ServiceManager>::fromExisting(this))) { in registerForNotifications()
[all …]
Dmain.cpp35 using ::android::ServiceManager;
67 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo()
109 ClientCallbackCallback(const sp<ServiceManager>& manager) : mManager(manager) {} in ClientCallbackCallback()
110 sp<ServiceManager> mManager;
124 sp<ServiceManager> manager = sp<ServiceManager>::make(std::make_unique<Access>()); in main()
Dtest_sm.cpp32 using android::ServiceManager;
60 class MockServiceManager : public ServiceManager {
62 MockServiceManager(std::unique_ptr<Access>&& access) : ServiceManager(std::move(access)) {} in MockServiceManager()
66 static sp<ServiceManager> getPermissiveServiceManager() { in getPermissiveServiceManager()
74 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in getPermissiveServiceManager()
122 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
164 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
197 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
221 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
247 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
[all …]
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java170 import android.os.ServiceManager;
171 import android.os.ServiceManager.ServiceNotFoundException;
288 IBinder b = ServiceManager.getServiceOrThrow(Context.ACCOUNT_SERVICE); in registerService()
319 IBinder b = ServiceManager.getServiceOrThrow(Context.ALARM_SERVICE); in registerService()
349 IBinder b = ServiceManager.getServiceOrThrow(Context.HDMI_CONTROL_SERVICE); in registerService()
364 IBinder b = ServiceManager.getServiceOrThrow(Context.FONT_SERVICE); in registerService()
385 IBinder b = ServiceManager.getServiceOrThrow(Context.PAC_PROXY_SERVICE); in registerService()
393 return ServiceManager.getServiceOrThrow(Context.NETD_SERVICE); in registerService()
402 ctx, () -> ServiceManager.getService(Context.TETHERING_SERVICE)); in registerService()
409 IBinder b = ServiceManager.getService(Context.VPN_MANAGEMENT_SERVICE); in registerService()
[all …]
DDreamManager.java27 import android.os.ServiceManager;
43 public DreamManager(Context context) throws ServiceManager.ServiceNotFoundException { in DreamManager()
45 ServiceManager.getServiceOrThrow(DreamService.DREAM_SERVICE)); in DreamManager()
DGameManager.java30 import android.os.ServiceManager;
31 import android.os.ServiceManager.ServiceNotFoundException;
84 ServiceManager.getServiceOrThrow(Context.GAME_SERVICE)); in GameManager()
/frameworks/base/media/java/android/media/
DMediaServiceManager.java23 import android.os.ServiceManager;
74 return ServiceManager.waitForService(mServiceName); in get()
76 return ServiceManager.getService(mServiceName); in get()
/frameworks/base/core/java/android/app/timezonedetector/
DTimeZoneDetectorImpl.java22 import android.os.ServiceManager;
23 import android.os.ServiceManager.ServiceNotFoundException;
39 ServiceManager.getServiceOrThrow(Context.TIME_ZONE_DETECTOR_SERVICE)); in TimeZoneDetectorImpl()
/frameworks/base/core/java/com/android/server/backup/
DNotificationBackupHelper.java21 import android.os.ServiceManager;
48 ServiceManager.getService("notification")); in getBackupPayload()
68 ServiceManager.getService("notification")); in applyRestoredPayload()
DSliceBackupHelper.java20 import android.os.ServiceManager;
46 ServiceManager.getService(Context.SLICE_SERVICE)); in getBackupPayload()
65 ServiceManager.getService(Context.SLICE_SERVICE)); in applyRestoredPayload()
/frameworks/base/core/java/android/app/timedetector/
DTimeDetectorImpl.java22 import android.os.ServiceManager;
23 import android.os.ServiceManager.ServiceNotFoundException;
39 ServiceManager.getServiceOrThrow(Context.TIME_DETECTOR_SERVICE)); in TimeDetectorImpl()
/frameworks/base/core/java/com/android/ims/internal/uce/uceservice/
DImsUceManager.java23 import android.os.ServiceManager;
118 IBinder binder = ServiceManager.checkService(getUceServiceName()); in createUceService()
125 IBinder b = ServiceManager.getService(getUceServiceName()); in createUceService()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DSystemPropPoker.java23 import android.os.ServiceManager;
66 return ServiceManager.listServices(); in listServices()
71 return ServiceManager.checkService(service); in checkService()
/frameworks/base/mms/java/android/telephony/
DMmsManager.java28 import android.os.ServiceManager;
67 final IMms iMms = IMms.Stub.asInterface(ServiceManager.getService("imms")); in sendMultimediaMessage()
99 final IMms iMms = IMms.Stub.asInterface(ServiceManager.getService("imms")); in downloadMultimediaMessage()
/frameworks/base/core/java/android/hardware/
DConsumerIrManager.java24 import android.os.ServiceManager;
25 import android.os.ServiceManager.ServiceNotFoundException;
45 ServiceManager.getServiceOrThrow(Context.CONSUMER_IR_SERVICE)); in ConsumerIrManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java57 import android.os.ServiceManager;
181 return IAudioService.Stub.asInterface(ServiceManager.getService(Context.AUDIO_SERVICE)); in provideIAudioService()
189 ServiceManager.getService(BatteryStats.SERVICE_NAME)); in provideIBatteryStats()
196 ServiceManager.checkService(DreamService.DREAM_SERVICE)); in provideIDreamManager()
224 ServiceManager.getService(Context.APPWIDGET_SERVICE)); in provideIAppWidgetService()
230 return IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in provideIPackageManager()
237 ServiceManager.getService(Context.STATUS_BAR_SERVICE)); in provideIStatusBarService()
244 ServiceManager.getService(Context.WALLPAPER_SERVICE)); in provideIWallPaperManager()
/frameworks/base/core/java/android/util/imetracing/
DImeTracing.java24 import android.os.ServiceManager;
25 import android.os.ServiceManager.ServiceNotFoundException;
61 ServiceManager.getServiceOrThrow(Context.INPUT_METHOD_SERVICE)); in ImeTracing()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDynamicSystemServiceTest.java19 import android.os.ServiceManager;
32 ServiceManager.getService("dynamic_system")); in setUp()
/frameworks/base/keystore/java/android/security/
DGateKeeper.java22 import android.os.ServiceManager;
39 ServiceManager.getService(Context.GATEKEEPER_SERVICE)); in getService()
/frameworks/base/core/java/android/app/time/
DTimeManager.java27 import android.os.ServiceManager;
28 import android.os.ServiceManager.ServiceNotFoundException;
66 ServiceManager.getServiceOrThrow(Context.TIME_ZONE_DETECTOR_SERVICE)); in TimeManager()
68 ServiceManager.getServiceOrThrow(Context.TIME_DETECTOR_SERVICE)); in TimeManager()
/frameworks/base/core/java/android/app/compat/
DCompatChanges.java25 import android.os.ServiceManager;
119 ServiceManager.getService(Context.PLATFORM_COMPAT_SERVICE)); in putPackageOverrides()
143 ServiceManager.getService(Context.PLATFORM_COMPAT_SERVICE)); in removePackageOverrides()

12345678910>>...15