Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/condition/
DCombinationConditionTracker_test.cpp39 conditionResults.push_back(ConditionState::kTrue); in TEST()
55 conditionResults.push_back(ConditionState::kTrue); in TEST()
57 conditionResults.push_back(ConditionState::kTrue); in TEST()
62 conditionResults.push_back(ConditionState::kTrue); in TEST()
63 conditionResults.push_back(ConditionState::kTrue); in TEST()
64 conditionResults.push_back(ConditionState::kTrue); in TEST()
79 conditionResults.push_back(ConditionState::kTrue); in TEST()
81 conditionResults.push_back(ConditionState::kTrue); in TEST()
101 conditionResults.push_back(ConditionState::kTrue); in TEST()
124 conditionResults.push_back(ConditionState::kTrue); in TEST()
[all …]
DSimpleConditionTracker_test.cpp165 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
219 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
266 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
278 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
340 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
353 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
366 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
435 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
551 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
656 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/condition/
Dcondition_util.cpp51 if (childState == ConditionState::kTrue) { in evaluateCombinationCondition()
63 newCondition = hasFalse ? ConditionState::kFalse : ConditionState::kTrue; in evaluateCombinationCondition()
67 newCondition = hasTrue ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCombinationCondition()
73 ConditionState::kTrue : ConditionState::kFalse); in evaluateCombinationCondition()
76 newCondition = hasFalse ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCombinationCondition()
79 newCondition = hasTrue ? ConditionState::kFalse : ConditionState::kTrue; in evaluateCombinationCondition()
DSimpleConditionTracker.cpp175 newCondition = matchStart ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
176 if (matchStart && mInitialValue != ConditionState::kTrue) { in handleConditionEvent()
191 newCondition = startedCount > 0 ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
202 newCondition = ConditionState::kTrue; in handleConditionEvent()
286 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
299 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition()
349 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
365 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
375 startedCountIt->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
Dcondition_util.h32 kTrue = 1, enumerator
/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp172 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in ValueMetricProducer()
205 if (mCondition != ConditionState::kTrue || !mIsActive) { in onStateChanged()
257 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in onDumpReportLocked()
436 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
460 ConditionState newCondition = condition ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
502 (newCondition == ConditionState::kTrue || mCondition == ConditionState::kTrue)) { in onConditionChangedLocked()
510 (mCondition == ConditionState::kTrue && newCondition == ConditionState::kFalse)) { in onConditionChangedLocked()
523 if (mIsActive && mIsPulled && mCondition == ConditionState::kTrue && mUseDiff) { in prepareFirstBucketLocked()
549 if (mCondition == ConditionState::kTrue) { in onDataPulled()
775 && mCondition != ConditionState::kTrue; in onMatchedLogEventInternalLocked()
DGaugeMetricProducer.cpp307 triggerPuller = mCondition == ConditionState::kTrue && mCurrentSlicedBucket->empty(); in pullAndMatchEventsLocked()
311 triggerPuller = mCondition == ConditionState::kTrue; in pullAndMatchEventsLocked()
315 triggerPuller = mCondition == ConditionState::kTrue; in pullAndMatchEventsLocked()
348 if (ConditionState::kTrue != mCondition || !mIsPulled) { in onActiveStateChangedLocked()
361 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
376 mCondition = overallCondition ? ConditionState::kTrue : ConditionState::kFalse; in onSlicedConditionMayChangeLocked()
DDurationMetricProducer.cpp305 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
329 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
631 condition = conditionState == ConditionState::kTrue; in onMatchedLogEventLocked()
634 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
DValueMetricProducer.h78 if (mIsPulled && mCondition == ConditionState::kTrue) { in notifyAppUpgrade()
87 if (mIsPulled && mCondition == ConditionState::kTrue) { in onStatsdInitCompleted()
DMetricProducer.cpp93 condition = (conditionState == ConditionState::kTrue); in onMatchedLogEventLocked()
96 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
DEventMetricProducer.cpp142 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
DCountMetricProducer.cpp254 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
DMetricProducer.h144 return conditionIndex >= 0 ? initialConditionCache[conditionIndex] : ConditionState::kTrue; in initialCondition()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DDrmPlugin.cpp31 const android::String8 kTrue("True"); variable
114 mPlayPolicy.add(kQueryKeyPlayAllowed, kTrue); in setPlayPolicy()
115 mPlayPolicy.add(kQueryKeyRenewAllowed, kTrue); in setPlayPolicy()
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp243 if (conditionState != ConditionState::kTrue) { in onSlicedConditionMayChange()
275 if (conditionState == ConditionState::kTrue) { in onSlicedConditionMayChange()
DMaxDurationTracker.cpp234 bool conditionMet = (conditionState == ConditionState::kTrue); in onSlicedConditionMayChange()
/frameworks/base/cmds/statsd/tests/metrics/
DEventMetricProducer_test.cpp157 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DCountMetricProducer_test.cpp226 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DOringDurationTracker_test.cpp227 .WillOnce(Return(ConditionState::kTrue)); in TEST()
DGaugeMetricProducer_test.cpp522 return ConditionState::kTrue; in TEST()
DValueMetricProducer_test.cpp2173 ConditionState::kTrue); in TEST()
2313 ConditionState::kTrue); in TEST()
2392 ConditionState::kTrue); in TEST()
/frameworks/base/core/jni/
Dandroid_os_SystemProperties.cpp116 case ParseBoolResult::kTrue: in jbooleanFromParseBoolResult()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp37 const std::string kTrue("True"); variable
315 policy.value = kTrue; in setPlayPolicy()
/frameworks/base/cmds/statsd/tests/e2e/
DCountMetric_e2e_test.cpp112 EXPECT_EQ(ConditionState::kTrue, metricProducer1->mCondition); in TEST()
113 EXPECT_EQ(ConditionState::kTrue, metricProducer2->mCondition); in TEST()
DValueMetric_pull_e2e_test.cpp200 EXPECT_EQ(ConditionState::kTrue, metricProducer2->mCondition); in TEST()