services/foldables/devicestateprovider/src/com/android/server/policy/BookStyleDeviceStatePolicy.java
+6
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Disables listening to hall sensor when the new posture based closed state flag is enabled. When this flag is enabled we do not rely on hall sensor and use hinge angle sensor instead. Hall sensor is a wake-up sensor and it might waste power by waking up CPU when not needed. Test: manual check in sensor service dumpsys that we don't listen to hall sensor anymore Test: atest BookStyleDeviceStatePolicyTest Bug: 335386446 Change-Id: I89406859d5df23d17eea73113d4c46b273dd778b