diff options
author | Jeff Brown <jeffbrown@google.com> | 2014-04-10 20:07:46 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2014-04-10 20:08:14 -0700 |
commit | 0123a4631bc74080986f895de5eb8b2c017d2569 (patch) | |
tree | e20262bb349a4c994f074a8f495e429c4e1484d1 | |
parent | 6cdf7a05a7a1437aea3c670a38b7112c5c158f2a (diff) | |
download | testing-0123a4631bc74080986f895de5eb8b2c017d2569.tar.gz |
Change isScreenOn() to isInteractive().
Bug: 13133142
Change-Id: I01f10d4a1a946de4400157c34719ac361f61f6a1
-rw-r--r-- | uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java b/uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java index 1afa513..c551482 100644 --- a/uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java +++ b/uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java @@ -112,7 +112,7 @@ public class ShellUiAutomatorBridge extends UiAutomatorBridge { IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE)); boolean ret = false; try { - ret = pm.isScreenOn(); + ret = pm.isInteractive(); } catch (RemoteException e) { Log.e(LOG_TAG, "Error getting screen status", e); throw new RuntimeException(e); |