Searched refs:deviceStateController (Results 1 – 4 of 4) sorted by relevance
70 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenUnprovisioned_shouldTerminateNoWipe() local75 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenUnprovisioned_shouldTerminateNoWipe()89 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionInProgress_shouldWipeNoTerminate() local94 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionInProgress_shouldWipeNoTerminate()108 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionPaused_shouldWipeNoTerminate() local113 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionPaused_shouldWipeNoTerminate()127 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenProvisionFailed_shouldWipeNoTerminate() local132 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenProvisionFailed_shouldWipeNoTerminate()146 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in handleException_whenKioskProvisioned_shouldWipeNoTerminate() local151 when(deviceStateController.isCleared()).thenReturn(Futures.immediateFuture(false)); in handleException_whenKioskProvisioned_shouldWipeNoTerminate()[all …]
115 DeviceStateController deviceStateController = mTestApp.getDeviceStateController(); in lockDevice_failure_shouldLogToStatsLogger() local118 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() local154 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() local202 when(deviceStateController.clearDevice()).thenReturn(Futures.immediateVoidFuture()); in clearDeviceRestrictions_shouldLogKioskRequest()
160 DeviceStateController deviceStateController = in onReceive() local171 Futures.addCallback(deviceStateController.lockDevice(), in onReceive()175 Futures.addCallback(deviceStateController.unlockDevice(), in onReceive()179 Futures.addCallback(deviceStateController.clearDevice(), in onReceive()
316 final DeviceStateController deviceStateController = in handleException() local320 final ListenableFuture<Boolean> isClearedFuture = deviceStateController.isCleared(); in handleException()