Home
last modified time | relevance | path

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

123

/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/runtime/
Dparsed_options_test.cc74 RuntimeArgumentMap map; in TEST_F() local
75 bool parsed = ParsedOptions::Parse(options, false, &map); in TEST_F()
77 ASSERT_NE(0u, map.Size()); in TEST_F()
81 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) in TEST_F()
82 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) in TEST_F()
91 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F()
92 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F()
93 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F()
94 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F()
108 auto&& properties_list = map.GetOrDefault(Opt::PropertiesList); in TEST_F()
[all …]
Dmem_map_test.cc40 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("temp", in GetValidMapAddress() local
47 CHECK(map != nullptr); in GetValidMapAddress()
48 return map->Begin(); in GetValidMapAddress()
147 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
154 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F()
156 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F()
163 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F()
170 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousInvalid", in TEST_F() local
177 ASSERT_EQ(nullptr, map.get()); in TEST_F()
184 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local
[all …]
Dmem_map.cc67 MemMap* map = it->second; in operator <<() local
68 CHECK_EQ(base, map->BaseBegin()); in operator <<()
69 os << *map << std::endl; in operator <<()
145 MemMap* const map = pair.second; in ContainedWithinExistingMap() local
146 if (begin >= reinterpret_cast<uintptr_t>(map->Begin()) && in ContainedWithinExistingMap()
147 end <= reinterpret_cast<uintptr_t>(map->End())) { in ContainedWithinExistingMap()
153 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); in ContainedWithinExistingMap() local
154 if (map == nullptr) { in ContainedWithinExistingMap()
161 ScopedBacktraceMapIteratorLock lock(map.get()); in ContainedWithinExistingMap()
162 for (BacktraceMap::const_iterator it = map->begin(); it != map->end(); ++it) { in ContainedWithinExistingMap()
[all …]
Dzip_archive.cc58 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap() local
62 if (map.get() == nullptr) { in ExtractToMemMap()
68 map->Begin(), map->Size()); in ExtractToMemMap()
74 return map.release(); in ExtractToMemMap()
Dsafe_map.h38 typedef typename ::std::map<K, V, Comparator, Allocator>::key_compare key_compare;
39 typedef typename ::std::map<K, V, Comparator, Allocator>::value_compare value_compare;
40 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type;
41 typedef typename ::std::map<K, V, Comparator, Allocator>::iterator iterator;
42 typedef typename ::std::map<K, V, Comparator, Allocator>::const_iterator const_iterator;
43 typedef typename ::std::map<K, V, Comparator, Allocator>::size_type size_type;
44 typedef typename ::std::map<K, V, Comparator, Allocator>::key_type key_type;
45 typedef typename ::std::map<K, V, Comparator, Allocator>::value_type value_type;
145 ::std::map<K, V, Comparator, Allocator> map_;
Dprofiler.h124 typedef std::map<ArtMethod*, uint32_t> Map; // Map of method vs its count.
129 typedef std::map<MethodReference, TrieNodeSet*, MethodReferenceComparator> MethodContextMap;
134 typedef std::map<std::pair<uint32_t, std::string>, uint32_t> PreviousContextMap;
144 typedef std::map<std::string, PreviousValue> PreviousProfile;
282 typedef std::map<std::string, ProfileData> ProfileMap;
Dtransaction.h147 std::map<uint32_t, FieldValue> field_values_;
166 std::map<size_t, uint64_t> array_values_;
223 std::map<mirror::Object*, ObjectLog> object_logs_ GUARDED_BY(log_lock_);
224 std::map<mirror::Array*, ArrayLog> array_logs_ GUARDED_BY(log_lock_);
/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/cmdline/
Dcmdline_parser_test.cc90 const TMap& map, in IsExpectedKeyValue() argument
92 auto* actual = map.Get(key); in IsExpectedKeyValue()
107 const TMap& map, in IsExpectedDefaultKeyValue() argument
109 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue()
160 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument
161 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument
162 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument
610 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F()
611 EXPECT_EQ(5u, map.Size()); in TEST_F()
612 EXPECT_KEY_VALUE(map, M::Help, Unit{}); // NOLINT [whitespace/braces] [5] in TEST_F()
[all …]
DREADME.md24 For example, to save the values into a user-defined variant map:
33 // See variant_map_test.cc for how to completely define a custom map.
60 auto map = parser.GetArgumentsMap();
61 std::cout << "Help? " << map.GetOrDefault(FruitVariantMap::Help) << std::endl;
62 std::cout << "Apple? " << map.GetOrDefault(FruitVariantMap::Apple) << std::endl;
63 std::cout << "Orange? " << map.GetOrDefault(FruitVariantMap::Orange) << std::endl;
104 When parsing an enumeration, it might be very convenient to map a list of possible argument string
121 quickly map them into discrete values.
130 In general, it uses the position of the argument alias to map into the WithValues position value.
157 This specifies that when a value is parsed, it will get saved into a variant map using the specific
[all …]
/art/runtime/gc/collector/
Dimmune_spaces_test.cc41 DummyImageSpace(MemMap* map, in DummyImageSpace() argument
47 map, in DummyImageSpace()
49 map->End()), in DummyImageSpace()
84 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("DummyImageSpace", in CreateImageSpace() local
91 if (map == nullptr) { in CreateImageSpace()
112 new (map->Begin()) ImageHeader( in CreateImageSpace()
113 /*image_begin*/PointerToLowMemUInt32(map->Begin()), in CreateImageSpace()
114 /*image_size*/map->Size(), in CreateImageSpace()
116 /*image_roots*/PointerToLowMemUInt32(map->Begin()) + 1, in CreateImageSpace()
132 return new DummyImageSpace(map.release(), in CreateImageSpace()
[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/compiler/linker/
Dmulti_oat_relative_patcher.h58 auto it = method_offset_map_.map.find(method_ref); in GetOffset()
59 return (it != method_offset_map_.map.end()) ? it->second - adjustment_ : 0u; in GetOffset()
64 method_offset_map_.map.Put(method_ref, offset + adjustment_); in SetOffset()
126 SafeMap<MethodReference, uint32_t, MethodReferenceComparator> map; variable
Dmulti_oat_relative_patcher.cc64 auto it = map.find(ref); in FindMethodOffset()
65 if (it == map.end()) { in FindMethodOffset()
/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()
/art/test/970-iface-super-resolution-generated/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/tools/dexfuzz/src/dexfuzz/listeners/
DUniqueProgramTrackerListener.java187 private void addToMap(String md5sum, Map<String, Integer> map) { in addToMap() argument
188 if (map.containsKey(md5sum)) { in addToMap()
189 map.put(md5sum, map.get(md5sum) + 1); in addToMap()
191 map.put(md5sum, 1); in addToMap()
/art/test/utils/python/testgen/
Dutils.py34 map(lambda n: itertools.product(string.ascii_lowercase, repeat=n),
55 return "\n".join(map(lambda a: "# " + a, get_copyright("java").split("\n")))
/art/compiler/debug/dwarf/
Dregister.h50 static const int map[8] = {0, 2, 1, 3, 7, 6, 4, 5}; in X86_64Core() local
51 return Reg(num < 8 ? map[num] : num); in X86_64Core()
/art/test/964-default-iface-init-generated/util-src/
Dgenerate_java.py214 return "\n".join(map(lambda i: i.get_initialize_output().strip(), dump_tree(self.ifaces)))
217 return "\n".join(map(lambda a: self.TOUCH_OUTPUT_TEMPLATE.format(
233 j_ifaces = ', '.join(map(lambda a: a.get_name(), self.ifaces))
234 touches = '\n'.join(map(lambda a: self.TOUCH_CALL_TEMPLATE.format(class_name = self.class_name,
277 return TestInterface(tuple(map(lambda a: a.clone(), self.ifaces)), self.default)
325 j_ifaces = ', '.join(map(lambda a: a.get_name(), self.ifaces))
/art/test/971-iface-super/util-src/
Dgenerate_java.py69 files = list(map(str, files))
96 …tops = set(filter(lambda a: iface_filter(a) and not any(map(lambda i: a in i.get_super_types(), if…
104 overrides = functools.reduce(operator.or_, map(lambda i: i.get_super_types(), tops), set())
/art/test/968-default-partial-compile-generated/util-src/
Dgenerate_java.py69 files = list(map(str, files))
92 tops = set(filter(lambda a: not any(map(lambda i: a in i.get_super_types(), ifaces)), ifaces))
100 overrides = functools.reduce(operator.or_, map(lambda i: i.get_super_types(), tops), set())
/art/compiler/dex/quick/
Ddex_file_to_method_inliner_map.h49 std::map<const DexFile*, DexFileMethodInliner*> inliners_ GUARDED_BY(lock_);
/art/test/550-checker-regression-wide-store/
Dinfo.txt3 an incorrect stack map, causing deopt and try/catch to use a wrong location.

123