summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2010-02-12 12:12:06 -0800
committerWink Saville <wink@google.com>2010-02-12 12:12:06 -0800
commitf010b5d26f1e1c93b93576995e76ffd63db2f96e (patch)
tree20eea24725e29424b211a6a9b61b0159d177b4fc
parent1fb2a6cd4c27847f8de8369b497f37d3d47c622f (diff)
downloadbase-eclair.tar.gz
When in UTS test mode this reverts the behavior of the end key as it was in cupcake. When not in UTS test mode the behavior is as before the change. The UTS test mode is enabled when presist.sys.uts-test-mode is 1. Bug: 2402366 Change-Id: I81359f3870a1e4da513f76c32aecdb7dfdf3bacf
-rwxr-xr-xphone/com/android/internal/policy/impl/PhoneWindowManager.java25
1 files changed, 15 insertions, 10 deletions
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
index 7be15e2..7970987 100755
--- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -2162,16 +2162,21 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// This code brings home to the front or, if it is already
// at the front, puts the device to sleep.
try {
- ActivityManagerNative.getDefault().stopAppSwitches();
- sendCloseSystemWindows();
- Intent dock = createHomeDockIntent();
- if (dock != null) {
- int result = ActivityManagerNative.getDefault()
- .startActivity(null, dock,
- dock.resolveTypeIfNeeded(mContext.getContentResolver()),
- null, 0, null, null, 0, true /* onlyIfNeeded*/, false);
- if (result == IActivityManager.START_RETURN_INTENT_TO_CALLER) {
- return false;
+ if (SystemProperties.getInt("persist.sys.uts-test-mode", 0) == 1) {
+ /// Roll back EndcallBehavior as the cupcake design to pass P1 lab entry.
+ Log.d(TAG, "UTS-TEST-MODE");
+ } else {
+ ActivityManagerNative.getDefault().stopAppSwitches();
+ sendCloseSystemWindows();
+ Intent dock = createHomeDockIntent();
+ if (dock != null) {
+ int result = ActivityManagerNative.getDefault()
+ .startActivity(null, dock,
+ dock.resolveTypeIfNeeded(mContext.getContentResolver()),
+ null, 0, null, null, 0, true /* onlyIfNeeded*/, false);
+ if (result == IActivityManager.START_RETURN_INTENT_TO_CALLER) {
+ return false;
+ }
}
}
int result = ActivityManagerNative.getDefault()