Home
last modified time | relevance | path

Searched refs:deviceStateController (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DWorkManagerExceptionHandlerTest.java70 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenUnprovisioned_shouldTerminateNoWipe() local
75 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenUnprovisioned_shouldTerminateNoWipe()
89 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionInProgress_shouldWipeNoTerminate() local
94 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionInProgress_shouldWipeNoTerminate()
108 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionPaused_shouldWipeNoTerminate() local
113 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionPaused_shouldWipeNoTerminate()
127 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionFailed_shouldWipeNoTerminate() local
132 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionFailed_shouldWipeNoTerminate()
146 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenKioskProvisioned_shouldWipeNoTerminate() local
151 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenKioskProvisioned_shouldWipeNoTerminate()
[all …]
DDeviceLockControllerServiceTest.java115 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in lockDevice_failure_shouldLogToStatsLogger() local
118 when(deviceStateController.lockDevice()).thenReturn( in lockDevice_failure_shouldLogToStatsLogger()
120 when(deviceStateController.getDeviceState()).thenReturn(Futures.immediateFuture( in lockDevice_failure_shouldLogToStatsLogger()
151 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in unlockDevice_failure_shouldLogToStatsLogger() local
154 when(deviceStateController.unlockDevice()).thenReturn( in unlockDevice_failure_shouldLogToStatsLogger()
156 when(deviceStateController.getDeviceState()).thenReturn(Futures.immediateFuture( in unlockDevice_failure_shouldLogToStatsLogger()
201 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in clearDeviceRestrictions_shouldLogKioskRequest() local
202 when(deviceStateController.clearDevice()).thenReturn(Futures.immediateVoidFuture()); in clearDeviceRestrictions_shouldLogKioskRequest()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/debug/
DDeviceLockCommandReceiver.java160 DeviceStateController deviceStateController = in onReceive() local
171 Futures.addCallback(deviceStateController.lockDevice(), in onReceive()
175 Futures.addCallback(deviceStateController.unlockDevice(), in onReceive()
179 Futures.addCallback(deviceStateController.clearDevice(), in onReceive()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DWorkManagerExceptionHandler.java316 final DeviceStateController deviceStateController = in handleException() local
320 final ListenableFuture<Boolean> isClearedFuture = deviceStateController.isCleared(); in handleException()