OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:switchPref
(Results
1 - 5
of
5
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
TwoStatePreferenceHelper.java
67
final SwitchPreference
switchPref
= new SwitchPreference(checkBox.getContext());
68
switchPref
.setTitle(checkBox.getTitle());
69
switchPref
.setKey(checkBox.getKey());
70
switchPref
.setOrder(checkBox.getOrder());
71
switchPref
.setPersistent(checkBox.isPersistent());
72
switchPref
.setEnabled(checkBox.isEnabled());
73
switchPref
.setChecked(checkBox.isChecked());
74
switchPref
.setSummary(checkBox.getSummary());
75
switchPref
.setSummaryOn(checkBox.getSummaryOn());
76
switchPref
.setSummaryOff(checkBox.getSummaryOff())
[
all
...]
/cts/tests/tests/preference2/src/android/preference2/cts/
PreferenceFromCodeActivity.java
63
SwitchPreference
switchPref
= new SwitchPreference(this);
64
switchPref
.setKey("switch_preference");
65
switchPref
.setTitle(R.string.title_switch_preference);
66
switchPref
.setSummary(R.string.summary_switch_preference);
67
switchPref
.setSummaryOn(R.string.summary_on_switch_preference);
68
switchPref
.setSummaryOff(R.string.summary_off_switch_preference);
69
switchPref
.setSwitchTextOff(R.string.switchtext_off);
70
switchPref
.setSwitchTextOn(R.string.switchtext_on);
71
prefCat.addPreference(
switchPref
);
/development/samples/ApiDemos/src/com/example/android/apis/preference/
PreferencesFromCode.java
60
SwitchPreference
switchPref
= new SwitchPreference(this);
61
switchPref
.setKey("switch_preference");
62
switchPref
.setTitle(R.string.title_switch_preference);
63
switchPref
.setSummary(R.string.summary_switch_preference);
64
inlinePrefCat.addPreference(
switchPref
);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
AppPermissionsFragment.java
348
SwitchPreference
switchPref
= (SwitchPreference) preference;
349
AppPermissionGroup group = mAppPermissions.getPermissionGroup(
switchPref
.getKey());
351
switchPref
.setChecked(group.areRuntimePermissionsGranted());
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
AppPermissionsFragment.java
367
SwitchPreference
switchPref
= (SwitchPreference) preference;
368
AppPermissionGroup group = mAppPermissions.getPermissionGroup(
switchPref
.getKey());
370
switchPref
.setChecked(group.areRuntimePermissionsGranted());
Completed in 71 milliseconds