Loading services/camera/libcameraservice/CameraService.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -3249,8 +3249,8 @@ status_t CameraService::SensorPrivacyPolicy::registerSelfForIndividual(int userI } mRegistered = true; isIndividual = true; this->userId = userId; mIsIndividual = true; mUserId = userId; ALOGV("SensorPrivacyPolicy: Registered with SensorPrivacyManager"); return OK; } Loading @@ -3276,8 +3276,8 @@ binder::Status CameraService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool e // if sensor privacy is enabled then block all clients from accessing the camera sp<CameraService> service = mService.promote(); if (service != nullptr) { if (isIndividual) { service->setMuteForAllClients(userId, enabled); if (mIsIndividual) { service->setMuteForAllClients(mUserId, enabled); } else { if (enabled) { service->blockAllClients(); Loading services/camera/libcameraservice/CameraService.h +3 −3 Original line number Diff line number Diff line Loading @@ -638,7 +638,7 @@ private: public: explicit SensorPrivacyPolicy(wp<CameraService> service) : mService(service), mSensorPrivacyEnabled(false), mRegistered(false), isIndividual(false), userId(0) {} mIsIndividual(false), mUserId(0) {} void registerSelf(); status_t registerSelfForIndividual(int userId); Loading @@ -657,8 +657,8 @@ private: Mutex mSensorPrivacyLock; bool mSensorPrivacyEnabled; bool mRegistered; bool isIndividual; userid_t userId; bool mIsIndividual; userid_t mUserId; }; sp<UidPolicy> mUidPolicy; Loading Loading
services/camera/libcameraservice/CameraService.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -3249,8 +3249,8 @@ status_t CameraService::SensorPrivacyPolicy::registerSelfForIndividual(int userI } mRegistered = true; isIndividual = true; this->userId = userId; mIsIndividual = true; mUserId = userId; ALOGV("SensorPrivacyPolicy: Registered with SensorPrivacyManager"); return OK; } Loading @@ -3276,8 +3276,8 @@ binder::Status CameraService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool e // if sensor privacy is enabled then block all clients from accessing the camera sp<CameraService> service = mService.promote(); if (service != nullptr) { if (isIndividual) { service->setMuteForAllClients(userId, enabled); if (mIsIndividual) { service->setMuteForAllClients(mUserId, enabled); } else { if (enabled) { service->blockAllClients(); Loading
services/camera/libcameraservice/CameraService.h +3 −3 Original line number Diff line number Diff line Loading @@ -638,7 +638,7 @@ private: public: explicit SensorPrivacyPolicy(wp<CameraService> service) : mService(service), mSensorPrivacyEnabled(false), mRegistered(false), isIndividual(false), userId(0) {} mIsIndividual(false), mUserId(0) {} void registerSelf(); status_t registerSelfForIndividual(int userId); Loading @@ -657,8 +657,8 @@ private: Mutex mSensorPrivacyLock; bool mSensorPrivacyEnabled; bool mRegistered; bool isIndividual; userid_t userId; bool mIsIndividual; userid_t mUserId; }; sp<UidPolicy> mUidPolicy; Loading