Use new PowerManager API.

Change-Id: I2901fd02cd5b2307e3a4d2f35b03ef7060712908
This commit is contained in:
Jeff Brown
2012-07-27 18:08:47 -07:00
parent c22d5210c5
commit 9bb23fd7f9

View File

@@ -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.userActivityWithForce(SystemClock.uptimeMillis(), true, true); pm.wakeUp(SystemClock.uptimeMillis());
} catch (RemoteException e) { } catch (RemoteException e) {
Log.e(TAG, "Got remote exception", e); Log.e(TAG, "Got remote exception", e);
return false; return false;