summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Ats Jenk <atsjenk@google.com> 2025-03-06 16:32:20 -0800
committer Ats Jenk <atsjenk@google.com> 2025-03-11 13:54:52 -0700
commitb1c16c50da8b45dc50ffcea86a0407655581146c (patch)
tree9904d380617aef152e46977a9a4ab60f332ee5ef /libs/androidfw/AssetsProvider.cpp
parente65271a8db9317943bac6b00c48cd420b7ece282 (diff)
Create task drag zones for foldables
Foldables or small tablets do not have desktop available. If the screen where drag is taking place is a small tablet, use a different set of drag zones compared to large tablets. Initialize the list of regions for small tablets when creating the indicator. This ensures that we don't need to recalculate regions on each drag event. Put calculated regions (rect area to indicator type) to a sorted list. Once a motion event is received match the coordinates to the list of regions. The first rect that contains this event will determine the indicator type. Bug: 397697080 Test: atest DesktopModeVisualIndicatorTest Test: manual, on fold drag a fullscreen task to split or bubble Test: manual, on desktop, drag a fullscreen task to desktop or split or bubble, drag a desktop task to fullscreen Flag: com.android.wm.shell.enable_bubble_to_fullscreen Change-Id: I30d69530f196abb375d250df5e72b18b1e9e7dd4
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions