@@ -108,7 +108,7 @@ bool SensorPrivacyManager::isSensorPrivacyEnabled()
108108
109109bool SensorPrivacyManager::isToggleSensorPrivacyEnabled (int sensor)
110110{
111- sp<hardware::ISensorPrivacyManager> service = getService ();
111+ sp<hardware::ISensorPrivacyManager> service = getService ();
112112 if (service != nullptr ) {
113113 bool result;
114114 service->isCombinedToggleSensorPrivacyEnabled (sensor, &result);
@@ -143,39 +143,6 @@ status_t SensorPrivacyManager::isToggleSensorPrivacyEnabled(int toggleType, int
143143 return UNKNOWN_ERROR;
144144}
145145
146- int SensorPrivacyManager::getToggleSensorPrivacyState (int toggleType, int sensor)
147- {
148- sp<hardware::ISensorPrivacyManager> service = getService ();
149- if (service != nullptr ) {
150- int result;
151- service->getToggleSensorPrivacyState (toggleType, sensor, &result);
152- return result;
153- }
154- // if the SensorPrivacyManager is not available then assume sensor privacy is disabled
155- return DISABLED;
156- }
157-
158- std::vector<hardware::CameraPrivacyAllowlistEntry>
159- SensorPrivacyManager::getCameraPrivacyAllowlist (){
160- sp<hardware::ISensorPrivacyManager> service = getService ();
161- std::vector<hardware::CameraPrivacyAllowlistEntry> result;
162- if (service != nullptr ) {
163- service->getCameraPrivacyAllowlist (&result);
164- return result;
165- }
166- return result;
167- }
168-
169- bool SensorPrivacyManager::isCameraPrivacyEnabled (String16 packageName){
170- sp<hardware::ISensorPrivacyManager> service = getService ();
171- if (service != nullptr ) {
172- bool result;
173- service->isCameraPrivacyEnabled (packageName, &result);
174- return result;
175- }
176- return false ;
177- }
178-
179146status_t SensorPrivacyManager::linkToDeath (const sp<IBinder::DeathRecipient>& recipient)
180147{
181148 sp<hardware::ISensorPrivacyManager> service = getService ();
0 commit comments