Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 173) 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.java57 ProguardMap map = new ProguardMap(); in proguardMap() local
60 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap()
61 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in proguardMap()
62 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in proguardMap()
63 assertEquals("myfield", map.getFieldName("fooBarSludge", "myfield")); in proguardMap()
64 ProguardMap.Frame frame = map.getFrame( in proguardMap()
72 map.readFromReader(new StringReader(TEST_MAP)); in proguardMap()
75 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap()
76 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in proguardMap()
77 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in proguardMap()
[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()
95 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F()
96 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F()
97 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F()
98 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F()
[all …]
Dnative_stack_dump.cc327 BacktraceMap* map = existing_map; in DumpNativeStack() local
329 if (map == nullptr) { in DumpNativeStack()
331 map = tmp_map.get(); in DumpNativeStack()
333 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack()
368 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack()
376 if (it->map.name.empty()) { in DumpNativeStack()
377 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack()
379 os << it->map.name; in DumpNativeStack()
381 if (it->map.offset != 0) { in DumpNativeStack()
382 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()
Dsafe_map.h37 typedef typename ::std::map<K, V, Comparator, Allocator>::key_compare key_compare;
38 typedef typename ::std::map<K, V, Comparator, Allocator>::value_compare value_compare;
39 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type;
40 typedef typename ::std::map<K, V, Comparator, Allocator>::iterator iterator;
41 typedef typename ::std::map<K, V, Comparator, Allocator>::const_iterator const_iterator;
42 typedef typename ::std::map<K, V, Comparator, Allocator>::size_type size_type;
43 typedef typename ::std::map<K, V, Comparator, Allocator>::key_type key_type;
44 typedef typename ::std::map<K, V, Comparator, Allocator>::value_type value_type;
167 ::std::map<K, V, Comparator, Allocator> map_;
/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/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()
332 MemMap map; in OpenFile() local
347 map = MemMap::MapFile(length, in OpenFile()
355 if (!map.IsValid()) { in OpenFile()
361 const uint8_t* begin = map.Begin(); in OpenFile()
362 size_t size = map.Size(); in OpenFile()
[all …]
/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/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/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/099-vmdebug/src/
DMain.java207 Map<String, String> map = VMDebug.getRuntimeStats(); in testRuntimeStats() local
208 String gc_count = map.get("art.gc.gc-count"); in testRuntimeStats()
209 String gc_time = map.get("art.gc.gc-time"); in testRuntimeStats()
210 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testRuntimeStats()
211 String bytes_freed = map.get("art.gc.bytes-freed"); in testRuntimeStats()
212 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testRuntimeStats()
213 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testRuntimeStats()
214 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testRuntimeStats()
216 map.get("art.gc.blocking-gc-count-rate-histogram"); in testRuntimeStats()

1234567