Home
last modified time | relevance | path

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

12

/packages/modules/StatsD/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.cpp175 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
229 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
277 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
289 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
351 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
364 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
377 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
437 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST_P()
540 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST()
633 EXPECT_EQ(ConditionState::kTrue, conditionCache[0]); in TEST_P()
[all …]
/packages/modules/StatsD/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.cpp200 newCondition = matchStart ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
201 if (matchStart && mInitialValue != ConditionState::kTrue) { in handleConditionEvent()
216 newCondition = startedCount > 0 ? ConditionState::kTrue : ConditionState::kFalse; in handleConditionEvent()
227 newCondition = ConditionState::kTrue; in handleConditionEvent()
310 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
323 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in evaluateCondition()
373 itr->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
389 slice.second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
399 startedCountIt->second > 0 ? ConditionState::kTrue : ConditionState::kFalse; in isConditionMet()
Dcondition_util.h32 kTrue = 1, enumerator
/packages/modules/Bluetooth/system/main/test/
Dmain_shim_dumpsys_test.cc37 constexpr char kTrue[] = "1"; variable
63 ASSERT_TRUE(os::SetSystemProperty(kReadOnlyDebuggableProperty, kTrue)); in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/
DValueMetricProducer.cpp146 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in ValueMetricProducer()
164 if (isPulled() && mCondition == ConditionState::kTrue && mIsActive) { in onStatsdInitCompleted()
173 if (isPulled() && mCondition == ConditionState::kTrue && mIsActive) { in notifyAppUpgradeInternalLocked()
275 if (mCondition != ConditionState::kTrue || !mIsActive) { in onStateChanged()
338 if (isPulled() && mCondition == ConditionState::kTrue && mIsActive) { in onDumpReportLocked()
520 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
548 const ConditionState newCondition = condition ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
589 (newCondition == ConditionState::kTrue || oldCondition == ConditionState::kTrue)) { in onConditionChangedLocked()
DGaugeMetricProducer.cpp220 if (mCondition == ConditionState::kTrue && mIsActive && mIsPulled && isRandomNSamples()) { in onConfigUpdatedLocked()
383 if (mCondition == ConditionState::kTrue && mIsActive && mIsPulled && isRandomNSamples()) { in prepareFirstBucketLocked()
436 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
449 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
465 mCondition = overallCondition ? ConditionState::kTrue : ConditionState::kFalse; in onSlicedConditionMayChangeLocked()
DDurationMetricProducer.cpp173 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in DurationMetricProducer()
461 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
486 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
838 condition = conditionState == ConditionState::kTrue; in handleMatchedLogEventValuesLocked()
841 condition = mCondition == ConditionState::kTrue; in handleMatchedLogEventValuesLocked()
DCountMetricProducer.cpp129 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in CountMetricProducer()
336 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
548 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
DNumericValueMetricProducer.h49 return mIsActive && (mCondition == ConditionState::kTrue); in isPullNeeded()
128 (isPulled() && !mUseDiff && mCondition != ConditionState::kTrue); in canSkipLogEventLocked()
DNumericValueMetricProducer.cpp159 (oldCondition == ConditionState::kTrue && newCondition == ConditionState::kFalse)) { in onConditionChangedInternalLocked()
166 if (mIsActive && isPulled() && mCondition == ConditionState::kTrue && mUseDiff) { in prepareFirstBucketLocked()
192 if (mCondition == ConditionState::kTrue) { in onDataPulled()
DMetricProducer.cpp141 condition = (conditionState == ConditionState::kTrue); in onMatchedLogEventLocked()
144 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
DGaugeMetricProducer.h85 return mIsActive && (mCondition == ConditionState::kTrue) && in isPullNeeded()
DEventMetricProducer.cpp220 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
DMetricProducer.h149 return conditionIndex >= 0 ? initialConditionCache[conditionIndex] : ConditionState::kTrue; in initialCondition()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp920 EXPECT_EQ(conditionCache[combination4Index], ConditionState::kTrue); in TEST_F()
1915 EXPECT_EQ(oldMetricProducers[0]->mCondition, ConditionState::kTrue); in TEST_F()
1953 vector<ConditionState> conditionCache = {ConditionState::kTrue, ConditionState::kUnknown}; in TEST_F()
2041 EXPECT_EQ(newMetricProducers[event1Index]->mCondition, ConditionState::kTrue); in TEST_F()
2047 EXPECT_EQ(newMetricProducers[event3Index]->mCondition, ConditionState::kTrue); in TEST_F()
2053 EXPECT_EQ(newMetricProducers[event6Index]->mCondition, ConditionState::kTrue); in TEST_F()
2143 EXPECT_EQ(oldMetricProducers[0]->mCondition, ConditionState::kTrue); in TEST_F()
2180 vector<ConditionState> conditionCache = {ConditionState::kTrue}; in TEST_F()
2270 EXPECT_EQ(newMetricProducers[count1Index]->mCondition, ConditionState::kTrue); in TEST_F()
2275 EXPECT_EQ(newMetricProducers[count2Index]->mCondition, ConditionState::kTrue); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/
DServerFlag.cpp72 case base::ParseBoolResult::kTrue: in getServerTelemetryEnableFlag()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp266 if (conditionState != ConditionState::kTrue) { in onSlicedConditionMayChange()
298 if (conditionState == ConditionState::kTrue) { in onSlicedConditionMayChange()
DMaxDurationTracker.cpp253 bool conditionMet = (conditionState == ConditionState::kTrue); in onSlicedConditionMayChange()
/packages/modules/StatsD/statsd/tests/metrics/
DCountMetricProducer_test.cpp234 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DEventMetricProducer_test.cpp178 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST_F()
DOringDurationTracker_test.cpp237 .WillOnce(Return(ConditionState::kTrue)); in TEST()
/packages/modules/adb/daemon/
Dusb.cpp758 return android::base::ParseBool(value) == android::base::ParseBoolResult::kTrue; in usb_ffs_open_thread()
/packages/modules/StatsD/statsd/tests/e2e/
DValueMetric_pull_e2e_test.cpp200 EXPECT_EQ(ConditionState::kTrue, metricProducer2->mCondition); in TEST()

12