Home
last modified time | relevance | path

Searched refs:mDeviceStateController (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DDeviceStateControllerImplTest.java57 private DeviceStateController mDeviceStateController; field in DeviceStateControllerImplTest
61 mDeviceStateController = new DeviceStateControllerImpl(mMockDevicePolicyController, in setUp()
70 mDeviceStateController.lockDevice().get(); in lockDevice_withUnprovisionedState_shouldPseudoLockDevice()
72 assertThat(mDeviceStateController.isLocked().get()).isTrue(); in lockDevice_withUnprovisionedState_shouldPseudoLockDevice()
86 () -> mDeviceStateController.lockDevice().get()); in lockDevice_withProvisionInProgressState_shouldThrowException()
101 () -> mDeviceStateController.lockDevice().get()); in lockDevice_withProvisionPausedState_shouldThrowException()
116 () -> mDeviceStateController.lockDevice().get()); in lockDevice_withProvisionFailedState_shouldThrowException()
134 mDeviceStateController.lockDevice().get(); in lockDevice_withKioskProvisionedState_shouldLockDevice()
148 () -> mDeviceStateController.lockDevice().get()); in lockDevice_withClearDeviceState_shouldThrowException()
151 assertThat(mDeviceStateController.isLocked().get()).isFalse(); in lockDevice_withClearDeviceState_shouldThrowException()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DDeviceLockControllerService.java55 private DeviceStateController mDeviceStateController; field in DeviceLockControllerService
66 ListenableFuture<Void> lockDeviceFuture = mDeviceStateController.lockDevice();
79 mDeviceStateController.unlockDevice();
91 Futures.addCallback(mDeviceStateController.isLocked(),
109 Futures.transformAsync(mDeviceStateController.clearDevice(),
239 Futures.addCallback(mDeviceStateController.getDeviceState(),
284 mDeviceStateController = policyObjects.getDeviceStateController();
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DProvisionStateControllerImpl.java73 private final DeviceStateController mDeviceStateController; field in ProvisionStateControllerImpl
89 mDeviceStateController = new DeviceStateControllerImpl(mPolicyController, this, in ProvisionStateControllerImpl()
98 mDeviceStateController = stateController; in ProvisionStateControllerImpl()
257 return mDeviceStateController;