OSDN Git Service

Replace waitingVisible and other refactors
authorCraig Mautner <cmautner@google.com>
Fri, 16 Jan 2015 01:32:07 +0000 (17:32 -0800)
committerCraig Mautner <cmautner@google.com>
Fri, 16 Jan 2015 01:39:28 +0000 (17:39 -0800)
commit8c14c15aad749d285b6f395019467a12da7fc9c6
treef53ddf218435b5202198a3493b7428615cf8413e
parent428ecf296694fa8c7214e068d36d47d1c74e5110
Replace waitingVisible and other refactors

- ActivityRecord.waitingVisible is identical to
ActivityStackSupervisor.mWaitingVisibleActivities.contains(). This
ArrayList is never very large so much code can be simplified by
eliminating the waitingVisible member.

- The processStoppingActivityLocked() method can eliminate a lot of
variables by traversing the list top down. This makes the code
simpler to analyze and maintain.

- Declarations of ArrayLists do not need parameterization in the new
constructor. These have been removed in ActivityStackSupervisor.

Fixes item #5 of bug 18088522.

Change-Id: Ib9d648c5fa32c8dd7313882864886c929e1ebc21
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