Searched refs:mainDevice (Results 1 – 3 of 3) sorted by relevance
175 CachedBluetoothDevice mainDevice; in onHiSyncIdChanged() local183 mainDevice = cachedDevice; in onHiSyncIdChanged()187 mainDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()192 mainDevice.setSubDevice(subDevice); in onHiSyncIdChanged()209 CachedBluetoothDevice mainDevice = findMainDevice(cachedDevice); in onProfileConnectionStateChangedIfProcessed() local210 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 …]
398 CachedBluetoothDevice mainDevice = mCsipDeviceManager.findMainDevice(device); in onDeviceUnpaired() local408 } 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() local518 if (mainDevice == null) { in syncConfigFromMainDevice()519 mainDevice = mCsipDeviceManager.getCachedDevice(groupId); in syncConfigFromMainDevice()[all …]
87 final CachedBluetoothDevice mainDevice = getCachedDevice(groupId); in setMemberDeviceIfNeeded() local88 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()