Searched refs:map (Results 1 - 25 of 72) sorted by relevance

123

/art/test/545-tracing-and-jit/src/
H A DMain.java107 Map map = new HashMap();
108 map.put("foo", "bar");
109 map.clear();
110 map.containsKey("foo");
111 map.containsValue("foo");
112 map.entrySet();
113 map.equals(map);
114 map.hashCode();
115 map
[all...]
/art/test/ImageLayoutB/
H A DImageLayoutB.java21 public static HashMap<String, String> map = new HashMap<String, String>(); field in class:MyClass
23 map.put("KEY_FOR_HASH_MAP", "VALUE_FOR_HASH_MAP");
/art/compiler/dex/quick/
H A Ddex_file_to_method_inliner_map.h20 #include <map>
49 std::map<const DexFile*, DexFileMethodInliner*> inliners_ GUARDED_BY(lock_);
/art/test/004-InterfaceTest/src/
H A DMain.java22 public static long test_virtual(HashMap map) { argument
27 map.put(intobj, s);
33 public static long test_interface(Map map) { argument
38 map.put(intobj, s);
/art/runtime/
H A Dparsed_options_test.cc74 RuntimeArgumentMap map; local
75 bool parsed = ParsedOptions::Parse(options, false, &map);
77 ASSERT_NE(0u, map.Size());
81 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key))
82 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key))
91 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization));
92 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf));
93 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit));
94 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort));
108 auto&& properties_list = map
118 RuntimeArgumentMap map; local
137 RuntimeArgumentMap map; local
156 RuntimeArgumentMap map; local
[all...]
H A Dmem_map_test.cc38 // Find a valid map address and unmap it before returning.
40 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("temp",
47 CHECK(map != nullptr);
48 return map->Begin();
147 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty",
154 ASSERT_TRUE(map.get() != nullptr) << error_msg;
156 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty",
163 ASSERT_TRUE(map.get() != nullptr) << error_msg;
170 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousInvalid",
177 ASSERT_EQ(nullptr, map
278 std::unique_ptr<MemMap> map; local
[all...]
H A Dzip_archive.cc58 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(),
62 if (map.get() == nullptr) {
68 map->Begin(), map->Size());
74 return map.release();
H A Dsafe_map.h20 #include <map>
29 // Equivalent to std::map, but without operator[] and its bug-prone semantics (in particular,
38 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<
[all...]
H A Dmem_map.cc67 MemMap* map = it->second; local
68 CHECK_EQ(base, map->BaseBegin());
69 os << *map << std::endl;
134 // Return true if the address range is contained in a single memory map by either reading
135 // the maps_ variable or the /proc/self/map entry.
145 MemMap* const map = pair.second; local
146 if (begin >= reinterpret_cast<uintptr_t>(map->Begin()) &&
147 end <= reinterpret_cast<uintptr_t>(map->End())) {
153 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true));
154 if (map
636 MemMap* map = begin_map; local
669 MemMap* map = it->second; local
712 HasMemMap(MemMap* map) argument
729 MemMap* map = it->second; local
[all...]
H A 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;
281 // Profile data is stored in a map, indexed by the full method name.
282 typedef std::map<std::string, ProfileData> ProfileMap;
H A Dtransaction.h30 #include <map>
147 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_);
H A Dmem_map.h23 #include <map>
147 // Resize the mem-map by unmapping pages at the end. Currently only supports shrinking.
170 // Unmap the pages at end and remap them to create another memory map.
187 // If the map is PROT_READ, try to read each page of the map to check it is in fact readable (not
204 static bool HasMemMap(MemMap* map)
226 int prot_; // Protection of the map.
/art/compiler/linker/
H A Dmulti_oat_relative_patcher.h58 auto it = method_offset_map_.map.find(method_ref);
59 return (it != method_offset_map_.map.end()) ? it->second - adjustment_ : 0u;
64 method_offset_map_.map.Put(method_ref, offset + adjustment_);
122 // Wrap the map in a class implementing linker::RelativePatcherTargetProvider.
126 SafeMap<MethodReference, uint32_t, MethodReferenceComparator> map; member in class:art::linker::FINAL::MethodOffsetMap
H A Dmulti_oat_relative_patcher.cc64 auto it = map.find(ref);
65 if (it == map.end()) {
/art/compiler/debug/dwarf/
H A Dregister.h50 static const int map[8] = {0, 2, 1, 3, 7, 6, 4, 5}; local
51 return Reg(num < 8 ? map[num] : num);
/art/test/utils/python/testgen/
H A 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/runtime/gc/collector/
H A Dimmune_spaces_test.cc41 DummyImageSpace(MemMap* map, argument
47 map,
49 map->End()),
84 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("DummyImageSpace",
91 if (map == nullptr) {
112 new (map->Begin()) ImageHeader(
113 /*image_begin*/PointerToLowMemUInt32(map->Begin()),
114 /*image_size*/map->Size(),
116 /*image_roots*/PointerToLowMemUInt32(map->Begin()) + 1,
132 return new DummyImageSpace(map
[all...]
/art/test/099-vmdebug/src/
H A DMain.java207 Map<String, String> map = VMDebug.getRuntimeStats();
208 String gc_count = map.get("art.gc.gc-count");
209 String gc_time = map.get("art.gc.gc-time");
210 String bytes_allocated = map.get("art.gc.bytes-allocated");
211 String bytes_freed = map.get("art.gc.bytes-freed");
212 String blocking_gc_count = map.get("art.gc.blocking-gc-count");
213 String blocking_gc_time = map.get("art.gc.blocking-gc-time");
214 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram");
216 map.get("art.gc.blocking-gc-count-rate-histogram");
/art/test/970-iface-super-resolution-generated/util-src/
H A 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/cmdline/
H A Dcmdline_parser_test.cc90 const TMap& map,
92 auto* actual = map.Get(key);
102 return ::testing::AssertionFailure() << "key was not in the map";
107 const TMap& map,
109 const T& actual = map.GetOrDefault(key);
160 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key))
161 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key))
162 #define EXPECT_DEFAULT_KEY_VALUE(map, ke
89 IsExpectedKeyValue(const T& expected, const TMap& map, const TKey& key) argument
106 IsExpectedDefaultKeyValue(const T& expected, const TMap& map, const TKey& key) argument
610 auto&& map = parser_->ReleaseArgumentsMap(); local
[all...]
/art/tools/dexfuzz/src/dexfuzz/listeners/
H A DUniqueProgramTrackerListener.java187 private void addToMap(String md5sum, Map<String, Integer> map) { argument
188 if (map.containsKey(md5sum)) {
189 map.put(md5sum, map.get(md5sum) + 1);
191 map.put(md5sum, 1);
/art/test/968-default-partial-compile-generated/util-src/
H A 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/test/971-iface-super/util-src/
H A 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(), ifaces)), ifaces))
104 overrides = functools.reduce(operator.or_, map(lambda i: i.get_super_types(), tops), set())
/art/test/964-default-iface-init-generated/util-src/
H A 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/imgdiag/
H A Dimgdiag.cc26 #include <map>
123 // Find the memory map only for boot.art
124 for (const backtrace_map_t& map : *proc_maps) {
125 if (EndsWith(map.name, GetImageLocationBaseName())) {
126 if ((map.flags & PROT_WRITE) != 0) {
127 boot_map = map;
131 // In actuality there's more than 1 map, but the second one is read-only.
132 // The one we care about is the write-able map.
139 os << "Could not find map for " << GetImageLocationBaseName();
303 // Memory-map /pro
880 SortByValueDesc( const std::map<K, D> map, std::function<V(const D&)> value_mapper = [](const D& d) { return static_cast<V>(d); }) argument
[all...]

Completed in 568 milliseconds

123