Home
last modified time | relevance | path

Searched refs:checkService (Results 1 – 25 of 103) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DServiceHolderTest.java101 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testServiceSuccessfullyPopulated_whenCallback()
106 when(mServiceProviderFacade.checkService(eq(AUDIO_POLICY_SERVICE_NAME))) in testCheckServiceCalled_whenUncached()
108 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testCheckServiceCalled_whenUncached()
113 assertThat(mServiceHolder.checkService()).isEqualTo(null); in testCheckServiceTransmitsNull()
126 mServiceHolder.checkService(); in testCheckServiceNotCalled_whenCached()
127 verify(mServiceProviderFacade, never()).checkService(any()); in testCheckServiceNotCalled_whenCached()
142 when(mServiceProviderFacade.checkService(eq(AUDIO_POLICY_SERVICE_NAME))) in testStartTaskCalled_onStart()
145 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testStartTaskCalled_onStart()
159 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testStartTaskCalled_onStartFromCallback()
174 assertThat(mServiceHolder.checkService()).isEqualTo(mAudioPolicyService); in testBinderDied_clearsServiceAndUnlinks()
[all …]
/frameworks/native/services/sensorservice/
DBatteryService.cpp59 if (checkService()) { in enableSensorImpl()
68 if (checkService()) { in disableSensorImpl()
78 if (checkService()) { in noteWakeupSensorEventImpl()
85 bool BatteryService::checkService() { in checkService() function in android::BatteryService
/frameworks/base/core/java/com/android/ims/internal/uce/uceservice/
DImsUceManager.java115 public void createUceService(boolean checkService) { in createUceService() argument
117 if (checkService) { in createUceService()
118 IBinder binder = ServiceManager.checkService(getUceServiceName()); in createUceService()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DSystemPropPoker.java70 IBinder checkService(String service) { in checkService() method in SystemPropPoker.PokerTask
71 return ServiceManager.checkService(service); in checkService()
82 IBinder obj = checkService(service); in doInBackground()
/frameworks/base/services/core/java/com/android/server/audio/
DServiceHolder.java77 public IBinder checkService(String name); in checkService() method
101 public IBinder checkService(String name) { in ServiceHolder()
102 return ServiceManager.checkService(name); in ServiceHolder()
183 public @Nullable I checkService() { in checkService() method in ServiceHolder
186 IBinder registered = mServiceProvider.checkService(mServiceName); in checkService()
/frameworks/base/core/java/android/os/
DUpdateLock.java35 private static void checkService() { in checkService() method in UpdateLock
112 checkService(); in acquire()
137 checkService(); in release()
DServiceManagerNative.java63 return mServiceManager.checkService(name); in getService()
66 public IBinder checkService(String name) throws RemoteException { in checkService() method in ServiceManagerProxy
67 return mServiceManager.checkService(name); in checkService()
DStatsServiceManager.java82 return ServiceManager.checkService(mServiceName); in tryGet()
DBluetoothServiceManager.java94 return ServiceManager.checkService(mServiceName); in tryGet()
/frameworks/native/libs/fakeservicemanager/
DFakeServiceManager.cpp29 return checkService(name); in getService()
32 sp<IBinder> FakeServiceManager::checkService( const String16& name) const { in checkService() function in android::FakeServiceManager
70 return checkService(name); in waitForService()
/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()
/frameworks/native/libs/binder/
DIServiceManager.cpp82 sp<IBinder> checkService(const String16& name) const override;
249 sp<IBinder> binder = defaultServiceManager()->checkService(_permission); in checkPermission()
305 sp<IBinder> svc = checkService(name); in getService()
333 sp<IBinder> svc = checkService(name); in getService()
345 sp<IBinder> ServiceManagerShim::checkService(const String16& name) const in checkService() function in android::ServiceManagerShim
348 if (!mTheRealServiceManager->checkService(String8(name).c_str(), &ret).isOk()) { in checkService()
640 sp<IBinder> checkService(const String16& name) const override { in checkService() function in android::ServiceManagerHostShim
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiBlobStore.java47 ServiceManager.checkService(LEGACY_KEYSTORE_SERVICE_NAME)); in getLegacyKeystore()
/frameworks/layoutlib/bridge/src/android/os/
DServiceManager.java61 public static IBinder checkService(String name) { in checkService() method in ServiceManager
/frameworks/native/cmds/service/
Dservice.cpp93 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
107 sp<IBinder> service = sm->checkService(name); in main()
117 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
/frameworks/av/media/libaudioclient/
DRecordingActivityTracker.cpp29 sp<IBinder> binder = defaultServiceManager()->checkService(String16("audio")); in RecordingActivityTracker()
/frameworks/native/libs/binder/include/binder/
DIServiceManager.h76 virtual sp<IBinder> checkService( const String16& name) const = 0;
179 return interface_cast<INTERFACE>(sm->checkService(name)); in checkDeclaredService()
/frameworks/native/libs/binder/tests/
DbinderHostDeviceTest.cpp128 auto rpcBinder = sm->checkService(String16(kServiceName)); in TEST_F()
162 auto rpcBinder = sm->checkService(String16(kServiceName)); in TEST_F()
/frameworks/native/include/binder/
DIServiceManager.h76 virtual sp<IBinder> checkService( const String16& name) const = 0;
179 return interface_cast<INTERFACE>(sm->checkService(name)); in checkDeclaredService()
/frameworks/base/services/core/jni/
Dcom_android_server_gpu_GpuService.cpp28 android::defaultServiceManager()->checkService(android::String16("gpu")); in getGpuService()
/frameworks/av/media/libstagefright/
DVideoFrameScheduler.cpp46 mComposer = interface_cast<gui::ISurfaceComposer>(sm->checkService(name)); in updateVsync()
/frameworks/native/libs/binderdebug/
Dstats.cpp35 sp<IBinder> binder = defaultServiceManager()->checkService(name); in main()
/frameworks/av/media/utils/fuzzers/
DSchedulingPolicyServiceFuzz.cpp38 sp<IBinder> obj = sm->checkService(name); in getBatteryService()
/frameworks/base/cmds/bootanimation/
DBootAnimationUtil.cpp70 while (sm->checkService(name) == nullptr) { in waitForSurfaceFlinger()
/frameworks/base/nfc/java/android/nfc/
DNfcServiceManager.java99 return ServiceManager.checkService(mServiceName); in tryGet()

12345