Searched refs:hapProfile (Results 1 – 2 of 2) sorted by relevance
73 final HearingAidProfile hapProfile = mProfileManager.getHearingAidProfile(); in connect() local78 if (hapProfile != null && a2dpProfile != null) { in connect()79 isConnected = hapProfile.setActiveDevice(null) && a2dpProfile.setActiveDevice(null); in connect()82 } else if (hapProfile != null) { in connect()83 isConnected = hapProfile.setActiveDevice(null); in connect()
123 final HearingAidProfile hapProfile = mProfileManager.getHearingAidProfile(); in addConnectableHearingAidDevices() local124 if (hapProfile == null) { in addConnectableHearingAidDevices()130 final List<BluetoothDevice> devices = hapProfile.getConnectableDevices(); in addConnectableHearingAidDevices()143 + ", is preferred : " + hapProfile.isPreferred(device)); in addConnectableHearingAidDevices()145 final long hiSyncId = hapProfile.getHiSyncId(device); in addConnectableHearingAidDevices()149 if (!devicesHiSyncIds.contains(hiSyncId) && hapProfile.isPreferred(device) in addConnectableHearingAidDevices()156 mIsHearingAidProfileReady = hapProfile.isProfileReady(); in addConnectableHearingAidDevices()