Move TV PiP away from keep clear areas
The PiP is placed in a way to avoid keep clear areas. If no areas overlapping the default PiP anchor position are defined, the PiP will stay at its anchor position. Otherwise, it will try to move to a free location closest to its anchor position. Unrestricted areas can cause the PiP to move across the entire screen, but restricted areas have limited influence and can only move the PiP a short distance. If no free position is found, the PiP will be stashed for some time. To find the position to move to once the PiP unstashes, a relaxed search is performed, excluding a restricted keep clear area. If this still does not yield a position to move to, only unrestricted areas will be taken into account. The PiP is stashed along the edge closest to the unstash position. Bug: 218416347 Bug: 218494300 Test: atest TvPipKeepClearAlgorithmTest Change-Id: I76c6527320fc403bb604b188f38eed505eeaab89
Loading
Please register or sign in to comment