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

Commit 9c2d28cf authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Reland^2 "Enable input window rotation flag"

7719c7d2

This may cause some tests to fail because of b/201777251, but since we
don't have a good idea of which/how many tests are affected, we can
judge the impact after landing.

Bug: 179274888
Test: manual

Change-Id: Ic49d0fe8024d4fcf4eab4ebe1a4a5189d8a3cec7
parent 3927b6da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ private:
// coordinates and SurfaceFlinger includes the display rotation in the input window transforms.
bool isPerWindowInputRotationEnabled() {
    static const bool PER_WINDOW_INPUT_ROTATION =
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);

    return PER_WINDOW_INPUT_ROTATION;
}
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ namespace android {
// projection are part of the input window's transform. This means InputReader should work in the
// un-rotated coordinate space.
static bool isPerWindowInputRotationEnabled() {
    return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);
    return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);
}

static int32_t getInverseRotation(int32_t orientation) {
+1 −1
Original line number Diff line number Diff line
@@ -3096,7 +3096,7 @@ void SurfaceFlinger::updateInputFlinger() {

bool enablePerWindowInputRotation() {
    static bool value =
            android::base::GetBoolProperty("persist.debug.per_window_input_rotation", false);
            android::base::GetBoolProperty("persist.debug.per_window_input_rotation", true);
    return value;
}