From e1cbf15f1ad7f2f7e1cc1e96e6a82c3fa2f70bdf Mon Sep 17 00:00:00 2001 From: Hugo Benichi Date: Thu, 8 Dec 2016 09:36:52 +0900 Subject: [PATCH] Define Network notification proto constants. This patch defines 4 new constants in metrics_constants.proto corresponding to the 4 network notifications shown by NetworkNotificationManager. Estimates for the average number of notifications: - SIGN_IN: 3/day/device - NO_INTERNET: 5/day/device - LOST_INTERNET: 5/day/device - NETWORK_SWITCH: 3/day/device (turned off right now) Test: no functional change Bug: 32198726 Bug: 33030620 Change-Id: I31bd9b5562b94d62aac499f7174a3e115671bda8 --- proto/src/metrics_constants.proto | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index ef9d8f2c22c1f..ec8c67bbaedf3 100644 --- a/proto/src/metrics_constants.proto +++ b/proto/src/metrics_constants.proto @@ -3105,6 +3105,26 @@ message MetricsEvent { // PACKAGE: The package name of the app the permission was revoked for ACTION_PERMISSION_REVOKE_READ_PHONE_NUMBER = 739; + // ACTION: A captive portal was detected during network validation + // CATEGORY: NOTIFICATION + // OS: N-MR2 + NOTIFICATION_NETWORK_SIGN_IN = 740; + + // ACTION: An unvalidated network without Internet was selected by the user + // CATEGORY: NOTIFICATION + // OS: N-MR2 + NOTIFICATION_NETWORK_NO_INTERNET = 741; + + // ACTION: A validated network failed revalidation and lost Internet access + // CATEGORY: NOTIFICATION + // OS: N-MR2 + NOTIFICATION_NETWORK_LOST_INTERNET = 742; + + // ACTION: The system default network switched to a different network + // CATEGORY: NOTIFICATION + // OS: N-MR2 + NOTIFICATION_NETWORK_SWITCH = 743; + // ---- End O Constants, all O constants go above this line ---- // Add new aosp constants above this line.