Searched refs:requestDeviceStateChange (Results 1 – 2 of 2) sorted by relevance
46 public void requestDeviceStateChange(int state) { in requestDeviceStateChange() method in DeviceStateTestActivity
201 activity.requestDeviceStateChange(nextState); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()252 runWithControlDeviceStatePermission(() -> activity.requestDeviceStateChange(nextState)); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()309 activity.requestDeviceStateChange(nextState); in testRequestStateFailsAsBackgroundApp()355 runWithControlDeviceStatePermission(() -> activity.requestDeviceStateChange(nextState)); in testCancelStateRequestFromNewActivity()