Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java158 final Set<String> keepEnabledPackages = new ArraySet<>(); in getKeepEnabledPackages() local
161 keepEnabledPackages.add(defaultDialer); in getKeepEnabledPackages()
166 keepEnabledPackages.add(defaultSms.getPackageName()); in getKeepEnabledPackages()
172 keepEnabledPackages.add(euicc.packageName); in getKeepEnabledPackages()
179 keepEnabledPackages.add(packageName); in getKeepEnabledPackages()
183 keepEnabledPackages.addAll(getEnabledPackageAllowlist()); in getKeepEnabledPackages()
189 keepEnabledPackages.add(locationHistoryPackage); in getKeepEnabledPackages()
191 keepEnabledPackages.addAll(mSystemConfigManager.getPreventUserDisablePackages()); in getKeepEnabledPackages()
192 return keepEnabledPackages; in getKeepEnabledPackages()
196 final Set<String> keepEnabledPackages = new ArraySet<>(); in getEnabledPackageAllowlist() local
[all …]
/packages/apps/Car/Settings/src/com/android/car/settingslib/applications/
DApplicationFeatureProviderImpl.java149 final Set<String> keepEnabledPackages = new ArraySet<>(); in getKeepEnabledPackages() local
152 keepEnabledPackages.add(defaultDialer); in getKeepEnabledPackages()
157 keepEnabledPackages.add(defaultSms.getPackageName()); in getKeepEnabledPackages()
163 keepEnabledPackages.add(euicc.packageName); in getKeepEnabledPackages()
166 keepEnabledPackages.addAll(getEnabledPackageAllowlist()); in getKeepEnabledPackages()
172 keepEnabledPackages.add(locationHistoryPackage); in getKeepEnabledPackages()
174 return keepEnabledPackages; in getKeepEnabledPackages()
178 final Set<String> keepEnabledPackages = new ArraySet<>(); in getEnabledPackageAllowlist() local
181 keepEnabledPackages.add( in getEnabledPackageAllowlist()
185 keepEnabledPackages.add(mContext.getString(R.string.config_package_installer_package_name)); in getEnabledPackageAllowlist()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsUtils.java52 Set<String> keepEnabledPackages = new ArraySet<>(); in isKeepEnabledPackage() local
55 keepEnabledPackages.add(defaultDialer); in isKeepEnabledPackage()
60 keepEnabledPackages.add(defaultSms.getPackageName()); in isKeepEnabledPackage()
62 return keepEnabledPackages.contains(packageName); in isKeepEnabledPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java317 final Set<String> keepEnabledPackages = mProvider.getKeepEnabledPackages(); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() local
321 assertThat(keepEnabledPackages).containsAtLeastElementsIn(expectedPackages); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory()
348 final Set<String> keepEnabledPackages = spyProvider.getKeepEnabledPackages(); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage() local
350 assertThat(keepEnabledPackages).contains(testEuicc); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage()
422 final Set<String> keepEnabledPackages = mProvider.getKeepEnabledPackages(); in getKeepEnabledPackages_shouldContainPreventUserDisablePackages() local
424 assertThat(keepEnabledPackages).containsAtLeastElementsIn(PREVENT_USER_DISABLE_PACKAGES); in getKeepEnabledPackages_shouldContainPreventUserDisablePackages()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppDisableButtonTest.kt85 whenever(appFeatureProvider.keepEnabledPackages).thenReturn(emptySet()) in setUp()
123 whenever(appFeatureProvider.keepEnabledPackages).thenReturn(setOf(PACKAGE_NAME)) in getActionButton_isKeepEnabledPackages_cannotDisable()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppDisableButton.kt72 packageName in applicationFeatureProvider.keepEnabledPackages -> false in canBeDisabled()