Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockSystemServices.java97 public final UserManagerForMock userManagerForMock; field in MockSystemServices
144 userManagerForMock = mock(UserManagerForMock.class); in MockSystemServices()
H A DDevicePolicyManagerServiceTestable.java362 return services.userManagerForMock.isHeadlessSystemUserMode(); in userManagerIsHeadlessSystemUserMode()
H A DDevicePolicyManagerTest.java1055 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testSetDeviceOwner_headlessSystemUserMode()
3511 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in setup_DeviceAdminFeatureOff()
3528 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_DeviceAdminFeatureOff()
3564 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_ManagedProfileFeatureOff()
3598 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testIsProvisioningAllowed_firstBoot_systemUser()
3603 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_firstBoot_systemUser()
3613 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testCheckProvisioningPreCondition_firstBoot_systemUser()
3621 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testCheckProvisioningPreCondition_firstBoot_systemUser()
3815 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(false); in testIsProvisioningAllowed_firstBoot_secondaryUser()
3828 when(getServices().userManagerForMock.isHeadlessSystemUserMode()).thenReturn(true); in testIsProvisioningAllowed_firstBoot_secondaryUser()