Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 175) sorted by relevance

1234567

/art/test/545-tracing-and-jit/src/
DMain.java107 Map map = new HashMap(); in fillJit() local
108 map.put("foo", "bar"); in fillJit()
109 map.clear(); in fillJit()
110 map.containsKey("foo"); in fillJit()
111 map.containsValue("foo"); in fillJit()
112 map.entrySet(); in fillJit()
113 map.equals(map); in fillJit()
114 map.hashCode(); in fillJit()
115 map.isEmpty(); in fillJit()
116 map.keySet(); in fillJit()
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DProguardMapTest.java65 ProguardMap map = new ProguardMap(); in runOldProguardMap() local
68 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in runOldProguardMap()
69 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in runOldProguardMap()
70 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in runOldProguardMap()
71 assertEquals("myfield", map.getFieldName("fooBarSludge", "myfield")); in runOldProguardMap()
72 ProguardMap.Frame frame = map.getFrame( in runOldProguardMap()
80 map.readFromReader(new StringReader(testMap)); in runOldProguardMap()
83 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in runOldProguardMap()
84 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in runOldProguardMap()
85 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in runOldProguardMap()
[all …]
DTestDump.java115 ProguardMap map = new ProguardMap(); in load() local
120 map.readFromReader(new InputStreamReader(is)); in load()
128 mSnapshot = new Parser(hprof).map(map).retained(mRetained).parse(); in load()
138 mBaseline = new Parser(hprofBase).map(map).retained(mRetained).parse(); in load()
266 String map, in getTestDump() argument
272 && Objects.equals(loaded.mMapResource, map) in getTestDump()
281 TestDump dump = new TestDump(hprof, base, map, retained); in getTestDump()
/art/compiler/driver/
Dcompiler_options_map-inl.h54 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) {
55 if (map.Exists(Base::CompilerFilter)) {
56 options->SetCompilerFilter(*map.Get(Base::CompilerFilter));
58 map.AssignIfExists(Base::CompileArtTest, &options->compile_art_test_);
59 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_);
60 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_);
61 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_);
62 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_);
63 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_);
64 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_);
[all …]
/art/compiler/utils/
Datomic_dex_ref_map_test.cc35 Map map; in TEST_F() local
38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
39 EXPECT_FALSE(map.HaveDexFile(dex.get())); in TEST_F()
41 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F()
42 map.AddDexFile(dex.get()); in TEST_F()
43 EXPECT_TRUE(map.HaveDexFile(dex.get())); in TEST_F()
44 std::vector<const DexFile*> registered_dex_files = map.GetDexFiles(); in TEST_F()
49 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
53 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F()
55 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
[all …]
/art/runtime/
Dparsed_options_test.cc75 RuntimeArgumentMap map; in TEST_F() local
76 bool parsed = ParsedOptions::Parse(options, false, &map); in TEST_F()
78 ASSERT_NE(0u, map.Size()); in TEST_F()
82 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) in TEST_F()
84 EXPECT_EQ(expected, static_cast<std::vector<std::string>>(map.GetOrDefault(actual_key))) in TEST_F()
85 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) in TEST_F()
89 std::vector<std::string> boot_images = map.GetOrDefault(Opt::Image); in TEST_F()
97 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F()
98 EXPECT_TRUE(reinterpret_cast<void*>(test_vfprintf) == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F()
99 EXPECT_TRUE(reinterpret_cast<void*>(test_exit) == map.GetOrDefault(Opt::HookExit)); in TEST_F()
[all …]
Dnative_stack_dump.cc331 BacktraceMap* map = existing_map; in DumpNativeStack() local
333 if (map == nullptr) { in DumpNativeStack()
335 map = tmp_map.get(); in DumpNativeStack()
337 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack()
372 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack()
380 if (it->map.name.empty()) { in DumpNativeStack()
381 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack()
383 os << it->map.name; in DumpNativeStack()
385 if (it->map.offset != 0) { in DumpNativeStack()
386 os << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); in DumpNativeStack()
[all …]
Dcheck_reference_map_visitor.h84 for (StackMap map : code_info.GetStackMaps()) { in CheckOptimizedMethod() local
85 if (map.GetDexPc() == dex_pc && code_info.GetStackMaskOf(map).IsValid()) { in CheckOptimizedMethod()
86 stack_map = map; in CheckOptimizedMethod()
/art/libartbase/base/
Dmem_map_test.cc55 MemMap map = MemMap::MapAnonymous("temp", in GetValidMapAddress() local
60 CHECK(map.IsValid()); in GetValidMapAddress()
61 return map.Begin(); in GetValidMapAddress()
327 MemMap map = MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
332 ASSERT_FALSE(map.IsValid()) << error_msg; in TEST_F()
336 map = MemMap::MapAnonymous("MapAnonymousNonEmpty", in TEST_F()
341 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
348 MemMap map = MemMap::MapAnonymous("MapAnonymousInvalid", in TEST_F() local
356 ASSERT_FALSE(map.IsValid()); in TEST_F()
363 MemMap map = MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
[all …]
Dzip_archive.cc77 MemMap map = MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap() local
82 if (!map.IsValid()) { in ExtractToMemMap()
87 DCHECK_EQ(map.Size(), GetUncompressedLength()); in ExtractToMemMap()
88 if (!ExtractToMemory(map.Begin(), error_msg)) { in ExtractToMemMap()
92 return map; in ExtractToMemMap()
142 MemMap map = in MapDirectlyFromFile() local
152 if (!map.IsValid()) { in MapDirectlyFromFile()
179 if (map.IsValid()) { in MapDirectlyFromFile()
184 uint8_t* begin = map.Begin(); in MapDirectlyFromFile()
195 return map; in MapDirectlyFromFile()
Dhash_map_test.cc25 HashMap<int, IntWrapper> map; in TEST() local
26 map.insert(std::make_pair(1, IntWrapper{2})); in TEST()
Dmem_map.cc63 static std::map<std::string, int> debugStrMap GUARDED_BY(MemMap::GetMemMapsLock());
66 Maps::iterator GetGMapsEntry(const MemMap& map) REQUIRES(MemMap::GetMemMapsLock()) { in GetGMapsEntry() argument
67 DCHECK(map.IsValid()); in GetGMapsEntry()
69 for (auto it = gMaps->lower_bound(map.BaseBegin()), end = gMaps->end(); in GetGMapsEntry()
70 it != end && it->first == map.BaseBegin(); in GetGMapsEntry()
72 if (it->second == &map) { in GetGMapsEntry()
84 MemMap* map = it->second; in operator <<() local
85 CHECK_EQ(base, map->BaseBegin()); in operator <<()
86 os << *map << std::endl; in operator <<()
160 MemMap* const map = pair.second; in ContainedWithinExistingMap() local
[all …]
Dsafe_copy_test.cc37 void* map = mmap(nullptr, kPageSize * 4, PROT_READ | PROT_WRITE, in TEST() local
39 ASSERT_NE(MAP_FAILED, map); in TEST()
40 char* page1 = static_cast<char*>(map); in TEST()
78 ASSERT_EQ(0, munmap(map, kPageSize * 3)); in TEST()
/art/test/004-InterfaceTest/src/
DMain.java22 public static long test_virtual(HashMap map) { in test_virtual() argument
27 map.put(intobj, s); in test_virtual()
33 public static long test_interface(Map map) { in test_interface() argument
38 map.put(intobj, s); in test_interface()
/art/test/687-deopt/src/
DMain.java29 HashMap<Main, Integer> map = new HashMap<>(); in main() local
30 map.put(key, value); in main()
31 Integer res = map.get(key); in main()
/art/libdexfile/dex/
Dart_dex_file_loader.cc188 MemMap&& map, in Open() argument
193 CHECK(map.IsValid()); in Open()
195 size_t size = map.Size(); in Open()
203 uint8_t* begin = map.Begin(); in Open()
214 std::make_unique<MemMapContainer>(std::move(map)), in Open()
363 MemMap map; in OpenFile() local
378 map = MemMap::MapFile(length, in OpenFile()
386 if (!map.IsValid()) { in OpenFile()
392 const uint8_t* begin = map.Begin(); in OpenFile()
393 size_t size = map.Size(); in OpenFile()
[all …]
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc56 PropMap* map; member
61 ProxyJavaVM(JavaVM* vm, const std::string& agent_lib, PropMap* map) in ProxyJavaVM()
64 map(map), in ProxyJavaVM()
142 auto it = funcs->proxy_vm->map->find(prop); in WrapGetSystemProperty()
143 if (it != funcs->proxy_vm->map->end()) { in WrapGetSystemProperty()
167 for (const auto& p : *funcs->proxy_vm->map) { in WrapGetSystemProperties()
202 auto it = funcs->proxy_vm->map->find(prop); in WrapSetSystemProperty()
203 if (it != funcs->proxy_vm->map->end()) { in WrapSetSystemProperty()
267 std::unique_ptr<PropMap> map(new PropMap); in ReadPropMap() local
282 map->insert({prop, val}); in ReadPropMap()
[all …]
/art/test/ImageLayoutB/
DImageLayoutB.java21 public static HashMap<String, String> map = new HashMap<String, String>(); field in MyClass
23 map.put("KEY_FOR_HASH_MAP", "VALUE_FOR_HASH_MAP");
/art/cmdline/
Dcmdline_parser_test.cc97 const TMap& map, in IsExpectedKeyValue() argument
99 auto* actual = map.Get(key); in IsExpectedKeyValue()
114 const TMap& map, in IsExpectedDefaultKeyValue() argument
116 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue()
168 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument
169 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument
170 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument
569 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F()
570 EXPECT_EQ(4u, map.Size()); in TEST_F()
571 EXPECT_KEY_VALUE(map, M::Help, Unit{}); in TEST_F()
[all …]
/art/tools/dexanalyze/
Ddexanalyze_bytecode.h70 std::map<size_t, TypeLinkage>& types);
89 std::map<std::pair<uint32_t, uint32_t>, size_t> method_linkage_counts_;
90 std::map<std::pair<uint32_t, uint32_t>, size_t> field_linkage_counts_;
91 std::map<std::vector<uint8_t>, size_t> instruction_freq_;
/art/tools/veridex/
Dhidden_api_finder.h57 std::map<std::string, std::vector<MethodReference>> reflection_locations_;
58 std::map<std::string, std::vector<MethodReference>> method_locations_;
59 std::map<std::string, std::vector<MethodReference>> field_locations_;
/art/tools/
Dmethod-to-descriptor.py32 return map(str.strip, sys.stdin)
92 func_name, ",".join(map(TypeDescriptorToName, args)))
113 args = map(str.strip, name_and_args[args_start + 1:-1].split(","))
116 "".join(map(SingleNameToDescriptor, args)),
/art/test/602-deoptimizeable/src/
DMain.java55 final HashMap<TestObject, Long> map = new HashMap<TestObject, Long>(); in main() local
106 map.put(new TestObject(10), Long.valueOf(100)); in main()
107 if (map.get(new TestObject(10)) == null) { in main()
121 if (map.get(new TestObject(10)) != 100) { in main()
/art/test/970-iface-super-resolution-gen/util-src/
Dgenerate_smali.py379 return '\n'.join(map(lambda a: self.OUTPUT_TEMPLATE.format(class_name = self.get_name(),
388 funcs = '\n'.join(map(lambda a: self.TEST_FUNC_TEMPLATE.format(iface = a.get_name(),
391 calls = '\n'.join(map(lambda a: self.TEST_CALL_TEMPLATE.format(iface = a.get_name(),
394 s_ifaces = '\n'.join(map(lambda a: self.IMPLEMENTS_TEMPLATE.format(iface_name = a.get_name()),
396 j_ifaces = ', '.join(map(lambda a: a.get_name(), self.ifaces))
497 if all(map(lambda j: i not in j.get_super_types(), all_ifaces)):
499 return ICCE if any(map(lambda i: i.default, all_ifaces)) else NSME
523 s_ifaces = '\n'.join(map(lambda a: self.IMPLEMENTS_TEMPLATE.format(iface_name = a.get_name()),
525 j_ifaces = ', '.join(map(lambda a: a.get_name(), self.ifaces))
/art/test/odsign/src/com/android/tests/odsign/
DArtifactsSignedTest.java66 .that(getArtifacts().map(File::getPath).filter((path) -> !hasFsverityNative(path)) in testArtArtifactsHaveFsverity()
73 assertThat(getArtifacts().map(File::getName).collect(Collectors.toList())) in testGeneratesRequiredArtArtifacts()
84 .map(Path::toFile) in getArtifacts()

1234567