Home
last modified time | relevance | path

Searched refs:enforceCurrentPolicies (Results 1 – 11 of 11) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DProvisionStateControllerImplTest.java95 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in postSetNextStateForEventRequest_shouldReturnExpectedProvisionState()
108 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_shouldSetExpectedNextProvisionState()
137 verify(mMockPolicyController, times(2)).enforceCurrentPolicies(); in setNextStateForEvent_shouldSetExpectedNextProvisionState()
143 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_shouldWriteStartTimeToUserParameters_whenProvisonReady()
155 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_shouldLogSuccessfulProvisioning_whenProvisionSuccess()
167 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_withException_shouldRetainProvisionState()
183 verify(mMockPolicyController, never()).enforceCurrentPolicies(); in setNextStateForEvent_withException_shouldRetainProvisionState()
189 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_withException_shouldHandlePolicyEnforcementFailure()
199 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in setNextStateForEvent_withException_shouldHandlePolicyEnforcementFailure()
216 when(mMockPolicyController.enforceCurrentPolicies()).thenReturn( in notifyProvisioningReady_whenSetupIsNotComplete_shouldNotGoToProvisionInProgress()
[all …]
DDeviceStateControllerImplTest.java129 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in lockDevice_withKioskProvisionedState_shouldLockDevice()
159 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in lockDevice_withProvisionSucceededState_shouldLockDevice()
173 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in unlockDevice_withKioskProvisionedState_shouldUnlockDevice()
261 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in unlockDevice_withProvisionSucceeded_shouldUnlockDevice()
335 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in clearDevice_withKioskProvisionedState_shouldClearDevice()
364 when(mMockDevicePolicyController.enforceCurrentPolicies()).thenReturn( in clearDevice_withProvisionSucceeded_shouldUnlockDevice()
DDevicePolicyControllerImplTest.java183 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withUnprovisionedState_doesNotStartLockTaskMode()
200 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withProvisionInProgressState_startsLockTaskMode()
218 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withKioskProvisionedState_startsLockTaskMode()
233 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withProvisionPausedState_doesNotStartLockTaskMode()
249 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withProvisionPausedAndDeviceLocked_doesNotStartLockTaskMode()
264 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withProvisionFailedState_doesNotStartLockTaskMode()
279 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withProvisionSucceededState_doesNotStartLockTaskMode()
295 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withLockedDeviceState_startsLockTaskMode()
311 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withUnlockedDeviceState_doesNotStartLockTaskMode()
332 mDevicePolicyController.enforceCurrentPolicies().get(); in enforceCurrentPolicies_withClearedDeviceState_doesNotStartLockTaskMode()
[all …]
DProvisionStateControllerThreadSafetyTest.java66 when(policyController.enforceCurrentPolicies()).thenReturn(Futures.immediateVoidFuture()); in setUp()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DDevicePolicyController.java49 ListenableFuture<Void> enforceCurrentPolicies(); in enforceCurrentPolicies() method
DProvisionStateControllerImpl.java153 newState -> Futures.catchingAsync(mPolicyController.enforceCurrentPolicies(), in setNextStateForEvent()
276 return mPolicyController.enforceCurrentPolicies();
DDeviceStateControllerImpl.java108 state -> mPolicyController.enforceCurrentPolicies(), in setDeviceState()
DDevicePolicyControllerImpl.java176 public ListenableFuture<Void> enforceCurrentPolicies() { in enforceCurrentPolicies() method in DevicePolicyControllerImpl
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DDeviceLockControllerServiceTest.java221 when(policyController.enforceCurrentPolicies()).thenReturn(Futures.immediateVoidFuture()); in onUserSwitching_enforcePoliciesAndFinalizationState()
230 verify(policyController).enforceCurrentPolicies(); in onUserSwitching_enforcePoliciesAndFinalizationState()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DDeviceLockControllerService.java119 Futures.transformAsync(mPolicyController.enforceCurrentPolicies(),
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/debug/
DDeviceLockCommandReceiver.java385 policyController.enforceCurrentPolicies(), in forceReset()