Home
last modified time | relevance | path

Searched refs:BtAddress (Results 1 – 9 of 9) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/test/
Dbt_address_unittest.cc46 EXPECT_FALSE(BtAddress::IsValid("")); in TEST_F()
47 EXPECT_FALSE(BtAddress::IsValid("000000000000")); in TEST_F()
48 EXPECT_FALSE(BtAddress::IsValid("00:00:00:00:0000")); in TEST_F()
49 EXPECT_FALSE(BtAddress::IsValid("00:00:00:00:00:0")); in TEST_F()
50 EXPECT_FALSE(BtAddress::IsValid("00:00:00:00:00:0;")); in TEST_F()
51 EXPECT_FALSE(BtAddress::IsValid("00:00:000:00:00:0;")); in TEST_F()
52 EXPECT_TRUE(BtAddress::IsValid("00:00:00:00:00:00")); in TEST_F()
53 EXPECT_FALSE(BtAddress::IsValid("aB:cD:eF:Gh:iJ:Kl")); in TEST_F()
54 EXPECT_TRUE(BtAddress::IsValid(kTestAddr1)); in TEST_F()
55 EXPECT_TRUE(BtAddress::IsValid(kTestAddr2)); in TEST_F()
[all …]
/system/bt/vendor_libs/test_vendor_lib/include/
Dbt_address.h29 class BtAddress {
35 BtAddress() : address_(0){}; in BtAddress() function
36 virtual ~BtAddress() = default;
44 inline bool operator==(const BtAddress& right) {
47 inline bool operator!=(const BtAddress& right) {
50 inline bool operator<(const BtAddress& right) {
53 inline bool operator>(const BtAddress& right) {
56 inline bool operator<=(const BtAddress& right) {
59 inline bool operator>=(const BtAddress& right) {
63 inline void operator=(const BtAddress& right) { address_ = right.address_; }
[all …]
Devent_packet.h91 uint8_t status, const BtAddress& bt_address);
107 const BtAddress& bt_address,
111 void AddInquiryResult(const BtAddress& bt_address,
117 const BtAddress& bt_address,
Dpacket.h72 bool AddPayloadBtAddress(const BtAddress& address);
Ddual_mode_controller.h90 const BtAddress& GetAddress() const { return address_; } in GetAddress()
152 BtAddress address_;
522 BtAddress le_random_address_;
/system/bt/vendor_libs/test_vendor_lib/src/
Dbt_address.cc26 bool BtAddress::IsValid(const std::string& addr) { in IsValid()
39 bool BtAddress::FromString(const std::string& str) { in FromString()
54 bool BtAddress::FromVector(const vector<uint8_t>& octets) { in FromVector()
65 void BtAddress::ToVector(vector<uint8_t>& octets) const { in ToVector()
71 std::string BtAddress::ToString() const { in ToString()
Dpacket.cc63 bool Packet::AddPayloadBtAddress(const BtAddress& address) { in AddPayloadBtAddress()
64 if (BtAddress::kOctets + payload_.size() > kMaxPacketOctets) return false; in AddPayloadBtAddress()
Devent_packet.cc166 uint8_t status, const BtAddress& address) { in CreateCommandCompleteReadBdAddr()
193 const BtAddress& address, in CreateInquiryResultEvent()
212 const BtAddress& address, in AddInquiryResult()
228 const BtAddress& address, in CreateExtendedInquiryResultEvent()
Ddual_mode_controller.cc472 BtAddress other_addr; in HciInquiry()