From b15c099a80df98ae30b2d63362b285a7b87bb4ab Mon Sep 17 00:00:00 2001 From: Chiachang Wang Date: Mon, 3 Feb 2020 14:44:37 +0800 Subject: [PATCH] Update mapping for the rat type in data stall proto Previously, the radio technology definitions are refered to those definitions in ServiceState. However, the definitions are slightly different from the definitions of NETWORK_TYPE_* in TelephonyManager which will cause the data is misjudged. Revise to refer to the same definitions. Bug: 147082857 Test: build Change-Id: I12fb14a9b7e70d57ce043bfe2880b358eecea872 --- .../android/server/connectivity/data_stall_event.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/proto/android/server/connectivity/data_stall_event.proto b/core/proto/android/server/connectivity/data_stall_event.proto index a82326f67d741..23fcf6ebc2cc0 100644 --- a/core/proto/android/server/connectivity/data_stall_event.proto +++ b/core/proto/android/server/connectivity/data_stall_event.proto @@ -34,7 +34,7 @@ enum ApBand { AP_BAND_5GHZ = 2; } -// Refer to definition in ServiceState.java. +// Refer to definition in TelephonyManager.java. enum RadioTech { RADIO_TECHNOLOGY_UNKNOWN = 0; RADIO_TECHNOLOGY_GPRS = 1; @@ -49,8 +49,8 @@ enum RadioTech { RADIO_TECHNOLOGY_HSUPA = 10; RADIO_TECHNOLOGY_HSPA = 11; RADIO_TECHNOLOGY_EVDO_B = 12; - RADIO_TECHNOLOGY_EHRPD = 13; - RADIO_TECHNOLOGY_LTE = 14; + RADIO_TECHNOLOGY_LTE = 13; + RADIO_TECHNOLOGY_EHRPD = 14; RADIO_TECHNOLOGY_HSPAP = 15; RADIO_TECHNOLOGY_GSM = 16; RADIO_TECHNOLOGY_TD_SCDMA = 17;