Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAdServicesBackCompatInit.java170 private void updateAdExtServicesActivities(boolean shouldEnable) { in updateAdExtServicesActivities() argument
172 updateComponents(PackageManagerCompatUtils.CONSENT_ACTIVITIES_CLASSES, shouldEnable); in updateAdExtServicesActivities()
173 LogUtil.d("Updated state of AdExtServices activities: [enabled=%s]", shouldEnable); in updateAdExtServicesActivities()
188 private void updateAdExtServicesServices(boolean shouldEnable) { in updateAdExtServicesServices() argument
196 updateComponents(servicesToUpdate, shouldEnable); in updateAdExtServicesServices()
197 LogUtil.d("Updated state of AdExtServices services: [enable=%s]", shouldEnable); in updateAdExtServicesServices()
208 void updateComponents(List<String> components, boolean shouldEnable) { in updateComponents() argument
214 shouldEnable in updateComponents()
/packages/apps/Car/Settings/src/com/android/car/settings/development/
DDevelopmentSettingsUtil.java49 boolean shouldEnable = showDeveloperOptions(context) && enable; in setDevelopmentSettingsEnabled()
54 + " Should enable: " + shouldEnable); in setDevelopmentSettingsEnabled()
55 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(context, shouldEnable); in setDevelopmentSettingsEnabled()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java173 boolean shouldEnable = mUsageState.permissionDeclared; in refreshUi()
175 if (shouldEnable && !hasAccess) { in refreshUi()
178 shouldEnable = !mSwitchPref.isDisabledByEcm(); in refreshUi()
182 mSwitchPref.setEnabled(shouldEnable); in refreshUi()
/packages/apps/Settings/src/com/android/settings/development/compat/
DPlatformCompatDashboard.java180 boolean shouldEnable = true; in createPreferenceForChange()
182 shouldEnable = getPlatformCompat().getOverrideValidator() in createPreferenceForChange()
188 item.setEnabled(shouldEnable); in createPreferenceForChange()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityShortcutServiceFragment.java121 boolean shouldEnable = componentString.equals(pref.getKey()); in onAccessibilityServiceConfirmed()
123 pref.setChecked(shouldEnable); in onAccessibilityServiceConfirmed()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/accessibility/
DAccessibilityShortcutServiceState.java181 boolean shouldEnable = currentService.equals(pref.getKey()[0]); in updateSelection()
183 pref.setChecked(shouldEnable); in updateSelection()