commit | 22269d3aed530a3a2c2a81da5bd59933fe1a9cfe | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Thu Aug 13 16:14:19 2020 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Aug 14 13:49:10 2020 +0000 |
tree | cc8da630ef1835e6cdfb71231dedd67b2991212e | |
parent | 6c1cf6ccd8b91500ddac0d25d85f85767ca4d4a1 [diff] |
Simplify unit test of activity launch ability on trusted display It is better not to mix real world things (virtual display) with mocked objects. And it is not needed to create a display and activity record, just focus on Display#isTrusted and the method isCallerAllowedToLaunchOnDisplay. Bug: 159102753 Test: ActivityStackSupervisorTests#testDisplayCanLaunchActivities Change-Id: I54dff649aae4fe894de024637559a74f63b6da25