diff options
author | Wink Saville <wink@google.com> | 2010-02-12 15:57:25 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-02-12 15:57:25 -0800 |
commit | 72c94b9f386909ebc9b3a7b3af8c64331ce7e10a (patch) | |
tree | e5ef74bb36aba99920c62eace2a5c588dd747d72 /policy | |
parent | 9bc50b04a1ed1040c9085903db630fcf9594384b (diff) | |
parent | d2e6a33cb1b6213bde5a1d62c7c415e954317ef9 (diff) | |
download | frameworks_base-72c94b9f386909ebc9b3a7b3af8c64331ce7e10a.zip frameworks_base-72c94b9f386909ebc9b3a7b3af8c64331ce7e10a.tar.gz frameworks_base-72c94b9f386909ebc9b3a7b3af8c64331ce7e10a.tar.bz2 |
am f010b5d2: Change EndCallBehavior while in UTS test mode.
Merge commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e' into eclair-plus-aosp
* commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e':
Change EndCallBehavior while in UTS test mode.
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/com/android/internal/policy/impl/PhoneWindowManager.java | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/policy/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/com/android/internal/policy/impl/PhoneWindowManager.java index 30f0d2d..21736d5 100755 --- a/policy/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/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() |