Home
last modified time | relevance | path

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

1234

/system/unwinding/libunwindstack/tests/
DMemoryMteTest.cpp34 uintptr_t mapping = in CreateTagMapping() local
37 if (reinterpret_cast<void*>(mapping) == MAP_FAILED) { in CreateTagMapping()
42 : "r"(mapping + (1ULL << 56)) in CreateTagMapping()
44 return mapping; in CreateTagMapping()
59 uintptr_t mapping = CreateTagMapping(); in TEST() local
60 ASSERT_NE(0U, mapping); in TEST()
75 EXPECT_EQ(1, remote.ReadTag(mapping)); in TEST()
76 EXPECT_EQ(0, remote.ReadTag(mapping + 16)); in TEST()
90 uintptr_t mapping = CreateTagMapping(); in TEST() local
91 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/incremental_delivery/incfs/tests/
Dhardening_benchmark.cpp37 auto mapping = android::base::MappedFile::FromFd(tmp->fd, 0, 1, PROT_READ); in makeEmptyFileMapping() local
39 return {std::move(tmp), std::move(mapping)}; in makeEmptyFileMapping()
52 auto mapping = android::base::MappedFile::FromFd(tmp->fd, 0, 1, PROT_READ); in TestSignal() local
57 val += *mapping->data(); in TestSignal()
100 auto mapping = android::base::MappedFile::FromFd(tmp->fd, 0, 1, PROT_READ); in TestAccess() local
103 incfs::access(mapping->data(), [&](auto ptr) { val += *ptr; }); in TestAccess()
110 auto mapping = android::base::MappedFile::FromFd(tmp->fd, 0, 1, PROT_READ); in TestAccessFast() local
112 incfs::access(mapping->data(), [&](auto ptr) { in TestAccessFast()
122 auto mapping = android::base::MappedFile::FromFd(tmp->fd, 0, 1, PROT_READ); in TestAccessVal() local
125 incfs::access(mapping->data(), [&](auto ptr) { return val += *ptr; }); in TestAccessVal()
[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/extras/simpleperf/scripts/test/
Dpprof_proto_generator_test.py91 mapping = profile.mapping[location.mapping_id - 1]
92 self.assertLessEqual(mapping.memory_start, location.address)
93 self.assertGreaterEqual(mapping.memory_limit, location.address)
/system/tools/aidl/
Doptions_unittest.cpp357 auto mapping = options->GetDiagnosticMapping(); in TEST() local
358 EXPECT_EQ(DiagnosticSeverity::WARNING, mapping.Severity(DiagnosticID::interface_name)); in TEST()
367 auto mapping = options->GetDiagnosticMapping(); in TEST() local
368 EXPECT_EQ(DiagnosticSeverity::WARNING, mapping.Severity(DiagnosticID::interface_name)); in TEST()
378 auto mapping = options->GetDiagnosticMapping(); in TEST() local
379 EXPECT_EQ(DiagnosticSeverity::DISABLED, mapping.Severity(DiagnosticID::interface_name)); in TEST()
388 auto mapping = options->GetDiagnosticMapping(); in TEST() local
389 EXPECT_EQ(DiagnosticSeverity::ERROR, mapping.Severity(DiagnosticID::interface_name)); in TEST()
Ddiagnostics.cpp55 DiagnosticsContext(DiagnosticMapping mapping) : mapping_({std::move(mapping)}) {} in DiagnosticsContext() argument
251 bool Diagnose(const AidlDocument& doc, const DiagnosticMapping& mapping) { in Diagnose() argument
252 DiagnosticsContext diag(mapping); in Diagnose()
Ddiagnostics.h65 bool Diagnose(const AidlDocument& doc, const DiagnosticMapping& mapping);
/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/extras/simpleperf/
Dreport_lib_interface.cpp79 Mapping* mapping; member
293 entry.symbol.mapping = AddMapping(*report_entry.map); in SetCurrentSample()
363 Mapping* mapping = current_mappings_.back().get(); in AddMapping() local
364 mapping->start = map.start_addr; in AddMapping()
365 mapping->end = map.start_addr + map.len; in AddMapping()
366 mapping->pgoff = map.pgoff; in AddMapping()
367 return mapping; in AddMapping()
/system/gsid/aidl/android/gsi/
DIImageService.aidl71 void mapImageDevice(@utf8InCpp String name, int timeout_ms, out MappedImage mapping); in mapImageDevice() argument
/system/sepolicy/
DAndroid.bp751 // policy mapping files
752 // auto-generate the mapping file for current platform policy, since it needs to
757 mapping: true,
759 relative_install_path: "mapping", // install to /system/etc/selinux/mapping
765 mapping: true,
768 relative_install_path: "mapping", // install to /system_ext/etc/selinux/mapping
775 mapping: true,
778 relative_install_path: "mapping", // install to /product/etc/selinux/mapping
DREADME68 as well as mapping a public base16 signing key with an arbitrary seinfo
80 Is a helper script for mapping arbitrary tags in the signature stanzas of
88 The keys.conf file is used for controlling the mapping of "tags" found in
92 The script allows for mapping any string contained in TARGET_BUILD_VARIANT
/system/bt/build/
DAndroid.bp148 "-fcoverage-mapping",
166 "-fcoverage-mapping",
/system/libhidl/transport/memory/1.0/
DIMapper.hal26 * This will be null if mapping fails.
/system/media/camera/docs/
Dmetadata_helpers.py435 mapping = {
444 return mapping.get(type_name, type_name)
477 mapping = {
486 base_type = mapping[metadata_type]
549 mapping = {
559 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
/system/sepolicy/prebuilts/api/31.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

1234