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

Commit bbd6adda authored by Michael Wright's avatar Michael Wright Committed by Android (Google) Code Review
Browse files

Merge "Remove PowerHint::DISABLE_TOUCH"

parents e466fc9c f54971ab
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -76,15 +76,6 @@ enum PowerHint : uint32_t {
    * it has been launched.
    */
    LAUNCH = 0x00000008,

   /*
    * When device enters some special modes, e.g. theater mode in Android
    * Wear, there is no touch interaction expected between device and user.
    * Touch controller could be disabled in those modes to save power.
    * The data parameter is non-zero when touch could be disabled, and zero
    * when touch needs to be re-enabled.
    */
    DISABLE_TOUCH = 0x00000009
};

enum Feature : uint32_t {
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ TEST_F(PowerHidlTest, PowerHint) {
                PowerHint::VIDEO_ENCODE,  PowerHint::VIDEO_DECODE,
                PowerHint::LOW_POWER,     PowerHint::SUSTAINED_PERFORMANCE,
                PowerHint::VR_MODE,       PowerHint::LAUNCH,
                PowerHint::DISABLE_TOUCH, badHint};
                badHint};
  Return<void> ret;
  for (auto hint : hints) {
    ret = power->powerHint(hint, 1);
+0 −4
Original line number Diff line number Diff line
@@ -43,10 +43,6 @@ attribute: {
        scalar_value: {
            uint32_t: 8
        }
        enumerator: "DISABLE_TOUCH"
        scalar_value: {
            uint32_t: 9
        }
    }
}