summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/am/ActivityManagerService.java
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-04-17 22:35:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-17 22:35:02 +0000
commit61cc1b632ad250c359499173f37b9f013f0f9415 (patch)
tree08e6a9fa971235ea62c8d6fe027709b5dd36a060 /services/java/com/android/server/am/ActivityManagerService.java
parentd5e1495723778b6765b42b1828fe32b5ec99750c (diff)
parent29219d963d1ec29ddea3e5814eb82c2aeaccc1ac (diff)
downloadframeworks_base-61cc1b632ad250c359499173f37b9f013f0f9415.zip
frameworks_base-61cc1b632ad250c359499173f37b9f013f0f9415.tar.gz
frameworks_base-61cc1b632ad250c359499173f37b9f013f0f9415.tar.bz2
Merge "Steady improvement to multi stack."
Diffstat (limited to 'services/java/com/android/server/am/ActivityManagerService.java')
-rw-r--r--services/java/com/android/server/am/ActivityManagerService.java22
1 files changed, 14 insertions, 8 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index a3bb823..4f0000e 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -1925,6 +1925,7 @@ public final class ActivityManagerService extends ActivityManagerNative
final void setFocusedActivityLocked(ActivityRecord r) {
if (mFocusedActivity != r) {
mFocusedActivity = r;
+ mStackSupervisor.setFocusedStack(r);
if (r != null) {
mWindowManager.setFocusedApp(r.appToken, true);
}
@@ -2955,10 +2956,10 @@ public final class ActivityManagerService extends ActivityManagerNative
Slog.w(TAG, msg);
throw new SecurityException(msg);
}
-
+
synchronized(this) {
ProcessRecord proc = null;
-
+
// Figure out which process to kill. We don't trust that initialPid
// still has any relation to current pids, so must scan through the
// list.
@@ -2979,14 +2980,14 @@ public final class ActivityManagerService extends ActivityManagerNative
}
}
}
-
+
if (proc == null) {
Slog.w(TAG, "crashApplication: nothing for uid=" + uid
+ " initialPid=" + initialPid
+ " packageName=" + packageName);
return;
}
-
+
if (proc.thread != null) {
if (proc.pid == Process.myPid()) {
Log.w(TAG, "crashApplication: trying to crash self!");
@@ -3001,7 +3002,7 @@ public final class ActivityManagerService extends ActivityManagerNative
}
}
}
-
+
@Override
public final void finishSubActivity(IBinder token, String resultWho,
int requestCode) {
@@ -3050,17 +3051,17 @@ public final class ActivityManagerService extends ActivityManagerNative
}
final long origId = Binder.clearCallingIdentity();
-
+
if (self.state == ActivityState.RESUMED
|| self.state == ActivityState.PAUSING) {
mWindowManager.overridePendingAppTransition(packageName,
enterAnim, exitAnim, null);
}
-
+
Binder.restoreCallingIdentity(origId);
}
}
-
+
/**
* Main function for removing an existing process from the activity manager
* as a result of that process going away. Clears out all connections
@@ -4815,6 +4816,7 @@ public final class ActivityManagerService extends ActivityManagerNative
return rec;
}
+ @Override
public void cancelIntentSender(IIntentSender sender) {
if (!(sender instanceof PendingIntentRecord)) {
return;
@@ -4848,6 +4850,7 @@ public final class ActivityManagerService extends ActivityManagerNative
}
}
+ @Override
public String getPackageForIntentSender(IIntentSender pendingResult) {
if (!(pendingResult instanceof PendingIntentRecord)) {
return null;
@@ -4860,6 +4863,7 @@ public final class ActivityManagerService extends ActivityManagerNative
return null;
}
+ @Override
public int getUidForIntentSender(IIntentSender sender) {
if (sender instanceof PendingIntentRecord) {
try {
@@ -4871,6 +4875,7 @@ public final class ActivityManagerService extends ActivityManagerNative
return -1;
}
+ @Override
public boolean isIntentSenderTargetedToPackage(IIntentSender pendingResult) {
if (!(pendingResult instanceof PendingIntentRecord)) {
return false;
@@ -4892,6 +4897,7 @@ public final class ActivityManagerService extends ActivityManagerNative
return false;
}
+ @Override
public boolean isIntentSenderAnActivity(IIntentSender pendingResult) {
if (!(pendingResult instanceof PendingIntentRecord)) {
return false;