OSDN Git Service

Removed references to ActivityRecord and TaskRecord in AM (24/n)
authorWale Ogunwale <ogunwale@google.com>
Tue, 16 Oct 2018 22:13:37 +0000 (15:13 -0700)
committerWale Ogunwale <ogunwale@google.com>
Wed, 17 Oct 2018 16:47:10 +0000 (09:47 -0700)
commit64258367f4afaeb37ec60f54406023fd19f27b04
tree316a90194d53c99c0295fc07fd5e4e298600aa84
parent51cc98adbe85abba702efb121fd0366263bc7d7a
Removed references to ActivityRecord and TaskRecord in AM (24/n)

Once ActivityRecord and TaskRecord are moved to the WM package they
can no longer be accessed by classes in the AM package. This CL fixes
up some of the access before the move.
- Moved activity relaunch reasons to ActivityTaskManagerService and made
them public to allow access from the AM side in the future.
- Use task id to reference task in AppErrorDialog and AppErrors vs. the
TaskRecord object.
- Also, removed out-of-date code that tries to re-start a task if it
can't start in through recents. The reent start also looks for the task
in the stacks now so if the task exists it will be started through that
channel and we no longer need this fallback.

Test: Existing test pass
Bug: 80414790
Change-Id: I8df76a4f107fa526d726d7522eb5fcee6958b45d
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/am/ActivityTaskManagerService.java
services/core/java/com/android/server/am/AppErrorDialog.java
services/core/java/com/android/server/am/AppErrors.java
services/core/java/com/android/server/am/WindowProcessController.java
services/core/java/com/android/server/wm/ActivityTaskManagerInternal.java