From 5b5514b12dc53e8939b0b394f08cbbcc6ca5276c Mon Sep 17 00:00:00 2001 From: Aaron Tsai Date: Wed, 29 Sep 2021 17:27:55 +0800 Subject: [PATCH] NITZ API improvement - change the parameter description of "receivedTime" - add a parameter "ageMs" to represent the caching time in RIL and modem Bug: 195418175 Test: build pass Change-Id: I0fabbfabc18aa6acc0285527e254290d8291d9c8 --- .../radio/network/IRadioNetworkIndication.aidl | 2 +- .../radio/network/IRadioNetworkIndication.aidl | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/radio/aidl/aidl_api/android.hardware.radio.network/current/android/hardware/radio/network/IRadioNetworkIndication.aidl b/radio/aidl/aidl_api/android.hardware.radio.network/current/android/hardware/radio/network/IRadioNetworkIndication.aidl index 71b17657c8..d135a69ecc 100644 --- a/radio/aidl/aidl_api/android.hardware.radio.network/current/android/hardware/radio/network/IRadioNetworkIndication.aidl +++ b/radio/aidl/aidl_api/android.hardware.radio.network/current/android/hardware/radio/network/IRadioNetworkIndication.aidl @@ -43,7 +43,7 @@ interface IRadioNetworkIndication { oneway void imsNetworkStateChanged(in android.hardware.radio.RadioIndicationType type); oneway void networkScanResult(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.network.NetworkScanResult result); oneway void networkStateChanged(in android.hardware.radio.RadioIndicationType type); - oneway void nitzTimeReceived(in android.hardware.radio.RadioIndicationType type, in String nitzTime, in long receivedTime); + oneway void nitzTimeReceived(in android.hardware.radio.RadioIndicationType type, in String nitzTime, in long receivedTimeMs, in long ageMs); oneway void registrationFailed(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.network.CellIdentity cellIdentity, in String chosenPlmn, in android.hardware.radio.network.Domain domain, in int causeCode, in int additionalCauseCode); oneway void restrictedStateChanged(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.network.PhoneRestrictedState state); oneway void suppSvcNotify(in android.hardware.radio.RadioIndicationType type, in android.hardware.radio.network.SuppSvcNotification suppSvc); diff --git a/radio/aidl/android/hardware/radio/network/IRadioNetworkIndication.aidl b/radio/aidl/android/hardware/radio/network/IRadioNetworkIndication.aidl index a2fac202c5..ba7610dfbd 100644 --- a/radio/aidl/android/hardware/radio/network/IRadioNetworkIndication.aidl +++ b/radio/aidl/android/hardware/radio/network/IRadioNetworkIndication.aidl @@ -129,9 +129,15 @@ oneway interface IRadioNetworkIndication { * * @param type Type of radio indication * @param nitzTime NITZ time string in the form "yy/mm/dd,hh:mm:ss(+/-)tz,dt" - * @param receivedTime milliseconds since boot that the NITZ time was received + * @param receivedTimeMs time (in milliseconds since boot) at which RIL sent the NITZ time to + * the framework + * @param ageMs time in milliseconds indicating how long NITZ was cached in RIL and modem. + * This must track true age and therefore must be calculated using clocks that + * include the time spend in sleep / low power states. If it can not be guaranteed, + * there must not be any caching done at the modem and should fill in 0 for ageMs */ - void nitzTimeReceived(in RadioIndicationType type, in String nitzTime, in long receivedTime); + void nitzTimeReceived(in RadioIndicationType type, in String nitzTime, + in long receivedTimeMs, in long ageMs); /** * Report that Registration or a Location/Routing/Tracking Area update has failed.