Home
last modified time | relevance | path

Searched refs:mDeviceStateCache (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java49 private final DeviceStateCacheImpl mDeviceStateCache = new DeviceStateCacheImpl(); field in OwnersTest
78 .that(mDeviceStateCache.isUserOrganizationManaged(TEST_PO_USER)).isTrue(); in loadProfileOwner()
100 .that(mDeviceStateCache.isUserOrganizationManaged(owners.getDeviceOwnerUserId())) in loadDeviceOwner()
133 services.activityManagerInternal, mDeviceStateCache, services.pathProvider); in makeOwners()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java78 private final DeviceStateCacheImpl mDeviceStateCache; field in Owners
98 mDeviceStateCache = deviceStateCache; in Owners()
119 mDeviceStateCache.setDeviceOwnerType(deviceOwnerType); in load()
121 mDeviceStateCache.setDeviceOwnerType(NO_DEVICE_OWNER); in load()
124 mDeviceStateCache.setHasProfileOwner(userId, hasProfileOwner(userId)); in load()
279 mDeviceStateCache.setDeviceOwnerType(deviceOwnerType); in setDeviceOwner()
299 mDeviceStateCache.setDeviceOwnerType(NO_DEVICE_OWNER); in clearDeviceOwner()
319 mDeviceStateCache.setHasProfileOwner(userId, true); in setProfileOwner()
335 mDeviceStateCache.setHasProfileOwner(userId, false); in removeProfileOwner()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java59 private DeviceStateCache mDeviceStateCache; field in LockSettingsServiceTestable.MockInjector
77 mDeviceStateCache = deviceStateCache; in MockInjector()
107 return mDeviceStateCache; in getDeviceStateCache()
DBaseLockSettingsServiceTests.java111 DeviceStateCache mDeviceStateCache; field in BaseLockSettingsServiceTests
134 mDeviceStateCache = mock(DeviceStateCache.class); in setUp_baseServices()
172 mDeviceStateCache); in setUp_baseServices()
232 when(mDeviceStateCache.isUserOrganizationManaged(anyInt())).thenReturn(true); in setUp_baseServices()
233 when(mDeviceStateCache.isDeviceProvisioned()).thenReturn(true); in setUp_baseServices()
289 when(mDeviceStateCache.isUserOrganizationManaged(eq(profileId))) in installChildProfile()
DSyntheticPasswordTests.java437 when(mDeviceStateCache.isUserOrganizationManaged(anyInt())).thenReturn(false); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()
441 when(mDeviceStateCache.isDeviceProvisioned()).thenReturn(true); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()