Searched refs:enforceCurrentPolicies (Results 1 – 11 of 11) sorted by relevance
95 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 …]
129 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()
183 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 …]
66 when(policyController.enforceCurrentPolicies()).thenReturn(Futures.immediateVoidFuture()); in setUp()
49 ListenableFuture<Void> enforceCurrentPolicies(); in enforceCurrentPolicies() method
153 newState -> Futures.catchingAsync(mPolicyController.enforceCurrentPolicies(), in setNextStateForEvent()276 return mPolicyController.enforceCurrentPolicies();
108 state -> mPolicyController.enforceCurrentPolicies(), in setDeviceState()
176 public ListenableFuture<Void> enforceCurrentPolicies() { in enforceCurrentPolicies() method in DevicePolicyControllerImpl
221 when(policyController.enforceCurrentPolicies()).thenReturn(Futures.immediateVoidFuture()); in onUserSwitching_enforcePoliciesAndFinalizationState()230 verify(policyController).enforceCurrentPolicies(); in onUserSwitching_enforcePoliciesAndFinalizationState()
119 Futures.transformAsync(mPolicyController.enforceCurrentPolicies(),
385 policyController.enforceCurrentPolicies(), in forceReset()