/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/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTest.cpp | 45 vector<pair<string, string>> attributeMap; 62 vector<pair<string, string>> domain, vector<string> aliases, 66 string codecName, vector<pair<string, string>> domain); 73 vector<pair<string, string>> attrMap); 94 pair<string, string>("feature-feature1", "feature1Val"), in setUpDatabase() 95 pair<string, string>("feature-feature2", "0"), in setUpDatabase() 96 pair<string, string>("feature-feature3", "0"), in setUpDatabase() 101 {pair<string, string>("feature-feature1", "feature1Val")}, {}, ""); in setUpDatabase() 108 {pair<string, string>("variant1:::variant1Limit1-range", in setUpDatabase() 110 pair<string, string>("variant1:::variant1Limit2-range", in setUpDatabase() [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 452 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream() argument 456 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_PULL_ATOM_ID, (int32_t)pair.first); in writePullerStatsToStream() 457 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream() 459 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream() 461 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream() 463 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream() 465 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream() 467 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream() 469 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream() 470 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/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 115 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = { 141 int alertsCount, const std::list<std::pair<const int64_t, const int32_t>>& annotations, in noteConfigReceived() 658 for (auto& pair : mConfigStats) { in dumpStats() local 659 auto& configStats = pair.second; in dumpStats() 700 for (const auto& stats : pair.second->matcher_stats) { in dumpStats() 704 for (const auto& stats : pair.second->condition_stats) { in dumpStats() 709 for (const auto& stats : pair.second->condition_stats) { in dumpStats() 714 for (const auto& stats : pair.second->alert_stats) { in dumpStats() 727 for (const auto& pair : mNonPlatformPushedAtomStats) { in dumpStats() local 728 dprintf(out, "Atom %lu->%d\n", (unsigned long)pair.first, pair.second); in dumpStats() [all …]
|
/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/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/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/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/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/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/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 38 auto pair = trackerNameIndexMap.find(simplePredicate.start()); in SimpleConditionTracker() local 39 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 43 mStartLogMatcherIndex = pair->second; in SimpleConditionTracker() 50 auto pair = trackerNameIndexMap.find(simplePredicate.stop()); in SimpleConditionTracker() local 51 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 55 mStopLogMatcherIndex = pair->second; in SimpleConditionTracker() 62 auto pair = trackerNameIndexMap.find(simplePredicate.stop_all()); in SimpleConditionTracker() local 63 if (pair == trackerNameIndexMap.end()) { in SimpleConditionTracker() 67 mStopAllLogMatcherIndex = pair->second; in SimpleConditionTracker() 112 for (const auto& pair : mSlicedConditionState) { in dumpState() local [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 384 LanguagePair pair = mCounters[i]; in fillData() local 395 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 401 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart; in fillData() 402 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData() 404 numSeptetsWithHeader = udhLength + pair.length; in fillData() 408 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit == in fillData() 410 minNumSeptets = pair.length; in fillData() 412 minNumMissingChars = pair.missingChars7bit; in fillData() 413 langIndex = pair.langTableIndex; in fillData() 414 langShiftIndex = pair.langShiftTableIndex; in fillData() [all …]
|
/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/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/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/av/media/libmediahelper/ |
D | AudioParameter.cpp | 64 char *pair = strtok_r(str, ";", &last); in AudioParameter() local 65 while (pair != NULL) { in AudioParameter() 66 if (strlen(pair) != 0) { in AudioParameter() 67 size_t eqIdx = strcspn(pair, "="); in AudioParameter() 68 String8 key = String8(pair, eqIdx); in AudioParameter() 70 if (eqIdx == strlen(pair)) { in AudioParameter() 73 value = String8(pair + eqIdx + 1); in AudioParameter() 83 pair = strtok_r(NULL, ";", &last); in AudioParameter()
|
/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/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/base/telephony/java/android/telephony/ims/feature/ |
D | CapabilityChangeRequest.java | 215 for (CapabilityPair pair : mCapabilitiesToEnable) { in writeToParcel() 216 dest.writeInt(pair.getCapability()); in writeToParcel() 217 dest.writeInt(pair.getRadioTech()); in writeToParcel() 220 for (CapabilityPair pair : mCapabilitiesToDisable) { in writeToParcel() 221 dest.writeInt(pair.getCapability()); in writeToParcel() 222 dest.writeInt(pair.getRadioTech()); in writeToParcel()
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSubtype.java | 164 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR); in getExtraValueHashMap() local 165 if (pair.length == 1) { in getExtraValueHashMap() 166 mExtraValueHashMapCache.put(pair[0], null); in getExtraValueHashMap() 167 } else if (pair.length > 1) { in getExtraValueHashMap() 168 if (pair.length > 2) { in getExtraValueHashMap() 171 mExtraValueHashMapCache.put(pair[0], pair[1]); in getExtraValueHashMap()
|
/frameworks/ml/nn/runtime/ |
D | VersionedInterfaces.h | 104 std::pair<uint32_t, uint32_t> numberOfCacheFilesNeeded, 155 std::pair<hal::ErrorStatus, hal::hidl_vec<bool>> getSupportedOperations( 222 std::pair<int, std::shared_ptr<VersionedIPreparedModel>> prepareModel( 308 std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const; 389 const std::pair<uint32_t, uint32_t> kNumberOfCacheFilesNeeded; 392 std::pair<int, std::shared_ptr<VersionedIPreparedModel>> prepareModelInternal( 396 std::pair<int, std::shared_ptr<VersionedIPreparedModel>> prepareModelFromCacheInternal( 491 std::pair<sp<T_IDevice>, sp<IDeviceDeathHandler>> getDeviceAndDeathHandler() const;
|
D | VersionedInterfaces.cpp | 155 static std::pair<int, std::shared_ptr<VersionedIPreparedModel>> makeVersionedIPreparedModel( in makeVersionedIPreparedModel() 400 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_3::IDevice* device) { in getCapabilitiesFunction() 403 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction() 404 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction() 478 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_2::IDevice* device) { in getCapabilitiesFunction() 481 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction() 482 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction() 494 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_1::IDevice* device) { in getCapabilitiesFunction() 497 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction() 498 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction() [all …]
|
/frameworks/av/media/libstagefright/xmlparser/include/media/stagefright/xmlparser/ |
D | MediaCodecsXmlParser.h | 53 typedef std::pair<std::string, std::string> Attribute; 56 typedef std::pair<std::string, AttributeMap> Type; 75 typedef std::pair<std::string, CodecProperties> Codec; 96 typedef std::pair<std::string, RoleProperties> Role;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeExpandableAdapter.java | 137 Pair<View, Boolean> pair = AdapterHelper.getView(item, null /*parentItem*/, parent, in getGroupView() local 139 mSkipCallbackParser = pair.getSecond(); in getGroupView() 140 return pair.getFirst(); in getGroupView() 149 Pair<View, Boolean> pair = AdapterHelper.getView(item, parentItem, parent, mCallback, in getChildView() local 151 mSkipCallbackParser = pair.getSecond(); in getChildView() 152 return pair.getFirst(); in getChildView()
|