Searched refs:mDeviceStateCache (Results 1 – 5 of 5) sorted by relevance
49 private final DeviceStateCacheImpl mDeviceStateCache = new DeviceStateCacheImpl(); field in OwnersTest78 .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()
78 private final DeviceStateCacheImpl mDeviceStateCache; field in Owners98 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()
59 private DeviceStateCache mDeviceStateCache; field in LockSettingsServiceTestable.MockInjector77 mDeviceStateCache = deviceStateCache; in MockInjector()107 return mDeviceStateCache; in getDeviceStateCache()
111 DeviceStateCache mDeviceStateCache; field in BaseLockSettingsServiceTests134 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()
437 when(mDeviceStateCache.isUserOrganizationManaged(anyInt())).thenReturn(false); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()441 when(mDeviceStateCache.isDeviceProvisioned()).thenReturn(true); in testEscrowTokenCannotBeActivatedOnUnmanagedUser()