Home
last modified time | relevance | path

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

12345678

/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/utils/
Datomic_dex_ref_map_test.cc36 Map map; in TEST_F() local
39 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
40 EXPECT_FALSE(map.HaveDexFile(dex.get())); in TEST_F()
42 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F()
43 map.AddDexFile(dex.get()); in TEST_F()
44 EXPECT_TRUE(map.HaveDexFile(dex.get())); in TEST_F()
45 std::vector<const DexFile*> registered_dex_files = map.GetDexFiles(); in TEST_F()
50 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
54 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F()
56 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
[all …]
/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::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_);
61 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_);
62 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_);
63 map.AssignIfExists(Base::GenerateBuildID, &options->generate_build_id_);
64 if (map.Exists(Base::Debuggable)) {
[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 …]
Dcheck_reference_map_visitor.h85 for (StackMap map : code_info.GetStackMaps()) { in CheckOptimizedMethod() local
86 if (map.GetDexPc() == dex_pc && code_info.GetStackMaskOf(map).IsValid()) { in CheckOptimizedMethod()
87 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()
338 MemMap map = MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
343 ASSERT_FALSE(map.IsValid()) << error_msg; in TEST_F()
347 map = MemMap::MapAnonymous("MapAnonymousNonEmpty", in TEST_F()
352 ASSERT_TRUE(map.IsValid()) << error_msg; in TEST_F()
360 MemMap map = MemMap::MapAnonymous("MapAnonymousInvalid", in TEST_F() local
368 ASSERT_FALSE(map.IsValid()); in TEST_F()
376 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 <<()
163 MemMap* const map = pair.second; in ContainedWithinExistingMap() local
[all …]
/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/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/2246-trace-v2/
Ddump_trace.cc58 std::map<uint64_t, std::string>& name_map, in ProcessThreadOrMethodInfo()
143 std::map<int64_t, int>& current_depth_map, in ProcessTraceEntries()
144 std::map<uint64_t, std::string>& thread_map, in ProcessTraceEntries()
145 std::map<uint64_t, std::string>& method_map, in ProcessTraceEntries()
148 std::map<uint64_t, std::string>& ignored_method_map, in ProcessTraceEntries()
149 std::map<int64_t, int>& ignored_method_depth_map) { in ProcessTraceEntries()
248 std::map<uint64_t, std::string> thread_map; in Java_Main_dumpTrace()
249 std::map<uint64_t, std::string> method_map; in Java_Main_dumpTrace()
250 std::map<uint64_t, std::string> ignored_method_map; in Java_Main_dumpTrace()
251 std::map<int64_t, int> current_depth_map; in Java_Main_dumpTrace()
[all …]
/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
573 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F()
574 EXPECT_EQ(4u, map.Size()); in TEST_F()
575 EXPECT_KEY_VALUE(map, M::Help, Unit{}); in TEST_F()
[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/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()
/art/tools/ahat/src/main/com/android/ahat/
DMain.java67 ProguardMap map, Progress progress, Reachability retained) { in loadHeapDump() argument
70 return new Parser(hprof).map(map).progress(progress).retained(retained).parse(); in loadHeapDump()
101 ProguardMap map = new ProguardMap(); in main() local
111 map.readFromFile(new File(args[i])); in main()
176 AhatSnapshot ahat = loadHeapDump(hprof, map, new AsciiProgress(), retained); in main()
/art/runtime/base/
Dgc_visited_arena_pool.cc113 MemMap& map = maps_.back(); in AddMap() local
114 if (!map.IsValid()) { in AddMap()
124 mark_compact->AddLinearAllocSpaceData(map.Begin(), map.Size()); in AddMap()
126 Chunk* chunk = new Chunk(map.Begin(), map.Size()); in AddMap()
129 return map.Begin(); in AddMap()
161 MemMap& map = maps_.back(); in AddPreZygoteForkMap() local
162 if (!map.IsValid()) { in AddPreZygoteForkMap()
166 return map.Begin(); in AddPreZygoteForkMap()

12345678