Loading services/sensorservice/SensorDirectConnection.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,11 @@ void SensorService::SensorDirectConnection::onSensorAccessChanged(bool hasAccess } void SensorService::SensorDirectConnection::onMicSensorAccessChanged(bool isMicToggleOn) { // TODO(b/398253250): Create a more robust way to allow VNDK and system clients to be exempted if (mUid == AID_SYSTEM) { return; } if (isMicToggleOn) { capRates(); } else { Loading services/sensorservice/SensorEventConnection.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -764,6 +764,11 @@ status_t SensorService::SensorEventConnection::setEventRate(int handle, nsecs_t } void SensorService::SensorEventConnection::onMicSensorAccessChanged(bool isMicToggleOn) { // TODO(b/398253250): Create a more robust way to allow VNDK and system clients to be exempted if (mUid == AID_SYSTEM) { return; } if (isMicToggleOn) { capRates(); } else { Loading Loading
services/sensorservice/SensorDirectConnection.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,11 @@ void SensorService::SensorDirectConnection::onSensorAccessChanged(bool hasAccess } void SensorService::SensorDirectConnection::onMicSensorAccessChanged(bool isMicToggleOn) { // TODO(b/398253250): Create a more robust way to allow VNDK and system clients to be exempted if (mUid == AID_SYSTEM) { return; } if (isMicToggleOn) { capRates(); } else { Loading
services/sensorservice/SensorEventConnection.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -764,6 +764,11 @@ status_t SensorService::SensorEventConnection::setEventRate(int handle, nsecs_t } void SensorService::SensorEventConnection::onMicSensorAccessChanged(bool isMicToggleOn) { // TODO(b/398253250): Create a more robust way to allow VNDK and system clients to be exempted if (mUid == AID_SYSTEM) { return; } if (isMicToggleOn) { capRates(); } else { Loading