Loading radio/1.2/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,8 @@ hidl_interface { "PhysicalChannelConfig", "RadioConst", "ScanIntervalRange", "SignalStrength", "WcdmaSignalStrength", ], gen_java: true, } Loading radio/1.2/IRadioIndication.hal +11 −3 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ interface IRadioIndication extends @1.1::IRadioIndication { * Same information as returned by getCellInfoList() in 1.0::IRadio. * * @param type Type of radio indication * @param records Current cell information known to radio * @param records Current cell information */ oneway cellInfoList_1_2(RadioIndicationType type, vec<CellInfo> records); Loading @@ -50,7 +50,7 @@ interface IRadioIndication extends @1.1::IRadioIndication { * suppressed by @1.2::IRadio.setIndicationFilter_1_2(). * * @param type Type of radio indication * @param lce LinkCapacityEstimate information as defined in types.hal * @param lce LinkCapacityEstimate */ oneway currentLinkCapacityEstimate(RadioIndicationType type, LinkCapacityEstimate lce); Loading @@ -58,8 +58,16 @@ interface IRadioIndication extends @1.1::IRadioIndication { * Indicates physical channel configurations. * * @param type Type of radio indication * @param configs List of PhysicalChannelConfigs as defined in types.hal * @param configs Vector of PhysicalChannelConfigs */ oneway currentPhysicalChannelConfigs(RadioIndicationType type, vec<PhysicalChannelConfig> configs); /** * Indicates current signal strength of the radio. * * @param type Type of radio indication * @param signalStrength SignalStrength information */ oneway currentSignalStrength_1_2(RadioIndicationType type, SignalStrength signalStrength); }; radio/1.2/IRadioResponse.hal +10 −0 Original line number Diff line number Diff line Loading @@ -88,4 +88,14 @@ interface IRadioResponse extends @1.1::IRadioResponse { * RadioError:CANCELLED */ oneway getCurrentCallsResponse_1_2(RadioResponseInfo info, vec<Call> calls); /** * @param sigStrength Current signal strength * * Valid errors returned: * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR */ oneway getSignalStrengthResponse_1_2(RadioResponseInfo info, SignalStrength sigStrength); }; radio/1.2/types.hal +28 −2 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ package android.hardware.radio@1.2; import @1.0::Call; import @1.0::CdmaSignalStrength; import @1.0::CardState; import @1.0::CardStatus; import @1.0::CdmaSignalStrength; import @1.0::CellIdentityCdma; import @1.0::CellIdentityGsm; import @1.0::CellIdentityLte; Loading @@ -30,10 +30,12 @@ import @1.0::EvdoSignalStrength; import @1.0::GsmSignalStrength; import @1.0::LteSignalStrength; import @1.0::RadioConst; import @1.0::RadioError; import @1.0::SignalStrength; import @1.0::TdScdmaSignalStrength; import @1.0::TimeStampType; import @1.0::WcdmaSignalStrength; import @1.1::RadioAccessSpecifier; import @1.0::RadioError; import @1.1::ScanStatus; import @1.1::ScanType; Loading Loading @@ -397,3 +399,27 @@ struct Call { @1.0::Call base; AudioQuality audioQuality; }; struct WcdmaSignalStrength { @1.0::WcdmaSignalStrength base; /** * CPICH RSCP as defined in TS 25.215 5.1.1 * Valid values are (0-96, 255) as defined in TS 27.007 8.69 */ uint32_t rscp; /** * Ec/No value as defined in TS 25.215 5.1.5 * Valid values are (0-49, 255) as defined in TS 27.007 8.69 */ uint32_t ecno; }; struct SignalStrength { GsmSignalStrength gsm; CdmaSignalStrength cdma; EvdoSignalStrength evdo; LteSignalStrength lte; TdScdmaSignalStrength tdScdma; WcdmaSignalStrength wcdma; }; Loading
radio/1.2/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,8 @@ hidl_interface { "PhysicalChannelConfig", "RadioConst", "ScanIntervalRange", "SignalStrength", "WcdmaSignalStrength", ], gen_java: true, } Loading
radio/1.2/IRadioIndication.hal +11 −3 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ interface IRadioIndication extends @1.1::IRadioIndication { * Same information as returned by getCellInfoList() in 1.0::IRadio. * * @param type Type of radio indication * @param records Current cell information known to radio * @param records Current cell information */ oneway cellInfoList_1_2(RadioIndicationType type, vec<CellInfo> records); Loading @@ -50,7 +50,7 @@ interface IRadioIndication extends @1.1::IRadioIndication { * suppressed by @1.2::IRadio.setIndicationFilter_1_2(). * * @param type Type of radio indication * @param lce LinkCapacityEstimate information as defined in types.hal * @param lce LinkCapacityEstimate */ oneway currentLinkCapacityEstimate(RadioIndicationType type, LinkCapacityEstimate lce); Loading @@ -58,8 +58,16 @@ interface IRadioIndication extends @1.1::IRadioIndication { * Indicates physical channel configurations. * * @param type Type of radio indication * @param configs List of PhysicalChannelConfigs as defined in types.hal * @param configs Vector of PhysicalChannelConfigs */ oneway currentPhysicalChannelConfigs(RadioIndicationType type, vec<PhysicalChannelConfig> configs); /** * Indicates current signal strength of the radio. * * @param type Type of radio indication * @param signalStrength SignalStrength information */ oneway currentSignalStrength_1_2(RadioIndicationType type, SignalStrength signalStrength); };
radio/1.2/IRadioResponse.hal +10 −0 Original line number Diff line number Diff line Loading @@ -88,4 +88,14 @@ interface IRadioResponse extends @1.1::IRadioResponse { * RadioError:CANCELLED */ oneway getCurrentCallsResponse_1_2(RadioResponseInfo info, vec<Call> calls); /** * @param sigStrength Current signal strength * * Valid errors returned: * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR */ oneway getSignalStrengthResponse_1_2(RadioResponseInfo info, SignalStrength sigStrength); };
radio/1.2/types.hal +28 −2 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ package android.hardware.radio@1.2; import @1.0::Call; import @1.0::CdmaSignalStrength; import @1.0::CardState; import @1.0::CardStatus; import @1.0::CdmaSignalStrength; import @1.0::CellIdentityCdma; import @1.0::CellIdentityGsm; import @1.0::CellIdentityLte; Loading @@ -30,10 +30,12 @@ import @1.0::EvdoSignalStrength; import @1.0::GsmSignalStrength; import @1.0::LteSignalStrength; import @1.0::RadioConst; import @1.0::RadioError; import @1.0::SignalStrength; import @1.0::TdScdmaSignalStrength; import @1.0::TimeStampType; import @1.0::WcdmaSignalStrength; import @1.1::RadioAccessSpecifier; import @1.0::RadioError; import @1.1::ScanStatus; import @1.1::ScanType; Loading Loading @@ -397,3 +399,27 @@ struct Call { @1.0::Call base; AudioQuality audioQuality; }; struct WcdmaSignalStrength { @1.0::WcdmaSignalStrength base; /** * CPICH RSCP as defined in TS 25.215 5.1.1 * Valid values are (0-96, 255) as defined in TS 27.007 8.69 */ uint32_t rscp; /** * Ec/No value as defined in TS 25.215 5.1.5 * Valid values are (0-49, 255) as defined in TS 27.007 8.69 */ uint32_t ecno; }; struct SignalStrength { GsmSignalStrength gsm; CdmaSignalStrength cdma; EvdoSignalStrength evdo; LteSignalStrength lte; TdScdmaSignalStrength tdScdma; WcdmaSignalStrength wcdma; };