diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-01-11 00:01:38 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-01-11 00:01:38 +0000 |
commit | 73241bb822b728199411c332da8c4bad5745fd9e (patch) | |
tree | 853a9b3b2d6bbd02a6485989e78becfb7368c870 | |
parent | f4ec9c157071399e52e4ff33827c622dbb4e5b4a (diff) | |
parent | 48ef808621a604b806e1cafc4b5c220467003dad (diff) | |
download | development-android13-qpr3-s6-release.tar.gz |
Snap for 9474727 from 48ef808621a604b806e1cafc4b5c220467003dad to tm-qpr3-releaseandroid-13.0.0_r83android-13.0.0_r79android-13.0.0_r78android-13.0.0_r77android-13.0.0_r76android-13.0.0_r75android-13.0.0_r71android-13.0.0_r70android-13.0.0_r69android-13.0.0_r68android-13.0.0_r67android-13.0.0_r63android-13.0.0_r62android-13.0.0_r61android-13.0.0_r56android-13.0.0_r54android-13.0.0_r53android-13.0.0_r52android-13.0.0_r51android-13.0.0_r50android13-qpr3-s9-releaseandroid13-qpr3-s8-releaseandroid13-qpr3-s7-releaseandroid13-qpr3-s6-releaseandroid13-qpr3-s5-releaseandroid13-qpr3-s4-releaseandroid13-qpr3-s3-releaseandroid13-qpr3-s2-releaseandroid13-qpr3-s14-releaseandroid13-qpr3-s13-releaseandroid13-qpr3-s12-releaseandroid13-qpr3-s11-releaseandroid13-qpr3-s10-releaseandroid13-qpr3-s1-releaseandroid13-qpr3-release
Change-Id: I0f2613248480c6655314530ebe85724eb6b6c084
-rwxr-xr-x | tools/winscope/adb_proxy/winscope_proxy.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/winscope/adb_proxy/winscope_proxy.py b/tools/winscope/adb_proxy/winscope_proxy.py index b1c489249..87ccecc4e 100755 --- a/tools/winscope/adb_proxy/winscope_proxy.py +++ b/tools/winscope/adb_proxy/winscope_proxy.py @@ -46,8 +46,8 @@ LOG_LEVEL = logging.DEBUG PORT = 5544 -# Keep in sync with WINSCOPE_PROXY_VERSION in Winscope DataAdb.vue -VERSION = '0.8' +# Keep in sync with ProxyClient#VERSION in Winscope +VERSION = '1.0' WINSCOPE_VERSION_HEADER = "Winscope-Proxy-Version" WINSCOPE_TOKEN_HEADER = "Winscope-Token" @@ -200,8 +200,7 @@ class SurfaceFlingerTraceConfig: """ def __init__(self) -> None: - # default config flags CRITICAL | INPUT | SYNC - self.flags = 1 << 0 | 1 << 1 | 1 << 6 + self.flags = 0 def add(self, config: str) -> None: self.flags |= CONFIG_FLAG[config] @@ -260,10 +259,12 @@ class WindowManagerTraceSelectedConfig: CONFIG_FLAG = { + "input": 1 << 1, "composition": 1 << 2, "metadata": 1 << 3, "hwc": 1 << 4, - "tracebuffers": 1 << 5 + "tracebuffers": 1 << 5, + "virtualdisplays": 1 << 6 } #Keep up to date with options in DataAdb.vue @@ -547,7 +548,7 @@ class FetchFilesEndpoint(DeviceRequestEndpoint): def check_root(device_id): log.debug("Checking root access on {}".format(device_id)) - return call_adb('shell su root id -u', device_id) == "0\n" + return int(call_adb('shell su root id -u', device_id)) == 0 TRACE_THREADS = {} @@ -864,4 +865,4 @@ if __name__ == '__main__': try: httpd.serve_forever() except KeyboardInterrupt: - log.info("Shutting down") + log.info("Shutting down")
\ No newline at end of file |