Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/condition/
DCombinationConditionTracker_test.cpp38 conditionResults.push_back(ConditionState::kTrue); in TEST()
54 conditionResults.push_back(ConditionState::kTrue); in TEST()
56 conditionResults.push_back(ConditionState::kTrue); in TEST()
61 conditionResults.push_back(ConditionState::kTrue); in TEST()
62 conditionResults.push_back(ConditionState::kTrue); in TEST()
63 conditionResults.push_back(ConditionState::kTrue); in TEST()
78 conditionResults.push_back(ConditionState::kTrue); in TEST()
80 conditionResults.push_back(ConditionState::kTrue); in TEST()
100 conditionResults.push_back(ConditionState::kTrue); in TEST()
123 conditionResults.push_back(ConditionState::kTrue); in TEST()
[all …]
DSimpleConditionTracker_test.cpp153 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
165 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
225 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
238 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
251 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
327 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
451 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
561 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
601 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
/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.cpp182 newCondition = matchStart ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
183 if (matchStart && mInitialValue != ConditionState::kTrue) { in handleConditionEvent()
198 newCondition = startedCount > 0 ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
209 newCondition = ConditionState::kTrue; in handleConditionEvent()
293 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
306 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition()
368 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
385 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
388 if (sliceState == ConditionState::kTrue && dimensionFields.size() > 0) { in isConditionMet()
404 startedCountIt->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
[all …]
DStateTracker.cpp133 mSlicedState.size() > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition()
148 mSlicedState.size() > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition()
159 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
166 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
169 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
195 conditionCache[mIndex] = ConditionState::kTrue; in isConditionMet()
210 conditionCache[mIndex] = ConditionState::kTrue; in isConditionMet()
224 return ConditionState::kTrue; in getMetConditionDimension()
Dcondition_util.h32 kTrue = 1, enumerator
DCombinationConditionTracker.cpp189 if (conditionCache[mIndex] == ConditionState::kTrue && dimensionsKeySet.empty()) { in getMetConditionDimension()
/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp171 if (mIsActive && mIsPulled && mCondition == ConditionState::kTrue && mUseDiff) { in prepareFirstBucketLocked()
175 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in prepareFirstBucketLocked()
187 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in dropDataLocked()
212 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in onDumpReportLocked()
372 if (ConditionState::kTrue == mCondition && isEventTooLate) { in onActiveStateChangedLocked()
380 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
404 ConditionState newCondition = condition ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
425 (mCondition == ConditionState::kTrue && newCondition == ConditionState::kFalse) in onConditionChangedLocked()
427 newCondition == ConditionState::kTrue); in onConditionChangedLocked()
441 if (mUseDiff && mCondition == ConditionState::kTrue in onConditionChangedLocked()
[all …]
DGaugeMetricProducer.cpp320 triggerPuller = mCondition == ConditionState::kTrue && mCurrentSlicedBucket->empty(); in pullAndMatchEventsLocked()
324 triggerPuller = mCondition == ConditionState::kTrue; in pullAndMatchEventsLocked()
328 triggerPuller = mCondition == ConditionState::kTrue; in pullAndMatchEventsLocked()
362 if (ConditionState::kTrue != mCondition || !mIsPulled) { in onActiveStateChangedLocked()
375 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
390 mCondition = overallCondition ? ConditionState::kTrue : ConditionState::kFalse; in onSlicedConditionMayChangeLocked()
DMetricProducer.cpp64 condition = (conditionState == ConditionState::kTrue); in onMatchedLogEventLocked()
67 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
DDurationMetricProducer.cpp447 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
475 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
804 condition = conditionState == ConditionState::kTrue; in onMatchedLogEventLocked()
810 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
DEventMetricProducer.cpp136 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
DMetricProducer.h97 return conditionIndex >= 0 ? ConditionState::kUnknown : ConditionState::kTrue; in initialCondition()
DCountMetricProducer.cpp253 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
/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/tests/metrics/
DEventMetricProducer_test.cpp118 EXPECT_CALL(*wizard, query(_, key2, _, _, _, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DCountMetricProducer_test.cpp192 EXPECT_CALL(*wizard, query(_, key2, _, _, _, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DOringDurationTracker_test.cpp236 .WillOnce(Return(ConditionState::kTrue)); in TEST()
DGaugeMetricProducer_test.cpp512 return ConditionState::kTrue; in TEST()
DValueMetricProducer_test.cpp2146 valueProducer->mCondition = ConditionState::kTrue; in TEST()
2243 valueProducer->mCondition = ConditionState::kTrue; in TEST()
2309 valueProducer->mCondition = ConditionState::kTrue; in TEST()
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp237 if (conditionState != ConditionState::kTrue || in onSlicedConditionMayChange()
272 if (conditionState == ConditionState::kTrue && in onSlicedConditionMayChange()
DMaxDurationTracker.cpp262 (conditionState == ConditionState::kTrue) && in onSlicedConditionMayChange()
/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
308 policy.value = kTrue; in setPlayPolicy()