Lines Matching refs:report

78     StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false);  in TEST()  local
79 ASSERT_EQ(1, report.config_stats_size()); in TEST()
80 const auto& configReport = report.config_stats(0); in TEST()
100 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
101 ASSERT_EQ(1, report.config_stats_size()); in TEST()
102 const auto& configReport = report.config_stats(0); in TEST()
127 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
128 ASSERT_EQ(1, report.config_stats_size()); in TEST()
129 const auto& configReport = report.config_stats(0); in TEST()
167 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
168 ASSERT_EQ(1, report.config_stats_size()); in TEST()
169 const auto& configReport = report.config_stats(0); in TEST()
199 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
200 ASSERT_EQ(1, report.config_stats_size()); in TEST()
201 const auto& configReport = report.config_stats(0); in TEST()
226 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
227 ASSERT_EQ(1, report.config_stats_size()); in TEST()
228 const auto& configReport = report.config_stats(0); in TEST()
233 report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST()
234 ASSERT_EQ(1, report.config_stats_size()); in TEST()
235 const auto& configReport2 = report.config_stats(0); in TEST()
277 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ true); in TEST() local
278 ASSERT_EQ(1, report.config_stats_size()); in TEST()
279 const auto& configReport = report.config_stats(0); in TEST()
333 report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST()
334 ASSERT_EQ(1, report.config_stats_size()); in TEST()
335 const auto& configReport2 = report.config_stats(0); in TEST()
363 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
364 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
368 for (const auto& atomStats : report.atom_stats()) { in TEST()
393 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
394 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
398 for (const auto& atomStats : report.atom_stats()) { in TEST()
438 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
439 ASSERT_EQ(1, report.pulled_atom_stats_size()); in TEST()
441 EXPECT_EQ(util::DISK_SPACE, report.pulled_atom_stats(0).atom_id()); in TEST()
442 EXPECT_EQ(3, report.pulled_atom_stats(0).total_pull()); in TEST()
443 EXPECT_EQ(1, report.pulled_atom_stats(0).total_pull_from_cache()); in TEST()
444 EXPECT_EQ(2222L, report.pulled_atom_stats(0).min_pull_interval_sec()); in TEST()
445 EXPECT_EQ(2222L, report.pulled_atom_stats(0).average_pull_time_nanos()); in TEST()
446 EXPECT_EQ(3333L, report.pulled_atom_stats(0).max_pull_time_nanos()); in TEST()
447 EXPECT_EQ(2223L, report.pulled_atom_stats(0).average_pull_delay_nanos()); in TEST()
448 EXPECT_EQ(3335L, report.pulled_atom_stats(0).max_pull_delay_nanos()); in TEST()
449 EXPECT_EQ(2L, report.pulled_atom_stats(0).registered_count()); in TEST()
450 EXPECT_EQ(1L, report.pulled_atom_stats(0).unregistered_count()); in TEST()
451 EXPECT_EQ(1L, report.pulled_atom_stats(0).binder_call_failed()); in TEST()
452 EXPECT_EQ(1L, report.pulled_atom_stats(0).failed_uid_provider_not_found()); in TEST()
453 EXPECT_EQ(2L, report.pulled_atom_stats(0).puller_not_found()); in TEST()
454 ASSERT_EQ(2, report.pulled_atom_stats(0).pull_atom_metadata_size()); in TEST()
455 … EXPECT_EQ(3000L, report.pulled_atom_stats(0).pull_atom_metadata(0).pull_timeout_uptime_millis()); in TEST()
456 … EXPECT_EQ(4000L, report.pulled_atom_stats(0).pull_atom_metadata(1).pull_timeout_uptime_millis()); in TEST()
457 EXPECT_EQ(6000L, report.pulled_atom_stats(0).pull_atom_metadata(0) in TEST()
459 EXPECT_EQ(7000L, report.pulled_atom_stats(0).pull_atom_metadata(1) in TEST()
475 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
476 ASSERT_EQ(2, report.atom_metric_stats().size()); in TEST()
478 auto atomStats = report.atom_metric_stats(0); in TEST()
484 auto atomStats2 = report.atom_metric_stats(1); in TEST()
516 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
517 ASSERT_EQ(2, report.config_stats().size()); in TEST()
518 ASSERT_EQ(0, report.config_stats(0).restricted_metric_stats().size()); in TEST()
519 ASSERT_EQ(1, report.config_stats(1).restricted_metric_stats().size()); in TEST()
520 EXPECT_EQ(1, report.config_stats(1).restricted_metric_stats(0).insert_error()); in TEST()
521 EXPECT_EQ(1, report.config_stats(1).restricted_metric_stats(0).table_creation_error()); in TEST()
522 EXPECT_EQ(1, report.config_stats(1).restricted_metric_stats(0).table_deletion_error()); in TEST()
523 EXPECT_EQ(1, report.config_stats(1).restricted_metric_stats(0).category_changed_count()); in TEST()
524 ASSERT_EQ(2, report.config_stats(1).restricted_metric_stats(0).flush_latency_ns().size()); in TEST()
525 EXPECT_EQ(3000, report.config_stats(1).restricted_metric_stats(0).flush_latency_ns(0)); in TEST()
526 EXPECT_EQ(3001, report.config_stats(1).restricted_metric_stats(0).flush_latency_ns(1)); in TEST()
527 ASSERT_EQ(1, report.config_stats(1).restricted_db_size_time_sec().size()); in TEST()
528 EXPECT_EQ(999, report.config_stats(1).restricted_db_size_time_sec(0)); in TEST()
529 ASSERT_EQ(1, report.config_stats(1).restricted_db_size_bytes().size()); in TEST()
530 EXPECT_EQ(111, report.config_stats(1).restricted_db_size_bytes(0)); in TEST()
531 ASSERT_EQ(1, report.config_stats(1).restricted_flush_latency().size()); in TEST()
532 EXPECT_EQ(4000, report.config_stats(1).restricted_flush_latency(0)); in TEST()
533 EXPECT_TRUE(report.config_stats(1).device_info_table_creation_failed()); in TEST()
534 EXPECT_EQ(metricId, report.config_stats(1).restricted_metric_stats(0).restricted_metric_id()); in TEST()
535 EXPECT_EQ(2, report.config_stats(1).restricted_db_corrupted_count()); in TEST()
536 EXPECT_EQ(1, report.config_stats(1).db_deletion_stat_failed()); in TEST()
537 EXPECT_EQ(1, report.config_stats(1).db_deletion_size_exceeded_limit()); in TEST()
538 EXPECT_EQ(1, report.config_stats(1).db_deletion_config_invalid()); in TEST()
539 EXPECT_EQ(1, report.config_stats(1).db_deletion_too_old()); in TEST()
540 EXPECT_EQ(1, report.config_stats(1).db_deletion_config_removed()); in TEST()
541 EXPECT_EQ(1, report.config_stats(1).db_deletion_config_updated()); in TEST()
561 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
562 ASSERT_EQ(3, report.restricted_metric_query_stats().size()); in TEST()
563 EXPECT_EQ(configKey.GetId(), report.restricted_metric_query_stats(0).config_id()); in TEST()
564 EXPECT_EQ(configKey.GetUid(), report.restricted_metric_query_stats(0).config_uid()); in TEST()
565 EXPECT_EQ(callingUid, report.restricted_metric_query_stats(0).calling_uid()); in TEST()
566 EXPECT_EQ(configPackage, report.restricted_metric_query_stats(0).config_package()); in TEST()
567 EXPECT_FALSE(report.restricted_metric_query_stats(0).has_query_error()); in TEST()
569 report.restricted_metric_query_stats(0).query_wall_time_ns()); in TEST()
570 EXPECT_GT(afterNoteMetricSucceed, report.restricted_metric_query_stats(0).query_wall_time_ns()); in TEST()
571 EXPECT_EQ(5 * NS_PER_SEC, report.restricted_metric_query_stats(0).query_latency_ns()); in TEST()
572 EXPECT_EQ(configIdWithError, report.restricted_metric_query_stats(1).config_id()); in TEST()
573 EXPECT_EQ(AMBIGUOUS_CONFIG_KEY, report.restricted_metric_query_stats(1).invalid_query_reason()); in TEST()
574 EXPECT_EQ(false, report.restricted_metric_query_stats(1).has_config_uid()); in TEST()
575 EXPECT_FALSE(report.restricted_metric_query_stats(1).has_query_error()); in TEST()
576 EXPECT_FALSE(report.restricted_metric_query_stats(1).has_query_latency_ns()); in TEST()
577 EXPECT_EQ("error_message", report.restricted_metric_query_stats(2).query_error()); in TEST()
578 EXPECT_FALSE(report.restricted_metric_query_stats(2).has_query_latency_ns()); in TEST()
579 EXPECT_NE(report.restricted_metric_query_stats(1).query_wall_time_ns(), in TEST()
580 report.restricted_metric_query_stats(0).query_wall_time_ns()); in TEST()
588 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
589 EXPECT_EQ(2, report.anomaly_alarm_stats().alarms_registered()); in TEST()
652 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
654 ASSERT_EQ(maxCount, (int)report.system_restart_sec_size()); in TEST()
658 report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST()
659 ASSERT_EQ(maxCount, (int)report.system_restart_sec_size()); in TEST()
660 EXPECT_EQ(StatsdStats::kMaxSystemServerRestarts + 1, report.system_restart_sec(maxCount - 1)); in TEST()
675 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
676 ASSERT_EQ(2, report.activation_guardrail_stats_size()); in TEST()
679 for (const auto& guardrailTimes : report.activation_guardrail_stats()) { in TEST()
717 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
720 ASSERT_EQ(1, report.atom_stats_size()); in TEST()
721 const auto& pushedAtomStats = report.atom_stats(0); in TEST()
728 ASSERT_EQ(1, report.pulled_atom_stats_size()); in TEST()
729 const auto& pulledAtomStats = report.pulled_atom_stats(0); in TEST()
746 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ true); in TEST() local
751 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
753 const auto& pushedAtomStats = report.atom_stats(0); in TEST()
760 const auto& nonPlatformPushedAtomStats = report.atom_stats(1); in TEST()
772 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ true); in TEST() local
774 ASSERT_EQ(100, report.event_queue_stats().max_size_observed()); in TEST()
775 ASSERT_EQ(1000, report.event_queue_stats().max_size_observed_elapsed_nanos()); in TEST()
796 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
799 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
801 const auto& pushedAtomStats = report.atom_stats(0); in TEST()
808 const auto& nonPlatformPushedAtomStats = report.atom_stats(1); in TEST()
828 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
831 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
833 const auto& pushedAtomStats = report.atom_stats(0); in TEST()
839 const auto& nonPlatformPushedAtomStats = report.atom_stats(1); in TEST()
864 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
867 ASSERT_EQ(2, report.atom_stats_size()); in TEST()
869 const auto& pushedAtomStats = report.atom_stats(0); in TEST()
876 const auto& nonPlatformPushedAtomStats = report.atom_stats(1); in TEST()
888 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
889 EXPECT_EQ(report.shard_offset(), 15); in TEST()
916 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
918 auto subscriptionStats = report.subscription_stats(); in TEST()
935 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
937 auto subscriptionStats = report.subscription_stats(); in TEST()
949 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
951 auto subscriptionStats = report.subscription_stats(); in TEST()
961 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
963 ASSERT_EQ(report.pulled_atom_stats_size(), 1); in TEST()
964 auto pulledAtomStats = report.pulled_atom_stats(0); in TEST()
973 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
975 auto subscriptionStats = report.subscription_stats(); in TEST()
990 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
992 auto subscriptionStats = report.subscription_stats(); in TEST()
1016 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
1018 auto subscriptionStats = report.subscription_stats(); in TEST()
1058 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
1060 auto socketLossStats = report.socket_loss_stats(); in TEST()
1064 const auto& info = report.socket_loss_stats().loss_stats_per_uid(i); in TEST()
1104 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
1107 report.socket_loss_stats().loss_stats_overflow_counters(); in TEST()
1111 const auto& counters = report.socket_loss_stats().loss_stats_overflow_counters(i); in TEST()
1152 StatsdStatsReport report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST() local
1153 EXPECT_THAT(report.socket_read_stats().batched_read_size(), in TEST()
1158 ASSERT_EQ(report.socket_read_stats().large_batch_read_stats_size(), 7); in TEST()
1159 auto largeBatchStats = report.socket_read_stats().large_batch_read_stats(1); // 1199 in TEST()
1169 largeBatchStats = report.socket_read_stats().large_batch_read_stats(2); // 1200 in TEST()
1177 largeBatchStats = report.socket_read_stats().large_batch_read_stats(6); // 120000 in TEST()
1192 report = getStatsdStatsReport(stats, /* reset stats */ false); in TEST()
1193 EXPECT_THAT(report.socket_read_stats().batched_read_size(), in TEST()
1195 ASSERT_EQ(report.socket_read_stats().large_batch_read_stats_size(), 0); in TEST()