/cts/tests/tests/preference2/src/android/preference2/cts/ |
PreferenceCategoryTest.java | 19 import android.preference.Preference; 38 Preference prefCat = mActivity.findPreference("pref-1");
|
FragmentPreferencesTest.java | 19 import android.preference.Preference; 20 import android.preference.PreferenceManager; 21 import android.preference.PreferenceScreen; 54 Preference pref = mPrefsFragment.findPreference("checkbox_preference");
|
PreferenceGroupTest.java | 21 import android.preference.CheckBoxPreference; 22 import android.preference.EditTextPreference; 23 import android.preference.Preference; 24 import android.preference.PreferenceGroup; 25 import android.preference.PreferenceManager; 26 import android.preference.PreferenceScreen; 57 Preference preference = mActivity.findPreference("pref-group"); local 58 assertNotNull(preference); 62 Preference preference = mPreferenceGroup.findPreference("checkbox_preference_group"); local 81 Preference preference = mPreferenceGroup.findPreference("checkbox_preference_group"); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
SettingsUtils.java | 19 import android.preference.Preference; 23 public static void updatePreferenceSummary(Preference preference, String summary, 28 preference.setSummary(summary); 31 preference.setSummary(defaultRes);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPreferenceGroup.java | 5 import android.preference.Preference; 6 import android.preference.PreferenceGroup; 14 * See: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/preference/PreferenceGroup.java;hb=HEAD 21 private ArrayList<Preference> preferenceList = new ArrayList<Preference>(); 24 public void addItemFromInflater(Preference preference) { 25 addPreference(preference); 29 public boolean addPreference(Preference preference) 72 final Preference preference = getPreference(i); local [all...] |
/packages/apps/Browser/src/com/android/browser/preferences/ |
DebugPreferencesFragment.java | 20 import android.preference.Preference; 21 import android.preference.Preference.OnPreferenceClickListener; 22 import android.preference.PreferenceFragment; 38 Preference e = findPreference(PreferenceKeys.PREF_RESET_PRELOGIN); 43 public boolean onPreferenceClick(Preference preference) { 44 if (PreferenceKeys.PREF_RESET_PRELOGIN.equals(preference.getKey())) {
|
PrivacySecurityPreferencesFragment.java | 25 import android.preference.Preference; 26 import android.preference.PreferenceFragment; 29 implements Preference.OnPreferenceChangeListener { 38 Preference e = findPreference(PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY); 48 public boolean onPreferenceChange(Preference pref, Object objValue) {
|
AccessibilityPreferencesFragment.java | 21 import android.preference.Preference; 22 import android.preference.PreferenceFragment; 32 implements Preference.OnPreferenceChangeListener { 46 Preference e = findPreference(PreferenceKeys.PREF_MIN_FONT_SIZE); 79 void updateMinFontSummary(Preference pref, int minFontSize) { 84 void updateTextZoomSummary(Preference pref, int textZoom) { 88 void updateDoubleTapZoomSummary(Preference pref, int doubleTapZoom) { 92 void updateInvertedContrastSummary(Preference pref, int contrast) { 97 public boolean onPreferenceChange(Preference pref, Object objValue) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
BrightnessPreference.java | 22 import android.preference.Preference; 25 public class BrightnessPreference extends Preference {
|
RestrictedSettingsFragment.java | 28 import android.preference.CheckBoxPreference; 29 import android.preference.Preference; 64 private final HashSet<Preference> mProtectedByRestictionsPrefs = new HashSet<Preference>(); 120 // time user uses a protected preference, they are prompted for pin again. 145 Preference pref = findPreference(prefKey); 172 private void ensurePin(Preference preference) { 178 if (preference != null) [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceGroup.java | 17 package android.preference; 33 * {@link Preference} objects. It is a base class for Preference objects that are 45 public abstract class PreferenceGroup extends Preference implements GenericInflater.Parent<Preference> { 47 * The container for child {@link Preference}s. This is sorted based on the 48 * ordering, please use {@link #addPreference(Preference)} instead of adding 51 private List<Preference> mPreferenceList; 62 mPreferenceList = new ArrayList<Preference>(); 76 * Whether to order the {@link Preference} children of this group as the 236 final Preference preference = getPreference(i); local [all...] |
PreferenceGroupAdapter.java | 17 package android.preference; 24 import android.preference.Preference.OnPreferenceChangeInternalListener; 32 * An adapter that returns the {@link Preference} contained in this group. 34 * adapters from {@link Preference#getAdapter()}. 37 * {@link Preference}'s adapter rule (the 39 * {@link Preference#getView(ViewGroup)} if a {@link Preference} has an 40 * adapter via {@link Preference#getAdapter()}). 59 * Maps a position into this adapter -> {@link Preference}. Thes 152 final Preference preference = group.getPreference(i); local 211 final Preference preference = this.getItem(position); local 257 final Preference preference = this.getItem(position); local [all...] |
PreferenceInflater.java | 17 package android.preference; 34 * The {@link PreferenceInflater} is used to inflate preference hierarchies from 41 class PreferenceInflater extends GenericInflater<Preference, PreferenceGroup> { 53 PreferenceInflater(GenericInflater<Preference, PreferenceGroup> original, PreferenceManager preferenceManager, Context newContext) { 59 public GenericInflater<Preference, PreferenceGroup> cloneInContext(Context newContext) { 65 setDefaultPackage("android.preference."); 69 protected boolean onCreateCustomFromTag(XmlPullParser parser, Preference parentPreference, 80 "Error parsing preference"); 97 "Error parsing preference");
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiAPITest.java | 27 import android.preference.Preference; 28 import android.preference.PreferenceActivity; 29 import android.preference.PreferenceScreen; 38 Preference.OnPreferenceClickListener { 44 // Preference/activity member variables 51 private Preference mWifiDisconnect; 52 private Preference mWifiDisableNetwork; 53 private Preference mWifiEnableNetwork; 76 mWifiDisconnect = (Preference) preferenceScreen.findPreference(KEY_DISCONNECT) [all...] |
/packages/apps/Settings/src/com/android/settings/location/ |
RecentLocationApps.java | 28 import android.preference.Preference; 29 import android.preference.PreferenceActivity; 56 implements Preference.OnPreferenceClickListener { 64 public boolean onPreferenceClick(Preference preference) { 74 private Preference createRecentLocationEntry( 78 Preference.OnPreferenceClickListener listener) { 79 Preference pref = new Preference(mActivity) [all...] |
LocationSettings.java | 28 import android.preference.Preference; 29 import android.preference.PreferenceActivity; 30 import android.preference.PreferenceCategory; 31 import android.preference.PreferenceGroup; 32 import android.preference.PreferenceScreen; 53 /** Key for preference screen "Mode" */ 55 /** Key for preference category "Recent location requests" */ 57 /** Key for preference category "Location services" */ 62 private Preference mLocationMode [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
PolicyListPreference.java | 20 import android.preference.Preference; 26 * Simple text preference allowing a large number of lines 28 public class PolicyListPreference extends Preference {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
ProviderPreference.java | 23 import android.preference.Preference; 29 * The preference ultimately calls AccountManager.addAccount() for the account type. 31 public class ProviderPreference extends Preference {
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
WifiP2pPersistentGroup.java | 21 import android.preference.Preference; 24 public class WifiP2pPersistentGroup extends Preference {
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
ScreensaverSettingsActivity.java | 20 import android.preference.CheckBoxPreference; 21 import android.preference.ListPreference; 22 import android.preference.Preference; 23 import android.preference.PreferenceActivity; 29 implements Preference.OnPreferenceChangeListener { 49 public boolean onPreferenceChange(Preference pref, Object newValue) { 65 Preference pref = findPreference(KEY_NIGHT_MODE);
|
/external/chromium/chrome/browser/sync/glue/ |
preference_model_associator.h | 35 : public PerDataTypeAssociatorInterface<PrefService::Preference, 42 // Returns the list of preference names that should be monitored for 49 // Create an association for a given preference. A sync node is created if 53 const PrefService::Preference* pref); 76 virtual const PrefService::Preference* GetChromeNodeFromSyncId(int64 sync_id); 82 // Returns the sync id for the given preference name, or sync_api::kInvalidId 83 // if the preference name is not associated to any sync id. 86 // Associates the given preference name with the given sync id. 87 virtual void Associate(const PrefService::Preference* node, int64 sync_id); 102 static Value* MergePreference(const PrefService::Preference& local_pref [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
PreferenceLoader.java | 20 import android.preference.Preference; 21 import android.preference.PreferenceGroup; 22 import android.preference.PreferenceScreen; 102 public Preference inflate(Context context, Preference parent) throws Exception { 103 Preference preference = create(context, (PreferenceGroup) parent); local 106 child.inflate(context, preference); 109 return preference; 113 Preference preference = constructPreference(context, parent); local [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastSettings.java | 22 import android.preference.ListPreference; 23 import android.preference.Preference; 24 import android.preference.PreferenceActivity; 25 import android.preference.PreferenceCategory; 26 import android.preference.PreferenceFragment; 27 import android.preference.PreferenceScreen; 36 // Preference key for whether to enable emergency notifications (default enabled). 51 // Preference category for emergency alert and CMAS settings. 54 // Preference category for ETWS related settings [all...] |
/external/chromium/chrome/browser/prefs/ |
pref_service.h | 39 // A helper class to store all the information associated with a preference. 40 class Preference { 43 // The type of the preference is determined by the type with which it is 47 Preference(const PrefService* service, 50 ~Preference() {} 52 // Returns the name of the Preference (i.e., the key, e.g., 56 // Returns the registered type of the preference. 59 // Returns the value of the Preference, falling back to the registered 63 // Returns true if the Preference is managed, i.e. set by an admin policy. 68 // Returns true if the Preference has a value set by an extension, even i [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryHistoryPreference.java | 22 import android.preference.Preference; 30 * Custom preference for displaying power consumption as a bar and an icon on the left for the 34 public class BatteryHistoryPreference extends Preference {
|