Home
last modified time | relevance | path

Searched refs:mainDevice (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManager.java175 CachedBluetoothDevice mainDevice; in onHiSyncIdChanged() local
183 mainDevice = cachedDevice; in onHiSyncIdChanged()
187 mainDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()
192 mainDevice.setSubDevice(subDevice); in onHiSyncIdChanged()
209 CachedBluetoothDevice mainDevice = findMainDevice(cachedDevice); in onProfileConnectionStateChangedIfProcessed() local
210 if (mainDevice != null) { in onProfileConnectionStateChangedIfProcessed()
211 if (mainDevice.isConnected()) { in onProfileConnectionStateChangedIfProcessed()
214 mainDevice.refresh(); in onProfileConnectionStateChangedIfProcessed()
218 switchDeviceContent(mainDevice, cachedDevice); in onProfileConnectionStateChangedIfProcessed()
227 mainDevice = findMainDevice(cachedDevice); in onProfileConnectionStateChangedIfProcessed()
[all …]
DCachedBluetoothDeviceManager.java398 CachedBluetoothDevice mainDevice = mCsipDeviceManager.findMainDevice(device); in onDeviceUnpaired() local
408 } else if (mainDevice != null) { in onDeviceUnpaired()
410 mainDevice.unpair(); in onDeviceUnpaired()
412 mainDevice = mHearingAidDeviceManager.findMainDevice(device); in onDeviceUnpaired()
418 } else if (mainDevice != null) { in onDeviceUnpaired()
420 mainDevice.unpair(); in onDeviceUnpaired()
421 mainDevice.setSubDevice(null); in onDeviceUnpaired()
517 CachedBluetoothDevice mainDevice = mCsipDeviceManager.findMainDevice(memberDevice); in syncConfigFromMainDevice() local
518 if (mainDevice == null) { in syncConfigFromMainDevice()
519 mainDevice = mCsipDeviceManager.getCachedDevice(groupId); in syncConfigFromMainDevice()
[all …]
DCsipDeviceManager.java87 final CachedBluetoothDevice mainDevice = getCachedDevice(groupId); in setMemberDeviceIfNeeded() local
88 log("setMemberDeviceIfNeeded, main: " + mainDevice + ", member: " + newDevice); in setMemberDeviceIfNeeded()
92 if (mainDevice != null) { in setMemberDeviceIfNeeded()
93 mainDevice.addMemberDevice(newDevice); in setMemberDeviceIfNeeded()
94 newDevice.setName(mainDevice.getName()); in setMemberDeviceIfNeeded()