Home
last modified time | relevance | path

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

12

/aosp12/frameworks/native/include/binder/
H A DIServiceManager.h90 virtual sp<IBinder> waitForService(const String16& name) = 0;
123 sp<INTERFACE> waitForService(const String16& name) { in waitForService() function
125 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService()
132 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService()
/aosp12/frameworks/native/libs/binder/include/binder/
H A DIServiceManager.h90 virtual sp<IBinder> waitForService(const String16& name) = 0;
123 sp<INTERFACE> waitForService(const String16& name) { in waitForService() function
125 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService()
132 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService()
/aosp12/system/tools/aidl/tests/lazy_test/
H A Dmain.cpp42 sp<IBinder> waitForService(const String16& name) { in waitForService() function
47 return manager->waitForService(name); in waitForService()
91 sp<IBinder> service = waitForService(gServiceNames.at(i % nServices)); in TEST_F()
115 sp<IBinder> service = waitForService(gServiceNames.at(i % nServices)); in testWithTimes()
170 sp<ILazyTestService> service = android::waitForService<ILazyTestService>(name); in waitForLazyTestService()
/aosp12/frameworks/native/cmds/cmd/
H A Dcmd.cpp206 bool waitForService = ((argc > 1) && (argv[0] == "-w")); in cmdMain() local
207 int serviceIdx = (waitForService) ? 1 : 0; in cmdMain()
216 if(waitForService) { in cmdMain()
217 service = sm->waitForService(serviceName); in cmdMain()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictedProfilePinServiceConnection.java75 if (!waitForService()) { in getPinService()
94 private boolean waitForService() { in waitForService() method in RestrictedProfilePinServiceConnection
/aosp12/frameworks/native/libs/fakeservicemanager/
H A Dtest_sm.cpp99 EXPECT_EQ(sm->waitForService(String16("foo")), nullptr); in TEST()
109 EXPECT_EQ(sm->waitForService(String16("foo")), service); in TEST()
H A DServiceManager.h46 sp<IBinder> waitForService(const String16& name) override;
H A DServiceManager.cpp56 sp<IBinder> ServiceManager::waitForService(const String16& name) { in waitForService() function in android::ServiceManager
/aosp12/system/gsid/
H A Dlibgsid.cpp30 android::sp<android::IBinder> res = sm->waitForService(name); in GetGsiService()
/aosp12/frameworks/base/core/java/android/os/
H A DServiceManager.java260 public static native IBinder waitForService(@NonNull String name); in waitForService() method in ServiceManager
272 return isDeclared(name) ? waitForService(name) : null; in waitForDeclaredService()
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_ServiceManager.cpp46 sp<IBinder> service = defaultServiceManager()->waitForService(nameCopy); in android_os_ServiceManager_waitForService()
/aosp12/frameworks/native/libs/binderthreadstate/
H A Dtest.cpp188 android::waitForService<IAidlStuff>(String16(id2name(kP1Id).c_str())); in main()
190 android::waitForService<IAidlStuff>(String16(id2name(kP2Id).c_str())); in main()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputFlingerService_test.cpp178 sp<IBinder> input(defaultServiceManager()->waitForService(kTestServiceName)); in InitializeInputFlinger()
182 input = defaultServiceManager()->waitForService(kQueryServiceName); in InitializeInputFlinger()
/aosp12/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
H A DLoginTest.java251 private void changeTest(boolean waitForService) throws Throwable { in changeTest() argument
255 if (waitForService) { in changeTest()
/aosp12/frameworks/base/media/java/android/media/
H A DMediaServiceManager.java74 return ServiceManager.waitForService(mServiceName); in get()
/aosp12/frameworks/base/services/core/jni/
H A Dcom_android_server_power_PowerManagerService.cpp158 gSuspendControl = waitForService<ISuspendControlService>(String16("suspend_control")); in getSuspendControl()
168 waitForService<system::suspend::internal::ISuspendControlServiceInternal>( in getSuspendControlInternal()
/aosp12/frameworks/av/services/audiopolicy/service/
H A DBinderProxy.h59 mDelegate = waitForService<ServiceType>(String16(mServiceName.c_str())); in waitServiceOrDie()
/aosp12/system/update_engine/aosp/
H A Dapex_handler_android.cc92 auto binder = android::defaultServiceManager()->waitForService( in GetApexService()
/aosp12/system/tools/aidl/tests/java/src/android/aidl/tests/
H A DNullableTests.java45 IBinder binder = ServiceManager.waitForService(ITestService.class.getName()); in setUp()
H A DTestVersionedInterface.java43 IBinder binder = ServiceManager.waitForService(IFooInterface.class.getName()); in setUp()
/aosp12/frameworks/native/libs/binder/
H A DIServiceManager.cpp75 sp<IBinder> waitForService(const String16& name16) override;
292 sp<IBinder> ServiceManagerShim::waitForService(const String16& name16) in waitForService() function in android::ServiceManagerShim
/aosp12/frameworks/native/libs/binder/ndk/
H A Dservice_manager.cpp83 sp<IBinder> binder = sm->waitForService(String16(instance)); in AServiceManager_waitForService()
/aosp12/system/chre/platform/slpi/include/chre/platform/slpi/see/
H A Dsee_helper.h482 bool waitForService(sns_client **client,
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DDynamicSystemService.java60 return IGsiService.Stub.asInterface(ServiceManager.waitForService("gsiservice")); in getGsiService()
/aosp12/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportReceiverTest.java819 waitForService(false); in assertServiceNotRunning()
833 private void waitForService(boolean expectRunning) { in waitForService() method in BugreportReceiverTest
857 waitForService(false); in killService()

12