am 9bb23fd7: Use new PowerManager API.
* commit '9bb23fd7f9081c28b39dd21f7023676b5c940058': Use new PowerManager API.
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.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;
|
||||||
|
|||||||
Reference in New Issue
Block a user