Home
last modified time | relevance | path

Searched refs:userCache (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderTaskTest.kt82 @Mock private lateinit var userCache: UserCache variable in com.android.launcher3.model.LoaderTaskTest
118 context.putObject(UserCache.INSTANCE, userCache) in setup()
132 `when`(userCache.userProfiles).thenReturn(mockUserHandles) in loadsDataProperly()
133 `when`(userCache.getUserInfo(MAIN_HANDLE)).thenReturn(UserIconInfo(MAIN_HANDLE, 1)) in loadsDataProperly()
166 `when`(userCache.userProfiles).thenReturn(mockUserHandles) in setsQuietModeFlagCorrectlyForWorkProfile()
168 `when`(userCache.getUserInfo(MAIN_HANDLE)).thenReturn(UserIconInfo(MAIN_HANDLE, 1)) in setsQuietModeFlagCorrectlyForWorkProfile()
187 `when`(userCache.userProfiles).thenReturn(mockUserHandles) in setsQuietModeFlagCorrectlyForPrivateProfile()
189 `when`(userCache.getUserInfo(MAIN_HANDLE)).thenReturn(UserIconInfo(MAIN_HANDLE, 3)) in setsQuietModeFlagCorrectlyForPrivateProfile()
DWorkspaceItemProcessorTest.kt181 userCache: UserCache = mockUserCache, in createWorkspaceItemProcessorUnderTest()
200 userCache = userCache, in createWorkspaceItemProcessorUnderTest()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DUserManagerState.java41 public void init(UserCache userCache, UserManager userManager) { in init() argument
43 long serialNo = userCache.getSerialNumberForUser(user); in init()
DPackageUpdatedTask.java189 UserCache userCache = UserCache.INSTANCE.get(context); in execute() local
190 if (userCache.getUserInfo(mUser).isWork()) { in execute()
192 } else if (userCache.getUserInfo(mUser).isPrivate()) { in execute()
DAllAppsList.java308 final UserCache userCache = UserCache.getInstance(context); in updatePackage() local
342 userCache.getUserInfo(user), apiWrapper, pmHelper); in updatePackage()
DLoaderCursor.java363 UserCache userCache = UserCache.getInstance(mContext); in getAppShortcutInfo() local
364 UserIconInfo userIconInfo = userCache.getUserInfo(user); in getAppShortcutInfo()
DWorkspaceItemProcessor.kt65 private val userCache: UserCache, constant in com.android.launcher3.model.WorkspaceItemProcessor
338 userCache.getUserInfo(c.user), in processAppOrDeepShortcut()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java112 UserCache userCache) { in fromBinder() argument
142 if (!userCache.userSharesMediaWithParentCached(user)) { in fromBinder()
152 public static LocalCallingIdentity fromExternal(Context context, @Nullable UserCache userCache, in fromExternal() argument
158 LocalCallingIdentity ident = fromExternal(context, userCache, uid, sharedPackageNames[0], in fromExternal()
173 public static LocalCallingIdentity fromExternal(Context context, @Nullable UserCache userCache, in fromExternal() argument
176 if (userCache != null && !userCache.userSharesMediaWithParentCached(user)) { in fromExternal()
DVolumeCache.java68 public VolumeCache(Context context, UserCache userCache) { in VolumeCache() argument
71 mUserCache = userCache; in VolumeCache()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DUserProfileManager.java65 UserCache userCache) { in UserProfileManager() argument
68 mUserCache = userCache; in UserProfileManager()
DWorkProfileManager.java66 StatsLogManager statsLogManager, UserCache userCache) { in WorkProfileManager() argument
67 super(userManager, statsLogManager, userCache); in WorkProfileManager()
69 mWorkProfileMatcher = (user) -> userCache.getUserInfo(user).isWork(); in WorkProfileManager()
DPrivateProfileManager.java140 UserCache userCache) { in PrivateProfileManager() argument
141 super(userManager, statsLogManager, userCache); in PrivateProfileManager()
143 mPrivateProfileMatcher = (user) -> userCache.getUserInfo(user).isPrivate(); in PrivateProfileManager()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPersistedItemArray.java80 UserCache userCache = UserCache.INSTANCE.get(context); in write() local
96 Long.toString(userCache.getSerialNumberForUser(item.user))); in write()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java198 UserCache userCache = UserCache.INSTANCE.get(mContext); in toAppTarget() local
199 UserHandle userHandle = userCache.getUserProfiles().stream() in toAppTarget()
200 .filter(user -> userCache.getUserInfo(user).type == iconInfoType) in toAppTarget()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java510 final UserCache userCache = new UserCache(sContext); in testInsertionWithFilePathOnAnotherUserVolume_throwsIllegalArgumentException() local
513 .filter(uH -> !userCache.getUsersCached().contains(uH)) in testInsertionWithFilePathOnAnotherUserVolume_throwsIllegalArgumentException()