Lines Matching refs:service
36 sp<hardware::ISensorPrivacyManager> service = mService; in getService() local
37 while (service == nullptr || !IInterface::asBinder(service)->isBinderAlive()) { in getService()
46 service = nullptr; in getService()
51 service = interface_cast<hardware::ISensorPrivacyManager>(binder); in getService()
52 mService = service; in getService()
55 return service; in getService()
61 sp<hardware::ISensorPrivacyManager> service = getService(); in addSensorPrivacyListener() local
62 if (service != nullptr) { in addSensorPrivacyListener()
63 service->addSensorPrivacyListener(listener); in addSensorPrivacyListener()
70 sp<hardware::ISensorPrivacyManager> service = getService(); in removeSensorPrivacyListener() local
71 if (service != nullptr) { in removeSensorPrivacyListener()
72 service->removeSensorPrivacyListener(listener); in removeSensorPrivacyListener()
78 sp<hardware::ISensorPrivacyManager> service = getService(); in isSensorPrivacyEnabled() local
79 if (service != nullptr) { in isSensorPrivacyEnabled()
81 service->isSensorPrivacyEnabled(&result); in isSensorPrivacyEnabled()
90 sp<hardware::ISensorPrivacyManager> service = getService(); in linkToDeath() local
91 if (service != nullptr) { in linkToDeath()
92 return IInterface::asBinder(service)->linkToDeath(recipient); in linkToDeath()
99 sp<hardware::ISensorPrivacyManager> service = getService(); in unlinkToDeath() local
100 if (service != nullptr) { in unlinkToDeath()
101 return IInterface::asBinder(service)->unlinkToDeath(recipient); in unlinkToDeath()