summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Robert Horvath <robhor@google.com> 2022-02-08 16:03:55 +0100
committer Robert Horvath <robhor@google.com> 2022-03-08 18:23:16 +0100
commitc4f571a27edfe0ba7c02c9350b33d3eccd922670 (patch)
tree3141852c79be83a415609b48c138c310608e4ef7 /libs/androidfw/StringPool.cpp
parent22c3bb0c72819a9ef2aaef41860b0db99bda24f2 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions