Searched refs:preference (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/preference/
H A DOnDependencyChangeListener.java17 package android.preference;
26 * Called when this preference has changed in a way that dependents should
H A DPreferenceGroup.java17 package android.preference;
103 public void addItemFromInflater(Preference preference) { argument
104 addPreference(preference);
109 * @return The number of preference children in this group.
127 * preference's order.
129 * @param preference The preference to add.
130 * @return Whether the preference is now in this group.
132 public boolean addPreference(Preference preference) { argument
133 if (mPreferenceList.contains(preference)) {
180 removePreference(Preference preference) argument
186 removePreferenceInt(Preference preference) argument
212 onPrepareAddPreference(Preference preference) argument
[all...]
H A DPreferenceCategory.java17 package android.preference;
51 protected boolean onPrepareAddPreference(Preference preference) { argument
52 if (preference instanceof PreferenceCategory) {
57 return super.onPrepareAddPreference(preference);
H A DPreferenceGroupAdapter.java17 package android.preference;
24 import android.preference.Preference.OnPreferenceChangeInternalListener;
152 final Preference preference = group.getPreference(i);
154 preferences.add(preference);
156 if (!mHasReturnedViewTypeCount && !preference.hasSpecifiedLayout()) {
157 addPreferenceClassName(preference);
160 if (preference instanceof PreferenceGroup) {
161 final PreferenceGroup preferenceAsGroup = (PreferenceGroup) preference;
167 preference.setOnPreferenceChangeInternalListener(this);
172 * Creates a string that includes the preference nam
176 createPreferenceLayout(Preference preference, PreferenceLayout in) argument
184 addPreferenceClassName(Preference preference) argument
237 onPreferenceChange(Preference preference) argument
241 onPreferenceHierarchyChange(Preference preference) argument
[all...]
H A DSeekBarDialogPreference.java17 package android.preference;
21 import android.preference.DialogPreference;
H A DPreferenceScreen.java17 package android.preference;
45 * <li> When it appears inside another preference hierarchy, it is shown and
51 * Instead, a separate screen will be shown when this preference is clicked.
214 final Preference preference = (Preference) item;
215 preference.performClick(this);
H A DCheckBoxPreference.java17 package android.preference;
29 * This preference will store a boolean into the SharedPreferences.
H A DPreferenceFragment.java17 package android.preference;
38 * preference hierarchy in this fragment will use, call
47 * A {@link PreferenceScreen} object should be at the top of the preference
50 * {@link PreferenceScreen} should be shown on another screen. The preference
51 * framework handles showing these other screens from the preference hierarchy.
53 * The preference hierarchy can be formed in multiple ways:
68 * resource. These XML resources will be inflated into a single preference
75 * preference in the current hierarchy, see
88 * <p>The following sample code shows a simple preference fragment that is
97 * {@sample development/samples/ApiDemos/src/com/example/android/apis/preference/FragmentPreference
292 onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) argument
[all...]
H A DPreference.java17 package android.preference;
49 * store/retrieve the preference data.
51 * When specifying a preference hierarchy in XML, each element can point to a
124 private int mLayoutResId = com.android.internal.R.layout.preference;
146 * @param preference The changed Preference.
150 boolean onPreferenceChange(Preference preference, Object newValue); argument
161 * @param preference The Preference that was clicked.
164 boolean onPreferenceClick(Preference preference); argument
176 * @param preference This preference
178 onPreferenceChange(Preference preference) argument
185 onPreferenceHierarchyChange(Preference preference) argument
[all...]
H A DPreferenceInflater.java17 package android.preference;
34 * The {@link PreferenceInflater} is used to inflate preference hierarchies from
65 setDefaultPackage("android.preference.");
80 "Error parsing preference");
97 "Error parsing preference");
H A DSwitchPreference.java17 package android.preference;
30 * This preference will store a boolean into the SharedPreferences.
61 * @param context The Context that will style this preference
84 * @param context The Context that will style this preference
94 * @param context The Context that will style this preference
H A DEditTextPreference.java17 package android.preference;
41 * This preference will store a string into the SharedPreferences.
62 * The preference framework and view framework both have an 'enabled'
64 * the preference framework, but it was also given to the view framework.
99 * @return The current preference value.
122 * Adds the EditText widget of this preference to the dialog's view.
H A DPreferenceFrameLayout.java17 package android.preference;
H A DRingtonePreference.java17 package android.preference;
H A DTwoStatePreference.java17 package android.preference;
163 * Returns whether dependents are disabled when this preference is on ({@code true})
164 * or when this preference is off ({@code false}).
166 * @return Whether dependents are disabled when this preference is on ({@code true})
167 * or when this preference is off ({@code false}).
174 * Sets whether dependents are disabled when this preference is on ({@code true})
175 * or when this preference is off ({@code false}).
177 * @param disableDependentsState The preference state that should disable dependents.
/frameworks/testing/uiautomator/utils/DummyIME/src/com/android/testing/dummyime/
H A DImePreferences.java19 import android.preference.PreferenceActivity;
22 * Dummy IME preference activity
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
H A DSettingsActivity.java20 import android.preference.PreferenceActivity;
23 * Settings preference screen for location tracker
/frameworks/base/core/tests/coretests/src/android/preference/
H A DListPreferenceTest.java17 package android.preference;
19 import android.preference.ListPreference;
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperSettingsActivity.java21 import android.preference.PreferenceActivity;
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DSettingsActivity.java20 import android.preference.PreferenceActivity;
24 * This preference activity has in its manifest declaration an intent filter for
44 // Registers a callback to be invoked whenever a user changes a preference.
59 // Fires when the user changes a preference.
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
H A DInputMethodSettingsActivity.java21 import android.preference.PreferenceActivity;
24 * This is a helper class for an IME's settings preference activity. It's recommended for every
25 * IME to have its own settings preference activity which inherits this class.
H A DInputMethodSettingsImpl.java22 import android.preference.Preference;
23 import android.preference.Preference.OnPreferenceClickListener;
24 import android.preference.PreferenceScreen;
62 public boolean onPreferenceClick(Preference preference) {
H A DInputMethodSettingsFragment.java22 import android.preference.PreferenceFragment;
25 * This is a helper class for an IME's settings preference fragment. It's recommended for every
26 * IME to have its own settings preference fragment which inherits this class.
/frameworks/base/core/java/com/android/internal/preference/
H A DYesNoPreference.java17 package com.android.internal.preference;
23 import android.preference.DialogPreference;
27 * The {@link YesNoPreference} is a preference to show a dialog with Yes and No
30 * This preference will store a boolean into the SharedPreferences.
57 * Sets the value of this preference, and saves it to the persistent store
60 * @param value The value of the preference.
71 * Gets the value of this preference.
73 * @return The value of the preference.
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java400 public void setNetworkPreference(int preference) { argument
402 mService.setNetworkPreference(preference);

Completed in 276 milliseconds

12