/art/libdexfile/dex/ |
D | utf_test.cc | 64 uint32_t pair = 0; in TEST_F() local 67 pair = GetUtf16FromUtf8(&ptr); in TEST_F() 68 EXPECT_EQ(0x24, GetLeadingUtf16Char(pair)); in TEST_F() 69 EXPECT_EQ(0, GetTrailingUtf16Char(pair)); in TEST_F() 73 pair = GetUtf16FromUtf8(&ptr); in TEST_F() 74 EXPECT_EQ(0xa2, GetLeadingUtf16Char(pair)); in TEST_F() 75 EXPECT_EQ(0, GetTrailingUtf16Char(pair)); in TEST_F() 79 pair = GetUtf16FromUtf8(&ptr); in TEST_F() 80 EXPECT_EQ(0x20ac, GetLeadingUtf16Char(pair)); in TEST_F() 81 EXPECT_EQ(0, GetTrailingUtf16Char(pair)); in TEST_F() [all …]
|
D | type_lookup_table_test.cc | 28 using DescriptorClassDefIdxPair = std::pair<const char*, uint32_t>; 43 auto pair = GetParam(); in TEST_P() local 44 const char* descriptor = pair.first; in TEST_P() 47 ASSERT_EQ(pair.second, class_def_idx); in TEST_P()
|
D | utf.cc | 146 const uint32_t pair = GetUtf16FromUtf8(&utf8); in ComputeUtf16HashFromModifiedUtf8() local 147 const uint16_t first = GetLeadingUtf16Char(pair); in ComputeUtf16HashFromModifiedUtf8() 150 const uint16_t second = GetTrailingUtf16Char(pair); in ComputeUtf16HashFromModifiedUtf8() 182 const uint32_t pair = GetUtf16FromUtf8(&utf8); in CompareModifiedUtf8ToUtf16AsCodePointValues() local 185 const uint16_t lhs = GetLeadingUtf16Char(pair); in CompareModifiedUtf8ToUtf16AsCodePointValues() 194 const uint16_t lhs2 = GetTrailingUtf16Char(pair); in CompareModifiedUtf8ToUtf16AsCodePointValues()
|
/art/libartbase/base/ |
D | hash_map.h | 35 size_t operator()(const std::pair<Key, Value>& pair) const { in operator() 36 return hash_fn_(pair.first); in operator() 48 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator() 53 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { in operator() 64 void MakeEmpty(std::pair<Key, Value>& item) const { in MakeEmpty() 65 item = std::pair<Key, Value>(); in MakeEmpty() 67 bool IsEmpty(const std::pair<Key, Value>& item) const { in IsEmpty() 77 class Alloc = std::allocator<std::pair<Key, Value>>> 78 class HashMap : public HashSet<std::pair<Key, Value>, 84 using Base = HashSet<std::pair<Key, Value>,
|
D | flags.h | 190 std::pair<Value, FlagOrigin> result = GetValueAndOrigin(); in GetValueOptional() 197 ALWAYS_INLINE std::pair<Value, FlagOrigin> GetValueAndOrigin() const { in GetValueAndOrigin() 200 return std::pair{from_server_setting_.value(), FlagOrigin::kServerSetting}; in GetValueAndOrigin() 203 return std::pair{from_system_property_.value(), FlagOrigin::kSystemProperty}; in GetValueAndOrigin() 206 return std::pair{from_command_line_.value(), FlagOrigin::kCmdlineArg}; in GetValueAndOrigin() 208 return std::pair{default_, FlagOrigin::kDefaultValue}; in GetValueAndOrigin()
|
/art/runtime/mirror/ |
D | dex_cache.cc | 65 auto pair(fields->GetNativePair(i)); in VisitReflectiveTargets() local 66 if (pair.index == NativeDexCachePair<ArtField>::InvalidIndexForSlot(i)) { in VisitReflectiveTargets() 70 pair.object, DexCacheSourceInfo(kSourceDexCacheResolvedField, pair.index, this)); in VisitReflectiveTargets() 71 if (UNLIKELY(new_val != pair.object)) { in VisitReflectiveTargets() 73 pair = NativeDexCachePair<ArtField>( in VisitReflectiveTargets() 76 pair.object = new_val; in VisitReflectiveTargets() 78 fields->SetNativePair(i, pair); in VisitReflectiveTargets() 87 auto pair(methods->GetNativePair(i)); in VisitReflectiveTargets() local 88 if (pair.index == NativeDexCachePair<ArtMethod>::InvalidIndexForSlot(i)) { in VisitReflectiveTargets() 92 pair.object, DexCacheSourceInfo(kSourceDexCacheResolvedMethod, pair.index, this)); in VisitReflectiveTargets() [all …]
|
/art/runtime/base/ |
D | atomic_pair.h | 55 ALWAYS_INLINE static inline AtomicPair<IntType> AtomicPairLoadAcquire(AtomicPair<IntType>* pair) { in AtomicPairLoadAcquire() argument 57 auto* target = reinterpret_cast<std::atomic<AtomicPair<IntType>>*>(pair); in AtomicPairLoadAcquire() 62 ALWAYS_INLINE static inline void AtomicPairStoreRelease(AtomicPair<IntType>* pair, in AtomicPairStoreRelease() argument 65 auto* target = reinterpret_cast<std::atomic<AtomicPair<IntType>>*>(pair); in AtomicPairStoreRelease() 69 ALWAYS_INLINE static inline AtomicPair<uint64_t> AtomicPairLoadAcquire(AtomicPair<uint64_t>* pair) { in AtomicPairLoadAcquire() argument 70 auto* key_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->key); in AtomicPairLoadAcquire() 71 auto* val_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->val); in AtomicPairLoadAcquire() 83 ALWAYS_INLINE static inline void AtomicPairStoreRelease(AtomicPair<uint64_t>* pair, in AtomicPairStoreRelease() argument 86 auto* key_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->key); in AtomicPairStoreRelease() 87 auto* val_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->val); in AtomicPairStoreRelease()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Diff.java | 201 InstanceListPair pair = byKey.get(key); in instances() local 202 if (pair == null) { in instances() 203 pair = new InstanceListPair(); in instances() 204 byKey.put(key, pair); in instances() 206 pair.a.add(inst); in instances() 210 InstanceListPair pair = byKey.get(key); in instances() local 211 if (pair == null) { in instances() 212 pair = new InstanceListPair(); in instances() 213 byKey.put(key, pair); in instances() 215 pair.b.add(inst); in instances() [all …]
|
/art/tools/veridex/ |
D | hidden_api_finder.cc | 183 for (const std::pair<const std::string, in Dump() 184 std::vector<MethodReference>>& pair : method_locations_) { in Dump() local 185 const auto& name = pair.first; in Dump() 189 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() 191 os << "#" << ++stats->count << ": Linking " << api_list << " " << pair.first << " use(s):"; in Dump() 193 HiddenApiFinder::DumpReferences(os, pair.second); in Dump() 199 for (const std::pair<const std::string, in Dump() 200 std::vector<MethodReference>>& pair : field_locations_) { in Dump() local 201 const auto& name = pair.first; in Dump() 205 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() [all …]
|
/art/runtime/oat/ |
D | jni_stub_hash_map.h | 68 bool IsEmpty(const std::pair<JniStubKey, Value>& pair) const { in IsEmpty() argument 69 return pair.first.IsEmpty(); in IsEmpty() 72 void MakeEmpty(std::pair<JniStubKey, Value>& pair) { in MakeEmpty() argument 73 pair.first.MakeEmpty(); in MakeEmpty() 106 typename Alloc = std::allocator<std::pair<JniStubKey, Value>>>
|
/art/tools/dexanalyze/ |
D | dexanalyze_bytecode.cc | 38 std::vector<std::pair<U, T>> most_used; in SortByOrder() 39 for (const auto& pair : usage) { in SortByOrder() local 40 most_used.emplace_back(pair.second, pair.first); in SortByOrder() 47 for (auto&& pair : most_used) { in SortByOrder() 48 CHECK(ret.emplace(pair.second, current_index++).second); in SortByOrder() 54 std::ostream& operator <<(std::ostream& os, const std::pair<A, B>& pair) { in operator <<() argument 55 return os << "{" << pair.first << ", " << pair.second << "}"; in operator <<() 77 std::vector<std::pair<U, T>> sorted; 79 for (const auto& pair : usage) { local 80 sorted.emplace_back(pair.second, pair.first); [all …]
|
D | dexanalyze_strings.cc | 250 auto pair = queue.top(); in PopRealTop() local 253 while (pair.second->Savings() != pair.first) { in PopRealTop() 254 pair.first = pair.second->Savings(); in PopRealTop() 255 queue.push(pair); in PopRealTop() 256 pair = queue.top(); in PopRealTop() 259 return pair; in PopRealTop() 266 std::priority_queue<std::pair<int32_t, MatchTrie*>> queue; in ExtractPrefixes() 283 std::priority_queue<std::pair<int32_t, MatchTrie*>> prefixes; in ExtractPrefixes() 286 std::pair<int32_t, MatchTrie*> pair = PopRealTop(queue); in ExtractPrefixes() local 287 if (pair.second != this && pair.first > 0) { in ExtractPrefixes() [all …]
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 211 std::vector<std::pair<uintptr_t, jobject>>* locked_objects) in RemoveMonitors() 216 [self, frame, monitors](const std::pair<uintptr_t, jobject>& pair) in RemoveMonitors() 218 if (frame == pair.first) { in RemoveMonitors() 219 ObjPtr<mirror::Object> o = self->DecodeJObject(pair.second); in RemoveMonitors() 230 std::pair<uintptr_t, jobject> exact_pair = std::make_pair(current_frame, obj); in CheckMonitorRelease() 238 for (std::pair<uintptr_t, jobject>& pair : locked_objects_) { in CheckMonitorRelease() 239 if (self_->DecodeJObject(pair.second) == mirror_obj) { in CheckMonitorRelease() 240 std::string monitor_descr = ComputeMonitorDescription(self_, pair.second); in CheckMonitorRelease() 265 std::pair<uintptr_t, jobject>& pair = locked_objects_[locked_objects_.size() - 1]; in CheckNoHeldMonitors() local 266 if (pair.first == current_frame) { in CheckNoHeldMonitors() [all …]
|
/art/dexdump/ |
D | dexdump_cfg.cc | 45 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() local 46 const Instruction* inst = &pair.Inst(); in DumpMethodCFG() 48 dex_pc_is_branch_target.insert(pair.DexPc() + inst->GetTargetOffset()); in DumpMethodCFG() 66 dex_pc_is_branch_target.insert(pair.DexPc() + offset); in DumpMethodCFG() 79 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() local 80 const uint32_t dex_pc = pair.DexPc(); in DumpMethodCFG() 109 std::string inst_str = pair.Inst().DumpString(dex_file); in DumpMethodCFG() 138 force_new_block = pair.Inst().IsSwitch() || pair.Inst().IsBasicBlockEnd(); in DumpMethodCFG() 163 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() local 164 const Instruction* inst = &pair.Inst(); in DumpMethodCFG() [all …]
|
/art/libartservice/service/javatests/com/android/server/art/testing/ |
D | MockClock.java | 62 1 /* initialCapacity */, Comparator.comparingLong(pair -> pair.second)); 80 Pair<RunnableScheduledFuture<?>, Long> pair = tasks.peek(); in notifyUpdate() local 81 RunnableScheduledFuture<?> task = pair.first; in notifyUpdate() 82 long scheduledTimeMs = pair.second; in notifyUpdate()
|
/art/runtime/ |
D | dex_reference_collection.h | 36 using MapAllocator = Allocator<std::pair<const DexFile*, IndexVector>>; 41 Allocator<std::pair<const DexFile* const, IndexVector>>>; 58 for (auto&& pair : map_) { in NumReferences() 59 ret += pair.second.size(); in NumReferences()
|
D | imtable_test.cc | 38 std::pair<mirror::Class*, mirror::Class*> LoadClasses(const std::string& class_name) in LoadClasses() 74 std::pair<ArtMethod*, ArtMethod*> LoadMethods(const std::string& class_name, in LoadMethods() 77 std::pair<mirror::Class*, mirror::Class*> classes = LoadClasses(class_name); in LoadMethods() 93 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$A;", "foo"); in TEST_F() 100 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$Z;", "foo"); in TEST_F()
|
/art/test/497-inlining-and-class-loader/ |
D | clear_dex_cache.cc | 51 auto pair = methods->GetNativePair(i); in Java_Main_cloneResolvedMethods() local 52 uint32_t index = pair.index; in Java_Main_cloneResolvedMethods() 53 ArtMethod* method = pair.object; in Java_Main_cloneResolvedMethods() 89 mirror::NativeDexCachePair<ArtMethod> pair(method, index); in Java_Main_restoreResolvedMethods() local 90 methods->SetNativePair(i, pair); in Java_Main_restoreResolvedMethods()
|
/art/test/983-source-transform-verify/ |
D | source_transform_art.cc | 55 for (const DexInstructionPcPair& pair : method.GetInstructions()) { in VerifyClassData() local 56 const Instruction& inst = pair.Inst(); in VerifyClassData() 60 << " [Dex PC: 0x" << std::hex << pair.DexPc() << std::dec << "] : " in VerifyClassData()
|
/art/tools/jvmti-agents/chain-agents/ |
D | chainagents.cc | 56 static std::pair<std::string, std::string> Split(const std::string& source, char delim) { in Split() 59 return std::pair(first, ""); in Split() 61 return std::pair(first, source.substr(source.find(delim) + 1)); in Split() 68 const std::pair<std::string, std::string>& lib_and_args, in Load() 104 std::pair<std::string, std::string> lib_and_args(Split(line, '=')); in AgentStart()
|
/art/libprofile/profile/ |
D | profile_boot_info.cc | 52 for (const std::pair<uint32_t, uint32_t>& pair : methods_) { in Save() local 53 AddUintToBuffer(&buffer, pair.first); in Save() 54 AddUintToBuffer(&buffer, pair.second); in Save()
|
/art/dex2oat/linker/ |
D | multi_oat_relative_patcher.cc | 76 std::pair<bool, uint32_t> MultiOatRelativePatcher::MethodOffsetMap::FindMethodOffset( in FindMethodOffset() 80 return std::pair<bool, uint32_t>(false, 0u); in FindMethodOffset() 82 return std::pair<bool, uint32_t>(true, it->second); in FindMethodOffset()
|
/art/compiler/optimizing/ |
D | block_builder.cc | 98 for (const DexInstructionPcPair& pair : code_item_accessor_) { in CreateBranchTargets() local 99 const uint32_t dex_pc = pair.DexPc(); in CreateBranchTargets() 100 const Instruction& instruction = pair.Inst(); in CreateBranchTargets() 126 DexInstructionIterator next(std::next(DexInstructionIterator(pair))); in CreateBranchTargets() 147 for (const DexInstructionPcPair& pair : code_item_accessor_) { in ConnectBasicBlocks() local 148 const uint32_t dex_pc = pair.DexPc(); in ConnectBasicBlocks() 149 const Instruction& instruction = pair.Inst(); in ConnectBasicBlocks() 201 block->AddSuccessor(GetBlockAt(std::next(DexInstructionIterator(pair)).DexPc())); in ConnectBasicBlocks() 391 for (const DexInstructionPcPair& pair : code_item_accessor_) { in InsertSynthesizedLoopsForOsr() local 392 const uint32_t dex_pc = pair.DexPc(); in InsertSynthesizedLoopsForOsr() [all …]
|
/art/runtime/gc/ |
D | verification.cc | 146 using WorkQueue = std::deque<std::pair<mirror::Object*, std::string>>; 209 std::deque<std::pair<mirror::Object*, std::string>> work; in FirstPathFromRootSet() 215 auto pair = work.front(); in FirstPathFromRootSet() local 217 if (pair.first == target) { in FirstPathFromRootSet() 218 return pair.second; in FirstPathFromRootSet() 221 pair.first->VisitReferences(visitor, VoidFunctor()); in FirstPathFromRootSet() 225 oss << pair.second << " -> " << obj << "(" << obj->PrettyTypeOf() << ")." << pair2.second; in FirstPathFromRootSet()
|
/art/runtime/jit/ |
D | small_pattern_matcher.cc | 243 for (DexInstructionPcPair pair : accessor) { in TryMatch() local 244 const Instruction& instruction = pair.Inst(); in TryMatch() 245 switch (pair->Opcode()) { in TryMatch() 310 for (DexInstructionPcPair pair : accessor) { in TryMatch() local 311 const Instruction& instruction = pair.Inst(); in TryMatch() 312 switch (pair->Opcode()) { in TryMatch() 331 is_put = (pair->Opcode() == Instruction::IPUT || in TryMatch() 332 pair->Opcode() == Instruction::IPUT_OBJECT || in TryMatch() 333 pair->Opcode() == Instruction::IPUT_BOOLEAN || in TryMatch() 334 pair->Opcode() == Instruction::IPUT_WIDE); in TryMatch()
|