Home
last modified time | relevance | path

Searched refs:homePackages (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppButtonRepository.kt65 val homePackages = mutableSetOf<String>() in <lambda>() constant
69 homePackages.add(activityInfo.packageName) in <lambda>()
73 ?.let { homePackages.add(it) } in <lambda>()
75 return HomePackages(homePackages, currentDefaultHome) in <lambda>()
121 packageName !in homePackageInfo.homePackages -> false in <lambda>()
124 homePackageInfo.homePackages.size == 1 -> true in <lambda>()
145 val homePackages: Set<String>, in <lambda>() constant in com.android.settings.spa.app.appinfo.AppButtonRepository.HomePackages
DAppDisableButton.kt76 packageName in appButtonRepository.getHomePackageInfo().homePackages -> false in canBeDisabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DEnableDisablePreferenceController.java78 HashSet<String> homePackages = new HashSet<>(); in getHomePackages() local
84 homePackages.add(activityPkg); in getHomePackages()
90 homePackages.add(metaPkg); in getHomePackages()
94 return homePackages; in getHomePackages()
128 final HashSet<String> homePackages = getHomePackages(); in canDisable() local
138 return !(homePackages.contains(mAppEntry.info.packageName) in canDisable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java93 final HashSet<String> homePackages = getHomePackages(); in canDisable() local
103 return !(homePackages.contains(mEntry.info.packageName) || in canDisable()
108 HashSet<String> homePackages = new HashSet<>(); in getHomePackages() local
114 homePackages.add(activityPkg); in getHomePackages()
120 homePackages.add(metaPkg); in getHomePackages()
124 return homePackages; in getHomePackages()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppButtonRepositoryTest.kt81 assertThat(homePackageInfo.homePackages).isEmpty() in getHomePackageInfo_empty()
91 assertThat(homePackageInfo.homePackages).isEmpty() in getHomePackageInfo_noActivityInfo()
104 assertThat(homePackageInfo.homePackages).containsExactly(PACKAGE_NAME) in getHomePackageInfo_oneHome()
116 assertThat(homePackageInfo.homePackages).containsExactly( in getHomePackageInfo_homeAlternateSignatureMatch()
129 assertThat(homePackageInfo.homePackages).containsExactly(PACKAGE_NAME) in getHomePackageInfo_homeAlternateSignatureNoMatch()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceController.java490 Set<String> homePackages = new ArraySet<>(); in shouldDisableUninstallForHomeApp() local
497 homePackages.add(activityPkg); in shouldDisableUninstallForHomeApp()
504 homePackages.add(metaPkg); in shouldDisableUninstallForHomeApp()
509 if (homePackages.contains(mPackageName)) { in shouldDisableUninstallForHomeApp()
516 return (homePackages.size() == 1); in shouldDisableUninstallForHomeApp()