/frameworks/base/core/jni/android/graphics/ |
D | PathMeasure.cpp | 59 PathMeasurePair* pair; in create() local 61 pair = new PathMeasurePair(*path, forceClosed); in create() 63 pair = new PathMeasurePair; in create() 64 return reinterpret_cast<jlong>(pair); in create() 69 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in setPath() local 74 pair->fPath.reset(); in setPath() 76 pair->fPath = *path; in setPath() 78 pair->fMeasure.setPath(&pair->fPath, forceClosed); in setPath() 82 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in getLength() local 83 return static_cast<jfloat>(SkScalarToFloat(pair->fMeasure.getLength())); in getLength() [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 456 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream() argument 460 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_PULL_ATOM_ID, (int32_t)pair.first); in writePullerStatsToStream() 461 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream() 463 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream() 465 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream() 467 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream() 469 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream() 471 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream() 473 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream() 474 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DATA_ERROR, (long long)pair.second.dataError); in writePullerStatsToStream() [all …]
|
D | stats_log_util.h | 73 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, 77 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair,
|
/frameworks/base/tools/aapt2/util/ |
D | ImmutableMap.h | 33 typename std::vector<std::pair<TKey, TValue>>::const_iterator; 39 std::initializer_list<std::pair<TKey, TValue>> list) { in CreatePreSorted() 41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in CreatePreSorted() 45 std::initializer_list<std::pair<TKey, TValue>> list) { in CreateAndSort() 46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); in CreateAndSort() 54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find() 74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap() 77 std::vector<std::pair<TKey, TValue>> data_;
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/ |
D | MapField.cs | 88 foreach (var pair in list) in Clone() 90 clone.Add(pair.Key, ((IDeepCloneable<TValue>)pair.Value).Clone()); in Clone() 134 return list.Any(pair => comparer.Equals(pair.Value, value)); in ContainsValue() 209 var pair = new KeyValuePair<TKey, TValue>(key, value); 212 node.Value = pair; 216 node = list.AddLast(pair); 225 …public ICollection<TKey> Keys { get { return new MapView<TKey>(this, pair => pair.Key, ContainsKey… 230 …public ICollection<TValue> Values { get { return new MapView<TValue>(this, pair => pair.Value, Con… 239 foreach (var pair in entries) in Add() 241 Add(pair.Key, pair.Value); in Add() [all …]
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 116 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = { 142 int alertsCount, const std::list<std::pair<const int64_t, const int32_t>>& annotations, in noteConfigReceived() 659 for (auto& pair : mConfigStats) { in dumpStats() local 660 auto& configStats = pair.second; in dumpStats() 701 for (const auto& stats : pair.second->matcher_stats) { in dumpStats() 705 for (const auto& stats : pair.second->condition_stats) { in dumpStats() 710 for (const auto& stats : pair.second->condition_stats) { in dumpStats() 715 for (const auto& stats : pair.second->alert_stats) { in dumpStats() 728 for (const auto& pair : mNonPlatformPushedAtomStats) { in dumpStats() local 729 dprintf(out, "Atom %lu->%d\n", (unsigned long)pair.first, pair.second); in dumpStats() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicEncoderInfoManager.h | 45 std::size_t operator () (const std::pair<int32_t,int32_t> &p) const { in operator() 50 typedef std::unordered_map<std::pair<int32_t, int32_t>, 51 std::pair<int32_t, int32_t>, SizePairHash> FrameRateMaps; 59 std::pair<int32_t, int32_t>* minSize, std::pair<int32_t, int32_t>* maxSize, 67 std::pair<int32_t, int32_t> mMinSizeHeic, mMaxSizeHeic; 68 std::pair<int32_t, int32_t> mMinSizeHevc, mMaxSizeHevc;
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectBuilder.cpp | 40 SectionMap::const_mapping pair = in CreateSection() local 43 std::string output_name = (pair.first == NULL) ? pName : pair.first->name(); in CreateSection() 57 SectionMap::mapping pair = m_Module.getScript().sectionMap().find( in MergeSection() local 60 if (pair.first != NULL && pair.first->isDiscard()) { in MergeSection() 66 (pair.first == NULL) ? pInputSection.name() : pair.first->name(); in MergeSection() 106 if (pair.first != NULL) { in MergeSection() 107 assert(pair.second != NULL); in MergeSection() 108 data = pair.second->getSection()->getSectionData(); in MergeSection() 111 if (pair.first->prolog().hasSubAlign()) { in MergeSection() 112 pInputSection.setAlign(pair.second->getSection()->align()); in MergeSection()
|
/frameworks/base/tools/aapt/tests/ |
D | FileFinder_test.cpp | 17 using std::pair; 33 Vector< pair<String8,time_t> > data; in main() 34 data.push( pair<String8,time_t>(String8("hello.png"),3) ); in main() 35 data.push( pair<String8,time_t>(String8("world.PNG"),3) ); in main() 36 data.push( pair<String8,time_t>(String8("foo.pNg"),3) ); in main() 38 data.push( pair<String8,time_t>(String8("hello.jpg"),3) ); in main() 39 data.push( pair<String8,time_t>(String8(".hidden.png"),3)); in main()
|
/frameworks/native/cmds/lshal/ |
D | DebugCommand.cpp | 60 auto pair = splitFirst(mInterfaceName, '/'); in main() local 63 … if (!FQName::parse(pair.first, &fqName) || fqName.isIdentifier() || !fqName.isFullyQualified()) { in main() 64 mLshal.err() << "Invalid fully-qualified name '" << pair.first << "'\n\n"; in main() 69 pair.first, pair.second.empty() ? "default" : pair.second, mOptions, in main()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | remote_method_tests.cpp | 175 const std::vector<std::pair<std::string, int>>&)); 177 std::pair<int, BufferWrapper<std::uint8_t*>>( 297 const std::vector<std::pair<std::string, int>>& file_specs) { in OpenFiles() 493 Message&, const std::vector<std::pair<std::string, int>>& file_specs) { in OnOpenFiles() 505 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> OnReadFile( in OnReadFile() 507 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> return_value; in OnReadFile() 793 (IsConvertible<std::pair<int, float>, std::pair<int, float>>::value)); in TEST() 795 (IsConvertible<std::pair<int, float>, std::pair<float, float>>::value)); in TEST() 797 (IsConvertible<std::pair<int, float>, std::pair<float, int>>::value)); in TEST() 800 EXPECT_TRUE((IsConvertible<std::pair<std::pair<int, float>, float>, in TEST() [all …]
|
/frameworks/base/tools/processors/unsupportedappusage/src/android/processor/unsupportedappusage/ |
D | UnsupportedAppUsageProcessor.java | 149 Pair<JCTree, JCTree.JCCompilationUnit> pair = in getAnnotationIndex() local 151 Position.LineMap lines = pair.snd.lineMap; in getAnnotationIndex() 154 pair.snd.getSourceFile().getName(), in getAnnotationIndex() 155 lines.getLineNumber(pair.fst.pos().getStartPosition()), in getAnnotationIndex() 156 lines.getColumnNumber(pair.fst.pos().getStartPosition()), in getAnnotationIndex() 157 lines.getLineNumber(pair.fst.pos().getEndPosition(pair.snd.endPositions)), in getAnnotationIndex() 158 lines.getColumnNumber(pair.fst.pos().getEndPosition(pair.snd.endPositions)), in getAnnotationIndex()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | CpuFrequencies.java | 56 for (String pair : cpuNumberAndFrequencies.split("/")) { in parseString() 57 pair = pair.trim(); in parseString() 58 if (pair.length() == 0) { in parseString() 61 final String[] coreAndFreq = pair.split(":", 2); in parseString()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 391 LanguagePair pair = mCounters[i]; in fillData() local 402 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 408 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart; in fillData() 409 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData() 411 numSeptetsWithHeader = udhLength + pair.length; in fillData() 415 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit == in fillData() 417 minNumSeptets = pair.length; in fillData() 419 minNumMissingChars = pair.missingChars7bit; in fillData() 420 langIndex = pair.langTableIndex; in fillData() 421 langShiftIndex = pair.langShiftTableIndex; in fillData() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | report_directory.cpp | 36 static bool stat_mtime_cmp(const std::pair<String8, struct stat>& a, in stat_mtime_cmp() 37 const std::pair<String8, struct stat>& b) { in stat_mtime_cmp() 46 std::vector<std::pair<String8, struct stat>> files; in clean_directory() 72 files.push_back(std::pair<String8, struct stat>(filename, st)); in clean_directory() 89 for (std::vector<std::pair<String8, struct stat>>::iterator it = files.begin(); in clean_directory()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 42 auto pair = trackerNameIndexMap.find(simplePredicate.start()); in SimpleConditionTracker() local 43 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 47 mStartLogMatcherIndex = pair->second; in SimpleConditionTracker() 54 auto pair = trackerNameIndexMap.find(simplePredicate.stop()); in SimpleConditionTracker() local 55 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 59 mStopLogMatcherIndex = pair->second; in SimpleConditionTracker() 66 auto pair = trackerNameIndexMap.find(simplePredicate.stop_all()); in SimpleConditionTracker() local 67 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 71 mStopAllLogMatcherIndex = pair->second; in SimpleConditionTracker() 116 for (const auto& pair : mSlicedConditionState) { in dumpState() local [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | CacheQuotaService.java | 79 final Pair<RemoteCallback, List<CacheQuotaHint>> pair = in computeCacheQuotaHints() local 81 Message msg = mHandler.obtainMessage(ServiceHandler.MSG_SEND_LIST, pair); in computeCacheQuotaHints() 98 final Pair<RemoteCallback, List<CacheQuotaHint>> pair = in handleMessage() local 100 List<CacheQuotaHint> processed = onComputeCacheQuotaHints(pair.second); in handleMessage() 104 final RemoteCallback callback = pair.first; in handleMessage()
|
/frameworks/av/media/libmedia/ |
D | AudioParameter.cpp | 62 char *pair = strtok_r(str, ";", &last); in AudioParameter() local 63 while (pair != NULL) { in AudioParameter() 64 if (strlen(pair) != 0) { in AudioParameter() 65 size_t eqIdx = strcspn(pair, "="); in AudioParameter() 66 String8 key = String8(pair, eqIdx); in AudioParameter() 68 if (eqIdx == strlen(pair)) { in AudioParameter() 71 value = String8(pair + eqIdx + 1); in AudioParameter() 81 pair = strtok_r(NULL, ";", &last); in AudioParameter()
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | MaxDurationTracker.cpp | 170 for (auto& pair : mInfos) { in anyStarted() local 171 if (pair.second.state == kStarted) { in anyStarted() 180 for (const auto& pair : mInfos) { in noteStopAll() local 181 keys.insert(pair.first); in noteStopAll() 251 for (auto& pair : mInfos) { in onSlicedConditionMayChange() local 252 if (pair.second.state == kStopped) { in onSlicedConditionMayChange() 257 mConditionTrackerIndex, pair.second.conditionKeys, mDimensionInCondition, in onSlicedConditionMayChange() 266 VLOG("key: %s, condition: %d", pair.first.toString().c_str(), conditionMet); in onSlicedConditionMayChange() 267 noteConditionChanged(pair.first, conditionMet, timestamp); in onSlicedConditionMayChange() 272 for (auto& pair : mInfos) { in onConditionChanged() local [all …]
|
/frameworks/base/tools/incident_report/ |
D | generic_message.cpp | 33 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt32() 42 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt64() 52 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addMessage() 62 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addString()
|
/frameworks/ml/nn/runtime/ |
D | VersionedInterfaces.h | 101 std::pair<ErrorStatus, Capabilities> getCapabilities(); 118 std::pair<ErrorStatus, hidl_vec<Extension>> getSupportedExtensions(); 146 std::pair<ErrorStatus, hidl_vec<bool>> getSupportedOperations(const Model& model, 239 std::pair<ErrorStatus, std::shared_ptr<VersionedIPreparedModel>> prepareModel( 311 std::pair<ErrorStatus, std::shared_ptr<VersionedIPreparedModel>> prepareModelFromCache( 380 std::pair<ErrorStatus, hidl_string> getVersionString(); 533 std::pair<sp<T_IDevice>, sp<IDeviceDeathHandler>> getDeviceAndDeathHandler() const;
|
/frameworks/base/telephony/java/android/telephony/ims/feature/ |
D | CapabilityChangeRequest.java | 211 for (CapabilityPair pair : mCapabilitiesToEnable) { in writeToParcel() 212 dest.writeInt(pair.getCapability()); in writeToParcel() 213 dest.writeInt(pair.getRadioTech()); in writeToParcel() 216 for (CapabilityPair pair : mCapabilitiesToDisable) { in writeToParcel() 217 dest.writeInt(pair.getCapability()); in writeToParcel() 218 dest.writeInt(pair.getRadioTech()); in writeToParcel()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | type_traits_unittest.cc | 51 using std::pair; 193 EXPECT_FALSE((is_integral<pair<int, int> >::value)); in TEST() 217 EXPECT_FALSE((is_floating_point<pair<int, int> >::value)); in TEST() 361 EXPECT_FALSE((is_pod<pair<int, int> >::value)); in TEST() 394 EXPECT_TRUE((has_trivial_constructor<pair<int, char*> >::value)); in TEST() 399 EXPECT_FALSE((has_trivial_constructor<pair<int, string> >::value)); in TEST() 400 EXPECT_FALSE((has_trivial_constructor<pair<string, int> >::value)); in TEST() 437 EXPECT_TRUE((has_trivial_copy<pair<int, char*> >::value)); in TEST() 442 EXPECT_FALSE((has_trivial_copy<pair<int, string> >::value)); in TEST() 443 EXPECT_FALSE((has_trivial_copy<pair<string, int> >::value)); in TEST() [all …]
|
/frameworks/av/media/libstagefright/xmlparser/include/media/stagefright/xmlparser/ |
D | MediaCodecsXmlParser.h | 49 typedef std::pair<std::string, std::string> Attribute; 52 typedef std::pair<std::string, AttributeMap> Type; 71 typedef std::pair<std::string, CodecProperties> Codec; 92 typedef std::pair<std::string, RoleProperties> Role;
|
/frameworks/base/tools/aapt2/ |
D | SdkConstants.cpp | 31 static const std::vector<std::pair<uint16_t, ApiVersion>> sAttrIdMap = { 60 static bool less_entry_id(const std::pair<uint16_t, ApiVersion>& p, uint16_t entryId) { in less_entry_id() 75 std::pair<StringPiece, ApiVersion> GetDevelopmentSdkCodeNameAndVersion() { in GetDevelopmentSdkCodeNameAndVersion()
|