Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 25 of 66) sorted by relevance

123

/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp112 char* mapping = static_cast<char*>( in TEST_F() local
114 ASSERT_NE(MAP_FAILED, mapping); in TEST_F()
115 memset(mapping, 0x4c, 4 * getpagesize()); in TEST_F()
116 ASSERT_EQ(0, mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE)); in TEST_F()
117 ASSERT_EQ(0, munmap(mapping + 3 * getpagesize(), getpagesize())); in TEST_F()
129 ASSERT_EQ(0, munmap(mapping, 3 * getpagesize())); in TEST_F()
137 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096); in TEST_F()
146 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst.data(), 4096); in TEST_F()
237 void* mapping = in TEST_F() local
239 ASSERT_NE(MAP_FAILED, mapping); in TEST_F()
[all …]
DMemoryLocalTest.cpp72 char* mapping = static_cast<char*>( in TEST() local
75 ASSERT_NE(MAP_FAILED, mapping); in TEST()
77 mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE); in TEST()
78 memset(mapping + getpagesize() - 1024, 0x4c, 1024); in TEST()
83 ASSERT_EQ(1024U, local.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), in TEST()
89 ASSERT_EQ(0, munmap(mapping, 2 * getpagesize())); in TEST()
93 void* mapping = in TEST() local
95 ASSERT_NE(MAP_FAILED, mapping); in TEST()
96 memset(mapping, 0xFF, 3 * 4096); in TEST()
97 mprotect(static_cast<char*>(mapping) + 4096, 4096, PROT_NONE); in TEST()
[all …]
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py70 print('%d mappings' % len(p.mapping))
71 for i in range(len(p.mapping)):
73 self.show_mapping(p.mapping[i], sub_space)
127 mapping = self.profile.mapping[mapping_id - 1]
128 self.show_mapping(mapping, space)
130 def show_mapping(self, mapping, space=''): argument
131 print('%sid: %d' % (space, mapping.id))
132 print('%smemory_start: %x' % (space, mapping.memory_start))
133 print('%smemory_limit: %x' % (space, mapping.memory_limit))
134 print('%sfile_offset: %x' % (space, mapping.file_offset))
[all …]
/system/sepolicy/tools/
Dversion_policy.c86 bool mapping = false; in main() local
115 mapping = true; in main()
137 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) { in main()
149 if (mapping && tgt_policy) { in main()
163 if (mapping) { in main()
/system/update_engine/payload_generator/
Dblock_mapping.cc147 BlockMapping mapping(block_size); in MapPartitionBlocks() local
148 if (mapping.AddBlock(brillo::Blob(block_size, '\0')) != 0) in MapPartitionBlocks()
155 TEST_AND_RETURN_FALSE(mapping.AddManyDiskBlocks( in MapPartitionBlocks()
157 TEST_AND_RETURN_FALSE(mapping.AddManyDiskBlocks( in MapPartitionBlocks()
/system/netd/resolv/dns_responder/
Ddns_responder_client.cpp114 for (const auto& mapping : mappings) { in SetupDNSServers() local
115 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers()
116 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp90 const auto& mapping = getMappings()[ofs]; in benchmark() local
92 if (getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result)) { in benchmark()
/system/sepolicy/tests/
Dtreble_sepolicy_tests.py174 def compatSetup(pol, oldpol, mapping, types): argument
179 compatMapping = mapping
373 if not options.mapping:
384 mapping = mini_parser.MiniCilParser(options.mapping) variable
386 compatSetup(basepol, oldpol, mapping, pubpol.types)
/system/bt/gd/
DAndroid.bp45 "-fcoverage-mapping",
63 "-fcoverage-mapping",
/system/extras/simpleperf/
Dreport_lib_interface.cpp80 Mapping* mapping; member
339 entry.symbol.mapping = AddMapping(*map); in SetCurrentSample()
409 Mapping* mapping = current_mappings_.back().get(); in AddMapping() local
410 mapping->start = map.start_addr; in AddMapping()
411 mapping->end = map.start_addr + map.len; in AddMapping()
412 mapping->pgoff = map.pgoff; in AddMapping()
413 return mapping; in AddMapping()
/system/bt/build/
DAndroid.bp85 "-fcoverage-mapping",
103 "-fcoverage-mapping",
/system/sepolicy/
DREADME57 as well as mapping a public base16 signing key with an arbitrary seinfo
69 Is a helper script for mapping arbitrary tags in the signature stanzas of
77 The keys.conf file is used for controlling the mapping of "tags" found in
81 The script allows for mapping any string contained in TARGET_BUILD_VARIANT
/system/libhidl/transport/memory/1.0/
DIMapper.hal26 * This will be null if mapping fails.
/system/media/camera/docs/
Dmetadata_helpers.py433 mapping = {
442 return mapping.get(type_name, type_name)
475 mapping = {
484 base_type = mapping[metadata_type]
547 mapping = {
557 return mapping[what]
/system/libhidl/libhidlmemory/
DAndroid.bp44 "mapping.cpp"
/system/sepolicy/prebuilts/api/28.0/public/
Dupdate_verifier.te16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
/system/sepolicy/prebuilts/api/29.0/public/
Dupdate_verifier.te16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
/system/sepolicy/public/
Dupdate_verifier.te16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
/system/sepolicy/prebuilts/api/27.0/public/
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
/system/libhidl/libhidlcache/
DAndroid.bp46 "mapping.cpp",
/system/core/debuggerd/crasher/
Dcrasher.cpp144 void* mapping = in leak() local
146 static_cast<volatile char*>(mapping)[0] = 'a'; in leak()
/system/core/fastboot/
Dfastboot_driver.cpp476 auto mapping{android::base::MappedFile::FromFd(fd, offset, len, PROT_READ)}; in SendBuffer() local
477 if (!mapping) { in SendBuffer()
482 if ((ret = SendBuffer(mapping->data(), mapping->size()))) { in SendBuffer()

123