/art/runtime/base/ |
H A D | hash_map.h | 31 size_t operator()(const std::pair<Key, Value>& pair) const { 32 return fn_(pair.first); 39 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { 43 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { 53 class Alloc = std::allocator<std::pair<Key, Value>>> 54 class HashMap : public HashSet<std::pair<Key, Value>, 60 using Base = HashSet<std::pair<Key, Value>,
|
H A D | arena_containers.h | 69 SafeMap<K, V, Comparator, ArenaAllocatorAdapter<std::pair<const K, V>>>; 79 typename EmptyFn = DefaultEmptyFn<std::pair<Key, Value>>, 87 ArenaAllocatorAdapter<std::pair<Key, Value>>>; 97 ArenaAllocatorAdapter<std::pair<const Key, Value>>>;
|
H A D | hash_set_test.cc | 261 void MakeEmpty(std::pair<std::string, int>& pair) const { 262 pair.first.clear(); 264 bool IsEmpty(const std::pair<std::string, int>& pair) const { 265 return pair.first.empty();
|
/art/runtime/ |
H A D | class_reference.h | 28 typedef std::pair<const DexFile*, uint32_t> ClassReference;
|
H A D | type_lookup_table_test.cc | 30 using DescriptorClassDefIdxPair = std::pair<const char*, uint32_t>; 47 auto pair = GetParam(); local 48 const char* descriptor = pair.first; 51 ASSERT_EQ(pair.second, class_def_idx);
|
H A D | utf_test.cc | 51 // A test string that contains a UTF-8 encoding of a surrogate pair 62 uint32_t pair = 0; local 65 pair = GetUtf16FromUtf8(&ptr); 66 EXPECT_EQ(0x24, GetLeadingUtf16Char(pair)); 67 EXPECT_EQ(0, GetTrailingUtf16Char(pair)); 71 pair = GetUtf16FromUtf8(&ptr); 72 EXPECT_EQ(0xa2, GetLeadingUtf16Char(pair)); 73 EXPECT_EQ(0, GetTrailingUtf16Char(pair)); 77 pair = GetUtf16FromUtf8(&ptr); 78 EXPECT_EQ(0x20ac, GetLeadingUtf16Char(pair)); 98 uint32_t pair = 0; local [all...] |
H A D | jni_env_ext.cc | 208 std::vector<std::pair<uintptr_t, jobject>>* locked_objects) 213 [self, frame, monitors](const std::pair<uintptr_t, jobject>& pair) 215 if (frame == pair.first) { 216 ObjPtr<mirror::Object> o = self->DecodeJObject(pair.second); 227 std::pair<uintptr_t, jobject> exact_pair = std::make_pair(current_frame, obj); 235 for (std::pair<uintptr_t, jobject>& pair : locked_objects_) { 236 if (self->DecodeJObject(pair.second) == mirror_obj) { 237 std::string monitor_descr = ComputeMonitorDescription(self, pair 262 std::pair<uintptr_t, jobject>& pair = locked_objects_[locked_objects_.size() - 1]; local [all...] |
H A D | imtable_test.cc | 38 std::pair<mirror::Class*, mirror::Class*> LoadClasses(const std::string& class_name) 74 std::pair<ArtMethod*, ArtMethod*> LoadMethods(const std::string& class_name, 77 std::pair<mirror::Class*, mirror::Class*> classes = LoadClasses(class_name); 93 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$A;", "foo"); 100 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$Z;", "foo");
|
H A D | utf.cc | 70 // pair. 144 // Check if the other half of the pair is within the expected 176 const uint32_t pair = GetUtf16FromUtf8(&utf8); local 177 const uint16_t first = GetLeadingUtf16Char(pair); 180 const uint16_t second = GetTrailingUtf16Char(pair); 207 const uint32_t pair = GetUtf16FromUtf8(&utf8); local 210 const uint16_t lhs = GetLeadingUtf16Char(pair); 219 const uint16_t lhs2 = GetTrailingUtf16Char(pair);
|
H A D | dex_file_verifier.h | 210 void MakeEmpty(std::pair<uint32_t, uint16_t>& pair) const { 211 pair.first = 0u; 214 bool IsEmpty(const std::pair<uint32_t, uint16_t>& pair) const { 215 return pair.first == 0;
|
H A D | class_table.cc | 68 DescriptorHashPair pair(descriptor, hash); 69 auto existing_it = classes_.back().FindWithHash(pair, hash); 72 if (class_set.FindWithHash(pair, hash) != class_set.end()) { 132 DescriptorHashPair pair(descriptor, hash); 135 auto it = class_set.FindWithHash(pair, hash); 186 DescriptorHashPair pair(descriptor, ComputeModifiedUtf8Hash(descriptor)); 189 auto it = class_set.Find(pair); 224 uint32_t ClassTable::ClassDescriptorHashEquals::operator()(const DescriptorHashPair& pair) const { 225 return ComputeModifiedUtf8Hash(pair.first);
|
H A D | parsed_options.h | 38 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
|
H A D | safe_map.h | 32 typename Allocator = TrackingAllocator<std::pair<const K, V>, kAllocatorTagSafeMap>> 92 std::pair<iterator, bool> result = map_.emplace(k, v); 97 std::pair<iterator, bool> result = map_.emplace(k, std::move(v)); 120 std::pair<iterator, bool> result = map_.insert(std::make_pair(k, v)); 172 Key, T, Compare, TrackingAllocator<std::pair<const Key, T>, kTag>> {
|
/art/compiler/linker/ |
H A D | multi_oat_relative_patcher.cc | 62 std::pair<bool, uint32_t> MultiOatRelativePatcher::MethodOffsetMap::FindMethodOffset( 66 return std::pair<bool, uint32_t>(false, 0u); 68 return std::pair<bool, uint32_t>(true, it->second);
|
H A D | relative_patcher.h | 52 * @return true in the first element of the pair if the method was found, false otherwise; 55 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0;
|
/art/tools/ahat/src/heapdump/ |
H A D | Diff.java | 195 InstanceListPair pair = byKey.get(key); 196 if (pair == null) { 197 pair = new InstanceListPair(); 198 byKey.put(key, pair); 200 pair.a.add(inst); 204 InstanceListPair pair = byKey.get(key); 205 if (pair == null) { 206 pair = new InstanceListPair(); 207 byKey.put(key, pair); 209 pair [all...] |
/art/compiler/utils/ |
H A D | atomic_method_ref_map-inl.h | 72 for (auto& pair : arrays_) { 73 const DexFile* dex_file = pair.first; 74 const ElementArray& elements = pair.second;
|
/art/test/129-ThreadGetId/src/ |
H A D | Main.java | 66 for (Map.Entry<Thread, StackTraceElement[]> pair : map.entrySet()) { 67 Thread thread = pair.getKey(); 71 System.out.println(thread.getName() + " depth " + pair.getValue().length);
|
/art/runtime/gc/ |
H A D | task_processor_test.cc | 125 std::vector<std::pair<uint64_t, size_t>> orderings; 132 for (const auto& pair : orderings) { 133 auto* task = new TestOrderTask(pair.first, pair.second, &counter);
|
/art/runtime/openjdkjvmti/ |
H A D | events.cc | 60 for (auto& pair : thread_event_masks) { 61 const UniqueThread& unique_thread = pair.first; 64 return pair.second; 79 for (auto& pair : thread_event_masks) { 80 const UniqueThread& unique_thread = pair.first; 83 return &pair.second; 105 for (auto& pair : thread_event_masks) { 106 union_value |= pair.second.Test(event);
|
H A D | jvmti_weak_table-inl.h | 349 for (auto& pair : tagged_objects_) { 354 if (tags[i] == pair.second) { 364 art::mirror::Object* obj = pair.first.template Read<art::kWithReadBarrier>(); 371 selected_tags.Pushback(pair.second); 393 for (auto& pair : tagged_objects_) { 394 if (tag == pair.second) { 395 art::mirror::Object* obj = pair.first.template Read<art::kWithReadBarrier>();
|
/art/test/626-const-class-linking/src/ |
H A D | Main.java | 315 Object pair = get.invoke(null); 316 printPair(pair); 317 return new WeakReference<Class<?>>(getSecond(pair)); 320 private static void printPair(Object pair) throws Exception { argument 321 Method print = pair.getClass().getDeclaredMethod("print"); 322 print.invoke(pair); 325 private static Class<?> getSecond(Object pair) throws Exception { argument 326 Field second = pair.getClass().getDeclaredField("second"); 327 return (Class<?>) second.get(pair);
|
/art/runtime/gc/space/ |
H A D | large_object_space_test.cc | 48 std::vector<std::pair<mirror::Object*, size_t>> requests; 76 for (const auto& pair : requests) { 77 mirror::Object* obj = pair.first; 81 for (const auto& pair : requests) { 82 mirror::Object* obj = pair.first;
|
/art/runtime/mirror/ |
H A D | dex_cache_test.cc | 162 const MethodTypeDexCachePair pair = method_types_cache[i].load(std::memory_order_relaxed); local 163 if (pair.index == method1_id.proto_idx_) { 164 ASSERT_EQ(method1_type.Get(), pair.object.Read()); 165 } else if (pair.index == method2_id.proto_idx_) { 166 ASSERT_EQ(method2_type.Get(), pair.object.Read());
|
H A D | dex_cache-inl.h | 188 auto pair = GetNativePairPtrSize(GetResolvedFields(), FieldSlotIndex(field_idx), ptr_size); local 189 return pair.GetObjectForIndex(field_idx); 195 FieldDexCachePair pair(field, field_idx); 196 SetNativePairPtrSize(GetResolvedFields(), FieldSlotIndex(field_idx), pair, ptr_size); local 275 NativeDexCachePair<T> pair, 279 ConversionPair64 v(reinterpret_cast64<uint64_t>(pair.object), pair.index); 284 dchecked_integral_cast<uint32_t>(reinterpret_cast<uintptr_t>(pair.object)), 285 dchecked_integral_cast<uint32_t>(pair.index)); 273 SetNativePairPtrSize(std::atomic<NativeDexCachePair<T>>* pair_array, size_t idx, NativeDexCachePair<T> pair, PointerSize ptr_size) argument
|