Track reason for screen turning on.
Change-Id: I1ab64b6d29d7e2c6f9006587d41a318289f13227
This commit is contained in:
@@ -437,7 +437,7 @@ public class MonkeySourceNetwork implements MonkeyEventSource {
|
|||||||
IPowerManager pm =
|
IPowerManager pm =
|
||||||
IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));
|
IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));
|
||||||
try {
|
try {
|
||||||
pm.wakeUp(SystemClock.uptimeMillis());
|
pm.wakeUp(SystemClock.uptimeMillis(), "Monkey", null);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Got remote exception", e);
|
Log.e(TAG, "Got remote exception", e);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user