Searched refs:runWithControlDeviceStatePermission (Results 1 – 7 of 7) sorted by relevance
19 import static android.server.wm.DeviceStateUtils.runWithControlDeviceStatePermission;54 runWithControlDeviceStatePermission(() -> in submitRequest()58 runWithControlDeviceStatePermission(() -> in submitRequest()70 runWithControlDeviceStatePermission(mDeviceStateManager::cancelBaseStateOverride); in close()72 runWithControlDeviceStatePermission(mDeviceStateManager::cancelStateRequest); in close()
24 import static android.server.wm.DeviceStateUtils.runWithControlDeviceStatePermission;140 runWithControlDeviceStatePermission(() -> manager.requestState(request, null, null)); in testRequestStateTooLarge()154 runWithControlDeviceStatePermission(() -> manager.requestState(request, null, null)); in testRequestStateTooSmall()252 runWithControlDeviceStatePermission(() -> activity.requestDeviceStateChange(nextState)); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()355 runWithControlDeviceStatePermission(() -> activity.requestDeviceStateChange(nextState)); in testCancelStateRequestFromNewActivity()
155 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()183 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testRearDisplayStatusListeners()224 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testStartAndEndRearDisplaySession()241 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testStartAndEndRearDisplaySession()299 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testGetRearDisplayMetrics()314 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testGetRearDisplayMetrics()343 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testGetRearDisplayMetrics_afterRotation()
175 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()177 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()206 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testRearDisplayPresentationStatusListeners()
124 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()126 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()
40 public static void runWithControlDeviceStatePermission(@NonNull ThrowingRunnable runnable) in runWithControlDeviceStatePermission() method in DeviceStateUtils
259 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged()273 DeviceStateUtils.runWithControlDeviceStatePermission( in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged()