Home
last modified time | relevance | path

Searched refs:appEntry (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java65 public static CharSequence getLaunchByDefaultSummary(ApplicationsState.AppEntry appEntry, in getLaunchByDefaultSummary() argument
67 String packageName = appEntry.info.packageName; in getLaunchByDefaultSummary()
226 public static Drawable getIcon(Context context, ApplicationsState.AppEntry appEntry) { in getIcon() argument
227 if (appEntry == null || appEntry.info == null) { in getIcon()
232 final String packageName = appEntry.info.packageName; in getIcon()
233 final int uid = appEntry.info.uid; in getIcon()
237 if (appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
238 icon = Utils.getBadgedIcon(context, appEntry.info); in getIcon()
241 setAppEntryMounted(appEntry, /* mounted= */ false); in getIcon()
245 } else if (!appEntry.mounted && appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
[all …]
DApplicationsState.java699 for (AppEntry appEntry : userMap.values()) { in removeUser()
700 mAppEntries.remove(appEntry); in removeUser()
701 mApplications.remove(appEntry.info); in removeUser()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java139 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue() local
140 appEntry.info = new ApplicationInfo(); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
141 appEntry.info.flags = ApplicationInfo.FLAG_INSTALLED; in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
143 assertThat(AppUtils.isAppInstalled(appEntry)).isTrue(); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
148 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse() local
149 appEntry.info = new ApplicationInfo(); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse()
151 assertThat(AppUtils.isAppInstalled(appEntry)).isFalse(); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse()
155 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, id); in createAppEntry() local
156 appEntry.label = "label"; in createAppEntry()
157 appEntry.mounted = true; in createAppEntry()
[all …]
DApplicationsStateRoboTest.java239 AppEntry appEntry = new AppEntry(RuntimeEnvironment.application, appInfo, id); in createAppEntry() local
240 appEntry.label = "label"; in createAppEntry()
241 appEntry.mounted = true; in createAppEntry()
242 return appEntry; in createAppEntry()
251 AppEntry appEntry = createAppEntry(appInfo, id); in addApp() local
252 mApplicationsState.mAppEntries.add(appEntry); in addApp()
253 mApplicationsState.mEntriesMap.get(userId).put(appInfo.packageName, appEntry); in addApp()
266 for (AppEntry appEntry : appEntries) { in findAppEntry()
267 if (appEntry.id == id) { in findAppEntry()
268 return appEntry; in findAppEntry()
[all …]