Home
last modified time | relevance | path

Searched refs:find (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/packages/apps/TV/jni/
Dtunertvinput_jni.cpp42 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
80 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
102 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
115 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
129 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength()
145 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
160 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
194 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
209 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
[all …]
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp90 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
91 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
119 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
120 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
128 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
129 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
136 EXPECT_TRUE(name_set.find(kApp1) == name_set.end()); in TEST()
137 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
153 EXPECT_TRUE(name_set.find(kApp1) != name_set.end()); in TEST()
154 EXPECT_TRUE(name_set.find(kApp2) != name_set.end()); in TEST()
[all …]
DStatsLogProcessor_test.cpp316 EXPECT_NE(pullerManager->mPullUidProviders.find(key), pullerManager->mPullUidProviders.end()); in TEST()
320 EXPECT_NE(pullerManager->mPullUidProviders.find(key), pullerManager->mPullUidProviders.end()); in TEST()
323 EXPECT_EQ(pullerManager->mPullUidProviders.find(key), pullerManager->mPullUidProviders.end()); in TEST()
342 EXPECT_NE(p.mMetricsManagers.find(key), p.mMetricsManagers.end()); in TEST()
345 StatsdStats::getInstance().mConfigStats.find(key)); in TEST()
354 StatsdStats::getInstance().mConfigStats.find(key)); in TEST()
478 auto it = processor.mMetricsManagers.find(cfgKey1); in TEST()
504 it = processor.mMetricsManagers.find(cfgKey2); in TEST()
530 it = processor.mMetricsManagers.find(cfgKey3); in TEST()
573 EXPECT_TRUE(std::find(activeConfigsBroadcast.begin(), activeConfigsBroadcast.end(), cfgId1) != in TEST()
[all …]
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dconfig_update_utils.cpp49 const auto& oldAtomMatchingTrackerIt = oldAtomMatchingTrackerMap.find(id); in determineMatcherUpdateStatus()
77 const auto& childIt = newAtomMatchingTrackerMap.find(childMatcherId); in determineMatcherUpdateStatus()
125 if (newAtomMatchingTrackerMap.find(matcher.id()) != newAtomMatchingTrackerMap.end()) { in updateAtomMatchingTrackers()
149 const auto& oldAtomMatchingTrackerIt = oldAtomMatchingTrackerMap.find(id); in updateAtomMatchingTrackers()
215 const auto& oldConditionTrackerIt = oldConditionTrackerMap.find(id); in determineConditionUpdateStatus()
238 if (replacedMatchers.find(simplePredicate.start()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
244 if (replacedMatchers.find(simplePredicate.stop()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
250 if (replacedMatchers.find(simplePredicate.stop_all()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
263 const auto& childIt = newConditionTrackerMap.find(childPredicateId); in determineConditionUpdateStatus()
315 if (newConditionTrackerMap.find(condition.id()) != newConditionTrackerMap.end()) { in updateConditions()
[all …]
Dmetrics_manager_util.cpp120 const auto& metricActivationIt = metricToActivationMap.find(id); in getMetricProtoHash()
138 auto logTrackerIt = atomMatchingTrackerMap.find(matcherId); in handleMetricWithAtomMatchingTrackers()
163 auto condition_it = conditionTrackerMap.find(condition); in handleMetricWithConditions()
170 auto it = conditionTrackerMap.find(link.condition()); in handleMetricWithConditions()
203 auto it = stateAtomIdMap.find(stateId); in handleMetricWithStates()
211 auto stateIt = allStateGroupMaps.find(stateId); in handleMetricWithStates()
241 auto itr = metricToActivationMap.find(metricId); in handleMetricActivation()
252 auto itr = atomMatchingTrackerMap.find(activation.atom_matcher_id()); in handleMetricActivation()
269 itr = atomMatchingTrackerMap.find(activation.deactivation_atom_matcher_id()); in handleMetricActivation()
299 const auto& itr = metricToActivationMap.find(metricId); in handleMetricActivationOnConfigUpdate()
[all …]
/packages/modules/StatsD/statsd/src/config/
DConfigManager.cpp69 auto it = thiz->mConfigReceivers.find(configKey); in configReceiverDied()
103 auto it = thiz->mActiveConfigsChangedReceivers.find(uid); in activeConfigChangedReceiverDied()
148 auto uidIt = mConfigs.find(key.GetUid()); in UpdateConfig()
151 auto it = uidIt->second.find(key); in UpdateConfig()
160 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig()
222 auto uidIt = mConfigs.find(uid); in RemoveConfig()
223 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end()) { in RemoveConfig()
253 auto uidIt = mConfigs.find(uid); in RemoveConfigs()
324 auto it = mConfigReceivers.find(key); in GetConfigReceiver()
336 auto it = mActiveConfigsChangedReceivers.find(uid); in GetActiveConfigsChangedReceiver()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DProcPidStat.cpp137 if (contents.find(key) != contents.end()) { in readKeyValueFile()
164 if (contents.find("Uid") == contents.end() || in readPidStatusFile()
168 if (contents.find("Tgid") == contents.end() || in readPidStatusFile()
173 if (contents.find("VmPeak") != contents.end() && in readPidStatusFile()
177 if (contents.find("VmSize") != contents.end() && in readPidStatusFile()
181 if (contents.find("VmHWM") != contents.end() && in readPidStatusFile()
185 if (contents.find("VmRSS") != contents.end() && in readPidStatusFile()
208 const auto& cachedIt = mLatestProcessStats.find(it.first); in collect()
220 const auto& cachedThread = cachedStats.threads.find(deltaThread.first); in collect()
276 const auto& it = mLatestProcessStats.find(curStats.process.pid); in getProcessStatsLocked()
[all …]
DIoOveruseConfigs.cpp194 if (const auto it = seenCategoryMappings.find(meta.packageName); in isValidResourceOveruseConfig()
268 if (const auto& it = mPerPackageThresholds.find(packageThreshold.name); in updatePerPackageThresholds()
373 if (const auto& it = mPerCategoryThresholds.find(category); in updatePerCategoryThresholds()
394 if (const auto& it = mAlertThresholds.find(alertThreshold); it != mAlertThresholds.end()) { in updateAlertThresholds()
686 if (const auto it = mSystemConfig.mPerPackageThresholds.find( in fetchThreshold()
691 if (const auto it = mPerCategoryThresholds.find(packageInfo.appCategoryType); in fetchThreshold()
697 if (const auto it = mVendorConfig.mPerPackageThresholds.find( in fetchThreshold()
702 if (const auto it = mPerCategoryThresholds.find(packageInfo.appCategoryType); in fetchThreshold()
708 if (const auto it = mPerCategoryThresholds.find(packageInfo.appCategoryType); in fetchThreshold()
727 return mSystemConfig.mSafeToKillPackages.find(packageInfo.packageIdentifier.name) != in isSafeToKill()
[all …]
/packages/services/Car/tests/BugReportApp/tests/src/com/android/car/bugreport/
DTtlPointsDecrementalTest.java83 assertThat(find(bugUserPending_ttl_points0)).isEqualTo(bugUserPending_ttl_points0); in test_decrementsTtlPointsForPendingBugReports()
84 assertThat(find(bugUserPending_ttl_points1)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
86 assertThat(find(bugUserPending_ttl_points2)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
88 assertThat(find(bugUploadPending)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
90 assertThat(find(bugUploadFailed)).isEqualTo( in test_decrementsTtlPointsForPendingBugReports()
92 assertThat(find(bugUploadWritePending)).isEqualTo(bugUploadWritePending); in test_decrementsTtlPointsForPendingBugReports()
96 private MetaBugReport find(MetaBugReport bug) { in find() method in TtlPointsDecrementalTest
/packages/modules/StatsD/statsd/src/state/
DStateManager.cpp48 mAllowedLogSources.find(event.GetUid()) != mAllowedLogSources.end()) { in onLogEvent()
49 if (mStateTrackers.find(event.GetTagId()) != mStateTrackers.end()) { in onLogEvent()
57 if (mStateTrackers.find(atomId) == mStateTrackers.end()) { in registerListener()
71 auto it = mStateTrackers.find(atomId); in unregisterListener()
89 auto it = mStateTrackers.find(atomId); in getStateValue()
105 if (mAllowedPkg.find(apk) != mAllowedPkg.end()) { in notifyAppChanged()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp276 if (find(ids.begin(), ids.end(), firstId + 1) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
281 if (find(ids.begin(), ids.end(), firstId + 2) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
286 if (find(ids.begin(), ids.end(), firstId + 3) == ids.end()) { in getAndUpdateTrainInfoOnDisk()
355 if (find(ids.begin(), ids.end(), firstId + 4) == ids.end()) { in processWatchdogRollbackOccurred()
361 if (find(ids.begin(), ids.end(), firstId + 5) == ids.end()) { in processWatchdogRollbackOccurred()
463 auto activeConfigs = activeConfigsPerUid.find(uid); in OnLogEvent()
484 auto lastBroadcastTime = mLastActivationBroadcastTimes.find(uid); in OnLogEvent()
493 auto activeConfigs = activeConfigsPerUid.find(uid); in OnLogEvent()
534 const auto& it = mMetricsManagers.find(key); in OnConfigUpdatedLocked()
566 auto it = mMetricsManagers.find(key); in GetMetricsSize()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.cpp196 auto it = UidMap::sAidToUidMapping.find(source); in createAllLogSourcesFromConfig()
215 auto it = UidMap::sAidToUidMapping.find(pullSource); in createAllLogSourcesFromConfig()
229 auto it = UidMap::sAidToUidMapping.find(pullPackage); in createAllLogSourcesFromConfig()
316 if (std::find(mAllowedPkg.begin(), mAllowedPkg.end(), apk) != mAllowedPkg.end()) { in notifyAppUpgrade()
323 if (it.second.find(apk) != it.second.end()) { in notifyAppUpgrade()
337 if (std::find(mAllowedPkg.begin(), mAllowedPkg.end(), apk) != mAllowedPkg.end()) { in notifyAppRemoved()
344 if (it.second.find(apk) != it.second.end()) { in notifyAppRemoved()
379 const auto& it = mCombinedPullAtomUids.find(atomId); in getPullAtomUids()
416 if (mNoReportMetricIds.find(producer->getMetricId()) == mNoReportMetricIds.end()) { in onDumpReport()
451 if (mWhitelistedAtomIds.find(event.GetTagId()) != mWhitelistedAtomIds.end()) { in checkLogCredentials()
[all …]
DDurationMetricProducer.cpp193 const auto& what_it = conditionTrackerMap.find(metric.what()); in onConfigUpdatedLocked()
381 const auto& slicedConditionIt = slicedConditionMap->find(linkedConditionDimensionKey); in onSlicedConditionMayChangeLocked_opt1()
393 if (dimensionsChangedToTrue->find(linkedConditionDimensionKey) != in onSlicedConditionMayChangeLocked_opt1()
397 if (dimensionsChangedToFalse->find(linkedConditionDimensionKey) != in onSlicedConditionMayChangeLocked_opt1()
620 auto whatIt = mCurrentSlicedDurationTrackerMap.find(newKey.getDimensionKeyInWhat()); in hitGuardRailLocked()
644 auto whatIt = mCurrentSlicedDurationTrackerMap.find(whatKey); in handleStartEvent()
652 auto it = mCurrentSlicedDurationTrackerMap.find(whatKey); in handleStartEvent()
726 if (statePrimaryKeys.find(atomId) != statePrimaryKeys.end()) { in handleMatchedLogEventValuesLocked()
741 auto whatIt = mCurrentSlicedDurationTrackerMap.find(dimensionInWhat); in handleMatchedLogEventValuesLocked()
753 auto whatIt = mCurrentSlicedDurationTrackerMap.find(dimensionInWhat); in handleMatchedLogEventValuesLocked()
DMetricProducer.cpp157 if (statePrimaryKeys.find(atomId) != statePrimaryKeys.end()) { in onMatchedLogEventLocked()
202 auto it = mEventActivationMap.find(activationTrackerIndex); in activateLocked()
224 auto it = mEventDeactivationMap.find(deactivationTrackerIndex); in cancelEventActivationLocked()
240 auto it = mEventActivationMap.find(activeEventActivation.atom_matcher_index()); in loadActiveMetricLocked()
316 auto atomIt = mStateGroupMap.find(atomId); in mapStateValue()
320 auto valueIt = atomIt->second.find(value->mValue.int_value); in mapStateValue()
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp92 auto pair = atomMatchingTrackerMap.find(simplePredicate.start()); in setMatcherIndices()
104 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop()); in setMatcherIndices()
116 auto pair = atomMatchingTrackerMap.find(simplePredicate.stop_all()); in setMatcherIndices()
166 if (!mSliced || mSlicedConditionState.find(newKey) != mSlicedConditionState.end()) { in hitGuardRail()
188 auto outputIt = mSlicedConditionState.find(outputKey); in handleConditionEvent()
314 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in evaluateCondition()
363 const auto pair = conditionParameters.find(mConditionId); in isConditionMet()
369 const auto& itr = mSlicedConditionState.find(DEFAULT_DIMENSION_KEY); in isConditionMet()
394 auto startedCountIt = mSlicedConditionState.find(key); in isConditionMet()
/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp96 if (tracker.find(identity) == tracker.end()) { in set()
102 const bool active = tmp.find(identity) != tmp.end(); in set()
123 const auto mode = mPrivateDnsModes.find(netId); in getStatus()
127 const auto netPair = mPrivateDnsTransports.find(netId); in getStatus()
157 if (auto it = mPrivateDnsModes.find(netId); it == mPrivateDnsModes.end()) { in requestValidation()
278 auto netPair = mPrivateDnsTransports.find(netId); in recordPrivateDnsValidation()
285 const auto mode = mPrivateDnsModes.find(netId); in recordPrivateDnsValidation()
302 auto serverPair = tracker.find(identity); in recordPrivateDnsValidation()
374 auto netPair = mPrivateDnsTransports.find(netId); in getPrivateDnsLocked()
379 auto iter = netPair->second.find(identity); in getPrivateDnsLocked()
DDns64Configuration.cpp115 const auto& iter = mDns64Configs.find(netId); in getPrefix64Locked()
131 const auto& iter = mDns64Configs.find(netId); in dump()
195 const auto& iter = mDns64Configs.find(cfg.netId); in isDiscoveryInProgress()
219 const auto& iter = mDns64Configs.find(netId); in removeDns64Config()
249 auto iter = mDns64Configs.find(netId); in setPrefix64()
268 const auto& iter = mDns64Configs.find(netId); in clearPrefix64()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_and_options.h42 return mOptions.find(optionName) != mOptions.end(); in hasOption()
46 const auto &it = mOptions.find(optionName); in getOptionValue()
52 const auto &it = mArguments.find(name); in hasArgument()
57 const auto &it = mArguments.find(name); in getSingleArgument()
63 const auto &it = mArguments.find(name); in getVariableLengthArguments()
/packages/services/Car/cpp/computepipe/runner/engine/
DDefaultEngine.cpp48 auto pos = source.find(":"); in getStreamIdFromSource()
68 auto pos = engineArgs.find(kNoInputManager); in setArgs()
72 pos = engineArgs.find(kDisplayStreamId); in setArgs()
195 if (mStreamManagers.find(streamId) == mStreamManagers.end()) { in freePacket()
209 if (mStreamManagers.find(streamId) == mStreamManagers.end()) { in DispatchPixelData()
219 if (mStreamManagers.find(streamId) == mStreamManagers.end()) { in DispatchSerializedData()
445 if ((mCurrentPhaseError->source.find("PrebuiltGraph") == std::string::npos)) { in broadcastHalt()
456 if (mCurrentPhaseError->source.find("ClientInterface") == std::string::npos) { in broadcastHalt()
467 if ((mCurrentPhaseError->source.find("PrebuiltGraph") == std::string::npos) && mGraph) { in broadcastHalt()
477 if (mCurrentPhaseError->source.find("ClientInterface") == std::string::npos) { in broadcastHalt()
[all …]
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp43 if (mConditionKeyMap.find(newKey) != mConditionKeyMap.end()) { in hitGuardRail()
75 if (mConditionSliced && mConditionKeyMap.find(key) == mConditionKeyMap.end()) { in noteStart()
84 auto it = mStarted.find(key); in noteStop()
103 auto pausedIt = mPaused.find(key); in noteStop()
242 const auto& condIt = mConditionKeyMap.find(key); in onSlicedConditionMayChange()
275 if (mConditionKeyMap.find(key) == mConditionKeyMap.end()) { in onSlicedConditionMayChange()
445 auto it = mStateKeyDurationMap.find(mEventKey.getStateValuesKey()); in getCurrentStateKeyDuration()
454 auto it = mStateKeyDurationMap.find(mEventKey.getStateValuesKey()); in getCurrentStateKeyFullBucketDuration()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java229 placement.find();
346 placement.find();
403 placement.find(); in placement.find()
441 public void find() {
442 find(0, 0, 0, new ArrayList<DbEntry>());
453 public void find(int index, float weightLoss, float moveCost,
504 find(index + 1, weightLoss, newMoveCost, itemsIncludingMe);
513 find(index + 1, weightLoss, newMoveCost + 1, itemsIncludingMe);
523 find(index + 1, weightLoss, newMoveCost + 1, itemsIncludingMe);
535 find(index + 1, weightLoss, newMoveCost + 2, itemsIncludingMe);
[all …]
/packages/services/Car/cpp/evs/manager/1.1/test/fuzzer/
DMockHWEnumerator.h54 if (mHWCameras.find(idx) != mHWCameras.end()) { in openCamera()
75 if (mHWCameras.find(idx) != mHWCameras.end()) { in openCamera_1_1()
94 auto iter = mDisplayPortList.find(port); in openDisplay_1_1()
97 auto it = mHWDisplays.find(id); in openDisplay_1_1()
/packages/modules/StatsD/statsd/src/packages/
DUidMap.cpp80 auto it = mMap.find(std::make_pair(uid, packageName)); in hasApp()
108 auto it = mMap.find(std::make_pair(uid, packageName)); in getAppVersion()
140 auto mMapIt = mMap.find(kv.first); in updateMap()
172 auto it = mMap.find(std::make_pair(uid, appName)); in updateApp()
233 auto it = mMap.find(key); in removeApp()
275 auto it = mIsolatedUidMap.find(isolatedUid); in removeIsolatedUid()
284 auto it = mIsolatedUidMap.find(uid); in getHostUidOrSelf()
331 interestingUids.find(kv.first.first) == interestingUids.end()) { in writeUidMapSnapshotLocked()
/packages/modules/StatsD/statsd/src/external/
DStatsPullerManager.cpp71 const auto& it = thiz->kAllPullAtomInfo.find(pullerKey); in pullAtomCallbackDied()
109 const auto& uidProviderIt = mPullUidProviders.find(configKey); in PullLocked()
132 auto pullerIt = kAllPullAtomInfo.find(key); in PullLocked()
220 auto receiversIt = mReceivers.find({.atomTag = tagId, .configKey = configKey}); in UnRegisterReceiver()
244 const auto& it = mPullUidProviders.find(configKey); in UnregisterPullUidProvider()
362 if (kAllPullAtomInfo.find(key) != kAllPullAtomInfo.end()) { in UnregisterPullAtomCallback()
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp105 auto itr = bucket->find(key); in addPastBucket()
153 auto itr = mSumOverPastBuckets.find(key); in subtractValueFromSum()
185 const auto& itr = bucket->find(key); in getPastBucketValue()
190 const auto& itr = mSumOverPastBuckets.find(key); in getSumOverPastBuckets()
251 const auto& it = mRefractoryPeriodEndsSec.find(key); in isInRefractoryPeriod()

12345678910>>...15