Loading system/bta/hearing_aid/hearing_aid.cc +0 −15 Original line number Diff line number Diff line Loading @@ -289,17 +289,6 @@ class HearingAidImpl : public HearingAid { BTA_GATTC_Open(gatt_if, address, true, GATT_TRANSPORT_LE, false); } void AddToWhiteList(const RawAddress& address) override { VLOG(2) << __func__ << " address: " << address; hearingDevices.Add(HearingDevice(address, true)); BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false); } void RemoveFromWhiteList(const RawAddress& address) override { VLOG(2) << __func__ << " address: " << address; BTA_GATTC_CancelOpen(gatt_if, address, false); } void AddFromStorage(const HearingDevice& dev_info, uint16_t is_white_listed) { DVLOG(2) << __func__ << " " << dev_info.address << ", hiSyncId=" << loghex(dev_info.hi_sync_id) Loading Loading @@ -1364,8 +1353,6 @@ class HearingAidImpl : public HearingAid { LOG(INFO) << "GAP_EVT_CONN_CLOSED: " << hearingDevice->address << ", playback_started=" << hearingDevice->playback_started; LOG(INFO) << "GAP_EVT_CONN_CLOSED: " << hearingDevice->address << ", playback_started=" << hearingDevice->playback_started; hearingDevice->playback_started = false; if (hearingDevice->connecting_actively) { Loading @@ -1383,8 +1370,6 @@ class HearingAidImpl : public HearingAid { DoDisconnectCleanUp(hearingDevice); DoDisconnectCleanUp(hearingDevice); hearingDevices.Remove(address); if (connected) Loading system/bta/include/bta_hearing_aid_api.h +0 −2 Original line number Diff line number Diff line Loading @@ -195,8 +195,6 @@ class HearingAid { virtual void Connect(const RawAddress& address) = 0; virtual void Disconnect(const RawAddress& address) = 0; virtual void AddToWhiteList(const RawAddress& address) = 0; virtual void RemoveFromWhiteList(const RawAddress& address) = 0; virtual void SetVolume(int8_t volume) = 0; }; Loading system/btif/include/btif_storage.h +0 −3 Original line number Diff line number Diff line Loading @@ -227,9 +227,6 @@ void btif_storage_load_bonded_hearing_aids(); /** Deletes the bonded hearing aid device info from NVRAM */ void btif_storage_remove_hearing_aid(const RawAddress& address); /** Add the hearing aid device to white list */ void btif_storage_add_hearing_aid_to_white_list(const RawAddress& address); /** Remove the hearing aid device from white list */ void btif_storage_remove_hearing_aid_white_list(const RawAddress& address); Loading system/btif/src/btif_hearing_aid.cc +0 −16 Original line number Diff line number Diff line Loading @@ -96,22 +96,6 @@ class HearingAidInterfaceImpl FROM_HERE, Bind(&btif_storage_remove_hearing_aid_white_list, address)); } void AddToWhiteList(const RawAddress& address) override { DVLOG(2) << __func__ << " address: " << address; do_in_main_thread(FROM_HERE, Bind(&HearingAid::AddToWhiteList, Unretained(HearingAid::Get()), address)); do_in_jni_thread( FROM_HERE, Bind(&btif_storage_add_hearing_aid_to_white_list, address)); } void RemoveFromWhiteList(const RawAddress& address) override { DVLOG(2) << __func__ << " address: " << address; do_in_main_thread(FROM_HERE, Bind(&HearingAid::RemoveFromWhiteList, Unretained(HearingAid::Get()), address)); do_in_jni_thread( FROM_HERE, Bind(&btif_storage_remove_hearing_aid_white_list, address)); } void SetVolume(int8_t volume) override { DVLOG(2) << __func__ << " volume: " << +volume; do_in_main_thread(FROM_HERE, Bind(&HearingAid::SetVolume, Loading system/btif/src/btif_storage.cc +0 −7 Original line number Diff line number Diff line Loading @@ -1560,13 +1560,6 @@ void btif_storage_remove_hearing_aid(const RawAddress& address) { btif_config_save(); } /** Add the hearing aid device to white list */ void btif_storage_add_hearing_aid_to_white_list(const RawAddress& address) { std::string addrstr = address.ToString(); btif_config_set_int(addrstr, HEARING_AID_IS_WHITE_LISTED, true); } /** Remove the hearing aid device from white list */ void btif_storage_remove_hearing_aid_white_list(const RawAddress& address) { std::string addrstr = address.ToString(); Loading Loading
system/bta/hearing_aid/hearing_aid.cc +0 −15 Original line number Diff line number Diff line Loading @@ -289,17 +289,6 @@ class HearingAidImpl : public HearingAid { BTA_GATTC_Open(gatt_if, address, true, GATT_TRANSPORT_LE, false); } void AddToWhiteList(const RawAddress& address) override { VLOG(2) << __func__ << " address: " << address; hearingDevices.Add(HearingDevice(address, true)); BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false); } void RemoveFromWhiteList(const RawAddress& address) override { VLOG(2) << __func__ << " address: " << address; BTA_GATTC_CancelOpen(gatt_if, address, false); } void AddFromStorage(const HearingDevice& dev_info, uint16_t is_white_listed) { DVLOG(2) << __func__ << " " << dev_info.address << ", hiSyncId=" << loghex(dev_info.hi_sync_id) Loading Loading @@ -1364,8 +1353,6 @@ class HearingAidImpl : public HearingAid { LOG(INFO) << "GAP_EVT_CONN_CLOSED: " << hearingDevice->address << ", playback_started=" << hearingDevice->playback_started; LOG(INFO) << "GAP_EVT_CONN_CLOSED: " << hearingDevice->address << ", playback_started=" << hearingDevice->playback_started; hearingDevice->playback_started = false; if (hearingDevice->connecting_actively) { Loading @@ -1383,8 +1370,6 @@ class HearingAidImpl : public HearingAid { DoDisconnectCleanUp(hearingDevice); DoDisconnectCleanUp(hearingDevice); hearingDevices.Remove(address); if (connected) Loading
system/bta/include/bta_hearing_aid_api.h +0 −2 Original line number Diff line number Diff line Loading @@ -195,8 +195,6 @@ class HearingAid { virtual void Connect(const RawAddress& address) = 0; virtual void Disconnect(const RawAddress& address) = 0; virtual void AddToWhiteList(const RawAddress& address) = 0; virtual void RemoveFromWhiteList(const RawAddress& address) = 0; virtual void SetVolume(int8_t volume) = 0; }; Loading
system/btif/include/btif_storage.h +0 −3 Original line number Diff line number Diff line Loading @@ -227,9 +227,6 @@ void btif_storage_load_bonded_hearing_aids(); /** Deletes the bonded hearing aid device info from NVRAM */ void btif_storage_remove_hearing_aid(const RawAddress& address); /** Add the hearing aid device to white list */ void btif_storage_add_hearing_aid_to_white_list(const RawAddress& address); /** Remove the hearing aid device from white list */ void btif_storage_remove_hearing_aid_white_list(const RawAddress& address); Loading
system/btif/src/btif_hearing_aid.cc +0 −16 Original line number Diff line number Diff line Loading @@ -96,22 +96,6 @@ class HearingAidInterfaceImpl FROM_HERE, Bind(&btif_storage_remove_hearing_aid_white_list, address)); } void AddToWhiteList(const RawAddress& address) override { DVLOG(2) << __func__ << " address: " << address; do_in_main_thread(FROM_HERE, Bind(&HearingAid::AddToWhiteList, Unretained(HearingAid::Get()), address)); do_in_jni_thread( FROM_HERE, Bind(&btif_storage_add_hearing_aid_to_white_list, address)); } void RemoveFromWhiteList(const RawAddress& address) override { DVLOG(2) << __func__ << " address: " << address; do_in_main_thread(FROM_HERE, Bind(&HearingAid::RemoveFromWhiteList, Unretained(HearingAid::Get()), address)); do_in_jni_thread( FROM_HERE, Bind(&btif_storage_remove_hearing_aid_white_list, address)); } void SetVolume(int8_t volume) override { DVLOG(2) << __func__ << " volume: " << +volume; do_in_main_thread(FROM_HERE, Bind(&HearingAid::SetVolume, Loading
system/btif/src/btif_storage.cc +0 −7 Original line number Diff line number Diff line Loading @@ -1560,13 +1560,6 @@ void btif_storage_remove_hearing_aid(const RawAddress& address) { btif_config_save(); } /** Add the hearing aid device to white list */ void btif_storage_add_hearing_aid_to_white_list(const RawAddress& address) { std::string addrstr = address.ToString(); btif_config_set_int(addrstr, HEARING_AID_IS_WHITE_LISTED, true); } /** Remove the hearing aid device from white list */ void btif_storage_remove_hearing_aid_white_list(const RawAddress& address) { std::string addrstr = address.ToString(); Loading