Home
last modified time | relevance | path

Searched refs:paired_device_map (Results 1 – 13 of 13) sorted by relevance

/system/bt/common/
Dmetric_id_allocator_unittest.cc52 std::unordered_map<RawAddress, int> paired_device_map; in TEST() local
56 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
57 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST()
63 std::unordered_map<RawAddress, int> paired_device_map; in TEST() local
67 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
70 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST()
76 std::unordered_map<RawAddress, int> paired_device_map; in TEST() local
81 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
92 std::unordered_map<RawAddress, int> paired_device_map; in TEST() local
99 paired_device_map = in TEST()
[all …]
Dmetric_id_allocator.cc49 const std::unordered_map<RawAddress, int>& paired_device_map, in Init() argument
57 if (paired_device_map.size() > kMaxNumPairedDevicesInMemory) { in Init()
66 for (const auto& p : paired_device_map) { in Init()
Dmetric_id_allocator.h63 bool Init(const std::unordered_map<RawAddress, int>& paired_device_map,
/system/bt/gd/common/
Dmetric_id_manager_unittest.cc52 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST() local
57 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
58 ASSERT_FALSE(manager.Init(paired_device_map, callback, callback)); in TEST()
64 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST() local
69 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
72 ASSERT_FALSE(manager.Init(paired_device_map, callback, callback)); in TEST()
78 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST() local
84 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
95 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST() local
103 paired_device_map = in TEST()
[all …]
Dmetric_id_manager.cc52 const std::unordered_map<Address, int>& paired_device_map, in Init() argument
60 if (paired_device_map.size() > kMaxNumPairedDevicesInMemory) { in Init()
64 paired_device_map.size(), kMaxNumPairedDevicesInMemory); in Init()
70 for (const auto& p : paired_device_map) { in Init()
Dmetric_id_manager.h63 const std::unordered_map<hci::Address, int>& paired_device_map,
/system/bt/main/shim/
Dmetric_id_api.cc34 const std::unordered_map<RawAddress, int>& paired_device_map, in InitMetricIdAllocator() argument
37 for (const auto& device : paired_device_map) { in InitMetricIdAllocator()
Dmetric_id_api.h38 const std::unordered_map<RawAddress, int>& paired_device_map,
/system/bt/btif/src/
Dbtif_metrics_logging.cc117 const std::unordered_map<RawAddress, int>& paired_device_map, in init_metric_id_allocator() argument
122 paired_device_map, std::move(save_device_callback), in init_metric_id_allocator()
126 paired_device_map, std::move(save_device_callback), in init_metric_id_allocator()
Dbtif_config.cc196 std::unordered_map<RawAddress, int> paired_device_map; in init_metric_id_allocator() local
211 paired_device_map[mac_address] = id; in init_metric_id_allocator()
230 if (!init_metric_id_allocator(paired_device_map, in init_metric_id_allocator()
/system/bt/test/mock/
Dmock_main_shim_metric_id_api.cc40 const std::unordered_map<RawAddress, int>& paired_device_map, in InitMetricIdAllocator() argument
Dmock_common_metric_id_allocator.cc74 const std::unordered_map<RawAddress, int>& paired_device_map, in Init() argument
/system/bt/btif/include/
Dbtif_metrics_logging.h57 const std::unordered_map<RawAddress, int>& paired_device_map,