Searched refs:cachedDevice (Results 1 - 16 of 16) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DConnectedBluetoothDeviceUpdater.java62 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, argument
66 cachedDevice.getName() + ", state: " + state + ", bluetoothProfile: "
70 if (isFilterMatched(cachedDevice)) {
71 addPreference(cachedDevice);
73 removePreference(cachedDevice);
76 removePreference(cachedDevice);
81 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { argument
96 if (isDeviceConnected(cachedDevice)) {
109 isFilterMatched = !cachedDevice.isA2dpDevice();
112 isFilterMatched = !cachedDevice
124 addPreference(CachedBluetoothDevice cachedDevice) argument
[all...]
H A DAvailableMediaBluetoothDeviceUpdater.java62 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, argument
66 cachedDevice.getName() + ", state: " + state + ", bluetoothProfile: "
70 if (isFilterMatched(cachedDevice)) {
71 addPreference(cachedDevice);
73 removePreference(cachedDevice);
76 removePreference(cachedDevice);
81 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { argument
96 if (isDeviceConnected(cachedDevice)) {
108 isFilterMatched = cachedDevice.isA2dpDevice();
111 isFilterMatched = cachedDevice
[all...]
H A DSavedBluetoothDeviceUpdater.java50 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, argument
53 removePreference(cachedDevice);
55 addPreference(cachedDevice);
60 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { argument
61 final BluetoothDevice device = cachedDevice.getDevice();
H A DBluetoothDeviceUpdater.java123 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
124 update(cachedDevice);
128 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
132 removePreference(cachedDevice);
136 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
137 update(cachedDevice);
141 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) {} argument
152 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, argument
193 * Add the {@link Preference} that represents the {@code cachedDevice}
195 protected void addPreference(CachedBluetoothDevice cachedDevice) { argument
214 removePreference(CachedBluetoothDevice cachedDevice) argument
248 isDeviceConnected(CachedBluetoothDevice cachedDevice) argument
[all...]
H A DDeviceListPreferenceFragment.java140 for (CachedBluetoothDevice cachedDevice : cachedDevices) {
141 onDeviceAdded(cachedDevice);
168 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
169 if (mDevicePreferenceMap.get(cachedDevice) != null) {
176 if (mFilter.matches(cachedDevice.getDevice())) {
177 createDevicePreference(cachedDevice);
181 void createDevicePreference(CachedBluetoothDevice cachedDevice) { argument
188 String key = cachedDevice.getDevice().getAddress();
192 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice,
203 mDevicePreferenceMap.put(cachedDevice, preferenc
220 onDeviceDeleted(CachedBluetoothDevice cachedDevice) argument
273 onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) argument
[all...]
H A DBluetoothSummaryUpdater.java59 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { argument
68 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
72 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
76 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
H A DBluetoothPairingDetail.java172 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
178 if (mSelectedDevice != null && cachedDevice != null) {
179 BluetoothDevice device = cachedDevice.getDevice();
H A DBluetoothPermissionRequest.java232 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
233 if (cachedDevice == null) {
234 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(),
241 int phonebookPermission = cachedDevice.getPhonebookPermissionChoice();
255 int messagePermission = cachedDevice.getMessagePermissionChoice();
269 int simPermission = cachedDevice.getSimPermissionChoice();
H A DDevicePickerFragment.java139 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, argument
141 BluetoothDevice device = cachedDevice.getDevice();
H A DBluetoothPermissionActivity.java207 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
208 if (cachedDevice == null) {
209 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(),
213 always = cachedDevice.checkAndIncreaseMessageRejectionCount();
H A DBluetoothDevicePreference.java63 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, argument
76 mCachedDevice = cachedDevice;
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDeviceListAdapter.java259 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
260 if (addDevice(cachedDevice)) {
269 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
271 if (mBondedDevices.remove(cachedDevice)) {
272 mBondedDevicesSorted.remove(cachedDevice);
274 mAvailableDevices.remove(cachedDevice);
314 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
315 onDeviceDeleted(cachedDevice);
316 onDeviceAdded(cachedDevice);
324 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, in argument
358 addDevice(CachedBluetoothDevice cachedDevice) argument
[all...]
H A DBluetoothSettingsFragment.java204 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
209 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
214 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
219 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { argument
/packages/apps/Settings/src/com/android/settings/connecteddevice/
H A DAvailableMediaDeviceGroupController.java132 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
137 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
142 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
147 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { argument
/packages/apps/Settings/src/com/android/settings/sound/
H A DAudioSwitchPreferenceController.java196 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { argument
210 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, argument
231 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
236 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
240 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DDeviceListPreferenceFragmentTest.java184 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {} argument

Completed in 1745 milliseconds