Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockSystemServices.java110 public final UserManagerForMock userManagerForMock; field in MockSystemServices
167 userManagerForMock = mock(UserManagerForMock.class); in MockSystemServices()
H A DDevicePolicyManagerServiceTestable.java336 return services.userManagerForMock.isHeadlessSystemUserMode(); in userManagerIsHeadlessSystemUserMode()
H A DDevicePolicyManagerTest.java3538 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in setup_DeviceAdminFeatureOff()
3555 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_DeviceAdminFeatureOff()
3591 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_ManagedProfileFeatureOff()
3625 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testIsProvisioningAllowed_firstBoot_systemUser()
3630 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_firstBoot_systemUser()
3640 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testCheckProvisioningPreCondition_firstBoot_systemUser()
3648 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testCheckProvisioningPreCondition_firstBoot_systemUser()
3842 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testIsProvisioningAllowed_firstBoot_secondaryUser()
3855 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_firstBoot_secondaryUser()