Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/nfc/java/android/nfc/
DNfcServiceManager.java30 import android.os.ServiceManager;
64 ServiceManager.addService(mServiceName, service); in register()
75 return ServiceManager.getService(mServiceName); in get()
87 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
88 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
99 return ServiceManager.checkService(mServiceName); in tryGet()
107 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
/frameworks/base/core/java/android/provider/
DDeviceConfigServiceManager.java23 import android.os.ServiceManager;
62 ServiceManager.addService(mServiceName, service); in register()
76 return ServiceManager.getService(mServiceName); in get()
91 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
92 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
106 return ServiceManager.checkService(mServiceName); in tryGet()
117 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
/frameworks/base/omapi/java/android/se/omapi/
DSeServiceManager.java32 import android.os.ServiceManager;
71 ServiceManager.addService(mServiceName, service); in register()
83 return ServiceManager.getService(mServiceName); in get()
96 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
97 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
109 return ServiceManager.checkService(mServiceName); in tryGet()
119 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
/frameworks/base/core/java/android/os/
DBluetoothServiceManager.java59 ServiceManager.addService(mServiceName, service); in register()
70 return ServiceManager.getService(mServiceName); in get()
82 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
83 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
94 return ServiceManager.checkService(mServiceName); in tryGet()
102 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
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 {
DProfilingServiceManager.java57 return ServiceManager.getService(mServiceName); in get()
69 return ServiceManager.getServiceOrThrow(mServiceName); in getOrThrow()
70 } catch (ServiceManager.ServiceNotFoundException e) { in getOrThrow()
79 public static class ServiceNotFoundException extends ServiceManager.ServiceNotFoundException {
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java197 import android.os.ServiceManager;
198 import android.os.ServiceManager.ServiceNotFoundException;
348 IBinder b = ServiceManager.getServiceOrThrow(Context.ACCOUNT_SERVICE); in registerService()
379 IBinder b = ServiceManager.getServiceOrThrow(Context.ALARM_SERVICE); in registerService()
409 IBinder b = ServiceManager.getServiceOrThrow(Context.HDMI_CONTROL_SERVICE); in registerService()
424 IBinder b = ServiceManager.getServiceOrThrow(Context.FONT_SERVICE); in registerService()
445 IBinder b = ServiceManager.getServiceOrThrow(Context.PAC_PROXY_SERVICE); in registerService()
453 return ServiceManager.getServiceOrThrow(Context.NETD_SERVICE); in registerService()
462 ctx, () -> ServiceManager.getService(Context.TETHERING_SERVICE)); in registerService()
469 IBinder b = ServiceManager.getService(Context.VPN_MANAGEMENT_SERVICE); in registerService()
[all …]
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp307 ServiceManager::Service::~Service() { in ~Service()
319 ServiceManager::ServiceManager(std::unique_ptr<Access>&& access) : mAccess(std::move(access)) { in ServiceManager() function in android::ServiceManager
335 ServiceManager::~ServiceManager() { in ~ServiceManager()
350 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
356 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
362 sp<IBinder> ServiceManager::tryGetService(const std::string& name, bool startIfNotFound) { in tryGetService()
415 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
449 binder->linkToDeath(sp<ServiceManager>::fromExisting(this)) != OK) { in addService()
507 Status ServiceManager::listServices(int32_t dumpPriority, std::vector<std::string>* outList) { in listServices()
533 Status ServiceManager::registerForNotifications( in registerForNotifications()
[all …]
Dmain.cpp34 using ::android::ServiceManager;
75 const sp<ServiceManager>& manager, in setupTo()
121 ClientCallbackCallback(const sp<ServiceManager>& manager) : mManager(manager) {} in ClientCallbackCallback()
122 sp<ServiceManager> mManager;
143 sp<ServiceManager> manager = sp<ServiceManager>::make(std::make_unique<Access>()); in main()
Dtest_sm.cpp33 using android::ServiceManager;
65 class MockServiceManager : public ServiceManager {
67 MockServiceManager(std::unique_ptr<Access>&& access) : ServiceManager(std::move(access)) {} in MockServiceManager()
71 static sp<ServiceManager> getPermissiveServiceManager() { in getPermissiveServiceManager()
79 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in getPermissiveServiceManager()
134 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
176 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
209 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
233 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
259 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DDefaultHalFactory.java23 import android.os.ServiceManager;
64 if (ServiceManager.isDeclared(aidlServiceName)) { in create()
66 return new SoundTriggerHw3Compat(ServiceManager.waitForService(aidlServiceName), in create()
104 return new SoundTriggerHw3Compat(ServiceManager.waitForService(aidlServiceName), in create()
107 ServiceManager.waitForService(aidlServiceName).shellCommand(null, in create()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/
DInitializerImpl.java24 import androidx.camera.extensions.impl.serviceforward.ServiceManager;
59 ServiceManager.init(context, version, callback, executor); in init()
73 ServiceManager.getInstance().deinit(callback, executor); in deinit()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/
DServiceManager.java42 public class ServiceManager { class
49 private static ServiceManager sServiceManager = new ServiceManager();
58 sServiceManager = new ServiceManager(context, version); in init()
96 public static ServiceManager getInstance() { in getInstance()
100 public ServiceManager() { in ServiceManager() method in ServiceManager
105 public ServiceManager(@NonNull Context context, @NonNull String version) { in ServiceManager() method in ServiceManager
/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/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/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/com/android/server/backup/
DCompanionBackupHelper.java23 import android.os.ServiceManager;
54 ServiceManager.getService(Context.COMPANION_DEVICE_SERVICE)); in getBackupPayload()
69 ServiceManager.getService(Context.COMPANION_DEVICE_SERVICE)); in applyRestoredPayload()
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/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()
100 final IMms iMms = IMms.Stub.asInterface(ServiceManager.getService("imms")); in downloadMultimediaMessage()
/frameworks/base/ravenwood/framework-src/android/ravenwood/example/
DRedManager.java21 import android.os.ServiceManager;
29 return ServiceManager.getService(SERVICE_NAME).getInterfaceDescriptor(); in getInterfaceDescriptor()
DBlueManager.java21 import android.os.ServiceManager;
29 return ServiceManager.getService(SERVICE_NAME).getInterfaceDescriptor(); in getInterfaceDescriptor()

12345678910>>...18