Home
last modified time | relevance | path

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

/system/core/libbacktrace/
Dbacktrace_test.cpp1567 static void SetupDeviceMap(void** device_map) { in SetupDeviceMap() argument
1572 *device_map = mmap(nullptr, 1024, PROT_READ, MAP_PRIVATE, device_fd, 0); in SetupDeviceMap()
1573 ASSERT_TRUE(*device_map != MAP_FAILED); in SetupDeviceMap()
1576 ASSERT_EQ(0, reinterpret_cast<int*>(*device_map)[0]); in SetupDeviceMap()
1579 static void UnwindFromDevice(Backtrace* backtrace, void* device_map) { in UnwindFromDevice() argument
1580 uint64_t device_map_uint = reinterpret_cast<uint64_t>(device_map); in UnwindFromDevice()
1643 void* device_map; in TEST_F() local
1644 SetupDeviceMap(&device_map); in TEST_F()
1651 UnwindFromDevice(backtrace.get(), device_map); in TEST_F()
1653 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()