/frameworks/base/cmds/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 310 Alert alert; in TEST() local 311 alert.set_id(101); in TEST() 312 alert.set_metric_id(1); in TEST() 313 alert.set_trigger_if_sum_gt(40 * NS_PER_SEC); in TEST() 314 alert.set_num_buckets(2); in TEST() 315 alert.set_refractory_period_secs(1); in TEST() 326 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST() 333 EXPECT_EQ((long long)(alert.trigger_if_sum_gt() + eventStartTimeNs), in TEST() 342 EXPECT_EQ((long long)(event1StartTimeNs + alert.trigger_if_sum_gt() - 3), in TEST() 360 EXPECT_EQ((long long)(event2StartTimeNs + alert.trigger_if_sum_gt() - bucket0Duration - in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 266 Alert alert; in TEST() local 267 alert.set_id(101); in TEST() 268 alert.set_metric_id(1); in TEST() 269 alert.set_trigger_if_sum_gt(40 * NS_PER_SEC); in TEST() 270 alert.set_num_buckets(2); in TEST() 272 alert.set_refractory_period_secs(refPeriodSec); in TEST() 275 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST() 326 Alert alert; in TEST() local 327 alert.set_id(101); in TEST() 328 alert.set_metric_id(1); in TEST() [all …]
|
D | CountMetricProducer_test.cpp | 226 Alert alert; in TEST() local 227 alert.set_num_buckets(3); in TEST() 228 alert.set_trigger_if_sum_gt(2); in TEST() 236 sp<AnomalyTracker> anomalyTracker = countProducer.addAnomalyTracker(alert, alarmMonitor); in TEST() 329 Alert alert; in TEST() local 330 alert.set_id(11); in TEST() 331 alert.set_metric_id(1); in TEST() 332 alert.set_trigger_if_sum_gt(2); in TEST() 333 alert.set_num_buckets(2); in TEST() 335 alert.set_refractory_period_secs(refPeriodSec); in TEST() [all …]
|
D | GaugeMetricProducer_test.cpp | 196 Alert alert; in TEST() local 197 alert.set_id(101); in TEST() 198 alert.set_metric_id(metricId); in TEST() 199 alert.set_trigger_if_sum_gt(25); in TEST() 200 alert.set_num_buckets(100); in TEST() 216 sp<AnomalyTracker> anomalyTracker = gaugeProducer.addAnomalyTracker(alert, alarmMonitor); in TEST() 588 Alert alert; in TEST() local 589 alert.set_id(101); in TEST() 590 alert.set_metric_id(metricId); in TEST() 591 alert.set_trigger_if_sum_gt(25); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 315 Alert alert; in TEST() local 316 alert.set_num_buckets(3); in TEST() 317 alert.set_trigger_if_sum_gt(2); in TEST() 325 sp<AnomalyTracker> anomalyTracker = durationProducer.addAnomalyTracker(alert, alarmMonitor); in TEST()
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | ConfigTtl_e2e_test.cpp | 45 auto alert = config.add_alert(); in CreateStatsdConfig() local 46 alert->set_id(StringToId("alert")); in CreateStatsdConfig() 47 alert->set_metric_id(123456); in CreateStatsdConfig() 48 alert->set_num_buckets(num_buckets); in CreateStatsdConfig() 49 alert->set_refractory_period_secs(10); in CreateStatsdConfig() 50 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig() 63 const uint64_t alert_id = config.alert(0).id(); in TEST() 64 const uint32_t refractory_period_sec = config.alert(0).refractory_period_secs(); in TEST()
|
D | Anomaly_count_e2e_test.cpp | 45 auto alert = config.add_alert(); in CreateStatsdConfig() local 46 alert->set_id(StringToId("alert")); in CreateStatsdConfig() 47 alert->set_metric_id(123456); in CreateStatsdConfig() 48 alert->set_num_buckets(num_buckets); in CreateStatsdConfig() 49 alert->set_refractory_period_secs(10); in CreateStatsdConfig() 50 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig() 60 const uint64_t alert_id = config.alert(0).id(); in TEST() 61 const uint32_t refractory_period_sec = config.alert(0).refractory_period_secs(); in TEST() 163 const uint64_t alert_id = config.alert(0).id(); in TEST() 164 const uint32_t refractory_period_sec = config.alert(0).refractory_period_secs(); in TEST()
|
D | Anomaly_duration_sum_e2e_test.cpp | 63 auto alert = config.add_alert(); in CreateStatsdConfig() local 64 alert->set_id(StringToId("alert")); in CreateStatsdConfig() 65 alert->set_metric_id(StringToId("WakelockDuration")); in CreateStatsdConfig() 66 alert->set_num_buckets(num_buckets); in CreateStatsdConfig() 67 alert->set_refractory_period_secs(2); in CreateStatsdConfig() 68 alert->set_trigger_if_sum_gt(threshold_ns); in CreateStatsdConfig() 96 const uint64_t alert_id = config.alert(0).id(); in TEST() 97 const uint32_t refractory_period_sec = config.alert(0).refractory_period_secs(); in TEST() 273 const uint64_t alert_id = config.alert(0).id(); in TEST() 274 const uint32_t refractory_period_sec = config.alert(0).refractory_period_secs(); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | MetricsManager_test.cpp | 87 auto alert = config.add_alert(); in buildGoodConfig() local 88 alert->set_id(3); in buildGoodConfig() 89 alert->set_metric_id(3); in buildGoodConfig() 90 alert->set_num_buckets(10); in buildGoodConfig() 91 alert->set_refractory_period_secs(100); in buildGoodConfig() 92 alert->set_trigger_if_sum_gt(100); in buildGoodConfig() 136 auto alert = config.add_alert(); in buildAlertWithUnknownMetric() local 137 alert->set_id(3); in buildAlertWithUnknownMetric() 138 alert->set_metric_id(2); in buildAlertWithUnknownMetric() 139 alert->set_num_buckets(10); in buildAlertWithUnknownMetric() [all …]
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 123 Alert alert; in TEST() local 124 alert.set_num_buckets(3); in TEST() 125 alert.set_refractory_period_secs(refractoryPeriodSec); in TEST() 126 alert.set_trigger_if_sum_gt(2); in TEST() 128 AnomalyTracker anomalyTracker(alert, kConfigKey); in TEST() 268 Alert alert; in TEST() local 269 alert.set_num_buckets(3); in TEST() 270 alert.set_refractory_period_secs(refractoryPeriodSec); in TEST() 271 alert.set_trigger_if_sum_gt(2); in TEST() 273 AnomalyTracker anomalyTracker(alert, kConfigKey); in TEST()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.cpp | 612 const Alert& alert = config.alert(i); in initAlerts() local 613 const auto& itr = metricProducerMap.find(alert.metric_id()); in initAlerts() 615 ALOGW("alert \"%lld\" has unknown metric id: \"%lld\"", (long long)alert.id(), in initAlerts() 616 (long long)alert.metric_id()); in initAlerts() 619 if (!alert.has_trigger_if_sum_gt()) { in initAlerts() 623 if (alert.trigger_if_sum_gt() < 0 || alert.num_buckets() <= 0) { in initAlerts() 625 alert.trigger_if_sum_gt(), alert.num_buckets()); in initAlerts() 630 sp<AnomalyTracker> anomalyTracker = metric->addAnomalyTracker(alert, anomalyAlarmMonitor); in initAlerts() 635 anomalyTrackerMap.insert(std::make_pair(alert.id(), allAnomalyTrackers.size())); in initAlerts()
|
D | DurationMetricProducer.cpp | 144 const Alert &alert, const sp<AlarmMonitor>& anomalyAlarmMonitor) { in addAnomalyTracker() argument 147 if (alert.trigger_if_sum_gt() > alert.num_buckets() * mBucketSizeNs) { in addAnomalyTracker() 149 alert.trigger_if_sum_gt(), alert.num_buckets(), (long long)mBucketSizeNs); in addAnomalyTracker() 154 new DurationAnomalyTracker(alert, mConfigKey, anomalyAlarmMonitor); in addAnomalyTracker()
|
D | MetricProducer.h | 177 virtual sp<AnomalyTracker> addAnomalyTracker(const Alert &alert, in addAnomalyTracker() argument 180 sp<AnomalyTracker> anomalyTracker = new AnomalyTracker(alert, mConfigKey); in addAnomalyTracker()
|
D | DurationMetricProducer.h | 49 sp<AnomalyTracker> addAnomalyTracker(const Alert &alert,
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | DurationAnomalyTracker.cpp | 27 DurationAnomalyTracker::DurationAnomalyTracker(const Alert& alert, const ConfigKey& configKey, in DurationAnomalyTracker() argument 29 : AnomalyTracker(alert, configKey), mAlarmMonitor(alarmMonitor) { in DurationAnomalyTracker()
|
D | AnomalyTracker.cpp | 35 AnomalyTracker::AnomalyTracker(const Alert& alert, const ConfigKey& configKey) in AnomalyTracker() argument 36 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker()
|
D | DurationAnomalyTracker.h | 30 DurationAnomalyTracker(const Alert& alert, const ConfigKey& configKey,
|
D | AnomalyTracker.h | 39 AnomalyTracker(const Alert& alert, const ConfigKey& configKey);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 327 assertEquals(bearerData.alert, BearerData.ALERT_HIGH_PRIO); in testMonolithicOne() 374 assertEquals(bearerData.alert, BearerData.ALERT_HIGH_PRIO); in testMonolithicTwo() 710 assertEquals(bd1.alert, 0); in testMsgDeliveryAlert() 714 assertEquals(bd2.alert, 1); in testMsgDeliveryAlert() 718 assertEquals(bd3.alert, 2); in testMsgDeliveryAlert() 722 assertEquals(bd4.alert, 3); in testMsgDeliveryAlert() 727 assertEquals(bd5.alert, BearerData.ALERT_MEDIUM_PRIO); in testMsgDeliveryAlert() 740 assertEquals(bd1.alert, BearerData.ALERT_MEDIUM_PRIO); in testMiscParams() 750 assertEquals(bd3.alert, BearerData.ALERT_HIGH_PRIO); in testMiscParams() 766 bearerData.alert = BearerData.ALERT_MEDIUM_PRIO; in testMsgDeliveryAlertFeedback() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfo.java | 380 View alert = findViewById(R.id.alert); in bindInlineControls() local 382 alert.setOnClickListener(mOnAlert); in bindInlineControls() 572 View alert = findViewById(R.id.alert); 580 alert.setSelected(true); 589 alert.setSelected(false);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManager.java | 107 public void updateNotification(@NonNull String key, boolean alert) { in updateNotification() argument 108 super.updateNotification(key, alert); in updateNotification() 110 if (alert && alertEntry != null) { in updateNotification()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfoTest.java | 781 mNotificationInfo.findViewById(R.id.alert).performClick(); in testDoesNotUpdateNotificationChannelAfterImportanceChanged() 1139 mNotificationInfo.findViewById(R.id.alert).performClick(); in testUnSilenceCallsUpdateNotificationChannel() 1246 mNotificationInfo.findViewById(R.id.alert).performClick(); in testAlertCallsUpdateNotificationChannel_channelImportanceMin() 1309 mNotificationInfo.findViewById(R.id.alert).performClick(); in testDoneText() 1337 mNotificationInfo.findViewById(R.id.alert).performClick(); in testUnSilenceCallsUpdateNotificationChannel_channelImportanceUnspecified() 1370 mNotificationInfo.findViewById(R.id.alert).performClick(); in testCloseControlsDoesNotUpdateIfSaveIsFalse() 1401 mNotificationInfo.findViewById(R.id.alert).performClick(); in testCloseControlsUpdatesWhenCheckSaveListenerUsesCallback() 1436 mNotificationInfo.findViewById(R.id.alert).performClick(); in testCloseControls_withoutHittingApply()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | AlertingNotificationManager.java | 102 public void updateNotification(@NonNull String key, boolean alert) { in updateNotification() argument 115 if (alert) { in updateNotification()
|
/frameworks/base/core/proto/android/os/ |
D | header.proto | 25 // From statsd config, the id of the anomaly alert, unique among alerts.
|
/frameworks/base/cmds/statsd/src/ |
D | statsd_config.proto | 413 repeated Alert alert = 9; field
|