Lines Matching refs:preference
22 import android.preference.Preference;
23 import android.preference.PreferenceCategory;
24 import android.preference.PreferenceGroup;
25 import android.preference.PreferenceScreen;
135 Preference preference) {
136 if (KEY_BT_SCAN.equals(preference.getKey())) {
141 if (preference instanceof BluetoothDevicePreference) {
142 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference;
149 return super.onPreferenceTreeClick(preferenceScreen, preference);
171 Log.w(TAG, "Trying to create a device preference before the list group/category "
176 BluetoothDevicePreference preference = new BluetoothDevicePreference(
179 initDevicePreference(preference);
180 mDeviceListGroup.addPreference(preference);
181 mDevicePreferenceMap.put(cachedDevice, preference);
186 * @param preference the newly added preference
188 void initDevicePreference(BluetoothDevicePreference preference) {
193 BluetoothDevicePreference preference = mDevicePreferenceMap.remove(cachedDevice);
194 if (preference != null) {
195 mDeviceListGroup.removePreference(preference);