Optimized HdrBrightnessModifier behaviour on display change
1) Otimized LightSensorSubscription on display change - subscribe to new sensor and then unsubscribe from old to avoid SensorEventQueue recreation 2) onDiplayChange is already called in DisplayControllerHandler, no need to call in in handler 3) When new HdrBrightnessModifier is active, HdrClamper could be disabled 4) Fixed LightSensorControllerTest Bug: b/353474430 Test: manual testing Flag: com.android.server.display.feature.flags.new_hdr_brightness_modifier Change-Id: I744ea06413544b553e25aff3d5ede2e995d46d9d
Loading
Please register or sign in to comment