Home
last modified time | relevance | path

Searched refs:preference (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/core/java/android/preference/
DPreferenceGroup.java17 package android.preference;
96 public void addItemFromInflater(Preference preference) { in addItemFromInflater() argument
97 addPreference(preference); in addItemFromInflater()
125 public boolean addPreference(Preference preference) { in addPreference() argument
126 if (mPreferenceList.contains(preference)) { in addPreference()
131 if (preference.getOrder() == Preference.DEFAULT_ORDER) { in addPreference()
133 preference.setOrder(mCurrentPreferenceOrder++); in addPreference()
136 if (preference instanceof PreferenceGroup) { in addPreference()
139 ((PreferenceGroup)preference).setOrderingAsAdded(mOrderingAsAdded); in addPreference()
143 int insertionIndex = Collections.binarySearch(mPreferenceList, preference); in addPreference()
[all …]
DPreferenceGroupAdapter.java17 package android.preference;
24 import android.preference.Preference.OnPreferenceChangeInternalListener;
152 final Preference preference = group.getPreference(i); in flattenPreferenceGroup() local
154 preferences.add(preference); in flattenPreferenceGroup()
156 if (!mHasReturnedViewTypeCount && !preference.hasSpecifiedLayout()) { in flattenPreferenceGroup()
157 addPreferenceClassName(preference); in flattenPreferenceGroup()
160 if (preference instanceof PreferenceGroup) { in flattenPreferenceGroup()
161 final PreferenceGroup preferenceAsGroup = (PreferenceGroup) preference; in flattenPreferenceGroup()
167 preference.setOnPreferenceChangeInternalListener(this); in flattenPreferenceGroup()
176 private PreferenceLayout createPreferenceLayout(Preference preference, PreferenceLayout in) { in createPreferenceLayout() argument
[all …]
DPreferenceCategory.java17 package android.preference;
44 protected boolean onPrepareAddPreference(Preference preference) { in onPrepareAddPreference() argument
45 if (preference instanceof PreferenceCategory) { in onPrepareAddPreference()
50 return super.onPrepareAddPreference(preference); in onPrepareAddPreference()
DPreferenceFragment.java17 package android.preference;
286 Preference preference) { in onPreferenceTreeClick() argument
287 if (preference.getFragment() != null && in onPreferenceTreeClick()
290 this, preference); in onPreferenceTreeClick()
DSeekBarDialogPreference.java17 package android.preference;
21 import android.preference.DialogPreference;
DPreference.java17 package android.preference;
117 private int mLayoutResId = com.android.internal.R.layout.preference;
143 boolean onPreferenceChange(Preference preference, Object newValue); in onPreferenceChange() argument
157 boolean onPreferenceClick(Preference preference); in onPreferenceClick() argument
171 void onPreferenceChange(Preference preference); in onPreferenceChange() argument
178 void onPreferenceHierarchyChange(Preference preference); in onPreferenceHierarchyChange() argument
1143 Preference preference = findPreferenceInHierarchy(mDependencyKey); in registerDependency()
1144 if (preference != null) { in registerDependency()
1145 preference.registerDependent(this); in registerDependency()
DPreferenceScreen.java17 package android.preference;
201 final Preference preference = (Preference) item; in onItemClick()
202 preference.performClick(this); in onItemClick()
DOnDependencyChangeListener.java17 package android.preference;
DCheckBoxPreference.java17 package android.preference;
DPreferenceInflater.java17 package android.preference;
DSwitchPreference.java17 package android.preference;
DPreferenceManager.java17 package android.preference;
791 boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference); in onPreferenceTreeClick() argument
DPreferenceFrameLayout.java17 package android.preference;
DRingtonePreference.java17 package android.preference;
DEditTextPreference.java17 package android.preference;
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java22 import android.preference.Preference;
23 import android.preference.Preference.OnPreferenceClickListener;
24 import android.preference.PreferenceScreen;
62 public boolean onPreferenceClick(Preference preference) { in init()
DInputMethodSettingsActivity.java21 import android.preference.PreferenceActivity;
DInputMethodSettingsFragment.java22 import android.preference.PreferenceFragment;
/frameworks/base/core/tests/coretests/src/android/preference/
DListPreferenceTest.java17 package android.preference;
19 import android.preference.ListPreference;
/frameworks/base/core/java/com/android/internal/preference/
DYesNoPreference.java17 package com.android.internal.preference;
23 import android.preference.DialogPreference;
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DSettingsActivity.java20 import android.preference.PreferenceActivity;
/frameworks/base/core/tests/hosttests/src/android/content/pm/
DPackageManagerHostTests.java235 public void installAppAutoLoc(PackageManagerHostTestUtils.InstallLocPreference preference, in installAppAutoLoc() argument
245 mPMHostUtils.setDevicePreferredInstallLocation(preference); in installAppAutoLoc()
333 public void installAppInternalLoc(PackageManagerHostTestUtils.InstallLocPreference preference, in installAppInternalLoc() argument
343 mPMHostUtils.setDevicePreferredInstallLocation(preference); in installAppInternalLoc()
432 public void installAppExternalLoc(PackageManagerHostTestUtils.InstallLocPreference preference, in installAppExternalLoc() argument
442 mPMHostUtils.setDevicePreferredInstallLocation(preference); in installAppExternalLoc()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperSettingsActivity.java21 import android.preference.PreferenceActivity;
/frameworks/base/core/java/android/net/
DConnectivityManager.java348 public void setNetworkPreference(int preference) { in setNetworkPreference() argument
350 mService.setNetworkPreference(preference); in setNetworkPreference()
/frameworks/base/services/java/com/android/server/
DConnectivityService.java533 public void setNetworkPreference(int preference) { in setNetworkPreference() argument
536 mHandler.sendMessage(mHandler.obtainMessage(EVENT_SET_NETWORK_PREFERENCE, preference, 0)); in setNetworkPreference()
541 int preference; in getNetworkPreference() local
543 preference = mNetworkPreference; in getNetworkPreference()
545 return preference; in getNetworkPreference()
548 private void handleSetNetworkPreference(int preference) { in handleSetNetworkPreference() argument
549 if (ConnectivityManager.isNetworkTypeValid(preference) && in handleSetNetworkPreference()
550 mNetConfigs[preference] != null && in handleSetNetworkPreference()
551 mNetConfigs[preference].isDefault()) { in handleSetNetworkPreference()
552 if (mNetworkPreference != preference) { in handleSetNetworkPreference()
[all …]

123