/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 | 57 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 …]
|
D | TestDump.java | 115 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/ |
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 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::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); in ReadCompilerOptions() 49 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_); in ReadCompilerOptions() 50 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_); in ReadCompilerOptions() 51 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_); 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() 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/ |
D | parsed_options_test.cc | 75 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 …]
|
D | native_stack_dump.cc | 329 BacktraceMap* map = existing_map; in DumpNativeStack() local 331 if (map == nullptr) { in DumpNativeStack() 333 map = tmp_map.get(); in DumpNativeStack() 335 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack() 370 if (!BacktraceMap::IsValid(it->map)) { in DumpNativeStack() 378 if (it->map.name.empty()) { in DumpNativeStack() 379 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpNativeStack() 381 os << it->map.name; in DumpNativeStack() 383 if (it->map.offset != 0) { in DumpNativeStack() 384 os << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); in DumpNativeStack() [all …]
|
/art/libartbase/base/ |
D | mem_map_test.cc | 55 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 …]
|
D | zip_archive.cc | 77 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()
|
D | safe_copy_test.cc | 37 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()
|
D | mem_map.cc | 63 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 …]
|
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; 167 ::std::map<K, V, Comparator, Allocator> map_;
|
/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/test/687-deopt/src/ |
D | Main.java | 29 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/ |
D | art_dex_file_loader.cc | 186 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/tools/jvmti-agents/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 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/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/class2greylist/src/com/android/class2greylist/ |
D | Class2Greylist.java | 60 Map<Integer, String> map = new HashMap<>(); 61 map.put(null, FLAG_GREYLIST); in map.put() 62 map.put(0, FLAG_BLACKLIST); 63 map.put(26, FLAG_GREYLIST_MAX_O); 64 map.put(28, FLAG_GREYLIST_MAX_P); 65 map.put(29, FLAG_GREYLIST_MAX_Q); 66 TARGET_SDK_TO_LIST_MAP = Collections.unmodifiableMap(map); 172 .map(s -> Splitter.on(",").splitToList(s)) in Class2Greylist() 174 .map(s -> s.get(0)) in Class2Greylist()
|
/art/tools/dexanalyze/ |
D | dexanalyze_bytecode.h | 70 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/ |
D | cmdline_parser_test.cc | 97 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/tools/veridex/ |
D | hidden_api_finder.h | 57 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/libdexfile/external/ |
D | dex_file_ext.cc | 55 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/ |
D | Main.java | 55 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/ |
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/libnativebridge/ |
D | Android.bp | 50 version_script: "libnativebridge.map.txt", 53 version_script: "libnativebridge.map.txt", 58 symbol_file: "libnativebridge.map.txt",
|