commit | e2e01571b42bfcc3308c41f677b85dd06d7d4f7d | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Tue Aug 01 16:00:31 2023 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Mon Jul 01 15:25:08 2024 +0000 |
tree | d78b301f8e25bf21db4c85810b9edad44e9b2be1 | |
parent | 03d9c1450aa441454dfdf6abeee6ae37304aa8da [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 24D1-dev is based on 24Q2-release. Therefore, we merged this CL to 24D1-dev.