/art/test/545-tracing-and-jit/src/ |
D | Main.java | 107 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/ |
D | ProguardMapTest.java | 52 ProguardMap map = new ProguardMap(); in proguardMap() local 55 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap() 56 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in proguardMap() 57 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in proguardMap() 58 assertEquals("myfield", map.getFieldName("fooBarSludge", "myfield")); in proguardMap() 59 ProguardMap.Frame frame = map.getFrame( in proguardMap() 67 map.readFromReader(new StringReader(TEST_MAP)); in proguardMap() 70 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap() 71 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in proguardMap() 72 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in proguardMap() [all …]
|
D | TestDump.java | 109 ProguardMap map = new ProguardMap(); in load() local 114 map.readFromReader(new InputStreamReader(is)); in load() 122 mSnapshot = Parser.parseHeapDump(hprof, map); in load() 132 mBaseline = Parser.parseHeapDump(hprofBase, map); in load() 254 public static synchronized TestDump getTestDump(String hprof, String base, String map) in getTestDump() argument 259 && Objects.equals(loaded.mMapResource, map)) { in getTestDump() 267 TestDump dump = new TestDump(hprof, base, map); in getTestDump()
|
/art/compiler/driver/ |
D | compiler_options_map-inl.h | 35 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 if (map.Exists(Base::PIC)) { in ReadCompilerOptions() 49 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_); in ReadCompilerOptions() 50 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_); in ReadCompilerOptions() 51 map.AssignIfExists(Base::SmallMethodMaxThreshold, &options->small_method_threshold_); in ReadCompilerOptions() 52 map.AssignIfExists(Base::TinyMethodMaxThreshold, &options->tiny_method_threshold_); in ReadCompilerOptions() 53 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); in ReadCompilerOptions() [all …]
|
/art/compiler/utils/ |
D | atomic_dex_ref_map_test.cc | 35 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() 46 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 50 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F() 52 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 55 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F() [all …]
|
/art/runtime/ |
D | parsed_options_test.cc | 73 RuntimeArgumentMap map; in TEST_F() local 74 bool parsed = ParsedOptions::Parse(options, false, &map); in TEST_F() 76 ASSERT_NE(0u, map.Size()); in TEST_F() 80 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) in TEST_F() 81 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) in TEST_F() 90 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F() 91 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F() 92 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F() 93 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F() 107 auto&& properties_list = map.GetOrDefault(Opt::PropertiesList); in TEST_F() [all …]
|
D | mem_map_test.cc | 62 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("temp", in GetValidMapAddress() local 69 CHECK(map != nullptr); in GetValidMapAddress() 70 return map->Begin(); in GetValidMapAddress() 349 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local 356 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 358 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() 365 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 372 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousInvalid", in TEST_F() local 379 ASSERT_EQ(nullptr, map.get()); in TEST_F() 386 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local [all …]
|
D | zip_archive.cc | 81 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap() local 85 if (map.get() == nullptr) { in ExtractToMemMap() 91 map->Begin(), map->Size()); in ExtractToMemMap() 97 return map.release(); in ExtractToMemMap() 138 std::unique_ptr<MemMap> map( in MapDirectlyFromFile() local 150 if (map == nullptr) { in MapDirectlyFromFile() 177 if (map != nullptr) { in MapDirectlyFromFile() 182 uint8_t* begin = map->Begin(); in MapDirectlyFromFile() 193 return map.release(); in MapDirectlyFromFile()
|
D | native_stack_dump.cc | 297 BacktraceMap* map = existing_map; in DumpNativeStack() local 299 if (map == nullptr) { in DumpNativeStack() 301 map = tmp_map.get(); in DumpNativeStack() 303 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack() 338 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack() 346 if (it->map.name.empty()) { in DumpNativeStack() 347 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack() 349 os << it->map.name; in DumpNativeStack() 351 if (it->map.offset != 0) { in DumpNativeStack() 352 os << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); in DumpNativeStack() [all …]
|
D | mem_map.cc | 80 MemMap* map = it->second; in operator <<() local 81 CHECK_EQ(base, map->BaseBegin()); in operator <<() 82 os << *map << std::endl; in operator <<() 158 MemMap* const map = pair.second; in ContainedWithinExistingMap() local 159 if (begin >= reinterpret_cast<uintptr_t>(map->Begin()) && in ContainedWithinExistingMap() 160 end <= reinterpret_cast<uintptr_t>(map->End())) { in ContainedWithinExistingMap() 166 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); in ContainedWithinExistingMap() local 167 if (map == nullptr) { in ContainedWithinExistingMap() 174 ScopedBacktraceMapIteratorLock lock(map.get()); in ContainedWithinExistingMap() 175 for (BacktraceMap::iterator it = map->begin(); it != map->end(); ++it) { in ContainedWithinExistingMap() [all …]
|
/art/test/004-InterfaceTest/src/ |
D | Main.java | 22 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/runtime/dex/ |
D | art_dex_file_loader.cc | 183 std::unique_ptr<MemMap> map, in Open() argument 188 CHECK(map.get() != nullptr); in Open() 190 if (map->Size() < sizeof(DexFile::Header)) { in Open() 197 std::unique_ptr<DexFile> dex_file = OpenCommon(map->Begin(), in Open() 198 map->Size(), in Open() 207 std::make_unique<MemMapContainer>(std::move(map)), in Open() 288 std::unique_ptr<MemMap> map; in OpenFile() local 303 map.reset(MemMap::MapFile(length, in OpenFile() 311 if (map == nullptr) { in OpenFile() 317 if (map->Size() < sizeof(DexFile::Header)) { in OpenFile() [all …]
|
/art/tools/wrapagentproperties/ |
D | wrapagentproperties.cc | 56 PropMap* map; member 61 ProxyJavaVM(JavaVM* vm, const std::string& agent_lib, PropMap* map) in ProxyJavaVM() 64 map(map), in ProxyJavaVM() 142 if (funcs->proxy_vm->map->find(prop) != funcs->proxy_vm->map->end()) { in WrapGetSystemProperty() 144 const std::string& val = funcs->proxy_vm->map->at(str_prop); in WrapGetSystemProperty() 166 for (const auto& p : *funcs->proxy_vm->map) { in WrapGetSystemProperties() 201 if (funcs->proxy_vm->map->find(prop) != funcs->proxy_vm->map->end()) { in WrapSetSystemProperty() 202 funcs->proxy_vm->map->at(prop) = val; in WrapSetSystemProperty() 265 std::unique_ptr<PropMap> map(new PropMap); in ReadPropMap() local 280 map->insert({prop, val}); in ReadPropMap() [all …]
|
/art/cmdline/ |
D | cmdline_parser_test.cc | 92 const TMap& map, in IsExpectedKeyValue() argument 94 auto* actual = map.Get(key); in IsExpectedKeyValue() 109 const TMap& map, in IsExpectedDefaultKeyValue() argument 111 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue() 163 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument 164 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument 165 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument 563 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F() 564 EXPECT_EQ(5u, map.Size()); in TEST_F() 565 EXPECT_KEY_VALUE(map, M::Help, Unit{}); in TEST_F() [all …]
|
/art/test/ImageLayoutB/ |
D | ImageLayoutB.java | 21 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/veridex/ |
D | hidden_api_finder.h | 54 std::map<std::string, std::vector<MethodReference>> reflection_locations_; 55 std::map<std::string, std::vector<MethodReference>> method_locations_; 56 std::map<std::string, std::vector<MethodReference>> field_locations_;
|
D | precise_hidden_api_finder.h | 58 std::map<MethodReference, std::vector<ReflectAccessInfo>> concrete_uses_; 59 std::map<MethodReference, std::vector<ReflectAccessInfo>> abstract_uses_;
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 43 DummyImageSpace(MemMap* map, in DummyImageSpace() argument 49 map, in DummyImageSpace() 51 map->End()), in DummyImageSpace() 86 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("DummyImageSpace", in CreateImageSpace() local 93 if (map == nullptr) { in CreateImageSpace() 114 new (map->Begin()) ImageHeader( in CreateImageSpace() 115 /*image_begin*/PointerToLowMemUInt32(map->Begin()), in CreateImageSpace() 116 /*image_size*/map->Size(), in CreateImageSpace() 118 /*image_roots*/PointerToLowMemUInt32(map->Begin()) + 1, in CreateImageSpace() 134 return new DummyImageSpace(map.release(), in CreateImageSpace() [all …]
|
/art/libartbase/base/ |
D | safe_map.h | 37 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_;
|
D | safe_copy_test.cc | 36 void* map = mmap(nullptr, kPageSize * 4, PROT_READ | PROT_WRITE, in TEST() local 38 ASSERT_NE(MAP_FAILED, map); in TEST() 39 char* page1 = static_cast<char*>(map); in TEST() 77 ASSERT_EQ(0, munmap(map, kPageSize * 3)); in TEST()
|
/art/dexlayout/ |
D | dexdiag.cc | 61 static const std::map<uint16_t, DexSectionInfo> kDexSectionInfoMap = { 98 std::map<uint16_t, size_t> map_; 319 static bool DisplayMappingIfFromVdexFile(pm_map_t* map, Printer* printer) { in DisplayMappingIfFromVdexFile() argument 320 std::string vdex_name = pm_map_name(map); in DisplayMappingIfFromVdexFile() 349 if (pm_map_pagemap(map, &pagemap, &len) != 0) { in DisplayMappingIfFromVdexFile() 355 << pm_map_name(map) in DisplayMappingIfFromVdexFile() 356 << StringPrintf(": %" PRIx64 "-%" PRIx64, pm_map_start(map), pm_map_end(map)) in DisplayMappingIfFromVdexFile() 360 pm_map_start(map), in DisplayMappingIfFromVdexFile() 408 static bool DisplayMappingIfFromOatFile(pm_map_t* map, Printer* printer) { in DisplayMappingIfFromOatFile() argument 412 if (pm_map_pagemap(map, &pagemap, &len) != 0) { in DisplayMappingIfFromOatFile() [all …]
|
/art/test/970-iface-super-resolution-gen/util-src/ |
D | generate_smali.py | 379 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/dex2oat/linker/ |
D | multi_oat_relative_patcher.h | 57 auto it = method_offset_map_.map.find(method_ref); in GetOffset() 58 return (it != method_offset_map_.map.end()) ? it->second - adjustment_ : 0u; in GetOffset() 63 method_offset_map_.map.Put(method_ref, offset + adjustment_); in SetOffset() 137 SafeMap<MethodReference, uint32_t> map; variable
|
/art/libdexfile/dex/ |
D | dex_file_loader.cc | 73 std::vector<uint8_t> map(GetUncompressedLength()); in Extract() local 74 if (map.size() == 0) { in Extract() 76 return map; in Extract() 78 const int32_t error = ExtractToMemory(handle_, zip_entry_, map.data(), map.size()); in Extract() 82 return map; in Extract() 404 std::vector<uint8_t> map(zip_entry->Extract(error_msg)); in OpenOneDexFileFromZip() local 405 if (map.size() == 0) { in OpenOneDexFileFromZip() 413 map.data(), in OpenOneDexFileFromZip() 414 map.size(), in OpenOneDexFileFromZip() 423 std::make_unique<VectorContainer>(std::move(map)), in OpenOneDexFileFromZip()
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | Main.java | 61 private static AhatSnapshot loadHeapDump(File hprof, ProguardMap map) { in loadHeapDump() argument 64 return Parser.parseHeapDump(hprof, map); in loadHeapDump() 95 ProguardMap map = new ProguardMap(); in main() local 104 map.readFromFile(new File(args[i])); in main() 155 AhatSnapshot ahat = loadHeapDump(hprof, map); in main()
|