Home
last modified time | relevance | path

Searched refs:subDevice (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java107 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in findDevice() local
108 if (subDevice != null && subDevice.getDevice().equals(device)) { in findDevice()
109 return subDevice; in findDevice()
171 CachedBluetoothDevice subDevice = device.getSubDevice(); in getSubDeviceSummary() local
172 if (subDevice != null && subDevice.isConnected()) { in getSubDeviceSummary()
173 return subDevice.getConnectionSummary(); in getSubDeviceSummary()
214 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in isSubDevice() local
215 if (subDevice != null && subDevice.getDevice().equals(device)) { in isSubDevice()
293 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in clearNonBondedSubDevices() local
294 if (subDevice != null in clearNonBondedSubDevices()
[all …]
DHearingAidDeviceManager.java174 CachedBluetoothDevice subDevice; in onHiSyncIdChanged() local
185 subDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()
189 subDevice = cachedDevice; in onHiSyncIdChanged()
192 mainDevice.setSubDevice(subDevice); in onHiSyncIdChanged()
194 log("onHiSyncIdChanged: removed from UI device =" + subDevice in onHiSyncIdChanged()
196 mBtManager.getEventManager().dispatchDeviceRemoved(subDevice); in onHiSyncIdChanged()
384 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in findMainDevice() local
385 if (subDevice != null && subDevice.equals(device)) { in findMainDevice()
DHearingAidAudioRoutingHelper.java131 final CachedBluetoothDevice subDevice = device.getSubDevice(); in matchAddress() local
135 || (subDevice != null && subDevice.getAddress().equals(audioDeviceAddress)) in matchAddress()
DBluetoothEventManager.java263 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in dispatchActiveDeviceChanged() local
266 && ((subDevice != null && subDevice.equals(targetDevice)) in dispatchActiveDeviceChanged()
DCachedBluetoothDevice.java1893 public void setSubDevice(CachedBluetoothDevice subDevice) { in setSubDevice() argument
1894 mSubDevice = subDevice; in setSubDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesPresetsController.java261 final CachedBluetoothDevice subDevice = mActiveHearingDevice.getSubDevice(); in selectPresetIndependently() local
262 if (subDevice != null) { in selectPresetIndependently()
264 Log.d(TAG, "selectPreset for subDevice, device: " + subDevice); in selectPresetIndependently()
266 mHapClientProfile.selectPreset(subDevice.getDevice(), presetIndex); in selectPresetIndependently()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java601 CachedBluetoothDevice subDevice = new CachedBluetoothDevice(mContext, mLocalProfileManager, in dispatchActiveDeviceChanged_activeFromSubDevice_mainCachedDeviceActive() local
603 mCachedDevice1.setSubDevice(subDevice); in dispatchActiveDeviceChanged_activeFromSubDevice_mainCachedDeviceActive()
610 mBluetoothEventManager.dispatchActiveDeviceChanged(subDevice, BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_activeFromSubDevice_mainCachedDeviceActive()