/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | LoaderTaskTest.kt | 82 @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()
|
D | WorkspaceItemProcessorTest.kt | 181 userCache: UserCache = mockUserCache, in createWorkspaceItemProcessorUnderTest() 200 userCache = userCache, in createWorkspaceItemProcessorUnderTest()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | UserManagerState.java | 41 public void init(UserCache userCache, UserManager userManager) { in init() argument 43 long serialNo = userCache.getSerialNumberForUser(user); in init()
|
D | PackageUpdatedTask.java | 189 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()
|
D | AllAppsList.java | 308 final UserCache userCache = UserCache.getInstance(context); in updatePackage() local 342 userCache.getUserInfo(user), apiWrapper, pmHelper); in updatePackage()
|
D | LoaderCursor.java | 363 UserCache userCache = UserCache.getInstance(mContext); in getAppShortcutInfo() local 364 UserIconInfo userIconInfo = userCache.getUserInfo(user); in getAppShortcutInfo()
|
D | WorkspaceItemProcessor.kt | 65 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/ |
D | LocalCallingIdentity.java | 112 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()
|
D | VolumeCache.java | 68 public VolumeCache(Context context, UserCache userCache) { in VolumeCache() argument 71 mUserCache = userCache; in VolumeCache()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | UserProfileManager.java | 65 UserCache userCache) { in UserProfileManager() argument 68 mUserCache = userCache; in UserProfileManager()
|
D | WorkProfileManager.java | 66 StatsLogManager statsLogManager, UserCache userCache) { in WorkProfileManager() argument 67 super(userManager, statsLogManager, userCache); in WorkProfileManager() 69 mWorkProfileMatcher = (user) -> userCache.getUserInfo(user).isWork(); in WorkProfileManager()
|
D | PrivateProfileManager.java | 140 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/ |
D | PersistedItemArray.java | 80 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/ |
D | AppEventProducer.java | 198 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/ |
D | MediaProviderTest.java | 510 final UserCache userCache = new UserCache(sContext); in testInsertionWithFilePathOnAnotherUserVolume_throwsIllegalArgumentException() local 513 .filter(uH -> !userCache.getUsersCached().contains(uH)) in testInsertionWithFilePathOnAnotherUserVolume_throwsIllegalArgumentException()
|