/packages/modules/StatsD/statsd/tests/condition/ |
D | CombinationConditionTracker_test.cpp | 39 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 …]
|
D | SimpleConditionTracker_test.cpp | 175 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/ |
D | condition_util.cpp | 51 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()
|
D | SimpleConditionTracker.cpp | 200 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()
|
D | condition_util.h | 32 kTrue = 1, enumerator
|
/packages/modules/Bluetooth/system/main/test/ |
D | main_shim_dumpsys_test.cc | 37 constexpr char kTrue[] = "1"; variable 63 ASSERT_TRUE(os::SetSystemProperty(kReadOnlyDebuggableProperty, kTrue)); in TEST_F()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 146 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()
|
D | GaugeMetricProducer.cpp | 220 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()
|
D | DurationMetricProducer.cpp | 173 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()
|
D | CountMetricProducer.cpp | 129 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in CountMetricProducer() 336 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked() 548 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked()
|
D | NumericValueMetricProducer.h | 49 return mIsActive && (mCondition == ConditionState::kTrue); in isPullNeeded() 128 (isPulled() && !mUseDiff && mCondition != ConditionState::kTrue); in canSkipLogEventLocked()
|
D | NumericValueMetricProducer.cpp | 159 (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()
|
D | MetricProducer.cpp | 141 condition = (conditionState == ConditionState::kTrue); in onMatchedLogEventLocked() 144 condition = mCondition == ConditionState::kTrue; in onMatchedLogEventLocked()
|
D | GaugeMetricProducer.h | 85 return mIsActive && (mCondition == ConditionState::kTrue) && in isPullNeeded()
|
D | EventMetricProducer.cpp | 220 mCondition = conditionMet ? ConditionState::kTrue : ConditionState::kFalse; in onConditionChangedLocked()
|
D | MetricProducer.h | 149 return conditionIndex >= 0 ? initialConditionCache[conditionIndex] : ConditionState::kTrue; in initialCondition()
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 920 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/ |
D | ServerFlag.cpp | 72 case base::ParseBoolResult::kTrue: in getServerTelemetryEnableFlag()
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 266 if (conditionState != ConditionState::kTrue) { in onSlicedConditionMayChange() 298 if (conditionState == ConditionState::kTrue) { in onSlicedConditionMayChange()
|
D | MaxDurationTracker.cpp | 253 bool conditionMet = (conditionState == ConditionState::kTrue); in onSlicedConditionMayChange()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 234 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
|
D | EventMetricProducer_test.cpp | 178 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST_F()
|
D | OringDurationTracker_test.cpp | 237 .WillOnce(Return(ConditionState::kTrue)); in TEST()
|
/packages/modules/adb/daemon/ |
D | usb.cpp | 758 return android::base::ParseBool(value) == android::base::ParseBoolResult::kTrue; in usb_ffs_open_thread()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ValueMetric_pull_e2e_test.cpp | 200 EXPECT_EQ(ConditionState::kTrue, metricProducer2->mCondition); in TEST()
|