Searched refs:Trigger (Results 1 – 7 of 7) sorted by relevance
/art/odrefresh/ |
D | odr_compilation_log_test.cc | 106 ASSERT_TRUE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown, 0)); in TEST() 111 OdrMetrics::Trigger::kApexVersionMismatch, in TEST() 113 ASSERT_TRUE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kApexVersionMismatch)); in TEST() 114 ASSERT_TRUE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kDexFilesChanged)); in TEST() 115 ASSERT_FALSE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown)); in TEST() 124 ASSERT_TRUE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown, start_time)); in TEST() 129 OdrMetrics::Trigger::kApexVersionMismatch, in TEST() 132 ASSERT_FALSE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown, start_time)); in TEST() 134 ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown, start_time + kSecondsPerDay / 2)); in TEST() 135 ASSERT_TRUE(ocl.ShouldAttemptCompile(OdrMetrics::Trigger::kUnknown, start_time + kSecondsPerDay)); in TEST() [all …]
|
D | odr_metrics.h | 72 enum class Trigger : uint8_t { enum 114 Trigger GetTrigger() const { return trigger_; } in GetTrigger() 119 void SetTrigger(const Trigger trigger) { trigger_ = trigger; } in SetTrigger() 158 Trigger trigger_ = Trigger::kUnknown; 194 std::ostream& operator<<(std::ostream& os, OdrMetrics::Trigger trigger);
|
D | odr_compilation_log.h | 68 bool ShouldAttemptCompile(OdrMetrics::Trigger trigger, time_t now = 0) const; 78 OdrMetrics::Trigger trigger, 83 OdrMetrics::Trigger trigger,
|
D | odr_compilation_log.cc | 162 OdrMetrics::Trigger trigger, in Log() 171 OdrMetrics::Trigger trigger, in Log() 182 bool OdrCompilationLog::ShouldAttemptCompile(OdrMetrics::Trigger trigger, time_t now) const { in ShouldAttemptCompile() 194 if (trigger == OdrMetrics::Trigger::kApexVersionMismatch || in ShouldAttemptCompile() 195 trigger == OdrMetrics::Trigger::kDexFilesChanged) { in ShouldAttemptCompile()
|
D | odrefresh.h | 112 static PreconditionCheckResult NoneOk(OdrMetrics::Trigger trigger) { in NoneOk() 118 static PreconditionCheckResult BootImageMainlineExtensionNotOk(OdrMetrics::Trigger trigger) { in BootImageMainlineExtensionNotOk() 124 static PreconditionCheckResult SystemServerNotOk(OdrMetrics::Trigger trigger) { in SystemServerNotOk() 137 OdrMetrics::Trigger GetTrigger() const { return trigger_.value(); } in GetTrigger() 144 PreconditionCheckResult(std::optional<OdrMetrics::Trigger> trigger, in PreconditionCheckResult() 154 std::optional<OdrMetrics::Trigger> trigger_;
|
D | odrefresh.cc | 1122 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForSystem() 1126 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForSystem() 1133 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kUnknown); in CheckPreconditionForSystem() 1138 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForSystem() 1146 OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForSystem() 1196 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForData() 1203 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForData() 1210 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForData() 1217 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kUnknown); in CheckPreconditionForData() 1221 return PreconditionCheckResult::NoneOk(OdrMetrics::Trigger::kApexVersionMismatch); in CheckPreconditionForData() [all …]
|
D | odr_metrics_test.cc | 71 metrics.SetTrigger(OdrMetrics::Trigger::kApexVersionMismatch); in TEST_F() 84 metrics.SetTrigger(OdrMetrics::Trigger::kDexFilesChanged); in TEST_F()
|