Loading system/bta/csis/csis_client.cc +2 −2 Original line number Diff line number Diff line Loading @@ -572,8 +572,8 @@ class CsisClientImpl : public CsisClient { auto device = FindDeviceByAddress(addr); if (device == nullptr) { auto dev = std::make_shared<CsisDevice>(addr, false); devices_.push_back(dev); device = std::make_shared<CsisDevice>(addr, false); devices_.push_back(device); } for (const auto& csis_group : csis_groups_) { Loading system/bta/csis/csis_client_test.cc +8 −1 Original line number Diff line number Diff line Loading @@ -1055,8 +1055,9 @@ TEST_F(CsisClientTest, test_storage_content) { // Two devices in one set SetSampleDatabaseCsis(1, 1); SetSampleDatabaseCsis(2, 2); // One device in the other set // Devices in the other set SetSampleDatabaseCsis(3, 1, 2); SetSampleDatabaseCsis(4, 1, 2); TestAppRegister(); TestConnect(GetTestAddress(1)); Loading Loading @@ -1110,6 +1111,12 @@ TEST_F(CsisClientTest, test_storage_content) { ASSERT_EQ(2, CsisClient::Get()->GetGroupId( GetTestAddress(3), bluetooth::Uuid::From16Bit(0x0000))); // Restore not inerrogated dev4 - empty buffer but valid sirk for group 2 std::vector<uint8_t> no_set_info; TestAddFromStorage(GetTestAddress(4), 4, no_set_info); ASSERT_EQ(2, CsisClient::Get()->GetGroupId( GetTestAddress(4), bluetooth::Uuid::From16Bit(0x0000))); TestAppUnregister(); } Loading system/btif/src/btif_storage.cc +3 −2 Original line number Diff line number Diff line Loading @@ -1830,6 +1830,7 @@ void btif_storage_load_bonded_csis_devices(void) { btif_config_get_bin(name, BTIF_STORAGE_CSIS_SET_INFO_BIN, in.data(), &buffer_size); if (buffer_size != 0 || autoconnect) do_in_main_thread(FROM_HERE, Bind(&CsisClient::AddFromStorage, bd_addr, std::move(in), autoconnect)); } Loading Loading
system/bta/csis/csis_client.cc +2 −2 Original line number Diff line number Diff line Loading @@ -572,8 +572,8 @@ class CsisClientImpl : public CsisClient { auto device = FindDeviceByAddress(addr); if (device == nullptr) { auto dev = std::make_shared<CsisDevice>(addr, false); devices_.push_back(dev); device = std::make_shared<CsisDevice>(addr, false); devices_.push_back(device); } for (const auto& csis_group : csis_groups_) { Loading
system/bta/csis/csis_client_test.cc +8 −1 Original line number Diff line number Diff line Loading @@ -1055,8 +1055,9 @@ TEST_F(CsisClientTest, test_storage_content) { // Two devices in one set SetSampleDatabaseCsis(1, 1); SetSampleDatabaseCsis(2, 2); // One device in the other set // Devices in the other set SetSampleDatabaseCsis(3, 1, 2); SetSampleDatabaseCsis(4, 1, 2); TestAppRegister(); TestConnect(GetTestAddress(1)); Loading Loading @@ -1110,6 +1111,12 @@ TEST_F(CsisClientTest, test_storage_content) { ASSERT_EQ(2, CsisClient::Get()->GetGroupId( GetTestAddress(3), bluetooth::Uuid::From16Bit(0x0000))); // Restore not inerrogated dev4 - empty buffer but valid sirk for group 2 std::vector<uint8_t> no_set_info; TestAddFromStorage(GetTestAddress(4), 4, no_set_info); ASSERT_EQ(2, CsisClient::Get()->GetGroupId( GetTestAddress(4), bluetooth::Uuid::From16Bit(0x0000))); TestAppUnregister(); } Loading
system/btif/src/btif_storage.cc +3 −2 Original line number Diff line number Diff line Loading @@ -1830,6 +1830,7 @@ void btif_storage_load_bonded_csis_devices(void) { btif_config_get_bin(name, BTIF_STORAGE_CSIS_SET_INFO_BIN, in.data(), &buffer_size); if (buffer_size != 0 || autoconnect) do_in_main_thread(FROM_HERE, Bind(&CsisClient::AddFromStorage, bd_addr, std::move(in), autoconnect)); } Loading