Home
last modified time | relevance | path

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

123456

/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.h35 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) { in ReadCompilerOptions() argument
36 if (map.Exists(Base::CompilerFilter)) { in ReadCompilerOptions()
38 if (!CompilerFilter::ParseCompilerFilter(map.Get(Base::CompilerFilter)->c_str(), in ReadCompilerOptions()
41 map.Get(Base::CompilerFilter)->c_str()); in ReadCompilerOptions()
46 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_); in ReadCompilerOptions()
47 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_); in ReadCompilerOptions()
48 map.AssignIfExists(Base::SmallMethodMaxThreshold, &options->small_method_threshold_); in ReadCompilerOptions()
49 map.AssignIfExists(Base::TinyMethodMaxThreshold, &options->tiny_method_threshold_); in ReadCompilerOptions()
50 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); in ReadCompilerOptions()
51 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_); in ReadCompilerOptions()
[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()
83 EXPECT_EQ(expected, static_cast<std::vector<std::string>>(map.GetOrDefault(actual_key))) in TEST_F()
84 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) in TEST_F()
93 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F()
94 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F()
95 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F()
96 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F()
[all …]
Dnative_stack_dump.cc323 BacktraceMap* map = existing_map; in DumpNativeStack() local
325 if (map == nullptr) { in DumpNativeStack()
327 map = tmp_map.get(); in DumpNativeStack()
329 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack()
364 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack()
372 if (it->map.name.empty()) { in DumpNativeStack()
373 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack()
375 os << it->map.name; in DumpNativeStack()
377 if (it->map.offset != 0) { in DumpNativeStack()
378 os << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); in DumpNativeStack()
[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/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 const int32_t error = ExtractToMemory(handle_, zip_entry_, map.Begin(), map.Size()); in ExtractToMemMap()
93 return map; in ExtractToMemMap()
134 MemMap map = in MapDirectlyFromFile() local
144 if (!map.IsValid()) { in MapDirectlyFromFile()
171 if (map.IsValid()) { in MapDirectlyFromFile()
176 uint8_t* begin = map.Begin(); in MapDirectlyFromFile()
187 return map; in MapDirectlyFromFile()
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;
163 ::std::map<K, V, Comparator, Allocator> map_;
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 …]
/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.cc186 MemMap&& map, in Open() argument
191 CHECK(map.IsValid()); in Open()
193 size_t size = map.Size(); in Open()
201 uint8_t* begin = map.Begin(); in Open()
212 std::make_unique<MemMapContainer>(std::move(map)), in Open()
318 MemMap map; in OpenFile() local
333 map = MemMap::MapFile(length, in OpenFile()
341 if (!map.IsValid()) { in OpenFile()
347 const uint8_t* begin = map.Begin(); in OpenFile()
348 size_t size = map.Size(); in OpenFile()
[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/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/tools/veridex/
Dhidden_api_finder.h55 std::map<std::string, std::vector<MethodReference>> reflection_locations_;
56 std::map<std::string, std::vector<MethodReference>> method_locations_;
57 std::map<std::string, std::vector<MethodReference>> field_locations_;
Dprecise_hidden_api_finder.h58 std::map<MethodReference, std::vector<ReflectAccessInfo>> concrete_uses_;
59 std::map<MethodReference, std::vector<ReflectAccessInfo>> abstract_uses_;
/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/cmdline/
Dcmdline_parser_test.cc98 const TMap& map, in IsExpectedKeyValue() argument
100 auto* actual = map.Get(key); in IsExpectedKeyValue()
115 const TMap& map, in IsExpectedDefaultKeyValue() argument
117 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue()
169 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument
170 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument
171 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument
574 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F()
575 EXPECT_EQ(4u, map.Size()); in TEST_F()
576 EXPECT_KEY_VALUE(map, M::Help, Unit{}); in TEST_F()
[all …]
/art/libdexfile/external/
Ddex_file_ext.cc55 explicit MappedFileContainer(std::unique_ptr<android::base::MappedFile>&& map) in MappedFileContainer() argument
56 : map_(std::move(map)) {} in MappedFileContainer()
106 std::map<int32_t, art::MethodCacheEntry> method_cache_;
238 std::unique_ptr<android::base::MappedFile> map = in ExtDexFileOpenFromFd() local
240 if (map == nullptr) { in ExtDexFileOpenFromFd()
246 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(map->data()); in ExtDexFileOpenFromFd()
262 void* addr = map->data(); in ExtDexFileOpenFromFd()
263 size_t size = map->size(); in ExtDexFileOpenFromFd()
264 auto container = std::make_unique<art::MappedFileContainer>(std::move(map)); in ExtDexFileOpenFromFd()
/art/test/602-deoptimizeable/src/
DMain.java55 final HashMap<DummyObject, Long> map = new HashMap<DummyObject, Long>(); in main() local
106 map.put(new DummyObject(10), Long.valueOf(100)); in main()
107 if (map.get(new DummyObject(10)) == null) { in main()
121 if (map.get(new DummyObject(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/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/tools/class2greylist/src/com/android/class2greylist/
DClass2Greylist.java67 Map<Integer, String> map = new HashMap<>();
68 map.put(null, FLAG_GREYLIST); in map.put()
69 map.put(26, FLAG_GREYLIST_MAX_O);
70 map.put(28, FLAG_GREYLIST_MAX_P);
71 TARGET_SDK_TO_LIST_MAP = Collections.unmodifiableMap(map);
182 .map(s -> Splitter.on(",").splitToList(s)) in Class2Greylist()
184 .map(s -> s.get(0)) in Class2Greylist()

123456