Searched refs:preference (Results 1 - 25 of 41) 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;
96 public void addItemFromInflater(Preference preference) { argument
97 addPreference(preference);
102 * @return The number of preference children in this group.
120 * preference's order.
122 * @param preference The preference to add.
123 * @return Whether the preference is now in this group.
125 public boolean addPreference(Preference preference) { argument
126 if (mPreferenceList.contains(preference)) {
173 removePreference(Preference preference) argument
179 removePreferenceInt(Preference preference) argument
205 onPrepareAddPreference(Preference preference) argument
[all...]
H A DPreferenceCategory.java17 package android.preference;
44 protected boolean onPrepareAddPreference(Preference preference) { argument
45 if (preference instanceof PreferenceCategory) {
50 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;
44 * <li> When it appears inside another preference hierarchy, it is shown and
50 * Instead, a separate screen will be shown when this preference is clicked.
201 final Preference preference = (Preference) item;
202 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
81 * <p>The following sample code shows a simple preference fragment that is
90 * {@sample development/samples/ApiDemos/src/com/example/android/apis/preference/FragmentPreference
285 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
117 private int mLayoutResId = com.android.internal.R.layout.preference;
139 * @param preference The changed Preference.
143 boolean onPreferenceChange(Preference preference, Object newValue); argument
154 * @param preference The Preference that was clicked.
157 boolean onPreferenceClick(Preference preference); argument
169 * @param preference This preference
171 onPreferenceChange(Preference preference) argument
178 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;
157 * Returns whether dependents are disabled when this preference is on ({@code true})
158 * or when this preference is off ({@code false}).
160 * @return Whether dependents are disabled when this preference is on ({@code true})
161 * or when this preference is off ({@code false}).
168 * Sets whether dependents are disabled when this preference is on ({@code true})
169 * or when this preference is off ({@code false}).
171 * @param disableDependentsState The preference state that should disable dependents.
H A DPreferenceManager.java17 package android.preference;
51 * The Activity meta-data key for its XML preference hierarchy.
53 public static final String METADATA_KEY_PREFERENCES = "android.preference";
114 * The {@link PreferenceScreen} at the root of the preference hierarchy.
150 * an XML preference hierarchy.
153 * should be used ANY time a preference will be displayed, since some preference
167 * Sets the owning preference fragment
174 * Returns the owning preference fragment, if any.
194 * Inflates a preference hierarch
791 onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) argument
[all...]
/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/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/tests/hosttests/src/android/content/pm/
H A DPackageManagerHostTests.java225 * @param preference the device's preferred location of where to install apps
235 public void installAppAutoLoc(PackageManagerHostTestUtils.InstallLocPreference preference, argument
245 mPMHostUtils.setDevicePreferredInstallLocation(preference);
258 * will install the app to the device when device's preference is auto.
278 * will install the app to the device when device's preference is internal.
299 * will install the app to the SD card when device's preference is external.
323 * @param preference the device's preferred location of where to install apps
333 public void installAppInternalLoc(PackageManagerHostTestUtils.InstallLocPreference preference, argument
343 mPMHostUtils.setDevicePreferredInstallLocation(preference);
356 * will install the app to the device when device's preference i
432 installAppExternalLoc(PackageManagerHostTestUtils.InstallLocPreference preference, PackageManagerHostTestUtils.InstallLocation expectedLocation) argument
[all...]
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java348 public void setNetworkPreference(int preference) { argument
350 mService.setNetworkPreference(preference);

Completed in 358 milliseconds

12