Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 6 of 6) sorted by relevance

/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/pairing/
DBluetoothScannerFragment.java193 Preference pref = mAvailableCategory.findPreference(device.getAddress()); in updatePairingStatus() local
196 if (pref != null) { in updatePairingStatus()
200 pref.setSummary(R.string.settings_bt_pair_status_error); in updatePairingStatus()
207 pref.setSummary(R.string.settings_bt_pair_status_connecting); in updatePairingStatus()
210 pref.setSummary(R.string.settings_bt_pair_status_done); in updatePairingStatus()
216 pref.setSummary(R.string.settings_bt_pair_status_cancelled); in updatePairingStatus()
242 Preference pref = mAvailableCategory.findPreference(device.getAddress()); in addUpdateDevice() local
243 if (pref == null) { in addUpdateDevice()
244 pref = createBluetoothDevicePreference(device); in addUpdateDevice()
245 pref.setOnPreferenceClickListener(new PairingClickListener(device)); in addUpdateDevice()
[all …]
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/settings/
DConnectedDevicesPreferenceFragment.java163 Preference pref = category.getPreference(i); in getBtDevices() local
164 if (NON_BT_PREFERENCES.contains(pref.getKey())) { in getBtDevices()
167 oldDevices.add(pref.getKey()); in getBtDevices()
173 BluetoothDevice device, Preference pref) { in updateBtDevicePreference() argument
175 pref.setKey(device.getAddress()); in updateBtDevicePreference()
176 pref.setTitle(BluetoothUtils.getName(device)); in updateBtDevicePreference()
178 pref.setSummary(R.string.settings_bt_update_available); in updateBtDevicePreference()
182 pref.setSummary(R.string.settings_bt_battery_low_warning); in updateBtDevicePreference()
184 pref.setSummary(context.getString(R.string.settings_remote_battery_level, in updateBtDevicePreference()
188 pref.setSummary(null); in updateBtDevicePreference()
[all …]
DBluetoothDevicePreferenceFragment.java125 Preference pref = mPrefGroup.findPreference(KEY_UPDATE); in updateRemoteUpdate() local
126 if (pref == null) { in updateRemoteUpdate()
127 pref = new Preference(preferenceContext); in updateRemoteUpdate()
128 pref.setKey(KEY_UPDATE); in updateRemoteUpdate()
129 pref.setOrder(ORDER_UPDATE); in updateRemoteUpdate()
132 pref.getExtras(), in updateRemoteUpdate()
141 pref.setFragment(ResponseFragment.class.getCanonicalName()); in updateRemoteUpdate()
142 mPrefGroup.addPreference(pref); in updateRemoteUpdate()
146 pref.setEnabled(true); in updateRemoteUpdate()
147 pref.setSelectable(true); in updateRemoteUpdate()
[all …]
DConnectedDevicesSliceProvider.java768 PreferenceSliceBuilder.RowBuilder pref = new PreferenceSliceBuilder.RowBuilder(); in createBtDeviceSlicePreference() local
769 pref.setKey(device.getAddress()); in createBtDeviceSlicePreference()
770 updateBtDevicePreference(context, provider, device, pref); in createBtDeviceSlicePreference()
777 pref.setTargetSliceUri(targetSliceUri.toString()); in createBtDeviceSlicePreference()
782 pref.setPendingIntent(PendingIntent.getActivity(context, 0, intent, FLAG_IMMUTABLE)); in createBtDeviceSlicePreference()
784 return pref; in createBtDeviceSlicePreference()
788 BluetoothDevice device, PreferenceSliceBuilder.RowBuilder pref) { in updateBtDevicePreference() argument
790 pref.setKey(device.getAddress()); in updateBtDevicePreference()
791 pref.setTitle(BluetoothUtils.getName(device)); in updateBtDevicePreference()
793 pref.setSubtitle(context.getString(R.string.settings_bt_update_available)); in updateBtDevicePreference()
[all …]
DSettingsFragment.java51 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
53 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras()); in onPreferenceStartFragment()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c1735 int *pref = (int *)data; local
1741 asprintf(&cmd, "AT+WRMP=%d", *pref);