/system/bt/osi/src/ |
D | metrics_linux.cc | 69 void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) { in Update() argument 70 if (metrics.audio_duration_ms > 0) { in Update() 72 audio_duration_ms += metrics.audio_duration_ms; in Update() 74 if (metrics.media_timer_min_ms > 0) { in Update() 76 media_timer_min_ms = metrics.media_timer_min_ms; in Update() 79 std::min(media_timer_min_ms, metrics.media_timer_min_ms); in Update() 82 if (metrics.media_timer_max_ms > 0) { in Update() 84 std::max(media_timer_max_ms, metrics.media_timer_max_ms); in Update() 86 if (metrics.media_timer_avg_ms > 0 && metrics.total_scheduling_count > 0) { in Update() 88 media_timer_avg_ms = metrics.media_timer_avg_ms; in Update() [all …]
|
D | metrics.cc | 87 void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) { in Update() argument 88 if (metrics.audio_duration_ms >= 0) { in Update() 90 audio_duration_ms += metrics.audio_duration_ms; in Update() 92 if (metrics.media_timer_min_ms >= 0) { in Update() 94 media_timer_min_ms = metrics.media_timer_min_ms; in Update() 97 std::min(media_timer_min_ms, metrics.media_timer_min_ms); in Update() 100 if (metrics.media_timer_max_ms >= 0) { in Update() 102 std::max(media_timer_max_ms, metrics.media_timer_max_ms); in Update() 104 if (metrics.media_timer_avg_ms >= 0 && metrics.total_scheduling_count >= 0) { in Update() 106 media_timer_avg_ms = metrics.media_timer_avg_ms; in Update() [all …]
|
/system/update_engine/ |
D | metrics_utils.cc | 33 metrics::AttemptResult GetAttemptResult(ErrorCode code) { in GetAttemptResult() 39 return metrics::AttemptResult::kUpdateSucceeded; in GetAttemptResult() 42 return metrics::AttemptResult::kPayloadDownloadError; in GetAttemptResult() 55 return metrics::AttemptResult::kMetadataMalformed; in GetAttemptResult() 59 return metrics::AttemptResult::kOperationMalformed; in GetAttemptResult() 67 return metrics::AttemptResult::kOperationExecutionError; in GetAttemptResult() 70 return metrics::AttemptResult::kMetadataVerificationFailed; in GetAttemptResult() 78 return metrics::AttemptResult::kPayloadVerificationFailed; in GetAttemptResult() 82 return metrics::AttemptResult::kVerificationFailed; in GetAttemptResult() 87 return metrics::AttemptResult::kPostInstallFailed; in GetAttemptResult() [all …]
|
D | omaha_request_action_unittest.cc | 236 metrics::CheckResult expected_check_result, 237 metrics::CheckReaction expected_check_reaction, 238 metrics::DownloadErrorCode expected_download_error_code, 358 metrics::CheckResult expected_check_result, in TestUpdateCheck() 359 metrics::CheckReaction expected_check_reaction, in TestUpdateCheck() 360 metrics::DownloadErrorCode expected_download_error_code, in TestUpdateCheck() 391 SendEnumToUMA(metrics::kMetricCheckResult, in TestUpdateCheck() 393 static_cast<int>(metrics::CheckResult::kNumConstants) - 1)) in TestUpdateCheck() 394 .Times(expected_check_result == metrics::CheckResult::kUnset ? 0 : 1); in TestUpdateCheck() 396 SendEnumToUMA(metrics::kMetricCheckReaction, in TestUpdateCheck() [all …]
|
D | metrics.cc | 35 namespace metrics { namespace 119 string metric = metrics::kMetricDailyOSAgeDays; in ReportDailyMetrics() 138 if (result != metrics::CheckResult::kUnset) { in ReportUpdateCheckMetrics() 139 metric = metrics::kMetricCheckResult; in ReportUpdateCheckMetrics() 141 max_value = static_cast<int>(metrics::CheckResult::kNumConstants) - 1; in ReportUpdateCheckMetrics() 145 if (reaction != metrics::CheckReaction::kUnset) { in ReportUpdateCheckMetrics() 146 metric = metrics::kMetricCheckReaction; in ReportUpdateCheckMetrics() 148 max_value = static_cast<int>(metrics::CheckReaction::kNumConstants) - 1; in ReportUpdateCheckMetrics() 152 if (download_error_code != metrics::DownloadErrorCode::kUnset) { in ReportUpdateCheckMetrics() 153 metric = metrics::kMetricCheckDownloadErrorCode; in ReportUpdateCheckMetrics() [all …]
|
D | metrics_utils_unittest.cc | 32 EXPECT_EQ(metrics::ConnectionType::kUnknown, in TEST() 35 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 38 EXPECT_EQ(metrics::ConnectionType::kWifi, in TEST() 41 EXPECT_EQ(metrics::ConnectionType::kWimax, in TEST() 44 EXPECT_EQ(metrics::ConnectionType::kBluetooth, in TEST() 47 EXPECT_EQ(metrics::ConnectionType::kCellular, in TEST() 50 EXPECT_EQ(metrics::ConnectionType::kTetheredEthernet, in TEST() 53 EXPECT_EQ(metrics::ConnectionType::kTetheredWifi, in TEST() 58 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() 61 EXPECT_EQ(metrics::ConnectionType::kEthernet, in TEST() [all …]
|
D | metrics_utils.h | 33 metrics::DownloadErrorCode GetDownloadErrorCode(ErrorCode code); 39 metrics::AttemptResult GetAttemptResult(ErrorCode code); 42 metrics::ConnectionType GetConnectionType(ConnectionType type,
|
D | payload_state.cc | 65 attempt_connection_type_(metrics::ConnectionType::kUnknown), in PayloadState() 194 metrics::ConnectionType type; in AttemptStarted() 202 type = metrics::ConnectionType::kUnknown; in AttemptStarted() 238 metrics::ReportRollbackMetrics(system_state_, in UpdateSucceeded() 239 metrics::RollbackResult::kSuccess); in UpdateSucceeded() 273 metrics::ReportRollbackMetrics(system_state_, in UpdateFailed() 274 metrics::RollbackResult::kFailed); in UpdateFailed() 605 metrics::DownloadErrorCode payload_download_error_code = in CollectAndReportAttemptMetrics() 606 metrics::DownloadErrorCode::kUnset; in CollectAndReportAttemptMetrics() 608 metrics::AttemptResult attempt_result = metrics_utils::GetAttemptResult(code); in CollectAndReportAttemptMetrics() [all …]
|
D | omaha_request_action.cc | 1506 string metric_name = metrics::kMetricInstallDateProvisioningSource; in PersistInstallDate() 1544 metrics::CheckResult result = metrics::CheckResult::kUnset; in ActionCompleted() 1545 metrics::CheckReaction reaction = metrics::CheckReaction::kUnset; in ActionCompleted() 1546 metrics::DownloadErrorCode download_error_code = in ActionCompleted() 1547 metrics::DownloadErrorCode::kUnset; in ActionCompleted() 1557 result = metrics::CheckResult::kUpdateAvailable; in ActionCompleted() 1558 reaction = metrics::CheckReaction::kUpdating; in ActionCompleted() 1560 result = metrics::CheckResult::kNoUpdateAvailable; in ActionCompleted() 1563 result = metrics::CheckResult::kNoUpdateAvailable; in ActionCompleted() 1568 result = metrics::CheckResult::kUpdateAvailable; in ActionCompleted() [all …]
|
D | payload_state_unittest.cc | 881 metrics::kMetricSuccessfulUpdateUrlSwitchCount, in TEST() 884 metrics::kMetricSuccessfulUpdateTotalDurationMinutes, in TEST() 887 metrics::kMetricSuccessfulUpdateDownloadOverheadPercentage, in TEST() 890 metrics::kMetricAttemptPayloadType, kPayloadTypeFull, kNumPayloadTypes)); in TEST() 892 metrics::kMetricSuccessfulUpdatePayloadType, kPayloadTypeFull, in TEST() 895 metrics::kMetricSuccessfulUpdateAttemptCount, 1, _, _, _)); in TEST() 934 metrics::kMetricSuccessfulUpdateDownloadSourcesUsed, in TEST() 1041 metrics::kMetricRollbackResult, in TEST() 1042 static_cast<int>(metrics::RollbackResult::kSuccess), in TEST() 1043 static_cast<int>(metrics::RollbackResult::kNumConstants))); in TEST() [all …]
|
/system/netd/server/ |
D | EventReporter.h | 36 android::sp<android::net::metrics::INetdEventListener> getNetdEventListener(); 40 android::net::metrics::INetdEventListener::REPORTING_LEVEL_FULL}; 47 android::sp<android::net::metrics::INetdEventListener> mNetdEventListener;
|
D | DnsProxyListener.h | 64 const android::sp<android::net::metrics::INetdEventListener>& listener); 76 android::sp<android::net::metrics::INetdEventListener> mNetdEventListener; 96 const android::sp<android::net::metrics::INetdEventListener>& listener); 107 android::sp<android::net::metrics::INetdEventListener> mNetdEventListener;
|
D | EventReporter.cpp | 23 using android::net::metrics::INetdEventListener;
|
D | FwmarkServer.cpp | 31 using android::net::metrics::INetdEventListener; 181 android::sp<android::net::metrics::INetdEventListener> netdEventListener = in processClient()
|
/system/bt/build/secondary/third_party/libchrome/ |
D | BUILD.gn | 78 "base/metrics/bucket_ranges.cc", 79 "base/metrics/field_trial.cc", 80 "base/metrics/metrics_hashes.cc", 81 "base/metrics/histogram_base.cc", 82 "base/metrics/histogram.cc", 83 "base/metrics/histogram_samples.cc", 84 "base/metrics/histogram_snapshot_manager.cc", 85 "base/metrics/persistent_histogram_allocator.cc", 86 "base/metrics/persistent_memory_allocator.cc", 87 "base/metrics/persistent_sample_map.cc", [all …]
|
/system/bt/btif/src/ |
D | btif_a2dp_source.cc | 1066 A2dpSessionMetrics metrics; in btif_a2dp_source_update_metrics() local 1073 metrics.audio_duration_ms = in btif_a2dp_source_update_metrics() 1078 metrics.media_timer_min_ms = in btif_a2dp_source_update_metrics() 1081 metrics.media_timer_max_ms = in btif_a2dp_source_update_metrics() 1085 metrics.total_scheduling_count = enqueue_stats->overdue_scheduling_count + in btif_a2dp_source_update_metrics() 1088 if (metrics.total_scheduling_count > 0) { in btif_a2dp_source_update_metrics() 1089 metrics.media_timer_avg_ms = enqueue_stats->total_scheduling_time_us / in btif_a2dp_source_update_metrics() 1090 (1000 * metrics.total_scheduling_count); in btif_a2dp_source_update_metrics() 1093 metrics.buffer_overruns_max_count = stats->tx_queue_max_dropped_messages; in btif_a2dp_source_update_metrics() 1094 metrics.buffer_overruns_total = stats->tx_queue_total_dropped_messages; in btif_a2dp_source_update_metrics() [all …]
|
/system/core/bootstat/ |
D | README.md | 5 command also aggregates boot event metrics locally and logs the metrics for 11 -l, --log Log all metrics to logstorage
|
D | bootstat.rc | 48 # This signaling is necessary to prevent logging boot metrics after a runtime 50 # during a runtime restart, which leads to false boot time metrics being reported. 65 # Record boot complete metrics.
|
/system/extras/app-launcher/ |
D | README | 5 measures various system metrics, computes basic stats for the metrics 24 -v:Optional, Verbose mode, prints stats on a lot of metrics. 58 different metrics, but that will require a change to getstats() to
|
/system/bt/osi/src/protos/ |
D | bluetooth.proto | 3 // Protos for uploading bluetooth metrics. 80 // A metrics dump takes a snapshot of current Bluetooth session and thus 81 // is not a real disconnect, but a discontinuation in metrics logging. 106 // Numeric reason for disconnecting as defined in metrics.h
|
/system/netd/server/binder/android/net/metrics/ |
D | INetdEventListener.aidl | 17 package android.net.metrics;
|
/system/bt/osi/test/ |
D | metrics_test.cc | 110 A2DPSession* MakeA2DPSession(const A2dpSessionMetrics& metrics) { in MakeA2DPSession() argument 112 session->set_media_timer_min_millis(metrics.media_timer_min_ms); in MakeA2DPSession() 113 session->set_media_timer_max_millis(metrics.media_timer_max_ms); in MakeA2DPSession() 114 session->set_media_timer_avg_millis(metrics.media_timer_avg_ms); in MakeA2DPSession() 115 session->set_buffer_overruns_max_count(metrics.buffer_overruns_max_count); in MakeA2DPSession() 116 session->set_buffer_overruns_total(metrics.buffer_overruns_total); in MakeA2DPSession() 117 session->set_buffer_underruns_average(metrics.buffer_underruns_average); in MakeA2DPSession() 118 session->set_buffer_underruns_count(metrics.buffer_underruns_count); in MakeA2DPSession() 119 session->set_audio_duration_millis(metrics.audio_duration_ms); in MakeA2DPSession()
|
/system/sepolicy/public/ |
D | bootstat.te | 14 # Collect metrics on boot time created by init
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | bootstat.te | 14 # Collect metrics on boot time created by init
|
/system/netd/tests/benchmarks/ |
D | Android.mk | 40 ../../server/binder/android/net/metrics/INetdEventListener.aidl
|