Home
last modified time | relevance | path

Searched refs:device_map (Results 1 – 3 of 3) sorted by relevance

/system/unwinding/libbacktrace/
Dbacktrace_test.cpp1583 static void SetupDeviceMap(void** device_map) { in SetupDeviceMap() argument
1588 *device_map = mmap(nullptr, 1024, PROT_READ, MAP_PRIVATE, device_fd, 0); in SetupDeviceMap()
1589 ASSERT_TRUE(*device_map != MAP_FAILED); in SetupDeviceMap()
1592 ASSERT_EQ(0, reinterpret_cast<int*>(*device_map)[0]); in SetupDeviceMap()
1595 static void UnwindFromDevice(Backtrace* backtrace, void* device_map) { in UnwindFromDevice() argument
1596 uint64_t device_map_uint = reinterpret_cast<uint64_t>(device_map); in UnwindFromDevice()
1659 void* device_map; in TEST_F() local
1660 SetupDeviceMap(&device_map); in TEST_F()
1667 UnwindFromDevice(backtrace.get(), device_map); in TEST_F()
1669 munmap(device_map, DEVICE_MAP_SIZE); in TEST_F()
[all …]
/system/bt/common/
Dmetric_id_allocator_unittest.cc43 std::unordered_map<RawAddress, int> device_map; in generateAddresses() local
45 device_map[kthAddress(key)] = key + MetricIdAllocator::kMinId; in generateAddresses()
47 return device_map; in generateAddresses()
/system/bt/gd/common/
Dmetric_id_manager_unittest.cc43 std::unordered_map<bluetooth::hci::Address, int> device_map; in generateAddresses() local
45 device_map[kthAddress(key)] = key + MetricIdManager::kMinId; in generateAddresses()
47 return device_map; in generateAddresses()