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

Commit 87704c94 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Get layer trace status from SurfaceFlinger service

Bug: 64831661
Test: Toggle layer trace from new QS Tile
Change-Id: I7259dbb295feefd2302b0e93c8e1ed1a857616bf
parent bdae91fd
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -4245,7 +4245,7 @@ status_t SurfaceFlinger::onTransact(
                reply->writeBool(hasWideColorDisplay);
                return NO_ERROR;
            }
            case 1025: { // tracing
            case 1025: { // Set layer tracing
                n = data.readInt32();
                if (n) {
                    ALOGV("LayerTracing enabled");
@@ -4259,6 +4259,10 @@ status_t SurfaceFlinger::onTransact(
                }
                return NO_ERROR;
            }
            case 1026: { // Get layer tracing status
                reply->writeBool(mTracing.isEnabled());
                return NO_ERROR;
            }
        }
    }
    return err;