diff options
author | Riddle Hsu <riddlehsu@google.com> | 2018-09-11 21:20:02 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2018-09-18 12:51:52 +0800 |
commit | b70b36d8806b5970be254720db03d37a6d962f11 (patch) | |
tree | 201b47482ba5ea178524071d58ec4ee2acd386a1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3bbff814edf69e5c80ee10a24048a39bfec12385 (diff) |
Check preferred display for matching existing activity
Fix two conditions:
- If the reused activity is in the top focused stack, it is unable
to reparent to preferred display because top task is the same as
reused task.
- If the reused activity is in preferred display, it is unnecessary
to get launch stack that may produce a dangling stack.
Also make TestActivityDisplay support real multiple display.
Originally it gets display from DisplayManager which restricts
to use default display only.
Bug: b/115277654
Test: atest FrameworksServicesTests:ActivityStarterTests# \
testDeliverIntentToTopActivityOfNonTopDisplay
Test: atest FrameworksServicesTests:ActivityStarterTests# \
testReparentTopFocusedActivityToSecondaryDisplay
Change-Id: Id24c235a8a4ffab2917d46fc287413f9bf28c58d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions