/art/runtime/ |
D | parsed_options_test.cc | 62 RuntimeArgumentMap map; in TEST_F() local 63 std::unique_ptr<ParsedOptions> parsed(ParsedOptions::Create(options, false, &map)); in TEST_F() 65 ASSERT_NE(0u, map.Size()); in TEST_F() 69 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) in TEST_F() 70 #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) in TEST_F() 79 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F() 80 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F() 81 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F() 82 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F() 94 auto&& properties_list = map.GetOrDefault(Opt::PropertiesList); in TEST_F() [all …]
|
D | mem_map_test.cc | 132 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local 139 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 141 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() 148 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 156 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F() local 163 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 165 ASSERT_LT(reinterpret_cast<uintptr_t>(BaseBegin(map.get())), 1ULL << 32); in TEST_F() 222 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousExactAddr32bitHighAddr", in TEST_F() local 229 ASSERT_TRUE(map.get() != nullptr) << error_msg; in TEST_F() 231 ASSERT_EQ(reinterpret_cast<uintptr_t>(BaseBegin(map.get())), start_addr); in TEST_F() [all …]
|
D | mem_map.cc | 73 MemMap* map = it->second; in operator <<() local 74 CHECK_EQ(base, map->BaseBegin()); in operator <<() 75 os << *map << std::endl; in operator <<() 145 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); in ContainedWithinExistingMap() local 146 if (map.get() == nullptr) { in ContainedWithinExistingMap() 150 for (BacktraceMap::const_iterator it = map->begin(); it != map->end(); ++it) { in ContainedWithinExistingMap() 166 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(getpid(), true)); in CheckNonOverlapping() local 167 if (map.get() == nullptr) { in CheckNonOverlapping() 171 for (BacktraceMap::const_iterator it = map->begin(); it != map->end(); ++it) { in CheckNonOverlapping() 176 map_info << std::make_pair(it, map->end()); in CheckNonOverlapping() [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; 120 ::std::map<K, V, Comparator, Allocator> map_;
|
D | zip_archive.cc | 58 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap() local 62 if (map.get() == nullptr) { in ExtractToMemMap() 68 map->Begin(), map->Size()); in ExtractToMemMap() 74 return map.release(); in ExtractToMemMap()
|
D | profiler.h | 124 typedef std::map<ArtMethod*, uint32_t> Map; // Map of method vs its count. 129 typedef std::map<MethodReference, TrieNodeSet*, MethodReferenceComparator> MethodContextMap; 134 typedef std::map<std::pair<uint32_t, std::string>, uint32_t> PreviousContextMap; 144 typedef std::map<std::string, PreviousValue> PreviousProfile; 278 typedef std::map<std::string, ProfileData> ProfileMap;
|
D | transaction.h | 147 std::map<uint32_t, FieldValue> field_values_; 166 std::map<size_t, uint64_t> array_values_; 223 std::map<mirror::Object*, ObjectLog> object_logs_ GUARDED_BY(log_lock_); 224 std::map<mirror::Array*, ArrayLog> array_logs_ GUARDED_BY(log_lock_);
|
D | check_reference_map_visitor.h | 108 NativePcOffsetToReferenceMap map(m->GetNativeGcMap(sizeof(void*))); in CheckQuickMethod() 109 const uint8_t* ref_bitmap = map.FindBitMap(native_pc_offset); in CheckQuickMethod()
|
/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/099-vmdebug/src/ |
D | Main.java | 190 Map<String, String> map = VMDebug.getRuntimeStats(); in testRuntimeStats() local 191 String gc_count = map.get("art.gc.gc-count"); in testRuntimeStats() 192 String gc_time = map.get("art.gc.gc-time"); in testRuntimeStats() 193 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testRuntimeStats() 194 String bytes_freed = map.get("art.gc.bytes-freed"); in testRuntimeStats() 195 String blocking_gc_count = map.get("art.gc.blocking-gc-count"); in testRuntimeStats() 196 String blocking_gc_time = map.get("art.gc.blocking-gc-time"); in testRuntimeStats() 197 String gc_count_rate_histogram = map.get("art.gc.gc-count-rate-histogram"); in testRuntimeStats() 199 map.get("art.gc.blocking-gc-count-rate-histogram"); in testRuntimeStats()
|
/art/compiler/dex/ |
D | local_value_numbering.h | 97 uint16_t GetSregValueImpl(int s_reg, const SregValueMap* map) const { in GetSregValueImpl() argument 99 auto lb = map->find(s_reg); in GetSregValueImpl() 100 if (lb != map->end()) { in GetSregValueImpl() 108 void SetOperandValueImpl(uint16_t s_reg, uint16_t value, SregValueMap* map) { in SetOperandValueImpl() argument 109 DCHECK_EQ(map->count(s_reg), 0u); in SetOperandValueImpl() 110 map->Put(s_reg, value); in SetOperandValueImpl() 113 uint16_t GetOperandValueImpl(int s_reg, const SregValueMap* map) const { in GetOperandValueImpl() argument 115 auto lb = map->find(s_reg); in GetOperandValueImpl() 116 if (lb != map->end()) { in GetOperandValueImpl() 284 AliasingValues* GetAliasingValues(Map* map, const typename Map::key_type& key); [all …]
|
D | verified_method.cc | 151 verifier::DexPcToReferenceMap map(&data[0]); in VerifyGcMap() local 152 CHECK_EQ(data.size(), map.RawSize()) << map.NumEntries() << " " << map.RegWidth(); in VerifyGcMap() 156 const uint8_t* reg_bitmap = map.FindBitMap(i, false); in VerifyGcMap() 158 DCHECK_LT(map_index, map.NumEntries()); in VerifyGcMap() 159 DCHECK_EQ(map.GetDexPc(map_index), i); in VerifyGcMap() 160 DCHECK_EQ(map.GetBitMap(map_index), reg_bitmap); in VerifyGcMap() 165 DCHECK_LT(j / kBitsPerByte, map.RegWidth()); in VerifyGcMap() 167 } else if ((j / kBitsPerByte) < map.RegWidth()) { in VerifyGcMap()
|
/art/cmdline/ |
D | cmdline_parser_test.cc | 89 const TMap& map, in IsExpectedKeyValue() argument 91 auto* actual = map.Get(key); in IsExpectedKeyValue() 146 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument 147 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument 546 auto&& map = parser_->ReleaseArgumentsMap(); in TEST_F() 547 EXPECT_EQ(5u, map.Size()); in TEST_F() 548 EXPECT_KEY_VALUE(map, M::Help, Unit{}); // NOLINT [whitespace/braces] [5] in TEST_F() 549 EXPECT_KEY_VALUE(map, M::ForegroundHeapGrowthMultiplier, 0.5); in TEST_F() 550 EXPECT_KEY_VALUE(map, M::Dex2Oat, false); in TEST_F() 551 EXPECT_KEY_VALUE(map, M::MethodTrace, Unit{}); // NOLINT [whitespace/braces] [5] in TEST_F() [all …]
|
D | README.md | 24 For example, to save the values into a user-defined variant map: 33 // See variant_map_test.cc for how to completely define a custom map. 60 auto map = parser.GetArgumentsMap(); 61 std::cout << "Help? " << map.GetOrDefault(FruitVariantMap::Help) << std::endl; 62 std::cout << "Apple? " << map.GetOrDefault(FruitVariantMap::Apple) << std::endl; 63 std::cout << "Orange? " << map.GetOrDefault(FruitVariantMap::Orange) << std::endl; 104 When parsing an enumeration, it might be very convenient to map a list of possible argument string 121 quickly map them into discrete values. 130 In general, it uses the position of the argument alias to map into the WithValues position value. 157 This specifies that when a value is parsed, it will get saved into a variant map using the specific [all …]
|
/art/imgdiag/ |
D | imgdiag.cc | 118 for (const backtrace_map_t& map : *proc_maps) { in DumpImageDiff() 119 if (EndsWith(map.name, GetImageLocationBaseName())) { in DumpImageDiff() 120 if ((map.flags & PROT_WRITE) != 0) { in DumpImageDiff() 121 boot_map = map; in DumpImageDiff() 327 std::map<mirror::Class*, int /*count*/> dirty_object_class_map; in DumpImageDiffMap() 329 std::map<mirror::Class*, int /*byte_count*/> dirty_object_byte_count; in DumpImageDiffMap() 331 std::map<mirror::Class*, int /*byte_count*/> dirty_object_size_in_bytes; in DumpImageDiffMap() 332 std::map<mirror::Class*, int /*count*/> clean_object_class_map; in DumpImageDiffMap() 334 std::map<mirror::Class*, std::string> class_to_descriptor_map; in DumpImageDiffMap() 336 std::map<off_t /* field offset */, int /* count */> art_method_field_dirty_count; in DumpImageDiffMap() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
D | UniqueProgramTrackerListener.java | 187 private void addToMap(String md5sum, Map<String, Integer> map) { in addToMap() argument 188 if (map.containsKey(md5sum)) { in addToMap() 189 map.put(md5sum, map.get(md5sum) + 1); in addToMap() 191 map.put(md5sum, 1); in addToMap()
|
/art/compiler/dwarf/ |
D | register.h | 47 static const int map[8] = {0, 2, 1, 3, 7, 6, 4, 5}; in X86_64Core() local 48 return Reg(num < 8 ? map[num] : num); in X86_64Core()
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 33 MemMap* map = MemMap::MapAnonymous("jit-code-cache", nullptr, capacity, in Create() local 35 if (map == nullptr) { in Create() 41 return new JitCodeCache(map); in Create()
|
/art/compiler/ |
D | oat_writer.cc | 398 auto method_lb = writer_->method_offset_map_.map.lower_bound(method_ref); in VisitMethod() 399 if (method_lb != writer_->method_offset_map_.map.end() && in VisitMethod() 400 !writer_->method_offset_map_.map.key_comp()(method_ref, method_lb->first)) { in VisitMethod() 406 writer_->method_offset_map_.map.PutBefore(method_lb, method_ref, quick_code_offset); in VisitMethod() 568 const SwapVector<uint8_t>* map = DataAccess::GetData(compiled_method); in VisitMethod() local 569 uint32_t map_size = map == nullptr ? 0 : map->size() * sizeof((*map)[0]); in VisitMethod() 571 auto lb = dedupe_map_.lower_bound(map); in VisitMethod() 572 if (lb != dedupe_map_.end() && !dedupe_map_.key_comp()(map, lb->first)) { in VisitMethod() 576 dedupe_map_.PutBefore(lb, map, offset_); in VisitMethod() 578 writer_->oat_header_->UpdateChecksum(&(*map)[0], map_size); in VisitMethod() [all …]
|
/art/test/004-ThreadStress/src/ |
D | Main.java | 285 private static void normalize(Map<Operation, Double> map) { in normalize() argument 287 for (Double d : map.values()) { in normalize() 295 Set<Operation> tmp = new HashSet<>(map.keySet()); in normalize() 297 map.put(op, map.get(op) / sum); in normalize()
|
/art/compiler/dex/quick/ |
D | dex_file_to_method_inliner_map.h | 49 std::map<const DexFile*, DexFileMethodInliner*> inliners_ GUARDED_BY(lock_);
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 98 method_offset_map_.map.Put(compiled_method_refs_[idx], quick_code_offset); in Link() 222 auto it = map.find(ref); in FindMethodOffset() 223 if (it == map.end()) { in FindMethodOffset() 229 SafeMap<MethodReference, uint32_t, MethodReferenceComparator> map; variable
|
/art/test/137-cfi/ |
D | cfi.cc | 68 if (BacktraceMap::IsValid(it->map)) { in CheckStack() 81 if (BacktraceMap::IsValid(it->map)) { in CheckStack()
|
/art/compiler/utils/ |
D | test_dex_file_builder.h | 362 std::map<std::string, IdxAndDataOffset> strings_; 363 std::map<std::string, uint32_t> types_; 364 std::map<FieldKey, uint32_t, FieldKeyComparator> fields_; 365 std::map<ProtoKey, IdxAndDataOffset, ProtoKeyComparator> protos_; 366 std::map<MethodKey, uint32_t, MethodKeyComparator> methods_;
|
/art/runtime/base/ |
D | variant_map.h | 240 ScopedRemove(VariantMap& map, const TKey<TValue>& key) : map_(map), key_(key) {} in ScopedRemove() 398 using StorageMap = std::map<const detail::VariantMapKeyRaw*, void*, KeyComparator>;
|