Searched refs:pair (Results 1 - 25 of 87) sorted by relevance

1234

/art/runtime/base/
H A Dhash_map.h31 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 Darena_containers.h69 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 Dhash_set_test.cc261 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 Dclass_reference.h28 typedef std::pair<const DexFile*, uint32_t> ClassReference;
H A Dtype_lookup_table_test.cc30 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 Dutf_test.cc51 // 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 Djni_env_ext.cc208 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 Dimtable_test.cc38 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 Dutf.cc70 // 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 Ddex_file_verifier.h210 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 Dclass_table.cc68 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 Dparsed_options.h38 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
H A Dsafe_map.h32 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 Dmulti_oat_relative_patcher.cc62 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 Drelative_patcher.h52 * @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 DDiff.java195 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 Datomic_method_ref_map-inl.h72 for (auto& pair : arrays_) {
73 const DexFile* dex_file = pair.first;
74 const ElementArray& elements = pair.second;
/art/test/129-ThreadGetId/src/
H A DMain.java66 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 Dtask_processor_test.cc125 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 Devents.cc60 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 Djvmti_weak_table-inl.h349 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 DMain.java315 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 Dlarge_object_space_test.cc48 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 Ddex_cache_test.cc162 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 Ddex_cache-inl.h188 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

Completed in 756 milliseconds

1234