Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd51a01c authored by Evan Severson's avatar Evan Severson
Browse files

Fix naming convention in CameraService

Bug: 170156750
Bug: 162549680
Test: Build
Change-Id: Ieaf9f837a7327efa3cdb1162c496e1a53ec0c2c3
parent e8fb93cc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
}
@@ -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();
+3 −3
Original line number Diff line number Diff line
@@ -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);
@@ -657,8 +657,8 @@ private:
            Mutex mSensorPrivacyLock;
            bool mSensorPrivacyEnabled;
            bool mRegistered;
            bool isIndividual;
            userid_t userId;
            bool mIsIndividual;
            userid_t mUserId;
    };

    sp<UidPolicy> mUidPolicy;