Home
last modified time | relevance | path

Searched refs:Preference (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/support/core/ktx/src/androidTest/java/androidx/core/preference/
DPreferenceGroupTest.kt19 import android.preference.Preference in <lambda>()
53 val preference = Preference(context) in <lambda>()
61 val preference = Preference(context) in <lambda>()
75 val preference1 = Preference(context) in <lambda>()
80 val preference2 = Preference(context) in <lambda>()
87 val preference1 = Preference(context) in <lambda>()
89 val preference2 = Preference(context) in <lambda>()
105 val preference = Preference(context) in <lambda>()
115 preferenceGroup.addPreference(Preference(context)) in <lambda>()
121 preferenceGroup.addPreference(Preference(context)) in <lambda>()
[all …]
/frameworks/support/preference/ktx/src/androidTest/java/androidx/preference/
DPreferenceGroupTest.kt49 val preference = Preference(context) in <lambda>()
57 val preference = Preference(context) in <lambda>()
71 val preference1 = Preference(context) in <lambda>()
76 val preference2 = Preference(context) in <lambda>()
83 val preference1 = Preference(context) in <lambda>()
85 val preference2 = Preference(context) in <lambda>()
101 val preference = Preference(context) in <lambda>()
111 preferenceGroup.addPreference(Preference(context)) in <lambda>()
117 preferenceGroup.addPreference(Preference(context)) in <lambda>()
126 val preference1 = Preference(context).apply { key = "ASD" } in <lambda>()
[all …]
/frameworks/support/core/ktx/src/main/java/androidx/core/preference/
DPreferenceGroup.kt21 import android.preference.Preference
30 inline operator fun PreferenceGroup.get(key: CharSequence): Preference = findPreference(key) in get()
38 operator fun PreferenceGroup.get(index: Int): Preference = getPreference(index) in get()
43 operator fun PreferenceGroup.contains(preference: Preference): Boolean { in get()
54 inline operator fun PreferenceGroup.plusAssign(preference: Preference) { in plusAssign()
60 inline operator fun PreferenceGroup.minusAssign(preference: Preference) { in minusAssign()
78 inline fun PreferenceGroup.forEach(action: (preference: Preference) -> Unit) { in isEmpty()
86 inline fun PreferenceGroup.forEachIndexed(action: (index: Int, preference: Preference) -> Unit) { in forEachIndexed()
94 operator fun PreferenceGroup.iterator() = object : MutableIterator<Preference> { in iterator()
105 val PreferenceGroup.children: Sequence<Preference>
[all …]
/frameworks/support/preference/src/main/java/androidx/preference/
DCollapsiblePreferenceGroupController.java51 public List<Preference> createVisiblePreferencesList(PreferenceGroup group) { in createVisiblePreferencesList()
55 private List<Preference> createInnerVisiblePreferencesList(PreferenceGroup group) { in createInnerVisiblePreferencesList()
60 final List<Preference> visiblePreferences = new ArrayList<>(); in createInnerVisiblePreferencesList()
61 final List<Preference> collapsedPreferences = new ArrayList<>(); in createInnerVisiblePreferencesList()
65 final Preference preference = group.getPreference(i); in createInnerVisiblePreferencesList()
90 final List<Preference> innerList = createInnerVisiblePreferencesList(innerGroup); in createInnerVisiblePreferencesList()
95 for (Preference inner : innerList) { in createInnerVisiblePreferencesList()
123 public boolean onPreferenceVisibilityChange(Preference preference) { in onPreferenceVisibilityChange()
135 List<Preference> collapsedPreferences) { in createExpandButton()
138 preference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { in createExpandButton()
[all …]
DPreferenceGroupAdapter.java47 implements Preference.OnPreferenceChangeInternalListener,
60 private List<Preference> mPreferenceList;
66 private List<Preference> mPreferenceListInternal;
153 for (final Preference preference : mPreferenceListInternal) { in syncMyPreferences()
158 final List<Preference> fullPreferenceList = new ArrayList<>(mPreferenceListInternal.size()); in syncMyPreferences()
161 final List<Preference> visiblePreferenceList = in syncMyPreferences()
164 final List<Preference> oldVisibleList = mPreferenceList; in syncMyPreferences()
204 for (final Preference preference : fullPreferenceList) { in syncMyPreferences()
209 private void flattenPreferenceGroup(List<Preference> preferences, PreferenceGroup group) { in flattenPreferenceGroup()
214 final Preference preference = group.getPreference(i); in flattenPreferenceGroup()
[all …]
DPreferenceGroup.java55 public abstract class PreferenceGroup extends Preference {
63 private List<Preference> mPreferenceList;
176 public void addItemFromInflater(Preference preference) { in addItemFromInflater()
194 public Preference getPreference(int index) { in getPreference()
205 public boolean addPreference(Preference preference) { in addPreference()
274 public boolean removePreference(Preference preference) { in removePreference()
280 private boolean removePreferenceInt(Preference preference) { in removePreferenceInt()
319 List<Preference> preferenceList = mPreferenceList; in removeAll()
333 protected boolean onPrepareAddPreference(Preference preference) { in onPrepareAddPreference()
351 public Preference findPreference(CharSequence key) { in findPreference()
[all …]
DPreferenceManager.java393 public Preference findPreference(CharSequence key) { in findPreference()
550 public void showDialog(Preference preference) { in showDialog()
600 public abstract boolean arePreferenceItemsTheSame(Preference p1, Preference p2); in arePreferenceItemsTheSame()
609 public abstract boolean arePreferenceContentsTheSame(Preference p1, Preference p2); in arePreferenceContentsTheSame()
628 public boolean arePreferenceItemsTheSame(Preference p1, Preference p2) { in arePreferenceItemsTheSame()
642 public boolean arePreferenceContentsTheSame(Preference p1, Preference p2) { in arePreferenceContentsTheSame()
696 boolean onPreferenceTreeClick(Preference preference); in onPreferenceTreeClick()
710 void onDisplayPreferenceDialog(Preference preference); in onDisplayPreferenceDialog()
DPreferenceInflater.java71 Preference.class.getPackage().getName() + ".", in init()
117 public Preference inflate(int resource, @Nullable PreferenceGroup root) { in inflate()
145 public Preference inflate(XmlPullParser parser, @Nullable PreferenceGroup root) { in inflate()
149 final Preference result; in inflate()
164 Preference xmlRoot = createItemFromTag(parser.getName(), in inflate()
219 private Preference createItem(@NonNull String name, @Nullable String[] prefixes, in createItem()
259 return (Preference) constructor.newInstance(args); in createItem()
282 protected Preference onCreateItem(String name, AttributeSet attrs) in onCreateItem()
287 private Preference createItemFromTag(String name, in createItemFromTag()
290 final Preference item; in createItemFromTag()
[all …]
DPreference.java90 public class Preference implements Comparable<Preference> { class
163 private List<Preference> mDependents;
192 boolean onPreferenceChange(Preference preference, Object newValue); in onPreferenceChange()
206 boolean onPreferenceClick(Preference preference); in onPreferenceClick()
220 void onPreferenceChange(Preference preference); in onPreferenceChange()
227 void onPreferenceHierarchyChange(Preference preference); in onPreferenceHierarchyChange()
234 void onPreferenceVisibilityChange(Preference preference); in onPreferenceVisibilityChange()
261 public Preference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in Preference() method in Preference
265 attrs, R.styleable.Preference, defStyleAttr, defStyleRes); in Preference()
354 public Preference(Context context, AttributeSet attrs, int defStyleAttr) { in Preference() method in Preference
[all …]
/frameworks/support/preference/ktx/src/main/java/androidx/preference/
DPreferenceGroup.kt26 inline operator fun PreferenceGroup.get(key: CharSequence): Preference = findPreference(key) in get()
33 operator fun PreferenceGroup.get(index: Int): Preference = getPreference(index) in get()
37 operator fun PreferenceGroup.contains(preference: Preference): Boolean { in get()
47 inline operator fun PreferenceGroup.plusAssign(preference: Preference) { in plusAssign()
52 inline operator fun PreferenceGroup.minusAssign(preference: Preference) { in minusAssign()
66 inline fun PreferenceGroup.forEach(action: (preference: Preference) -> Unit) { in isEmpty()
73 inline fun PreferenceGroup.forEachIndexed(action: (index: Int, preference: Preference) -> Unit) { in forEachIndexed()
80 operator fun PreferenceGroup.iterator() = object : MutableIterator<Preference> { in iterator()
90 val PreferenceGroup.children: Sequence<Preference>
91 get() = object : Sequence<Preference> {
/frameworks/base/core/java/android/preference/
DPreferenceGroup.java42 public abstract class PreferenceGroup extends Preference implements GenericInflater.Parent<Preferen…
48 private List<Preference> mPreferenceList;
59 mPreferenceList = new ArrayList<Preference>(); in PreferenceGroup()
104 public void addItemFromInflater(Preference preference) { in addItemFromInflater()
122 public Preference getPreference(int index) { in getPreference()
133 public boolean addPreference(Preference preference) { in addPreference()
139 if (preference.getOrder() == Preference.DEFAULT_ORDER) { in addPreference()
181 public boolean removePreference(Preference preference) { in removePreference()
187 private boolean removePreferenceInt(Preference preference) { in removePreferenceInt()
202 List<Preference> preferenceList = mPreferenceList; in removeAll()
[all …]
DPreferenceGroupAdapter.java25 import android.preference.Preference.OnPreferenceChangeInternalListener;
68 private List<Preference> mPreferenceList;
130 mPreferenceList = new ArrayList<Preference>(); in PreferenceGroupAdapter()
145 List<Preference> newPreferenceList = new ArrayList<Preference>(mPreferenceList.size()); in syncMyPreferences()
157 private void flattenPreferenceGroup(List<Preference> preferences, PreferenceGroup group) { in flattenPreferenceGroup()
163 final Preference preference = group.getPreference(i); in flattenPreferenceGroup()
187 private PreferenceLayout createPreferenceLayout(Preference preference, PreferenceLayout in) { in createPreferenceLayout()
195 private void addPreferenceClassName(Preference preference) { in addPreferenceClassName()
211 public Preference getItem(int position) { in getItem()
236 final Preference preference = this.getItem(position); in getView()
[all …]
DPreference.java88 public class Preference implements Comparable<Preference> { class
152 private List<Preference> mDependents;
174 boolean onPreferenceChange(Preference preference, Object newValue); in onPreferenceChange()
188 boolean onPreferenceClick(Preference preference); in onPreferenceClick()
202 void onPreferenceChange(Preference preference); in onPreferenceChange()
209 void onPreferenceHierarchyChange(Preference preference); in onPreferenceHierarchyChange()
236 public Preference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in Preference() method in Preference
240 attrs, com.android.internal.R.styleable.Preference, defStyleAttr, defStyleRes); in Preference()
338 public Preference(Context context, AttributeSet attrs, int defStyleAttr) { in Preference() method in Preference
356 public Preference(Context context, AttributeSet attrs) { in Preference() method in Preference
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
DAbstractPreferenceController.java4 import android.support.v7.preference.Preference;
26 if (this instanceof Preference.OnPreferenceChangeListener) { in displayPreference()
27 final Preference preference = screen.findPreference(prefKey); in displayPreference()
29 (Preference.OnPreferenceChangeListener) this); in displayPreference()
39 public void updateState(Preference preference) { in updateState()
46 protected void refreshSummary(Preference preference) { in refreshSummary()
70 public boolean handlePreferenceTreeClick(Preference preference) { in handlePreferenceTreeClick()
83 final Preference pref = group.findPreference(key); in setVisible()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeEnablerManager.java23 import android.support.v7.preference.Preference;
39 public class InputMethodAndSubtypeEnablerManager implements Preference.OnPreferenceChangeListener {
44 private final HashMap<String, List<Preference>> mInputMethodAndSubtypePrefsMap =
87 public boolean onPreferenceChange(final Preference pref, final Object newValue) { in onPreferenceChange()
146 final ArrayList<Preference> subtypePreferences = new ArrayList<>(); in addInputMethodSubtypePreferences()
155 final Preference subtypePref = new InputMethodSubtypePreference( in addInputMethodSubtypePreferences()
166 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
181 final List<Preference> subtypePrefs = mInputMethodAndSubtypePrefsMap.get(imiId); in isNoSubtypesExplicitlySelected()
182 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
197 final List<Preference> subtypePrefs = mInputMethodAndSubtypePrefsMap.get(imiId); in setAutoSelectionSubtypesEnabled()
[all …]
/frameworks/support/preference/api/
Dcurrent.txt10 public abstract class DialogPreference extends androidx.preference.Preference {
35 method public abstract androidx.preference.Preference findPreference(java.lang.CharSequence);
126 public class Preference implements java.lang.Comparable {
127 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
128 ctor public Preference(android.content.Context, android.util.AttributeSet, int);
129 ctor public Preference(android.content.Context, android.util.AttributeSet);
130 ctor public Preference(android.content.Context);
132 method public int compareTo(androidx.preference.Preference);
133 method protected androidx.preference.Preference findPreferenceInHierarchy(java.lang.String);
142 …method public androidx.preference.Preference.OnPreferenceChangeListener getOnPreferenceChangeListe…
[all …]
/frameworks/support/preference/api_legacy/
D27.0.0.txt10 public abstract class DialogPreference extends android.support.v7.preference.Preference {
35 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
91 public class Preference implements java.lang.Comparable {
92 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
93 ctor public Preference(android.content.Context, android.util.AttributeSet, int);
94 ctor public Preference(android.content.Context, android.util.AttributeSet);
95 ctor public Preference(android.content.Context);
97 method public int compareTo(android.support.v7.preference.Preference);
98 …method protected android.support.v7.preference.Preference findPreferenceInHierarchy(java.lang.Stri…
107 …method public android.support.v7.preference.Preference.OnPreferenceChangeListener getOnPreferenceC…
[all …]
D26.1.0.txt10 public abstract class DialogPreference extends android.support.v7.preference.Preference {
35 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
91 public class Preference implements java.lang.Comparable {
92 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
93 ctor public Preference(android.content.Context, android.util.AttributeSet, int);
94 ctor public Preference(android.content.Context, android.util.AttributeSet);
95 ctor public Preference(android.content.Context);
97 method public int compareTo(android.support.v7.preference.Preference);
98 …method protected android.support.v7.preference.Preference findPreferenceInHierarchy(java.lang.Stri…
107 …method public android.support.v7.preference.Preference.OnPreferenceChangeListener getOnPreferenceC…
[all …]
D26.0.0.txt10 public abstract class DialogPreference extends android.support.v7.preference.Preference {
35 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
91 public class Preference implements java.lang.Comparable {
92 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
93 ctor public Preference(android.content.Context, android.util.AttributeSet, int);
94 ctor public Preference(android.content.Context, android.util.AttributeSet);
95 ctor public Preference(android.content.Context);
97 method public int compareTo(android.support.v7.preference.Preference);
98 …method protected android.support.v7.preference.Preference findPreferenceInHierarchy(java.lang.Stri…
107 …method public android.support.v7.preference.Preference.OnPreferenceChangeListener getOnPreferenceC…
[all …]
Dcurrent.txt52 method public android.support.v7.preference.Preference findPreference(java.lang.CharSequence);
60 method public void onDisplayPreferenceDialog(android.support.v7.preference.Preference);
62 method public boolean onPreferenceTreeClick(android.support.v7.preference.Preference);
64 method public void scrollToPreference(android.support.v7.preference.Preference);
73 …ialog(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
77 …gment(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
108 public abstract class DialogPreference extends android.support.v7.preference.Preference {
133 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
189 public class Preference implements java.lang.Comparable {
190 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
[all …]
D28.0.0-alpha1.txt52 method public android.support.v7.preference.Preference findPreference(java.lang.CharSequence);
60 method public void onDisplayPreferenceDialog(android.support.v7.preference.Preference);
62 method public boolean onPreferenceTreeClick(android.support.v7.preference.Preference);
64 method public void scrollToPreference(android.support.v7.preference.Preference);
73 …ialog(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
77 …gment(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
108 public abstract class DialogPreference extends android.support.v7.preference.Preference {
133 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
189 public class Preference implements java.lang.Comparable {
190 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
[all …]
D27.1.0.txt52 method public android.support.v7.preference.Preference findPreference(java.lang.CharSequence);
60 method public void onDisplayPreferenceDialog(android.support.v7.preference.Preference);
62 method public boolean onPreferenceTreeClick(android.support.v7.preference.Preference);
64 method public void scrollToPreference(android.support.v7.preference.Preference);
73 …ialog(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
77 …gment(android.support.v14.preference.PreferenceFragment, android.support.v7.preference.Preference);
108 public abstract class DialogPreference extends android.support.v7.preference.Preference {
133 …method public abstract android.support.v7.preference.Preference findPreference(java.lang.CharSeque…
189 public class Preference implements java.lang.Comparable {
190 ctor public Preference(android.content.Context, android.util.AttributeSet, int, int);
[all …]
/frameworks/support/preference/src/androidTest/java/androidx/preference/
DPreferenceGroupInitialExpandedChildrenCountTest.java63 private List<Preference> mPreferenceList;
132 final List<Preference> preferenceList = new ArrayList<>(); in createPreferenceGroupAdapter_displayNestedPreferences()
179 final Preference expandButton = preferenceGroupAdapter.getItem(INITIAL_EXPANDED_COUNT); in createPreferenceGroupAdapter_setExpandButtonSummary()
199 final Preference expandButton = preferenceGroupAdapter.getItem(INITIAL_EXPANDED_COUNT); in createPreferenceGroupAdapter_expandButtonSummaryShouldListVisiblePreferencesOnly()
217 final Preference expandButton = preferenceGroupAdapter.getItem(INITIAL_EXPANDED_COUNT); in clickExpandButton_shouldShowAllPreferences()
243 final Preference expandButton = preferenceGroupAdapter.getItem(INITIAL_EXPANDED_COUNT); in onPreferenceVisibilityChange_shouldSyncPreferencesIfCollapsed()
282 Preference.BaseSavedState.EMPTY_STATE, Integer.MAX_VALUE); in restoreInstanceState_noChange_shouldDoNothing()
292 Preference.BaseSavedState.EMPTY_STATE, INITIAL_EXPANDED_COUNT); in restoreInstanceState_noChange_shouldDoNothing()
309 Preference.BaseSavedState.EMPTY_STATE, Integer.MAX_VALUE); in restoreHierarchyState_previouslyCollapsed_shouldRestoreToCollapsedState()
329 Preference.BaseSavedState.EMPTY_STATE, Integer.MAX_VALUE); in restoreHierarchyState_previouslyExpanded_shouldRestoreToExpandedState()
[all …]
/frameworks/support/preference/src/androidTest/java/androidx/preference/tests/
DSimplePreferenceComparisonCallbackTest.java32 import androidx.preference.Preference;
44 private Preference mPref1;
45 private Preference mPref2;
51 mPref1 = new Preference(context); in setup()
52 mPref2 = new Preference(context); in setup()
72 final Preference checkboxPreference = in testClassComparison()
295 final Preference dropdown1 = in testDropDownComparison()
297 final Preference dropdown2 = in testDropDownComparison()
DExpandablePreferenceTest.java27 import androidx.preference.Preference;
45 private Preference mPreference1;
46 private Preference mPreference2;
47 private Preference mPreference3;
57 mPreference1 = new Preference(mContext); in setUp()
60 mPreference2 = new Preference(mContext); in setUp()
63 mPreference3 = new Preference(mContext); in setUp()

123456