Home
last modified time | relevance | path

Searched refs:switchPref (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java67 final SwitchPreference switchPref = new SwitchPreference(checkBox.getContext()); in addSwitchPreferenceBasedOnCheckBoxPreference() local
68 switchPref.setTitle(checkBox.getTitle()); in addSwitchPreferenceBasedOnCheckBoxPreference()
69 switchPref.setKey(checkBox.getKey()); in addSwitchPreferenceBasedOnCheckBoxPreference()
70 switchPref.setOrder(checkBox.getOrder()); in addSwitchPreferenceBasedOnCheckBoxPreference()
71 switchPref.setPersistent(checkBox.isPersistent()); in addSwitchPreferenceBasedOnCheckBoxPreference()
72 switchPref.setEnabled(checkBox.isEnabled()); in addSwitchPreferenceBasedOnCheckBoxPreference()
73 switchPref.setChecked(checkBox.isChecked()); in addSwitchPreferenceBasedOnCheckBoxPreference()
74 switchPref.setSummary(checkBox.getSummary()); in addSwitchPreferenceBasedOnCheckBoxPreference()
75 switchPref.setSummaryOn(checkBox.getSummaryOn()); in addSwitchPreferenceBasedOnCheckBoxPreference()
76 switchPref.setSummaryOff(checkBox.getSummaryOff()); in addSwitchPreferenceBasedOnCheckBoxPreference()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DHighPower.java85 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
86 switchPref.setTitle(entry.label); in bindPreference()
87 switchPref.setKey(entry.info.packageName); in bindPreference()
88 switchPref.setIcon(entry.icon); in bindPreference()
90 switchPref.setChecked(false); in bindPreference()
91 switchPref.setEnabled(false); in bindPreference()
93 switchPref.setEnabled(true); in bindPreference()
94 switchPref.setChecked(!(Boolean) entry.extraInfo); in bindPreference()
95 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
106 updateSummary(switchPref); in bindPreference()
[all …]
DExternalSources.java75 final RestrictedSwitchPreference switchPref = (RestrictedSwitchPreference) preference; in bindPreference() local
76 switchPref.setTitle(entry.label); in bindPreference()
77 switchPref.setKey(entry.info.packageName); in bindPreference()
78 switchPref.setIcon(entry.icon); in bindPreference()
79 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
85 switchPref.setChecked(state.isAllowed()); in bindPreference()
89 switchPref.setDisabledByAdmin(admin); in bindPreference()
91 switchPref.setEnabled(canChange(entry)); in bindPreference()
92 switchPref.setSummary(getPreferenceSummary(entry)); in bindPreference()
95 return switchPref; in bindPreference()
DPictureInPicture.java113 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
114 switchPref.setTitle(entry.label); in bindPreference()
115 switchPref.setKey(entry.info.packageName); in bindPreference()
116 switchPref.setIcon(entry.icon); in bindPreference()
117 switchPref.setChecked((Boolean) entry.extraInfo); in bindPreference()
118 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
125 switchPref.setSummaryOn(R.string.app_permission_summary_allowed); in bindPreference()
126 switchPref.setSummaryOff(R.string.app_permission_summary_not_allowed); in bindPreference()
127 return switchPref; in bindPreference()
DAlarmsAndReminders.java67 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
68 switchPref.setTitle(entry.label); in bindPreference()
69 switchPref.setKey(entry.info.packageName); in bindPreference()
70 switchPref.setIcon(entry.icon); in bindPreference()
71 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
76 switchPref.setSummary(getPreferenceSummary(entry)); in bindPreference()
77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
79 return switchPref; in bindPreference()
DWriteSettings.java67 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
68 switchPref.setTitle(entry.label); in bindPreference()
69 switchPref.setKey(entry.info.packageName); in bindPreference()
70 switchPref.setIcon(entry.icon); in bindPreference()
71 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
76 switchPref.setSummary(getPreferenceSummary(entry)); in bindPreference()
77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
79 return switchPref; in bindPreference()
DAppUsageAccess.java63 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
64 switchPref.setTitle(entry.label); in bindPreference()
65 switchPref.setKey(entry.info.packageName); in bindPreference()
66 switchPref.setIcon(entry.icon); in bindPreference()
67 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
72 switchPref.setSummary(getPreferenceSummary(entry)); in bindPreference()
73 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
75 return switchPref; in bindPreference()
DSystemAlertWindow.java72 final TwoStatePreference switchPref = (SwitchPreference) preference; in bindPreference() local
73 switchPref.setTitle(entry.label); in bindPreference()
74 switchPref.setKey(entry.info.packageName); in bindPreference()
75 switchPref.setIcon(entry.icon); in bindPreference()
76 switchPref.setOnPreferenceChangeListener((pref, newValue) -> { in bindPreference()
81 switchPref.setSummary(getPreferenceSummary(entry)); in bindPreference()
82 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
84 return switchPref; in bindPreference()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutPickerController.java107 final SwitchPreference switchPref = (SwitchPreference) preference; in handlePreferenceTreeClick() local
108 final KeyboardLayout layout = mPreferenceMap.get(switchPref); in handlePreferenceTreeClick()
110 final boolean checked = switchPref.isChecked(); in handlePreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DContactDiscoveryPreferenceController.java124 SwitchPreference switchPref = (SwitchPreference) preference; in registerUceObserver()
125 switchPref.setChecked(isChecked()); in registerUceObserver()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/
DAssistedDialingSettingFragment.java74 SwitchPreference switchPref = in onCreate() local
86 switchPref.setOnPreferenceChangeListener(this::logIfUserDisabledFeature); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceController.java204 switchPreference.setOnPreferenceChangeListener((switchPref, newValue) -> { in createSwitchPreference() argument