/art/test/545-tracing-and-jit/src/ |
H A D | Main.java | 107 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/tools/ahat/src/test/com/android/ahat/ |
H A D | ProguardMapTest.java | 52 ProguardMap map = new ProguardMap(); 54 // An empty proguard map should not deobfuscate anything. 55 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); 56 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); 57 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); 58 assertEquals("myfield", map.getFieldName("fooBarSludge", "myfield")); 59 ProguardMap.Frame frame = map.getFrame( 66 // Read in the proguard map. 67 map.readFromReader(new StringReader(TEST_MAP)); 69 // It should still not deobfuscate things that aren't in the map [all...] |
/art/test/ImageLayoutB/ |
H A D | ImageLayoutB.java | 21 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/utils/ |
H A D | atomic_dex_ref_map_test.cc | 35 Map map; 38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); 39 EXPECT_FALSE(map.HaveDexFile(dex.get())); 41 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); 42 map.AddDexFile(dex.get()); 43 EXPECT_TRUE(map.HaveDexFile(dex.get())); 46 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); 50 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == 52 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); 55 EXPECT_TRUE(map [all...] |
/art/compiler/debug/ |
H A D | debug_info.h | 20 #include <map> 36 std::map<uint32_t, const DexFile*> dex_files; // Offset in section -> dex file content.
|
/art/compiler/driver/ |
H A D | compiler_options_map-inl.h | 35 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) { argument 36 if (map.Exists(Base::CompilerFilter)) { 38 if (!CompilerFilter::ParseCompilerFilter(map.Get(Base::CompilerFilter)->c_str(), 41 map.Get(Base::CompilerFilter)->c_str()); 46 if (map.Exists(Base::PIC)) { 49 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_); 50 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_); 51 map.AssignIfExists(Base::SmallMethodMaxThreshold, &options->small_method_threshold_); 52 map.AssignIfExists(Base::TinyMethodMaxThreshold, &options->tiny_method_threshold_); 53 map [all...] |
/art/test/004-InterfaceTest/src/ |
H A D | Main.java | 22 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 D | parsed_options_test.cc | 73 RuntimeArgumentMap map; local 74 bool parsed = ParsedOptions::Parse(options, false, &map); 76 ASSERT_NE(0u, map.Size()); 80 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) 81 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) 90 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); 91 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); 92 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); 93 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); 107 auto&& properties_list = map 117 RuntimeArgumentMap map; local 136 RuntimeArgumentMap map; local 155 RuntimeArgumentMap map; local [all...] |
H A D | native_stack_dump.h | 35 BacktraceMap* map = nullptr,
|
H A D | zip_archive.cc | 81 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(), 85 if (map.get() == nullptr) { 91 map->Begin(), map->Size()); 97 return map.release(); 108 StringPrintf("Cannot map '%s' (in zip '%s') directly because the zip archive " 114 *error_msg = StringPrintf("Cannot map '%s' (in zip '%s') directly because it is compressed.", 119 *error_msg = StringPrintf("Cannot map '%s' (in zip '%s') directly because " 138 std::unique_ptr<MemMap> map( 146 false, // Doesn't overlap existing map (reus [all...] |
H A D | native_stack_dump.cc | 297 BacktraceMap* map = existing_map; local 299 if (map == nullptr) { 301 map = tmp_map.get(); 303 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); 338 if (!BacktraceMap::IsValid(it->map)) { 346 if (it->map.name.empty()) { 347 os << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); 349 os << it->map.name; 351 if (it->map.offset != 0) { 352 os << StringPrintf(" (offset %" PRIx64 ")", it->map [all...] |
H A D | mem_map.cc | 26 #include <map> 80 MemMap* map = it->second; local 81 CHECK_EQ(base, map->BaseBegin()); 82 os << *map << std::endl; 147 // Return true if the address range is contained in a single memory map by either reading 148 // the gMaps variable or the /proc/self/map entry. 158 MemMap* const map = pair.second; local 159 if (begin >= reinterpret_cast<uintptr_t>(map->Begin()) && 160 end <= reinterpret_cast<uintptr_t>(map->End())) { 166 std::unique_ptr<BacktraceMap> map(BacktraceMa 752 MemMap* map = begin_map; local 785 MemMap* map = it->second; local 828 HasMemMap(MemMap* map) argument 845 MemMap* map = it->second; local [all...] |
H A D | mem_map_test.cc | 60 // Find a valid map address and unmap it before returning. 62 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("temp", 69 CHECK(map != nullptr); 70 return map->Begin(); 349 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", 356 ASSERT_TRUE(map.get() != nullptr) << error_msg; 358 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty", 365 ASSERT_TRUE(map.get() != nullptr) << error_msg; 372 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousInvalid", 379 ASSERT_EQ(nullptr, map 480 std::unique_ptr<MemMap> map; local [all...] |
H A D | dex_reference_collection.h | 20 #include <map> 37 using DexFileMap = std::map< 72 // prevent map lookups.
|
/art/tools/veridex/ |
H A D | precise_hidden_api_finder.h | 24 #include <map> 58 std::map<MethodReference, std::vector<ReflectAccessInfo>> concrete_uses_; 59 std::map<MethodReference, std::vector<ReflectAccessInfo>> abstract_uses_;
|
H A D | hidden_api_finder.h | 23 #include <map> 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_;
|
/art/cmdline/ |
H A D | cmdline_parser_test.cc | 92 const TMap& map, 94 auto* actual = map.Get(key); 104 return ::testing::AssertionFailure() << "key was not in the map"; 109 const TMap& map, 111 const T& actual = map.GetOrDefault(key); 163 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) 164 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) 165 #define EXPECT_DEFAULT_KEY_VALUE(map, ke 91 IsExpectedKeyValue(const T& expected, const TMap& map, const TKey& key) argument 108 IsExpectedDefaultKeyValue(const T& expected, const TMap& map, const TKey& key) argument 563 auto&& map = parser_->ReleaseArgumentsMap(); local [all...] |
/art/tools/wrapagentproperties/ |
H A D | wrapagentproperties.cc | 56 PropMap* map; member in struct:wrapagentproperties::ProxyJavaVM 61 ProxyJavaVM(JavaVM* vm, const std::string& agent_lib, PropMap* map) argument 64 map(map), 142 if (funcs->proxy_vm->map->find(prop) != funcs->proxy_vm->map->end()) { 144 const std::string& val = funcs->proxy_vm->map->at(str_prop); 166 for (const auto& p : *funcs->proxy_vm->map) { 201 if (funcs->proxy_vm->map->find(prop) != funcs->proxy_vm->map 312 PropMap* map = ReadPropMap(prop_file); local [all...] |
/art/dex2oat/linker/ |
H A D | multi_oat_relative_patcher.h | 57 auto it = method_offset_map_.map.find(method_ref); 58 return (it != method_offset_map_.map.end()) ? it->second - adjustment_ : 0u; 63 method_offset_map_.map.Put(method_ref, offset + adjustment_); 133 // Wrap the map in a class implementing RelativePatcherTargetProvider. 137 SafeMap<MethodReference, uint32_t> map; member in class:art::linker::FINAL::MethodOffsetMap
|
H A D | multi_oat_relative_patcher.cc | 64 auto it = map.find(ref); 65 if (it == map.end()) {
|
/art/libartbase/base/ |
H A D | safe_copy_test.cc | 36 void* map = mmap(nullptr, kPageSize * 4, PROT_READ | PROT_WRITE, local 38 ASSERT_NE(MAP_FAILED, map); 39 char* page1 = static_cast<char*>(map); 77 ASSERT_EQ(0, munmap(map, kPageSize * 3));
|
/art/runtime/dex/ |
H A D | art_dex_file_loader.cc | 183 std::unique_ptr<MemMap> map, 188 CHECK(map.get() != nullptr); 190 if (map->Size() < sizeof(DexFile::Header)) { 197 std::unique_ptr<DexFile> dex_file = OpenCommon(map->Begin(), 198 map->Size(), 207 std::make_unique<MemMapContainer>(std::move(map)), 288 std::unique_ptr<MemMap> map; local 303 map.reset(MemMap::MapFile(length, 311 if (map == nullptr) { 317 if (map 181 Open(const std::string& location, uint32_t location_checksum, std::unique_ptr<MemMap> map, bool verify, bool verify_checksum, std::string* error_msg) const argument 369 std::unique_ptr<MemMap> map; local [all...] |
/art/compiler/debug/dwarf/ |
H A D | register.h | 50 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 D | utils.py | 34 map(lambda n: itertools.product(string.ascii_lowercase, repeat=n), 55 return "\n".join(map(lambda a: "# " + a, get_copyright("java").split("\n")))
|
/art/dexlayout/ |
H A D | dexdiag.cc | 61 static const std::map<uint16_t, DexSectionInfo> kDexSectionInfoMap = { 98 std::map<uint16_t, size_t> map_; 278 << " is incorrect: map start " 308 // Confirm that the map is from a vdex file. 319 static bool DisplayMappingIfFromVdexFile(pm_map_t* map, Printer* printer) { argument 320 std::string vdex_name = pm_map_name(map); 349 if (pm_map_pagemap(map, &pagemap, &len) != 0) { 355 << pm_map_name(map) 356 << StringPrintf(": %" PRIx64 "-%" PRIx64, pm_map_start(map), pm_map_end(map)) 408 DisplayMappingIfFromOatFile(pm_map_t* map, Printer* printer) argument [all...] |