Home
last modified time | relevance | path

Searched refs:waitForService (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/audio/
DServiceHolder.java79 public IBinder waitForService(String name); in waitForService() method
106 public IBinder waitForService(String name) { in ServiceHolder()
107 return ServiceManager.waitForService(name); in ServiceHolder()
192 public @NonNull I waitForService() { in waitForService() method in ServiceHolder
194 return (s != null) ? s : onServiceInited(mServiceProvider.waitForService(mServiceName)); in waitForService()
DDefaultAudioPolicyFacade.java56 IAudioPolicyService ap = mServiceHolder.waitForService(); in isHotwordStreamSupported()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DDefaultHalFactory.java66 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/base/core/java/android/os/
DArtModuleServiceManager.java55 public IBinder waitForService() { in waitForService() method in ArtModuleServiceManager.ServiceRegisterer
56 return ServiceManager.waitForService(mServiceName); in waitForService()
DServiceManager.java332 public static IBinder waitForService(@NonNull String name) { in waitForService() method in ServiceManager
352 return isDeclared(name) ? waitForService(name) : null; in waitForDeclaredService()
/frameworks/native/libs/binder/include/binder/
DIServiceManager.h97 virtual sp<IBinder> waitForService(const String16& name) = 0;
163 sp<INTERFACE> waitForService(const String16& name) { in waitForService() function
165 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService()
172 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService()
/frameworks/native/include/binder/
DIServiceManager.h97 virtual sp<IBinder> waitForService(const String16& name) = 0;
163 sp<INTERFACE> waitForService(const String16& name) { in waitForService() function
165 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService()
172 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService()
/frameworks/native/cmds/cmd/
Dcmd.cpp205 bool waitForService = ((argc > 1) && (argv[0] == "-w")); in cmdMain() local
206 int serviceIdx = (waitForService) ? 1 : 0; in cmdMain()
215 if(waitForService) { in cmdMain()
216 service = sm->waitForService(serviceName); in cmdMain()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DServiceHolderTest.java118 when(mServiceProviderFacade.waitForService(eq(AUDIO_POLICY_SERVICE_NAME))) in testWaitForServiceCalled_whenUncached()
120 assertThat(mServiceHolder.waitForService()).isEqualTo(mAudioPolicyService); in testWaitForServiceCalled_whenUncached()
133 mServiceHolder.waitForService(); in testWaitForServiceNotCalled_whenCached()
134 verify(mServiceProviderFacade, never()).waitForService(any()); in testWaitForServiceNotCalled_whenCached()
/frameworks/av/media/utils/
DProcessInfo.cpp55 sp<IBinder> binder = defaultServiceManager()->waitForService(String16("processinfo")); in checkProcessExistent()
90 sp<IBinder> binder = defaultServiceManager()->waitForService(String16("processinfo")); in getPriority()
/frameworks/base/core/jni/
Dandroid_os_ServiceManager.cpp43 sp<IBinder> service = defaultServiceManager()->waitForService(nameCopy); in android_os_ServiceManager_waitForServiceNative()
/frameworks/native/libs/fakeservicemanager/
Dtest_sm.cpp116 EXPECT_EQ(sm->waitForService(String16("foo")), nullptr); in TEST()
126 EXPECT_EQ(sm->waitForService(String16("foo")), service); in TEST()
DFakeServiceManager.cpp69 sp<IBinder> FakeServiceManager::waitForService(const String16& name) { in waitForService() function in android::FakeServiceManager
/frameworks/base/media/java/android/media/
DMediaServiceManager.java74 return ServiceManager.waitForService(mServiceName); in get()
/frameworks/native/libs/fakeservicemanager/include/fakeservicemanager/
DFakeServiceManager.h48 sp<IBinder> waitForService(const String16& name) override;
/frameworks/native/services/surfaceflinger/tests/
DBinder_test.cpp52 mISurfaceComposerAidl = waitForService<gui::ISurfaceComposer>(String16("SurfaceFlingerAIDL")); in BinderTest()
53 mISurfaceComposer = waitForService<ISurfaceComposer>(String16("SurfaceFlinger")); in BinderTest()
/frameworks/av/services/audiopolicy/service/
DBinderProxy.h59 mDelegate = waitForService<ServiceType>(String16(mServiceName.c_str())); in waitServiceOrDie()
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DLoginTest.java251 private void changeTest(boolean waitForService) throws Throwable { in changeTest() argument
255 if (waitForService) { in changeTest()
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp41 sp<IBinder> binder = sm->waitForService(String16("media.player")); in getMediaPlayerService()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp154 gSuspendControl = waitForService<ISuspendControlService>(String16("suspend_control")); in getSuspendControl()
164 waitForService<system::suspend::internal::ISuspendControlServiceInternal>( in getSuspendControlInternal()
/frameworks/av/services/tuner/
DTunerHelper.cpp53 sp<IBinder> binder = serviceMgr->waitForService(String16("package_native")); in checkTunerFeature()
/frameworks/native/libs/binderthreadstate/
Dtest.cpp240 android::waitForService<IAidlStuff>(String16(id2name(kP1Id).c_str())); in main()
245 android::waitForService<IAidlStuff>(String16(id2name(kP2Id).c_str())); in main()
/frameworks/av/media/libaaudio/tests/
Dtest_multiple_close_simultaneously.cpp69 sp<IBinder> binder = sm->waitForService(String16(AAUDIO_SERVICE_NAME)); in getAAudioService()
/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp37 sp<IBinder> binder = defaultServiceManager()->waitForService(String16("sensor_privacy")); in getService()
/frameworks/native/libs/binder/tests/
DbinderHostDeviceTest.cpp151 auto rpcBinder = sm->waitForService(String16(kServiceName)); in TEST_F()

123