summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-08-27 20:00:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-27 20:00:29 -0700
commit44af754cf0c9ad9a8162e1bd2af60737e81a8beb (patch)
treedc82615fca74b557d74e5af807e43fc7c126a928 /services
parent8328578152fbfd23952a6cda4b2e60853d78eb74 (diff)
parentd02bdaab495641ab50e2123fdfd99a819cc40540 (diff)
downloadframeworks_base-44af754cf0c9ad9a8162e1bd2af60737e81a8beb.zip
frameworks_base-44af754cf0c9ad9a8162e1bd2af60737e81a8beb.tar.gz
frameworks_base-44af754cf0c9ad9a8162e1bd2af60737e81a8beb.tar.bz2
am d02bdaab: Remove experimental immersive mode support. DO NOT MERGE
Merge commit 'd02bdaab495641ab50e2123fdfd99a819cc40540' into gingerbread-plus-aosp * commit 'd02bdaab495641ab50e2123fdfd99a819cc40540': Remove experimental immersive mode support. DO NOT MERGE
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/ActivityManagerService.java29
-rw-r--r--services/java/com/android/server/am/ActivityRecord.java5
2 files changed, 0 insertions, 34 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index f5df615..7c1a9b0 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -5690,35 +5690,6 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
}
}
- public void setImmersive(IBinder token, boolean immersive) {
- synchronized(this) {
- int index = (token != null) ? mMainStack.indexOfTokenLocked(token) : -1;
- if (index < 0) {
- throw new IllegalArgumentException();
- }
- ActivityRecord r = (ActivityRecord)mMainStack.mHistory.get(index);
- r.immersive = immersive;
- }
- }
-
- public boolean isImmersive(IBinder token) {
- synchronized (this) {
- int index = (token != null) ? mMainStack.indexOfTokenLocked(token) : -1;
- if (index < 0) {
- throw new IllegalArgumentException();
- }
- ActivityRecord r = (ActivityRecord)mMainStack.mHistory.get(index);
- return r.immersive;
- }
- }
-
- public boolean isTopActivityImmersive() {
- synchronized (this) {
- ActivityRecord r = mMainStack.topRunningActivityLocked(null);
- return (r != null) ? r.immersive : false;
- }
- }
-
public final void enterSafeMode() {
synchronized(this) {
// It only makes sense to do this before the system is ready
diff --git a/services/java/com/android/server/am/ActivityRecord.java b/services/java/com/android/server/am/ActivityRecord.java
index 62be918..1687db1 100644
--- a/services/java/com/android/server/am/ActivityRecord.java
+++ b/services/java/com/android/server/am/ActivityRecord.java
@@ -103,7 +103,6 @@ class ActivityRecord extends IApplicationToken.Stub {
boolean idle; // has the activity gone idle?
boolean hasBeenLaunched;// has this activity ever been launched?
boolean frozenBeforeDestroy;// has been frozen but not yet destroyed.
- boolean immersive; // immersive mode (don't interrupt if possible)
String stringName; // for caching of toString().
@@ -160,7 +159,6 @@ class ActivityRecord extends IApplicationToken.Stub {
pw.print(prefix); pw.print("keysPaused="); pw.print(keysPaused);
pw.print(" inHistory="); pw.print(inHistory);
pw.print(" persistent="); pw.print(persistent);
- pw.print(" immersive="); pw.print(immersive);
pw.print(" launchMode="); pw.println(launchMode);
pw.print(prefix); pw.print("fullscreen="); pw.print(fullscreen);
pw.print(" visible="); pw.print(visible);
@@ -287,8 +285,6 @@ class ActivityRecord extends IApplicationToken.Stub {
} else {
isHomeActivity = false;
}
-
- immersive = (aInfo.flags & ActivityInfo.FLAG_IMMERSIVE) != 0;
} else {
realActivity = null;
taskAffinity = null;
@@ -300,7 +296,6 @@ class ActivityRecord extends IApplicationToken.Stub {
packageName = null;
fullscreen = true;
isHomeActivity = false;
- immersive = false;
}
}