Home
last modified time | relevance | path

Searched refs:runWithControlDeviceStatePermission (Results 1 – 7 of 7) sorted by relevance

/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateRequestSession.java19 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()
DDeviceStateManagerTests.java24 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()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayTest.java155 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()
DExtensionRearDisplayPresentationTest.java175 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()
177 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()
206 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testRearDisplayPresentationStatusListeners()
DExtensionRearDisplayPresentationKeyguardTest.java124 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()
126 DeviceStateUtils.runWithControlDeviceStatePermission( in tearDown()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDeviceStateUtils.java40 public static void runWithControlDeviceStatePermission(@NonNull ThrowingRunnable runnable) in runWithControlDeviceStatePermission() method in DeviceStateUtils
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DExtensionWindowLayoutComponentTest.java259 DeviceStateUtils.runWithControlDeviceStatePermission(() -> in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged()
273 DeviceStateUtils.runWithControlDeviceStatePermission( in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged()