Searched defs:map (Results 1 - 25 of 41) sorted by relevance

12

/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/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/compiler/driver/
H A Dcompiler_options_map-inl.h35 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/dexlayout/
H A Ddex_ir_builder.cc95 // Sort the vectors by the map order (same order as the file).
111 const DexFile::MapList* map = dex_file.GetMapList(); local
112 const uint32_t count = map->size_;
114 const DexFile::MapItem* item = map->list_ + i;
191 LOG(ERROR) << "Unknown map list item type.";
H A Ddexdiag.cc61 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...]
/art/libartbase/base/
H A Dsafe_copy_test.cc36 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));
H A Dvariant_map.h21 #include <map>
31 // A variant map is a heterogenous, type safe key->value map. It allows
32 // for multiple different value types to be stored dynamically in the same map.
209 // A variant map allows type-safe heteregeneous key->value mappings.
219 // A null value is returned only when the key does not exist in this map.
226 // A null value is returned only when the key does not exist in this map.
232 // Lookup the value from the key. If it was not set in the map, return the default value.
252 ScopedRemove(VariantMap& map, const TKey<TValue>& key) : map_(map), key argument
[all...]
/art/tools/ahat/src/main/com/android/ahat/
H A DMain.java47 out.println(" --proguard-map FILE");
48 out.println(" Use the proguard map FILE to deobfuscate the heap dump.");
51 out.println(" --baseline-proguard-map FILE");
52 out.println(" Use the proguard map FILE to deobfuscate the baseline heap dump.");
61 private static AhatSnapshot loadHeapDump(File hprof, ProguardMap map) { argument
64 return Parser.parseHeapDump(hprof, map);
95 ProguardMap map = new ProguardMap();
101 } else if ("--proguard-map".equals(args[i]) && i + 1 < args.length) {
104 map.readFromFile(new File(args[i]));
106 System.out.println("Unable to read proguard map
[all...]
/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/runtime/
H A Dparsed_options_test.cc73 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 Dmem_map_test.cc60 // 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 Dnative_stack_dump.cc297 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...]
/art/dex2oat/linker/
H A Dmulti_oat_relative_patcher.h57 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
/art/tools/ahat/src/test/com/android/ahat/
H A DTestDump.java94 * The map resource may be null to indicate no proguard map will be used.
106 * the proguard map.
109 ProguardMap map = new ProguardMap();
114 map.readFromReader(new InputStreamReader(is));
116 throw new IOException("Unable to load proguard map", e);
122 mSnapshot = Parser.parseHeapDump(hprof, map);
132 mBaseline = Parser.parseHeapDump(hprofBase, map);
241 return getTestDump("test-dump.hprof", "test-dump-base.hprof", "test-dump.map");
248 * @param map
254 getTestDump(String hprof, String base, String map) argument
[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/cmdline/
H A Dcmdline_parser_test.cc92 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/compiler/linker/
H A Drelative_patcher_test.h119 method_offset_map_.map.Put(compiled_method_refs_[idx], quick_code_offset);
252 // Wrap the map in a class implementing RelativePatcherTargetProvider.
256 auto it = map.find(ref);
257 if (it == map.end()) {
263 SafeMap<MethodReference, uint32_t> map; member in class:art::linker::RelativePatcherTest::FINAL
/art/patchoat/
H A Dpatchoat.h77 std::map<gc::space::ImageSpace*, std::unique_ptr<MemMap>>* map, TimingLogger* timings)
79 delta_(delta), isa_(isa), space_map_(map), timings_(timings) {}
198 const std::map<gc::space::ImageSpace*, std::unique_ptr<MemMap>>* space_map_;
75 PatchOat(InstructionSet isa, MemMap* image, gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, std::map<gc::space::ImageSpace*, std::unique_ptr<MemMap>>* map, TimingLogger* timings) argument
/art/runtime/dex/
H A Dart_dex_file_loader.cc183 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/runtime/gc/collector/
H A Dimmune_spaces_test.cc43 DummyImageSpace(MemMap* map, argument
49 map,
51 map->End()),
86 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("DummyImageSpace",
93 if (map == nullptr) {
114 new (map->Begin()) ImageHeader(
115 /*image_begin*/PointerToLowMemUInt32(map->Begin()),
116 /*image_size*/map->Size(),
118 /*image_roots*/PointerToLowMemUInt32(map->Begin()) + 1,
134 return new DummyImageSpace(map
[all...]
/art/test/004-ThreadStress/src-art/
H A DMain.java42 // --dumpmap ......... print the frequency map
43 // --locks-only ...... select a pre-set frequency map with lock-related operations only
44 // --allocs-only ..... select a pre-set frequency map with allocation-related operations only
408 private static void normalize(Map<Operation, Double> map) { argument
410 for (Double d : map.values()) {
418 Set<Operation> tmp = new HashSet<>(map.keySet());
420 map.put(op, map.get(op) / sum);
/art/tools/ahat/src/main/com/android/ahat/heapdump/
H A DParser.java63 * The given proguard map will be used to deobfuscate class names, field
67 * @param map the proguard map for deobfuscation
72 public static AhatSnapshot parseHeapDump(File hprof, ProguardMap map) argument
75 return parseHeapDump(new HprofBuffer(hprof), map);
101 * The given proguard map will be used to deobfuscate class names, field
105 * @param map the proguard map for deobfuscation
110 public static AhatSnapshot parseHeapDump(ByteBuffer hprof, ProguardMap map) argument
113 return parseHeapDump(new HprofBuffer(hprof), map);
119 parseHeapDump(HprofBuffer hprof, ProguardMap map) argument
[all...]
/art/tools/wrapagentproperties/
H A Dwrapagentproperties.cc56 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/compiler/
H A Dverifier_deps_test.cc100 AtomicDexRefMap<MethodReference, const VerifiedMethod*>* map = local
102 map->Visit([](const DexFileReference& ref ATTRIBUTE_UNUSED, const VerifiedMethod* method) {
105 map->ClearEntries();
1113 // Create new DexFile, to mess with std::map order: the verifier deps used
1114 // to iterate over the map, which doesn't guarantee insertion order. We fixed
/art/runtime/jit/
H A Dprofile_saver.cc777 SafeMap<std::string, std::set<std::string>>* map) {
778 auto it = map->find(output_filename);
779 if (it == map->end()) {
780 map->Put(output_filename, std::set<std::string>(code_paths.begin(), code_paths.end()));
775 AddTrackedLocationsToMap(const std::string& output_filename, const std::vector<std::string>& code_paths, SafeMap<std::string, std::set<std::string>>* map) argument

Completed in 4501 milliseconds

12