Home
last modified time | relevance | path

Searched refs:cachedDevice (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdater.java149 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
150 update(cachedDevice); in onDeviceAdded()
154 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
158 removePreference(cachedDevice); in onDeviceDeleted()
162 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
163 update(cachedDevice); in onDeviceBondStateChanged()
167 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, in onProfileConnectionStateChanged() argument
170 Log.d(TAG, "onProfileConnectionStateChanged() device: " + cachedDevice.getName() in onProfileConnectionStateChanged()
173 update(cachedDevice); in onProfileConnectionStateChanged()
177 public void onAclConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onAclConnectionStateChanged() argument
[all …]
DDeviceListPreferenceFragment.java141 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
142 onDeviceAdded(cachedDevice); in addCachedDevices()
169 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
170 if (mDevicePreferenceMap.get(cachedDevice) != null) { in onDeviceAdded()
177 if (mFilter.matches(cachedDevice.getDevice())) { in onDeviceAdded()
178 createDevicePreference(cachedDevice); in onDeviceAdded()
182 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
189 String key = cachedDevice.getDevice().getAddress(); in createDevicePreference()
193 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in createDevicePreference()
202 mDevicePreferenceMap.put(cachedDevice, preference); in createDevicePreference()
[all …]
DConnectedBluetoothDeviceUpdater.java52 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
67 if (isDeviceConnected(cachedDevice)) { in isFilterMatched()
73 if (cachedDevice.isConnectedHearingAidDevice()) { in isFilterMatched()
85 isFilterMatched = !cachedDevice.isConnectedA2dpDevice(); in isFilterMatched()
88 isFilterMatched = !cachedDevice.isConnectedHfpDevice(); in isFilterMatched()
93 cachedDevice.getName() + ", isFilterMatched : " + isFilterMatched); in isFilterMatched()
100 protected void addPreference(CachedBluetoothDevice cachedDevice) { in addPreference() argument
101 super.addPreference(cachedDevice); in addPreference()
102 final BluetoothDevice device = cachedDevice.getDevice(); in addPreference()
DAvailableMediaBluetoothDeviceUpdater.java52 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
67 if (isDeviceConnected(cachedDevice)) { in isFilterMatched()
73 if (cachedDevice.isConnectedHearingAidDevice()) { in isFilterMatched()
84 isFilterMatched = cachedDevice.isConnectedA2dpDevice(); in isFilterMatched()
87 isFilterMatched = cachedDevice.isConnectedHfpDevice(); in isFilterMatched()
92 cachedDevice.getName() + ", isFilterMatched : " + isFilterMatched); in isFilterMatched()
DSavedBluetoothDeviceUpdater.java42 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
43 final BluetoothDevice device = cachedDevice.getDevice(); in isFilterMatched()
45 Log.d(TAG, "isFilterMatched() device name : " + cachedDevice.getName() + in isFilterMatched()
47 + cachedDevice.isConnected()); in isFilterMatched()
DBluetoothPairingDetail.java177 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
183 if (mSelectedDevice != null && cachedDevice != null) { in onDeviceBondStateChanged()
184 BluetoothDevice device = cachedDevice.getDevice(); in onDeviceBondStateChanged()
194 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
196 BluetoothDevice device = cachedDevice.getDevice(); in onConnectionStateChanged()
DBluetoothPermissionRequest.java232 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice() local
233 if (cachedDevice == null) { in checkUserChoice()
234 cachedDevice = cachedDeviceManager.addDevice(mDevice); in checkUserChoice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceUpdater.java139 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
140 update(cachedDevice); in onDeviceAdded()
144 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
148 removePreference(cachedDevice); in onDeviceDeleted()
152 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
153 update(cachedDevice); in onDeviceBondStateChanged()
157 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, in onProfileConnectionStateChanged() argument
160 Log.d(TAG, "onProfileConnectionStateChanged() device: " + cachedDevice.getName() in onProfileConnectionStateChanged()
163 update(cachedDevice); in onProfileConnectionStateChanged()
167 public void onAclConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onAclConnectionStateChanged() argument
[all …]
DDeviceListPreferenceFragment.java141 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
142 onDeviceAdded(cachedDevice); in addCachedDevices()
169 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
170 if (mDevicePreferenceMap.get(cachedDevice) != null) { in onDeviceAdded()
177 if (mFilter.matches(cachedDevice.getDevice())) { in onDeviceAdded()
178 createDevicePreference(cachedDevice); in onDeviceAdded()
182 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
189 String key = cachedDevice.getDevice().getAddress(); in createDevicePreference()
193 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in createDevicePreference()
202 mDevicePreferenceMap.put(cachedDevice, preference); in createDevicePreference()
[all …]
DConnectedBluetoothDeviceUpdater.java52 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
67 if (isDeviceConnected(cachedDevice)) { in isFilterMatched()
73 if (cachedDevice.isConnectedHearingAidDevice()) { in isFilterMatched()
85 isFilterMatched = !cachedDevice.isConnectedA2dpDevice(); in isFilterMatched()
88 isFilterMatched = !cachedDevice.isConnectedHfpDevice(); in isFilterMatched()
93 cachedDevice.getName() + ", isFilterMatched : " + isFilterMatched); in isFilterMatched()
100 protected void addPreference(CachedBluetoothDevice cachedDevice) { in addPreference() argument
101 super.addPreference(cachedDevice); in addPreference()
102 final BluetoothDevice device = cachedDevice.getDevice(); in addPreference()
DAvailableMediaBluetoothDeviceUpdater.java52 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
67 if (isDeviceConnected(cachedDevice)) { in isFilterMatched()
73 if (cachedDevice.isConnectedHearingAidDevice()) { in isFilterMatched()
84 isFilterMatched = cachedDevice.isConnectedA2dpDevice(); in isFilterMatched()
87 isFilterMatched = cachedDevice.isConnectedHfpDevice(); in isFilterMatched()
92 cachedDevice.getName() + ", isFilterMatched : " + isFilterMatched); in isFilterMatched()
DSavedBluetoothDeviceUpdater.java42 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched() argument
43 final BluetoothDevice device = cachedDevice.getDevice(); in isFilterMatched()
45 Log.d(TAG, "isFilterMatched() device name : " + cachedDevice.getName() + in isFilterMatched()
47 + cachedDevice.isConnected()); in isFilterMatched()
DBluetoothPairingDetail.java177 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
183 if (mSelectedDevice != null && cachedDevice != null) { in onDeviceBondStateChanged()
184 BluetoothDevice device = cachedDevice.getDevice(); in onDeviceBondStateChanged()
194 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
196 BluetoothDevice device = cachedDevice.getDevice(); in onConnectionStateChanged()
DBluetoothPermissionRequest.java232 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice); in checkUserChoice() local
233 if (cachedDevice == null) { in checkUserChoice()
234 cachedDevice = cachedDeviceManager.addDevice(mDevice); in checkUserChoice()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceController.java82 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
83 return new BluetoothDevicePreference(getContext(), cachedDevice); in createDevicePreference()
91 protected abstract void onDeviceClicked(CachedBluetoothDevice cachedDevice); in onDeviceClicked() argument
113 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in updateState()
114 if (getDeviceFilter().matches(cachedDevice.getDevice())) { in updateState()
115 addPreference(cachedDevice); in updateState()
117 removePreference(cachedDevice); in updateState()
136 public final void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
141 public final void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
145 private void addPreference(CachedBluetoothDevice cachedDevice) { in addPreference() argument
[all …]
DBluetoothDevicePickerPreferenceController.java91 protected void onDeviceClickedInternal(CachedBluetoothDevice cachedDevice) { in onDeviceClickedInternal() argument
92 mSelectedDevice = cachedDevice; in onDeviceClickedInternal()
93 BluetoothUtils.persistSelectedDeviceInPicker(getContext(), cachedDevice.getAddress()); in onDeviceClickedInternal()
95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
96 sendDevicePickedIntent(cachedDevice.getDevice()); in onDeviceClickedInternal()
101 if (cachedDevice.startPairing()) { in onDeviceClickedInternal()
104 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
126 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
127 super.onDeviceBondStateChanged(cachedDevice, bondState); in onDeviceBondStateChanged()
128 if (bondState == BluetoothDevice.BOND_BONDED && cachedDevice.equals(mSelectedDevice)) { in onDeviceBondStateChanged()
DBluetoothBondedDevicesPreferenceController.java48 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() argument
49 BluetoothDevicePreference pref = super.createDevicePreference(cachedDevice); in createDevicePreference()
54 BluetoothDeviceDetailsFragment.newInstance(cachedDevice))); in createDevicePreference()
61 protected void onDeviceClicked(CachedBluetoothDevice cachedDevice) { in onDeviceClicked() argument
62 if (cachedDevice.isConnected()) { in onDeviceClicked()
64 BluetoothDisconnectConfirmDialogFragment.newInstance(cachedDevice), in onDeviceClicked()
67 cachedDevice.connect(/* connectAllProfiles= */ true); in onDeviceClicked()
72 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
DBluetoothScanningDevicesGroupPreferenceController.java59 protected final void onDeviceClicked(CachedBluetoothDevice cachedDevice) { in onDeviceClicked() argument
60 LOG.d("onDeviceClicked: " + cachedDevice); in onDeviceClicked()
62 onDeviceClickedInternal(cachedDevice); in onDeviceClicked()
70 protected abstract void onDeviceClickedInternal(CachedBluetoothDevice cachedDevice); in onDeviceClickedInternal() argument
135 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
136 LOG.d("onDeviceBondStateChanged device: " + cachedDevice + " state: " + bondState); in onDeviceBondStateChanged()
DBluetoothUnbondedDevicesPreferenceController.java55 protected void onDeviceClickedInternal(CachedBluetoothDevice cachedDevice) { in onDeviceClickedInternal() argument
56 if (cachedDevice.startPairing()) { in onDeviceClickedInternal()
60 cachedDevice.getDevice().setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onDeviceClickedInternal()
61 cachedDevice.getDevice().setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in onDeviceClickedInternal()
63 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
DBluetoothDeviceNamePreferenceController.java54 CachedBluetoothDevice cachedDevice = getCachedDevice(); in updateState() local
58 cachedDevice); in updateState()
62 String summaryText = cachedDevice.getCarConnectionSummary(); in updateState()
68 getBluetoothManager().getCachedDeviceManager().getSubDeviceSummary(cachedDevice); in updateState()
72 preference.setTitle(cachedDevice.getName()); in updateState()
DBluetoothPreferenceController.java108 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() argument
112 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() argument
116 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged() argument
120 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
DBluetoothDeviceProfilePreference.java39 CachedBluetoothDevice cachedDevice) { in BluetoothDeviceProfilePreference() argument
42 mCachedDevice = cachedDevice; in BluetoothDeviceProfilePreference()
44 setTitle(profile.getNameResource(cachedDevice.getDevice())); in BluetoothDeviceProfilePreference()
DBluetoothDevicePreference.java48 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference() argument
50 mCachedDevice = cachedDevice; in BluetoothDevicePreference()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothUpdateWorker.java63 public void onAclConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onAclConnectionStateChanged() argument
78 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
83 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, in onProfileConnectionStateChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBluetoothUpdateWorker.java63 public void onAclConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onAclConnectionStateChanged() argument
78 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged() argument
83 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, in onProfileConnectionStateChanged() argument

12