Home
last modified time | relevance | path

Searched refs:switchPref (Results 1 – 3 of 3) 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/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DAppPermissionsFragment.java348 SwitchPreference switchPref = (SwitchPreference) preference; in setPreferencesCheckedState() local
349 AppPermissionGroup group = mAppPermissions.getPermissionGroup(switchPref.getKey()); in setPreferencesCheckedState()
351 switchPref.setChecked(group.areRuntimePermissionsGranted()); in setPreferencesCheckedState()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DAppPermissionsFragment.java367 SwitchPreference switchPref = (SwitchPreference) preference; in setPreferencesCheckedState() local
368 AppPermissionGroup group = mAppPermissions.getPermissionGroup(switchPref.getKey()); in setPreferencesCheckedState()
370 switchPref.setChecked(group.areRuntimePermissionsGranted()); in setPreferencesCheckedState()