diff options
author | 2024-12-09 15:43:35 +0900 | |
---|---|---|
committer | 2024-12-16 14:51:13 +0900 | |
commit | b86965b21a0ec037f9733d082cd254c9c845b649 (patch) | |
tree | f0377622d1097b965310fc4e6a359e49edaca359 /api/api_test.go | |
parent | c05c4e0ec183843b430e776def1b1e94b6fd8b73 (diff) |
Adjust bounds of a task moving to another display
This CL applies a set of adjustments to the bounds of a freeform task
moving to another freeform display.
- Update bounds in pixels so that it retains bounds in DP, considering
the density difference between displays.
- Adjust a task's position so that it retains the ratio of the left and
right margins of the task.
- If the task bounds do not fit within the destination display, use the
default launch bounds instead.
Bug: 375079111
Test: DesktopTasksControllerTest
Flag: com.android.window.flags.enable_move_to_next_display_shortcut
Change-Id: I0930b4ea768946d32e5c07c222eb44fe178aa5d8
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions