Home
last modified time | relevance | path

Searched refs:AddressObfuscator (Results 1 – 7 of 7) 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.cc582 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent()
632 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent()
659 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioOverrunEvent()
686 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpPlaybackEvent()
709 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadRssiResult()
732 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadFailedContactCounterResult()
756 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadTxPowerLevelResult()
780 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSmpPairingEvent()
803 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogClassicPairingEvent()
827 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogSdpAttribute()
[all …]
/system/bt/test/mock/
Dmock_common_address_obfuscator.cc40 bool AddressObfuscator::IsInitialized() { in IsInitialized()
44 bool AddressObfuscator::IsSaltValid(const Octet32& salt_256bit) { in IsSaltValid()
48 std::string AddressObfuscator::Obfuscate(const RawAddress& address) { in Obfuscate()
52 void AddressObfuscator::Initialize(const Octet32& salt_256bit) { in Initialize()
/system/bt/btif/src/
Dbtif_config.cc72 using bluetooth::common::AddressObfuscator;
161 AddressObfuscator::Octet32 metrics_salt = {}; in read_or_set_metrics_salt()
176 if (!AddressObfuscator::IsSaltValid(metrics_salt)) { in read_or_set_metrics_salt()
187 AddressObfuscator::GetInstance()->Initialize(metrics_salt); in read_or_set_metrics_salt()
Dbluetooth.cc566 return bluetooth::common::AddressObfuscator::GetInstance()->Obfuscate( in obfuscate_address()