Home
last modified time | relevance | path

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

1234

/system/core/libunwindstack/tests/
DMemoryMteTest.cpp33 uintptr_t mapping = in CreateTagMapping() local
36 if (reinterpret_cast<void*>(mapping) == MAP_FAILED) { in CreateTagMapping()
42 : "r"(mapping + (1ULL << 56)) in CreateTagMapping()
45 return mapping; in CreateTagMapping()
57 uintptr_t mapping = CreateTagMapping(); in TEST() local
58 ASSERT_NE(0U, mapping); in TEST()
73 EXPECT_EQ(1, remote.ReadTag(mapping)); in TEST()
74 EXPECT_EQ(0, remote.ReadTag(mapping + 16)); in TEST()
88 uintptr_t mapping = CreateTagMapping(); in TEST() local
89 ASSERT_NE(0U, mapping); in TEST()
[all …]
DMemoryRemoteTest.cpp95 char* mapping = static_cast<char*>( in TEST() local
97 ASSERT_NE(MAP_FAILED, mapping); in TEST()
98 memset(mapping, 0x4c, 4 * getpagesize()); in TEST()
99 ASSERT_EQ(0, mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE)); in TEST()
100 ASSERT_EQ(0, munmap(mapping + 3 * getpagesize(), getpagesize())); in TEST()
112 ASSERT_EQ(0, munmap(mapping, 3 * getpagesize())); in TEST()
120 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096); in TEST()
129 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst.data(), 4096); in TEST()
220 void* mapping = in TEST() local
222 ASSERT_NE(MAP_FAILED, mapping); in TEST()
[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.c87 bool mapping = false; in main() local
116 mapping = true; in main()
138 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) { in main()
150 if (mapping && tgt_policy) { in main()
164 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/tests/benchmarks/
Ddns_benchmark.cpp89 const auto& mapping = getMappings()[ofs]; in benchmark() local
91 if (getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result)) { in benchmark()
/system/sepolicy/tests/
Dtreble_sepolicy_tests.py167 def compatSetup(pol, oldpol, mapping, types): argument
172 compatMapping = mapping
375 if not options.mapping:
386 mapping = mini_parser.MiniCilParser(options.mapping) variable
388 compatSetup(basepol, oldpol, mapping, pubpol.types)
/system/core/adb/client/
Dincremental_utils.cpp291 auto mapping = in openZipArchive() local
293 if (!mapping) { in openZipArchive()
298 if (OpenArchiveFromMemory(mapping->data(), mapping->size(), "apk_mapping", &zip) != 0) { in openZipArchive()
302 return {zip, std::move(mapping)}; in openZipArchive()
/system/sepolicy/
DAndroid.bp235 sub_dir: "selinux/mapping",
241 sub_dir: "selinux/mapping",
247 sub_dir: "selinux/mapping",
253 sub_dir: "selinux/mapping",
259 sub_dir: "selinux/mapping",
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/extras/simpleperf/
Dreport_lib_interface.cpp80 Mapping* mapping; member
344 entry.symbol.mapping = AddMapping(*map); in SetCurrentSample()
429 Mapping* mapping = current_mappings_.back().get(); in AddMapping() local
430 mapping->start = map.start_addr; in AddMapping()
431 mapping->end = map.start_addr + map.len; in AddMapping()
432 mapping->pgoff = map.pgoff; in AddMapping()
433 return mapping; in AddMapping()
/system/bt/build/
DAndroid.bp102 "-fcoverage-mapping",
120 "-fcoverage-mapping",
/system/gsid/aidl/android/gsi/
DIImageService.aidl71 void mapImageDevice(@utf8InCpp String name, int timeout_ms, out MappedImage mapping); in mapImageDevice() argument
/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/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/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
/system/sepolicy/prebuilts/api/27.0/public/
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DTzLookupGenerator.java433 for (CountryZonesFile.TimeZoneMapping mapping : timeZoneMappings) { in validateCountryZonesTzIdsAgainstIana()
434 String timeZoneId = mapping.getId(); in validateCountryZonesTzIdsAgainstIana()
436 if (!mapping.hasAliasId()) { in validateCountryZonesTzIdsAgainstIana()
439 String aliasTimeZoneId = mapping.getAliasId(); in validateCountryZonesTzIdsAgainstIana()
/system/sepolicy/prebuilts/api/30.0/public/
Dmediametrics.te20 # allow access to package manager for uid->apk mapping
Dupdate_verifier.te16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between

1234