OSDN Git Service

Add API to launch activities on secondary displays
authorAndrii Kulian <akulian@google.com>
Wed, 2 Nov 2016 19:21:33 +0000 (12:21 -0700)
committerAndrii Kulian <akulian@google.com>
Tue, 15 Nov 2016 17:18:32 +0000 (17:18 +0000)
commit16802aab212b3b070d361f092d78e850b69b18af
tree9b0216a57d200f45bf61bfc139de9d1675fafc4b
parent14fee43664bf03d8e50ce864657d0d4d66af7ade
Add API to launch activities on secondary displays

displayId can be specified as a part of ActivityOptions.
We will look for a valid stack on the specified display, starting
from the topmost one. If no valid stack is found, new dynamic stack
can be created on external display.
Launch stack and display id can't be set at the same time, otherwise
exception will be thrown.

Test: ActivityManagerDisplayTests
Test: #testLaunchActivityOnSecondaryDisplay
Test: #testConsequentLaunchActivity
Test: #testConsequentLaunchActivityFromSecondaryDisplay
Test: #testLaunchActivityFromAppToSecondaryDisplay
Change-Id: I8a202bc076319e23948d81b99a2c68d7b733b5e4
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/app/ActivityOptions.java
services/core/java/com/android/server/am/ActivityManagerShellCommand.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/am/ActivityStarter.java