/system/core/metricsd/uploader/ |
D | system_profile_cache.cc | 41 const metrics::SystemProfileProto_Channel& channel) { in ChannelToString() 43 case metrics::SystemProfileProto::CHANNEL_STABLE: in ChannelToString() 45 case metrics::SystemProfileProto::CHANNEL_DEV: in ChannelToString() 47 case metrics::SystemProfileProto::CHANNEL_BETA: in ChannelToString() 49 case metrics::SystemProfileProto::CHANNEL_CANARY: in ChannelToString() 59 metrics_directory_(metrics::kMetricsdDirectory), in SystemProfileCache() 93 if (!reader.GetString(metrics::kProductId, &profile_.product_id) in Initialize() 99 if (!reader.GetString(metrics::kProductVersion, &profile_.version)) { in Initialize() 108 profile_.version = metrics::kDefaultVersion; in Initialize() 111 metrics::kMetricsGUIDFileName).value(); in Initialize() [all …]
|
D | upload_service_test.cc | 54 ASSERT_EQ(0, base::WriteFile(shared_dir_.Append(metrics::kConsentFileName), in SetUp() 88 const metrics::SystemProfileProto_Stability GetCurrentStability() { in GetCurrentStability() 188 metrics::ChromeUserMetricsExtension* proto = in TEST_F() 226 metrics::SystemProfileProto::CHANNEL_UNKNOWN); in TEST_F() 228 EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_DEV, in TEST_F() 231 EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_STABLE, in TEST_F() 234 EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_UNKNOWN, in TEST_F() 242 SetTestingProperty(metrics::kProductId, "hello"); in TEST_F() 243 SetTestingProperty(metrics::kProductVersion, "1.2.3.4"); in TEST_F() 282 SetTestingProperty(metrics::kProductId, "hello"); in TEST_F() [all …]
|
D | system_profile_cache.h | 32 namespace metrics { 41 metrics::SystemProfileProto::Channel channel; 56 bool Populate(metrics::ChromeUserMetricsExtension* metrics_proto) override; 60 static metrics::SystemProfileProto_Channel ProtoChannelFromString(
|
D | metrics_log_base.h | 34 namespace metrics { 97 metrics::ChromeUserMetricsExtension* uma_proto() { return &uma_proto_; } in uma_proto() 98 const metrics::ChromeUserMetricsExtension* uma_proto() const { in uma_proto() 115 metrics::ChromeUserMetricsExtension uma_proto_;
|
D | metrics_log.cc | 29 : MetricsLogBase("", 0, metrics::MetricsLogBase::ONGOING_LOG, "") { in MetricsLog() 67 metrics::SystemProfileProto::Stability* stability( in IncrementUserCrashCount() 74 metrics::SystemProfileProto::Stability* stability( in IncrementKernelCrashCount() 81 metrics::SystemProfileProto::Stability* stability( in IncrementUncleanShutdownCount()
|
D | metrics_log_base_unittest.cc | 27 namespace metrics { namespace 65 metrics::ChromeUserMetricsExtension parsed; in TEST() 68 metrics::ChromeUserMetricsExtension expected; in TEST() 102 const metrics::ChromeUserMetricsExtension* uma_proto = log.uma_proto(); in TEST() 103 const metrics::HistogramEventProto& histogram_proto = in TEST()
|
D | metrics_log_base.cc | 33 using metrics::HistogramEventProto; 34 using metrics::SystemProfileProto; 35 using metrics::UserActionEventProto; 37 namespace metrics { namespace 69 uint64_t hash = metrics::HashMetricName(value); in Hash()
|
/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() 77 return metrics::AttemptResult::kPayloadVerificationFailed; in GetAttemptResult() 81 return metrics::AttemptResult::kVerificationFailed; in GetAttemptResult() 86 return metrics::AttemptResult::kPostInstallFailed; in GetAttemptResult() [all …]
|
D | omaha_request_action_unittest.cc | 187 metrics::CheckResult expected_check_result, 188 metrics::CheckReaction expected_check_reaction, 189 metrics::DownloadErrorCode expected_download_error_code, 309 metrics::CheckResult expected_check_result, in TestUpdateCheck() 310 metrics::CheckReaction expected_check_reaction, in TestUpdateCheck() 311 metrics::DownloadErrorCode expected_download_error_code, in TestUpdateCheck() 342 SendEnumToUMA(metrics::kMetricCheckResult, in TestUpdateCheck() 344 static_cast<int>(metrics::CheckResult::kNumConstants) - 1)) in TestUpdateCheck() 345 .Times(expected_check_result == metrics::CheckResult::kUnset ? 0 : 1); in TestUpdateCheck() 347 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(NetworkConnectionType type,
|
D | payload_state.cc | 64 attempt_connection_type_(metrics::ConnectionType::kUnknown), in PayloadState() 188 metrics::ConnectionType type; in AttemptStarted() 196 type = metrics::ConnectionType::kUnknown; in AttemptStarted() 232 metrics::ReportRollbackMetrics(system_state_, in UpdateSucceeded() 233 metrics::RollbackResult::kSuccess); in UpdateSucceeded() 265 metrics::ReportRollbackMetrics(system_state_, in UpdateFailed() 266 metrics::RollbackResult::kFailed); in UpdateFailed() 589 metrics::DownloadErrorCode payload_download_error_code = in CollectAndReportAttemptMetrics() 590 metrics::DownloadErrorCode::kUnset; in CollectAndReportAttemptMetrics() 592 metrics::AttemptResult attempt_result = metrics_utils::GetAttemptResult(code); in CollectAndReportAttemptMetrics() [all …]
|
/system/connectivity/shill/cellular/ |
D | out_of_credits_detector.cc | 38 Metrics* metrics, in OutOfCreditsDetector() argument 42 metrics_(metrics), in OutOfCreditsDetector() 55 Metrics* metrics, in CreateDetector() argument 64 metrics, in CreateDetector() 72 metrics, in CreateDetector() 79 metrics, in CreateDetector()
|
D | mock_modem_info.cc | 27 Metrics* metrics, in MockModemInfo() argument 29 : ModemInfo(control, dispatcher, metrics, manager), in MockModemInfo() 51 if (metrics() == nullptr) { in SetMockMembers() 57 metrics())); in SetMockMembers()
|
D | modem_info.h | 40 Metrics* metrics, 51 Metrics* metrics() const { return metrics_; } in metrics() function 65 void set_metrics(Metrics* metrics) { in set_metrics() argument 66 metrics_ = metrics; in set_metrics()
|
D | out_of_credits_detector.h | 39 Metrics* metrics, 63 Metrics* metrics, 89 Metrics* metrics() const { return metrics_; } in metrics() function
|
/system/core/metricsd/ |
D | README.md | 4 The metricsd daemon is used to gather metrics from the platform and application, 6 The metrics will then be available in their aggregated form to the developer 16 metrics collection. All metrics collection is funneled through this library. The 17 easiest and recommended way for a client-side module to collect user metrics is 18 to link `libmetrics` and use its APIs to send metrics to `metricsd` for transport to 24 - To access the metrics library API in the module, include the 25 <metrics/metrics_library.h> header file. 31 - Samples are uploaded only if the `/data/misc/metrics/enabled` file exists. 37 You will be able to see all uploaded metrics on the metrics dashboard, 41 It usually takes a day for metrics to be available on the dashboard. [all …]
|
D | metricsd_main.cc | 41 DEFINE_string(server, metrics::kMetricsServer, in main() 43 DEFINE_string(private_directory, metrics::kMetricsdDirectory, in main() 46 DEFINE_string(shared_directory, metrics::kSharedMetricsDirectory, in main()
|
D | metrics.gyp | 19 '../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)', 39 '../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)', 50 '../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)', 87 'proto_out_dir': 'include/metrics/uploader/proto', 125 '../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
/system/connectivity/shill/ |
D | mock_profile.cc | 30 Metrics* metrics, in MockProfile() argument 32 : Profile(control, metrics, manager, Identifier("mock"), base::FilePath(), in MockProfile() 37 Metrics* metrics, in MockProfile() argument 40 : Profile(control, metrics, manager, Identifier(identifier), in MockProfile()
|
D | manager_unittest.cc | 135 metrics(), in ManagerTest() 142 metrics(), in ManagerTest() 149 metrics(), in ManagerTest() 156 metrics(), in ManagerTest() 196 void SetMetrics(Metrics* metrics) { in SetMetrics() argument 197 manager()->set_metrics(metrics); in SetMetrics() 229 control_interface(), metrics(), manager, id, FilePath(), false)); in CreateProfileForManager() 293 new MockProfile(control_interface(), metrics(), manager, "")); in AddNamedMockProfileToManager() 475 metrics(), in MakeAutoConnectableService() 609 new MockProfile(control_interface(), metrics(), manager(), ""); in TEST_F() [all …]
|
D | ppp_device_unittest.cc | 45 MockMetrics metrics(nullptr); in TEST() local 46 scoped_refptr<PPPDevice> device = new PPPDevice(&control, nullptr, &metrics, in TEST() 59 EXPECT_CALL(metrics, SendSparseToUMA(Metrics::kMetricPPPMTUValue, 1492)); in TEST() 76 EXPECT_CALL(metrics, SendSparseToUMA(Metrics::kMetricPPPMTUValue, 1492)); in TEST()
|
/system/netd/server/ |
D | DnsProxyListener.h | 39 android::sp<android::net::metrics::IDnsEventListener> getDnsEventListener(); 43 android::sp<android::net::metrics::IDnsEventListener> mDnsEventListener; 62 const android::sp<android::net::metrics::IDnsEventListener>& listener); 75 android::sp<android::net::metrics::IDnsEventListener> mDnsEventListener; 95 const android::sp<android::net::metrics::IDnsEventListener>& listener); 106 android::sp<android::net::metrics::IDnsEventListener> mDnsEventListener;
|
/system/connectivity/shill/wifi/ |
D | mac80211_monitor_unittest.cc | 76 MockMetrics& metrics() { return metrics_; } in metrics() function in shill::Mac80211MonitorTest 84 EXPECT_CALL(metrics(), SendEnumToUMA(_, _, _)) in AllowWakeQueuesIfNeededCommonCalls() 86 EXPECT_CALL(metrics(), SendToUMA(_, _, _, _, _)) in AllowWakeQueuesIfNeededCommonCalls() 466 EXPECT_CALL(metrics(), SendEnumToUMA( in TEST_F() 470 EXPECT_CALL(metrics(), SendEnumToUMA( in TEST_F() 474 EXPECT_CALL(metrics(), SendToUMA( in TEST_F() 493 EXPECT_CALL(metrics(), SendEnumToUMA( in TEST_F() 497 EXPECT_CALL(metrics(), SendEnumToUMA( in TEST_F() 501 EXPECT_CALL(metrics(), SendEnumToUMA( in TEST_F() 505 EXPECT_CALL(metrics(), SendToUMA( in TEST_F() [all …]
|