commit | e6aa7bace145081848c964560c78cb8c529b52ff | [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 06 00:18:46 2024 +0000 |
tree | 42cbc3d08b135f4442ead5c2dbf3a88bb24e6507 | |
parent | 26522c0e82fd3a9bcbd01409217291d97dcdabcf [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:8d814cc3b2fc94c8c47861abbcb3cec72aceb07e) Merged-In: Icb7dd17bbf7df573a9bb28f3dc56e90e78384f4f Change-Id: Icb7dd17bbf7df573a9bb28f3dc56e90e78384f4f