Home
last modified time | relevance | path

Searched refs:addr_or_group (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/system/bta/has/
Dhas_ctp.h101 std::variant<RawAddress, int> addr_or_group; member
112 : addr_or_group(addr_or_group_id), in addr_or_group() function
126 return std::holds_alternative<int>(addr_or_group); in IsGroupRequest()
130 return std::holds_alternative<int>(addr_or_group) in GetGroupId()
131 ? std::get<int>(addr_or_group) in GetGroupId()
136 return std::holds_alternative<RawAddress>(addr_or_group) in GetDeviceAddr()
137 ? std::get<RawAddress>(addr_or_group) in GetDeviceAddr()
Dhas_ctp.cc232 if (std::holds_alternative<int>(op.addr_or_group)) { in operator <<()
233 out << "\"group_id\": " << std::get<int>(op.addr_or_group); in operator <<()
234 } else if (std::holds_alternative<RawAddress>(op.addr_or_group)) { in operator <<()
236 << ADDRESS_TO_LOGGABLE_STR(std::get<RawAddress>(op.addr_or_group)) << "\""; in operator <<()
Dhas_client.cc321 callbacks_->OnActivePresetSelectError(op.addr_or_group, in OnHasActivePresetCycleStatus()
434 callbacks_->OnActivePresetSelectError(op.addr_or_group, in OnHasPresetIndexOperation()
451 if (std::holds_alternative<int>(operation.addr_or_group)) { in CpReadAllPresetsOperation()
453 callbacks_->OnPresetInfoError(operation.addr_or_group, operation.index, in CpReadAllPresetsOperation()
460 HasDevice::MatchAddress(std::get<RawAddress>(operation.addr_or_group))); in CpReadAllPresetsOperation()
463 std::get<RawAddress>(operation.addr_or_group)); in CpReadAllPresetsOperation()
610 operation.addr_or_group))); in CpPresetOperationCaller()
632 std::holds_alternative<RawAddress>(operation.addr_or_group), in CpPresetIndexOperation()
636 std::get<RawAddress>(operation.addr_or_group), operation.index, in CpPresetIndexOperation()
641 callbacks_->OnActivePresetSelectError(operation.addr_or_group, in CpPresetIndexOperation()
[all …]
Dhas_client_test.cc1600 std::variant<RawAddress, int> addr_or_group = test_address; in TEST_F() local
1610 .WillOnce(DoAll(SaveArg<0>(&addr_or_group), SaveArg<2>(&preset_details))); in TEST_F()
1613 DoAll(SaveArg<0>(&addr_or_group), SaveArg<1>(&active_preset_index))); in TEST_F()
1617 ASSERT_TRUE(std::holds_alternative<RawAddress>(addr_or_group)); in TEST_F()
1618 ASSERT_EQ(std::get<RawAddress>(addr_or_group), test_address); in TEST_F()
1778 std::variant<RawAddress, int> addr_or_group = test_address; in TEST_F() local
1788 .WillOnce(DoAll(SaveArg<0>(&addr_or_group), SaveArg<2>(&preset_details))); in TEST_F()
1791 DoAll(SaveArg<0>(&addr_or_group), SaveArg<1>(&active_preset_index))); in TEST_F()