Home
last modified time | relevance | path

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

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DControllerKeepAlivePolicyHandlerTest.java51 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 …]
DKioskKeepAlivePolicyHandlerTest.java58 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 …]
DRolePolicyHandlerTest.java58 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 …]
DNotificationsPolicyHandlerTest.java52 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 …]
DFinalizationControllerImplTest.java59 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/
DControllerKeepAlivePolicyHandler.java34 private final SystemDeviceLockManager mSystemDeviceLockManager; field in ControllerKeepAlivePolicyHandler
39 mSystemDeviceLockManager = systemDeviceLockManager; in ControllerKeepAlivePolicyHandler()
46 mSystemDeviceLockManager.enableControllerKeepalive( in getEnableControllerKeepAliveFuture()
70 mSystemDeviceLockManager.disableControllerKeepalive(mBgExecutor,
DAppOpsPolicyHandler.java35 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(
DKioskKeepAlivePolicyHandler.java38 private final SystemDeviceLockManager mSystemDeviceLockManager; field in KioskKeepAlivePolicyHandler
44 mSystemDeviceLockManager = systemDeviceLockManager; in KioskKeepAlivePolicyHandler()
52 mSystemDeviceLockManager.enableKioskKeepalive(packageName, in getEnableKioskKeepAliveFuture()
83 mSystemDeviceLockManager.disableKioskKeepalive(mBgExecutor,
DRolePolicyHandler.java38 private final SystemDeviceLockManager mSystemDeviceLockManager; field in RolePolicyHandler
43 mSystemDeviceLockManager = systemDeviceLockManager; in RolePolicyHandler()
51 mSystemDeviceLockManager.addFinancedDeviceKioskRole(packageName, in getAddFinancedDeviceLockKioskRoleFuture()
83 mSystemDeviceLockManager.removeFinancedDeviceKioskRole(packageName,
DNotificationsPolicyHandler.java34 private final SystemDeviceLockManager mSystemDeviceLockManager; field in NotificationsPolicyHandler
39 mSystemDeviceLockManager = systemDeviceLockManager; in NotificationsPolicyHandler()
46 mSystemDeviceLockManager.setPostNotificationsSystemFixed( in setPostNotificationsSystemFixedFuture()
DFinalizationControllerImpl.java106 private final SystemDeviceLockManager mSystemDeviceLockManager; field in FinalizationControllerImpl
132 mSystemDeviceLockManager = systemDeviceLockManager; in FinalizationControllerImpl()
303 mSystemDeviceLockManager.setDeviceFinalized(true, mBgExecutor,