Home
last modified time | relevance | path

Searched refs:AddressObfuscator (Results 1 – 6 of 6) sorted by relevance

/system/bt/common/
Daddress_obfuscator_unittest.cc23 using bluetooth::common::AddressObfuscator;
25 constexpr AddressObfuscator::Octet32 kEmptyKey = {0};
27 constexpr AddressObfuscator::Octet32 kTestKey1 = {
33 constexpr AddressObfuscator::Octet32 kTestResultRaw1 = {
41 constexpr AddressObfuscator::Octet32 kTestKey2 = {
47 constexpr AddressObfuscator::Octet32 kTestResultRaw2_1 = {
56 constexpr AddressObfuscator::Octet32 kTestResultRaw2_2 = {
65 constexpr AddressObfuscator::Octet32 kTestResultRaw2_3 = {
74 EXPECT_FALSE(AddressObfuscator::IsSaltValid(kEmptyKey)); in TEST()
78 EXPECT_TRUE(AddressObfuscator::IsSaltValid(kTestKey1)); in TEST()
[all …]
Daddress_obfuscator.h30 class AddressObfuscator {
34 static AddressObfuscator* GetInstance() { in GetInstance()
35 static auto instance = new AddressObfuscator(); in GetInstance()
70 AddressObfuscator() : salt_256bit_({0}) {} in AddressObfuscator() function
Daddress_obfuscator.cc31 bool AddressObfuscator::IsSaltValid(const Octet32& salt_256bit) { in IsSaltValid()
36 void AddressObfuscator::Initialize(const Octet32& salt_256bit) { in Initialize()
41 bool AddressObfuscator::IsInitialized() { in IsInitialized()
46 std::string AddressObfuscator::Obfuscate(const RawAddress& address) { in Obfuscate()
Dmetrics.cc580 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent()
628 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent()
653 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioOverrunEvent()
678 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadRssiResult()
699 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadFailedContactCounterResult()
721 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadTxPowerLevelResult()
743 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSmpPairingEvent()
764 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogClassicPairingEvent()
784 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSdpAttribute()
808 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSocketConnectionState()
[all …]
/system/bt/btif/src/
Dbtif_config.cc70 using bluetooth::common::AddressObfuscator;
146 AddressObfuscator::Octet32 metrics_salt = {}; in read_or_set_metrics_salt()
161 if (!AddressObfuscator::IsSaltValid(metrics_salt)) { in read_or_set_metrics_salt()
172 AddressObfuscator::GetInstance()->Initialize(metrics_salt); in read_or_set_metrics_salt()
Dbluetooth.cc447 return bluetooth::common::AddressObfuscator::GetInstance()->Obfuscate( in obfuscate_address()