commit | 24ae7acde8a11e40b7ba3ab0aa89385412fc489b | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Tue Aug 01 16:00:31 2023 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 13 05:19:39 2024 +0000 |
tree | 56f4e07c99cdbab1fe8509bab501aa4780e641d7 | |
parent | ada03edc155a5147c76b3af6054d22c0f81dcd8b [diff] |
Rate limiting PiP aspect ratio change request Using CountQuotaTrack to limit how frequent an app can request aspect ratio change via PictureInPictureParams, which could result flood of PiP resizing requests and freeze the PiP window. Note that CountQuotaTrack is initialized out of the WM lock to avoid dead lock with the AM one. Bug: 283103220 Test: Manually, using the POC app Test: Manually, switching YT PiP video functions at a regular rate Test: atest WindowOrganizerTests ActivityThreadTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:17b00deed56a6bbd3b78fbac76c2f1089f615002) Merged-In: Icb7dd17bbf7df573a9bb28f3dc56e90e78384f4f Change-Id: Icb7dd17bbf7df573a9bb28f3dc56e90e78384f4f