summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-04-10 20:07:46 -0700
committerJeff Brown <jeffbrown@google.com>2014-04-10 20:08:14 -0700
commit0123a4631bc74080986f895de5eb8b2c017d2569 (patch)
treee20262bb349a4c994f074a8f495e429c4e1484d1
parent6cdf7a05a7a1437aea3c670a38b7112c5c158f2a (diff)
downloadtesting-0123a4631bc74080986f895de5eb8b2c017d2569.tar.gz
Change isScreenOn() to isInteractive().
Bug: 13133142 Change-Id: I01f10d4a1a946de4400157c34719ac361f61f6a1
-rw-r--r--uiautomator/library/testrunner-src/com/android/uiautomator/core/ShellUiAutomatorBridge.java2
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);