/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | ControllerKeepAlivePolicyHandlerTest.java | 51 private SystemDeviceLockManager mSystemDeviceLockManager; field in ControllerKeepAlivePolicyHandlerTest 56 mHandler = new ControllerKeepAlivePolicyHandler(mSystemDeviceLockManager, in setUp() 65 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisioned_withSuccess_shouldDisableControllerKeepalive() 66 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisioned_withSuccess_shouldDisableControllerKeepalive() 75 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisioned_withFailure_shouldDisableControllerKeepalive() 76 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisioned_withFailure_shouldDisableControllerKeepalive() 85 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisionPaused_withSuccess_shouldDisableControllerKeepalive() 86 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisionPaused_withSuccess_shouldDisableControllerKeepalive() 95 verify(mSystemDeviceLockManager).disableControllerKeepalive(any(Executor.class), any()); in onProvisionPaused_withFailure_shouldDisableControllerKeepalive() 96 verify(mSystemDeviceLockManager, never()).enableControllerKeepalive(any(Executor.class), in onProvisionPaused_withFailure_shouldDisableControllerKeepalive() [all …]
|
D | KioskKeepAlivePolicyHandlerTest.java | 58 private SystemDeviceLockManager mSystemDeviceLockManager; field in KioskKeepAlivePolicyHandlerTest 63 mHandler = new KioskKeepAlivePolicyHandler(mSystemDeviceLockManager, in setUp() 73 verify(mSystemDeviceLockManager).enableKioskKeepalive(eq(TEST_KIOSK_PACKAGE), in onProvisioned_enablesKioskKeepalive() 75 verify(mSystemDeviceLockManager, never()).disableKioskKeepalive(any(Executor.class), any()); in onProvisioned_enablesKioskKeepalive() 83 verify(mSystemDeviceLockManager).enableKioskKeepalive(eq(TEST_KIOSK_PACKAGE), in onProvisioned_onFailure_stillReturnsTrue() 85 verify(mSystemDeviceLockManager, never()).disableKioskKeepalive(any(Executor.class), any()); in onProvisioned_onFailure_stillReturnsTrue() 93 verify(mSystemDeviceLockManager).disableKioskKeepalive(any(Executor.class), any()); in onCleared_disablesKioskKeepalive() 94 verify(mSystemDeviceLockManager, never()).enableKioskKeepalive(eq(TEST_KIOSK_PACKAGE), in onCleared_disablesKioskKeepalive() 103 verify(mSystemDeviceLockManager).disableKioskKeepalive(any(Executor.class), any()); in onCleared_onFailure_stillReturnsTrue() 104 verify(mSystemDeviceLockManager, never()).enableKioskKeepalive(eq(TEST_KIOSK_PACKAGE), in onCleared_onFailure_stillReturnsTrue() [all …]
|
D | RolePolicyHandlerTest.java | 58 private SystemDeviceLockManager mSystemDeviceLockManager; field in RolePolicyHandlerTest 64 mHandler = new RolePolicyHandler(mSystemDeviceLockManager, in setUp() 76 verify(mSystemDeviceLockManager).addFinancedDeviceKioskRole(eq(TEST_KIOSK_PACKAGE), in onProvisioned_withSuccess_shouldCallExpectedServiceMethod() 78 verify(mSystemDeviceLockManager, never()).removeFinancedDeviceKioskRole(anyString(), in onProvisioned_withSuccess_shouldCallExpectedServiceMethod() 89 verify(mSystemDeviceLockManager).addFinancedDeviceKioskRole(eq(TEST_KIOSK_PACKAGE), in onProvisioned_withFailure_shouldCallExpectedServiceMethod() 91 verify(mSystemDeviceLockManager, never()).removeFinancedDeviceKioskRole(anyString(), in onProvisioned_withFailure_shouldCallExpectedServiceMethod() 102 verify(mSystemDeviceLockManager).removeFinancedDeviceKioskRole(eq(TEST_KIOSK_PACKAGE), in onCleared_withSuccess_shouldCallExpectedServiceMethod() 104 verify(mSystemDeviceLockManager, never()).addFinancedDeviceKioskRole(anyString(), in onCleared_withSuccess_shouldCallExpectedServiceMethod() 115 verify(mSystemDeviceLockManager).removeFinancedDeviceKioskRole(eq(TEST_KIOSK_PACKAGE), in onCleared_withFailure_shouldCallExpectedServiceMethod() 117 verify(mSystemDeviceLockManager, never()).addFinancedDeviceKioskRole(anyString(), in onCleared_withFailure_shouldCallExpectedServiceMethod() [all …]
|
D | NotificationsPolicyHandlerTest.java | 52 private SystemDeviceLockManager mSystemDeviceLockManager; field in NotificationsPolicyHandlerTest 57 mHandler = new NotificationsPolicyHandler(mSystemDeviceLockManager, in setUp() 65 verifyNoInteractions(mSystemDeviceLockManager); in onProvisioned_shouldDoNothing() 72 verifyNoInteractions(mSystemDeviceLockManager); in onProvisionPaused_shouldDoNothing() 80 verify(mSystemDeviceLockManager).setPostNotificationsSystemFixed(eq(true), in onProvisionInProgress_withSuccess_shouldTryToSetSystemFixedFlag() 89 verify(mSystemDeviceLockManager).setPostNotificationsSystemFixed(eq(true), in onProvisionInProgress_withFailure_shouldTryToSetSystemFixedFlag() 97 verifyNoInteractions(mSystemDeviceLockManager); in onProvisionFailed_shouldDoNothing() 105 verify(mSystemDeviceLockManager).setPostNotificationsSystemFixed(eq(false), in onCleared_withSuccess_shouldTryToClearSystemFixedFlag() 114 verify(mSystemDeviceLockManager).setPostNotificationsSystemFixed(eq(false), in onCleared_withFailure_shouldTryToClearSystemFixedFlag() 122 verifyNoInteractions(mSystemDeviceLockManager); in onLocked_shouldDoNothing() [all …]
|
D | FinalizationControllerImplTest.java | 59 private final TestSystemDeviceLockManager mSystemDeviceLockManager = field in FinalizationControllerImplTest 113 assertThat(mSystemDeviceLockManager.finalized).isTrue(); in finalizeNotEnrolledDevice_doesNotStartReportingWork() 134 assertThat(mSystemDeviceLockManager.finalized).isTrue(); in reportingFinishedSuccessfully_fullyFinalizes() 175 assertThat(mSystemDeviceLockManager.finalized).isFalse(); in enforceDiskState_noForce_usesCurrentState() 197 assertThat(mSystemDeviceLockManager.finalized).isTrue(); in enforceDiskState_force_usesDiskState() 202 mContext, mDispatchQueue, mBgExecutor, TestWorker.class, mSystemDeviceLockManager); in makeFinalizationController()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/ |
D | ControllerKeepAlivePolicyHandler.java | 34 private final SystemDeviceLockManager mSystemDeviceLockManager; field in ControllerKeepAlivePolicyHandler 39 mSystemDeviceLockManager = systemDeviceLockManager; in ControllerKeepAlivePolicyHandler() 46 mSystemDeviceLockManager.enableControllerKeepalive( in getEnableControllerKeepAliveFuture() 70 mSystemDeviceLockManager.disableControllerKeepalive(mBgExecutor,
|
D | AppOpsPolicyHandler.java | 35 private final SystemDeviceLockManager mSystemDeviceLockManager; field in AppOpsPolicyHandler 39 mSystemDeviceLockManager = systemDeviceLockManager; in AppOpsPolicyHandler() 49 mSystemDeviceLockManager.setDlcExemptFromActivityBgStartRestrictionState(exempt, in setDlcExemptFromActivityBgStartRestrictionState() 73 mSystemDeviceLockManager.setDlcAllowedToSendUndismissibleNotifications(allowed, 100 mSystemDeviceLockManager.setKioskAppExemptFromRestrictionsState(
|
D | KioskKeepAlivePolicyHandler.java | 38 private final SystemDeviceLockManager mSystemDeviceLockManager; field in KioskKeepAlivePolicyHandler 44 mSystemDeviceLockManager = systemDeviceLockManager; in KioskKeepAlivePolicyHandler() 52 mSystemDeviceLockManager.enableKioskKeepalive(packageName, in getEnableKioskKeepAliveFuture() 83 mSystemDeviceLockManager.disableKioskKeepalive(mBgExecutor,
|
D | RolePolicyHandler.java | 38 private final SystemDeviceLockManager mSystemDeviceLockManager; field in RolePolicyHandler 43 mSystemDeviceLockManager = systemDeviceLockManager; in RolePolicyHandler() 51 mSystemDeviceLockManager.addFinancedDeviceKioskRole(packageName, in getAddFinancedDeviceLockKioskRoleFuture() 83 mSystemDeviceLockManager.removeFinancedDeviceKioskRole(packageName,
|
D | NotificationsPolicyHandler.java | 34 private final SystemDeviceLockManager mSystemDeviceLockManager; field in NotificationsPolicyHandler 39 mSystemDeviceLockManager = systemDeviceLockManager; in NotificationsPolicyHandler() 46 mSystemDeviceLockManager.setPostNotificationsSystemFixed( in setPostNotificationsSystemFixedFuture()
|
D | FinalizationControllerImpl.java | 106 private final SystemDeviceLockManager mSystemDeviceLockManager; field in FinalizationControllerImpl 132 mSystemDeviceLockManager = systemDeviceLockManager; in FinalizationControllerImpl() 303 mSystemDeviceLockManager.setDeviceFinalized(true, mBgExecutor,
|