Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java67 public static CharSequence getLaunchByDefaultSummary(ApplicationsState.AppEntry appEntry, in getLaunchByDefaultSummary() argument
69 String packageName = appEntry.info.packageName; in getLaunchByDefaultSummary()
232 public static Drawable getIcon(Context context, ApplicationsState.AppEntry appEntry) { in getIcon() argument
233 if (appEntry == null || appEntry.info == null) { in getIcon()
238 final String packageName = appEntry.info.packageName; in getIcon()
239 final int uid = appEntry.info.uid; in getIcon()
243 if (appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
244 icon = Utils.getBadgedIcon(context, appEntry.info); in getIcon()
247 setAppEntryMounted(appEntry, /* mounted= */ false); in getIcon()
251 } else if (!appEntry.mounted && appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
[all …]
DApplicationsState.java735 for (AppEntry appEntry : userMap.values()) { in removeUser()
736 mAppEntries.remove(appEntry); in removeUser()
737 mApplications.remove(appEntry.info); in removeUser()
1916 @NonNull AppEntry appEntry, in refreshAppEntryOnRebuild()
2024 public void refreshAppEntryOnRebuild(@NonNull AppEntry appEntry, boolean hideInQuietMode) {
2025 appEntry.hideInQuietMode = hideInQuietMode;
2108 @NonNull AppEntry appEntry,
2110 appEntry.hideInQuietMode = hideInQuietMode;
2139 public void refreshAppEntryOnRebuild(@NonNull AppEntry appEntry, boolean hideInQuietMode) {
2140 appEntry.hideInQuietMode = hideInQuietMode;
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java152 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue() local
153 appEntry.info = new ApplicationInfo(); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
154 appEntry.info.flags = ApplicationInfo.FLAG_INSTALLED; in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
156 assertThat(AppUtils.isAppInstalled(appEntry)).isTrue(); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
161 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse() local
162 appEntry.info = new ApplicationInfo(); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse()
164 assertThat(AppUtils.isAppInstalled(appEntry)).isFalse(); in isAppInstalled_hasAppEntryWithoutInstalledFlag_shouldReturnFalse()
194 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, id); in createAppEntry() local
195 appEntry.label = "label"; in createAppEntry()
196 appEntry.mounted = true; in createAppEntry()
[all …]
DApplicationsStateRoboTest.java265 AppEntry appEntry = new AppEntry(RuntimeEnvironment.application, appInfo, id); in createAppEntry() local
266 appEntry.label = "label"; in createAppEntry()
267 appEntry.mounted = true; in createAppEntry()
268 return appEntry; in createAppEntry()
277 AppEntry appEntry = createAppEntry(appInfo, id); in addApp() local
278 mApplicationsState.mAppEntries.add(appEntry); in addApp()
279 mApplicationsState.mEntriesMap.get(userId).put(appInfo.packageName, appEntry); in addApp()
292 for (AppEntry appEntry : appEntries) { in findAppEntry()
293 if (appEntry.id == id) { in findAppEntry()
294 return appEntry; in findAppEntry()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DAppList.kt151 val appEntry = list[it] in list() constant
152 val summary = getSummary(option, appEntry.record) ?: { "" } in list()
153 remember(appEntry) { in list()
154 AppListItemModel(appEntry.record, appEntry.label, summary) in list()