Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 210) sorted by relevance

123456789

/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java93 pair(trueLiveData(), false), in testNot()
94 pair(falseLiveData(), true), in testNot()
95 pair(nullLiveData(), null)); in testNot()
104 pair(dataOf(new Object()), false), in testEmitsNull()
105 pair(nullLiveData(), true)); in testEmitsNull()
170 pair(pair(trueLiveData(), trueLiveData()), true), in testAnd_truthTable()
171 pair(pair(trueLiveData(), falseLiveData()), false), in testAnd_truthTable()
172 pair(pair(trueLiveData(), nullLiveData()), null), in testAnd_truthTable()
173 pair(pair(falseLiveData(), trueLiveData()), false), in testAnd_truthTable()
174 pair(pair(falseLiveData(), falseLiveData()), false), in testAnd_truthTable()
[all …]
/packages/modules/StatsD/statsd/src/
Dstats_log_util.cpp472 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair, in writePullerStatsToStream() argument
476 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_PULL_ATOM_ID, (int32_t)pair.first); in writePullerStatsToStream()
477 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream()
479 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream()
481 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream()
483 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream()
485 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream()
487 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream()
489 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream()
490 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DATA_ERROR, (long long)pair.second.dataError); in writePullerStatsToStream()
[all …]
DStatsLogProcessor.cpp142 if (std::pair<int, int> indexRange; event->hasAttributionChain(&indexRange)) { in mapIsolatedUidToHostUidIfNecessaryLocked()
455 for (auto& pair : mMetricsManagers) { in OnLogEvent() local
456 int uid = pair.first.GetUid(); in OnLogEvent()
457 int64_t configId = pair.first.GetId(); in OnLogEvent()
458 bool isPrevActive = pair.second->isActive(); in OnLogEvent()
459 pair.second->onLogEvent(*event); in OnLogEvent()
460 bool isCurActive = pair.second->isActive(); in OnLogEvent()
476 StatsdStats::getInstance().noteActiveStatusChanged(pair.first, isCurActive); in OnLogEvent()
478 flushIfNecessaryLocked(pair.first, *(pair.second)); in OnLogEvent()
516 for (auto& pair : mMetricsManagers) { in GetActiveConfigsLocked() local
[all …]
Dstats_log_util.h85 void writePullerStatsToStream(const std::pair<int, StatsdStats::PulledAtomStats>& pair,
89 void writeAtomMetricStatsToStream(const std::pair<int64_t, StatsdStats::AtomMetricStats> &pair,
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp117 const std::map<int, std::pair<size_t, size_t>> StatsdStats::kAtomDimensionKeySizeLimitMap = {
143 int alertsCount, const std::list<std::pair<const int64_t, const int32_t>>& annotations, in noteConfigReceived()
708 for (auto& pair : mConfigStats) { in dumpStats() local
709 auto& configStats = pair.second; in dumpStats()
750 for (const auto& stats : pair.second->matcher_stats) { in dumpStats()
754 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
759 for (const auto& stats : pair.second->condition_stats) { in dumpStats()
764 for (const auto& stats : pair.second->alert_stats) { in dumpStats()
778 for (const auto& pair : mNonPlatformPushedAtomStats) { in dumpStats() local
779 dprintf(out, "Atom %d->(total count)%d, (error count)%d\n", pair.first, pair.second, in dumpStats()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/sitemap/
DSiteMapManager.java72 final SiteMapPair pair = lookUpParent(currentClass, currentTitle); in buildBreadCrumb() local
73 if (pair == null) { in buildBreadCrumb()
79 final String parentTitle = pair.getParentTitle(); in buildBreadCrumb()
83 currentClass = pair.getParentClass(); in buildBreadCrumb()
84 currentTitle = pair.getParentTitle(); in buildBreadCrumb()
105 final SiteMapPair pair = new SiteMapPair( in init() local
110 mPairs.add(pair); in init()
122 for (SiteMapPair pair : mPairs) { in lookUpParent()
123 if (TextUtils.equals(pair.getChildClass(), clazz) in lookUpParent()
124 && TextUtils.equals(title, pair.getChildTitle())) { in lookUpParent()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java96 String [] pair; in convertRationalLatLonToFloat() local
97 pair = parts[0].split("/"); in convertRationalLatLonToFloat()
98 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
99 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
101 pair = parts[1].split("/"); in convertRationalLatLonToFloat()
102 double minutes = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
103 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
105 pair = parts[2].split("/"); in convertRationalLatLonToFloat()
106 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
107 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp92 auto pair = atomMatchingTrackerMap.find(simplePredicate.start()); in setMatcherIndices() local
93 if (pair == atomMatchingTrackerMap.end()) { in setMatcherIndices()
97 mStartLogMatcherIndex = pair->second; in setMatcherIndices()
104 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop()); in setMatcherIndices() local
105 if (pair == atomMatchingTrackerMap.end()) { in setMatcherIndices()
109 mStopLogMatcherIndex = pair->second; in setMatcherIndices()
116 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop_all()); in setMatcherIndices() local
117 if (pair == atomMatchingTrackerMap.end()) { in setMatcherIndices()
122 mStopAllLogMatcherIndex = pair->second; in setMatcherIndices()
131 for (const auto& pair : mSlicedConditionState) { in dumpState() local
[all …]
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp146 for (auto& pair : mInfos) { in hasAccumulatingDuration() local
147 if (pair.second.state == kStarted) { in hasAccumulatingDuration()
156 for (const auto& pair : mInfos) { in noteStopAll() local
157 keys.insert(pair.first); in noteStopAll()
230 for (auto& pair : mInfos) { in onSlicedConditionMayChange() local
231 if (pair.second.state == kStopped) { in onSlicedConditionMayChange()
235 mConditionTrackerIndex, pair.second.conditionKeys, in onSlicedConditionMayChange()
239 VLOG("key: %s, condition: %d", pair.first.toString().c_str(), conditionMet); in onSlicedConditionMayChange()
240 noteConditionChanged(pair.first, conditionMet, timestamp); in onSlicedConditionMayChange()
250 for (auto& pair : mInfos) { in onConditionChanged() local
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java423 Pair<Executor, CarPowerPolicyFilter> pair = in addPowerPolicyListener() local
425 mPolicyListenerMap.put(listener, pair); in addPowerPolicyListener()
458 Pair<Executor, CarPowerPolicyFilter> pair = mPolicyListenerMap.remove(listener); in removePowerPolicyListener() local
459 if (pair == null) { in removePowerPolicyListener()
462 int[] filterComponents = pair.second.getComponents(); in removePowerPolicyListener()
589 Pair<Executor, CarPowerPolicyFilter> pair = mPolicyListenerMap.valueAt(i); in notifyPowerPolicyListeners() local
590 if (PowerComponentUtil.hasComponents(appliedPolicy, pair.second)) { in notifyPowerPolicyListeners()
592 new Pair<CarPowerPolicyListener, Executor>(listener, pair.first)); in notifyPowerPolicyListeners()
597 Pair<CarPowerPolicyListener, Executor> pair = listeners.get(i); in notifyPowerPolicyListeners() local
598 pair.second.execute(() -> pair.first.onPolicyChanged(accumulatedPolicy)); in notifyPowerPolicyListeners()
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/
DTestMmTelFeatureImpl.java81 for (CapabilityChangeRequest.CapabilityPair pair : request.getCapabilitiesToEnable()) { in changeEnabledCapabilities()
82 mEnabledCapabilities.get(pair.getRadioTech()).addCapabilities(pair.getCapability()); in changeEnabledCapabilities()
84 for (CapabilityChangeRequest.CapabilityPair pair : request.getCapabilitiesToDisable()) { in changeEnabledCapabilities()
85 mEnabledCapabilities.get(pair.getRadioTech()).removeCapabilities(pair.getCapability()); in changeEnabledCapabilities()
/packages/modules/StatsD/statsd/src/matchers/
DCombinationAtomMatchingTracker.cpp64 auto pair = matcherMap.find(child); in init() local
65 if (pair == matcherMap.end()) { in init()
70 int childIndex = pair->second; in init()
103 const auto& pair = atomMatchingTrackerMap.find(child); in onConfigUpdated() local
104 if (pair == atomMatchingTrackerMap.end()) { in onConfigUpdated()
108 mChildren.push_back(pair->second); in onConfigUpdated()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackMonitor.java92 Pair<Long, Integer> pair = mPtsList.get(mPtsList.size() - 1); in addPts() local
93 mPtsList.set(mPtsList.size() - 1, Pair.create(pair.first, pair.second + 1)); in addPts()
119 for (Pair<Long, Integer> pair : mPtsList) { in maybeLog()
122 .append(pair.first) in maybeLog()
124 .append(pair.second) in maybeLog()
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentState.java68 for (ExecutorListenerPair pair : mListeners) { in update()
69 pair.run(); in update()
77 final ExecutorListenerPair pair = new ExecutorListenerPair(executor, callback); in addCallback() local
78 mListeners.add(pair); in addCallback()
82 mListeners.remove(pair); in addCallback()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertReqPayloadTest.java42 Pair<IkePayload, Integer> pair = in testDecode() local
48 IkeCertReqPayload certPayload = (IkeCertReqPayload) pair.first; in testDecode()
53 assertEquals(NEXT_PAYLOAD_TYPE, (int) pair.second); in testDecode()
58 Pair<IkePayload, Integer> pair = in testEncode() local
63 IkeCertReqPayload certPayload = (IkeCertReqPayload) pair.first; in testEncode()
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/
DLiveDataFunctions.java498 public static <T, U> LiveData<Pair<T, U>> pair(
522 return (pair) -> {
523 if (pair == null) {
526 consumer.accept(pair.first, pair.second);
539 return (pair) -> {
540 if (pair == null) {
543 return function.apply(pair.first, pair.second);
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DInCallDialpadFragment.java66 viewModel.getCallStateAndConnectTime().observe(this, (pair) -> { in onCreateView()
71 if (pair == null) { in onCreateView()
76 if (pair.first == Call.STATE_ACTIVE) { in onCreateView()
77 mCallStateView.setBase(pair.second in onCreateView()
83 getContext(), pair.first)); in onCreateView()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMetadataController.java20 import static com.android.car.arch.common.LiveDataFunctions.pair;
181 pair(playbackViewModel.getMetadata(), playbackViewModel.getProgress()).observe( in MetadataController()
182 lifecycleOwner, pair -> { in MetadataController()
184 pair.first == null ? null : pair.first.getAlbumTitle(); in MetadataController()
188 boolean hasTime = pair.second.hasTime(); in MetadataController()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java168 Pair<IkePayload, Integer> pair = in decodePayloadList() local
170 IkePayload payload = pair.first; in decodePayloadList()
187 currentPayloadType = pair.second; in decodePayloadList()
622 Pair<IkeSkPayload, Integer> pair; in decode() local
624 pair = in decode()
656 + ((IkeSkfPayload) pair.first).fragmentNum in decode()
658 + ((IkeSkfPayload) pair.first).totalFragments in decode()
673 byte[] decryptedBytes = pair.first.getUnencryptedData(); in decode()
674 int firstPayloadType = pair.second; in decode()
685 (IkeSkfPayload) (pair.first), in decode()
[all …]
/packages/modules/NeuralNetworks/runtime/
DMemory.h231 std::pair<int, std::unique_ptr<RuntimeMemory>> allocate() const;
273 static std::pair<int, std::unique_ptr<MemoryAshmem>> create(uint32_t size);
298 static std::pair<int, std::unique_ptr<MemoryFd>> create(size_t size, int prot, int fd,
312 static std::pair<int, std::unique_ptr<MemoryAHWB>> create(const AHardwareBuffer& ahwb);
327 static std::pair<int, std::unique_ptr<MemoryRuntimeAHWB>> create(uint32_t size);
352 static std::pair<int, std::unique_ptr<MemoryFromDevice>> create(SharedBuffer buffer);
DManager.cpp96 std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override { in getNumberOfCacheFilesNeeded()
113 std::pair<int, std::shared_ptr<RuntimePreparedModel>> prepareModel(
118 std::pair<int, std::unique_ptr<RuntimeMemory>> allocate(const MemoryDescriptor& desc,
165 std::pair<int, std::shared_ptr<RuntimeExecution>> createReusableExecution(
381 const std::pair<uint32_t, uint32_t>& numCacheFiles, bool createIfNotExist) { in getCacheHandles()
432 std::pair<int, std::shared_ptr<RuntimePreparedModel>> DriverDevice::prepareModel( in prepareModel()
482 std::pair<int, std::unique_ptr<RuntimeMemory>> DriverDevice::allocate(const MemoryDescriptor& desc, in allocate()
535 ExecutionResult<std::pair<std::vector<OutputShape>, Timing>> result; in execute()
649 std::pair<int, std::shared_ptr<RuntimeExecution>> DriverPreparedModel::createReusableExecution( in createReusableExecution()
857 std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override { in getNumberOfCacheFilesNeeded()
[all …]
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalEventVerifier.java88 for (MismatchedEventPair pair : mMismatchedEvents) { in getResultString()
89 resultBuilder.append("Index " + pair.idx + ": Expected " in getResultString()
90 + pair.expectedEvent + ", Received " in getResultString()
91 + pair.mismatchedEvent + "\n"); in getResultString()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp70 v4pair pair; in makePair() local
71 if (inet_pton(AF_INET, addrs[0].c_str(), &pair.src) != 1 || in makePair()
72 inet_pton(AF_INET, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
75 return pair; in makePair()
88 v6pair pair; in makePair() local
89 if (inet_pton(AF_INET6, addrs[0].c_str(), &pair.src) != 1 || in makePair()
90 inet_pton(AF_INET6, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
93 return pair; in makePair()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomVariable.cpp186 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval()
226 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval()
286 std::pair<int, int> parent1 = {*parent1In->begin(), *parent1In->rbegin()}; in eval()
287 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval()
288 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval()
321 std::pair<int, int> parent1 = {*parent1In->begin(), *parent1In->rbegin()}; in eval()
322 std::pair<int, int> parent2 = {*parent2In->begin(), *parent2In->rbegin()}; in eval()
323 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval()
356 std::pair<int, int> child = {*childIn->begin(), *childIn->rbegin()}; in eval()
940 for (auto& pair : mEvalOrderMap) { in get() local
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java81 Entry<Integer, EapSimAkaAttribute> pair = itr.next(); in testConstructor() local
82 assertEquals(EAP_AT_VERSION_LIST, (int) pair.getKey()); in testConstructor()
83 assertEquals(Arrays.asList(1), ((AtVersionList) pair.getValue()).versions); in testConstructor()
85 pair = itr.next(); in testConstructor()
86 assertEquals(EAP_AT_PERMANENT_ID_REQ, (int) pair.getKey()); in testConstructor()
87 assertTrue(pair.getValue() instanceof AtPermanentIdReq); in testConstructor()

123456789