From b98ad6e8401ba85bb0428a8bae02a3b584fc5a6a Mon Sep 17 00:00:00 2001 From: joonhunshin Date: Mon, 30 Oct 2023 08:35:24 +0000 Subject: [PATCH 1/2] Add comment for HAL radio APIs and telephony feature mapping Bug: 297989574 Test: build pass Change-Id: I5f143de9688823f3a2c2b241f4984a22d523470f --- .../hardware/radio/config/IRadioConfig.aidl | 16 ++++ .../radio/config/IRadioConfigResponse.aidl | 9 ++ .../hardware/radio/data/IRadioData.aidl | 32 +++++++ .../radio/data/IRadioDataResponse.aidl | 14 +++ .../android/hardware/radio/ims/IRadioIms.aidl | 16 ++++ .../hardware/radio/ims/IRadioImsResponse.aidl | 7 ++ .../hardware/radio/ims/media/IImsMedia.aidl | 6 ++ .../radio/ims/media/IImsMediaSession.aidl | 14 +++ .../radio/messaging/IRadioMessaging.aidl | 46 ++++++++++ .../messaging/IRadioMessagingResponse.aidl | 33 +++++++ .../hardware/radio/modem/IRadioModem.aidl | 30 +++++++ .../radio/modem/IRadioModemResponse.aidl | 18 ++++ .../hardware/radio/network/IRadioNetwork.aidl | 88 +++++++++++++++++++ .../radio/network/IRadioNetworkResponse.aidl | 78 ++++++++++++++++ .../aidl/android/hardware/radio/sap/ISap.aidl | 18 ++++ .../hardware/radio/sap/ISapCallback.aidl | 12 +++ .../android/hardware/radio/sim/IRadioSim.aidl | 74 ++++++++++++++++ .../hardware/radio/sim/IRadioSimResponse.aidl | 67 ++++++++++++++ .../hardware/radio/voice/IRadioVoice.aidl | 78 ++++++++++++++++ .../radio/voice/IRadioVoiceResponse.aidl | 37 ++++++++ 20 files changed, 693 insertions(+) diff --git a/radio/aidl/android/hardware/radio/config/IRadioConfig.aidl b/radio/aidl/android/hardware/radio/config/IRadioConfig.aidl index 1075ef7235..9058d9d050 100644 --- a/radio/aidl/android/hardware/radio/config/IRadioConfig.aidl +++ b/radio/aidl/android/hardware/radio/config/IRadioConfig.aidl @@ -40,6 +40,8 @@ oneway interface IRadioConfig { * * Response callback is * IRadioConfigResponse.getHalDeviceCapabilitiesResponse() + * + * This is available when android.hardware.telephony is defined. */ void getHalDeviceCapabilities(in int serial); @@ -54,6 +56,8 @@ oneway interface IRadioConfig { * * Response callback is IRadioConfigResponse.getNumOfLiveModemsResponse() which * will return . + * + * This is available when android.hardware.telephony is defined. */ void getNumOfLiveModems(in int serial); @@ -64,6 +68,8 @@ oneway interface IRadioConfig { * * Response callback is IRadioResponse.getPhoneCapabilityResponse() which * will return . + * + * This is available when android.hardware.telephony is defined. */ void getPhoneCapability(in int serial); @@ -76,6 +82,8 @@ oneway interface IRadioConfig { * @param serial Serial number of request. * * Response callback is IRadioConfigResponse.getSimSlotsStatusResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getSimSlotsStatus(in int serial); @@ -93,6 +101,8 @@ oneway interface IRadioConfig { * @param modemsConfig byte object including the number of live modems * * Response callback is IRadioResponse.setNumOfLiveModemsResponse() + * + * This is available when android.hardware.telephony is defined. */ void setNumOfLiveModems(in int serial, in byte numOfLiveModems); @@ -107,6 +117,8 @@ oneway interface IRadioConfig { * from getPhoneCapability(). * * Response callback is IRadioConfigResponse.setPreferredDataModemResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setPreferredDataModem(in int serial, in byte modemId); @@ -115,6 +127,8 @@ oneway interface IRadioConfig { * * @param radioConfigResponse Object containing radio config response functions * @param radioConfigIndication Object containing radio config indications + * + * This is available when android.hardware.telephony is defined. */ void setResponseFunctions(in IRadioConfigResponse radioConfigResponse, in IRadioConfigIndication radioConfigIndication); @@ -173,6 +187,8 @@ oneway interface IRadioConfig { * getSimSlotsStatusResponse * * Response callback is IRadioConfigResponse.setSimSlotsMappingResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setSimSlotsMapping(in int serial, in SlotPortMapping[] slotMap); } diff --git a/radio/aidl/android/hardware/radio/config/IRadioConfigResponse.aidl b/radio/aidl/android/hardware/radio/config/IRadioConfigResponse.aidl index cb3533e434..df93e3c336 100644 --- a/radio/aidl/android/hardware/radio/config/IRadioConfigResponse.aidl +++ b/radio/aidl/android/hardware/radio/config/IRadioConfigResponse.aidl @@ -40,6 +40,7 @@ oneway interface IRadioConfigResponse { * IRadioIndication.currentPhysicalChannelConfigs_1_6() * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -53,6 +54,7 @@ oneway interface IRadioConfigResponse { * are enabled and actively working as part of a working connectivity stack * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE */ @@ -65,6 +67,7 @@ oneway interface IRadioConfigResponse { * how many logical modems it has, how many data connections it supports. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -78,6 +81,8 @@ oneway interface IRadioConfigResponse { * equal to the number of physical slots on the device * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -91,6 +96,7 @@ oneway interface IRadioConfigResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -101,6 +107,7 @@ oneway interface IRadioConfigResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -112,6 +119,8 @@ oneway interface IRadioConfigResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY diff --git a/radio/aidl/android/hardware/radio/data/IRadioData.aidl b/radio/aidl/android/hardware/radio/data/IRadioData.aidl index 519d4257d4..a73616ac18 100644 --- a/radio/aidl/android/hardware/radio/data/IRadioData.aidl +++ b/radio/aidl/android/hardware/radio/data/IRadioData.aidl @@ -48,6 +48,8 @@ oneway interface IRadioData { * @param serial Serial number of request. * * Response function is IRadioDataResponse.allocatePduSessionIdResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void allocatePduSessionId(in int serial); @@ -60,6 +62,8 @@ oneway interface IRadioData { * @param id callId The identifier of the data call which is provided in SetupDataCallResult * * Response function is IRadioDataResponse.cancelHandoverResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void cancelHandover(in int serial, in int callId); @@ -73,6 +77,8 @@ oneway interface IRadioData { * @param reason The request reason. Must be normal, handover, or shutdown. * * Response function is IRadioDataResponse.deactivateDataCallResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void deactivateDataCall(in int serial, in int cid, in DataRequestReason reason); @@ -83,6 +89,8 @@ oneway interface IRadioData { * @param serial Serial number of request. * * Response function is IRadioDataResponse.getDataCallListResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void getDataCallList(in int serial); @@ -96,6 +104,8 @@ oneway interface IRadioData { * @param serial Serial number of request. * * Response function is IRadioDataResponse.getSlicingConfigResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void getSlicingConfig(in int serial); @@ -107,6 +117,8 @@ oneway interface IRadioData { * @param id Pdu session id to release. * * Response function is IRadioDataResponse.releasePduSessionIdResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void releasePduSessionId(in int serial, in int id); @@ -114,6 +126,8 @@ oneway interface IRadioData { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony.data is defined. */ void responseAcknowledgement(); @@ -124,6 +138,8 @@ oneway interface IRadioData { * @param allow true to allow data calls, false to disallow data calls * * Response function is IRadioDataResponse.setDataAllowedResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setDataAllowed(in int serial, in boolean allow); @@ -134,6 +150,8 @@ oneway interface IRadioData { * @param profiles Array of DataProfileInfo to set. * * Response function is IRadioDataResponse.setDataProfileResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setDataProfile(in int serial, in DataProfileInfo[] profiles); @@ -155,6 +173,8 @@ oneway interface IRadioData { * DataThrottlingAction:HOLD. * * Response function is IRadioDataResponse.setDataThrottlingResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setDataThrottling(in int serial, in DataThrottlingAction dataThrottlingAction, in long completionDurationMillis); @@ -167,6 +187,8 @@ oneway interface IRadioData { * initial attach APN. * * Response function is IRadioDataResponse.setInitialAttachApnResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setInitialAttachApn(in int serial, in @nullable DataProfileInfo dataProfileInfo); @@ -175,6 +197,8 @@ oneway interface IRadioData { * * @param radioDataResponse Object containing response functions * @param radioDataIndication Object containing radio indications + * + * This is available when android.hardware.telephony.data is defined. */ void setResponseFunctions( in IRadioDataResponse radioDataResponse, in IRadioDataIndication radioDataIndication); @@ -229,6 +253,8 @@ oneway interface IRadioData { * example, a zero-rating slice. * * Response function is IRadioDataResponse.setupDataCallResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void setupDataCall(in int serial, in AccessNetwork accessNetwork, in DataProfileInfo dataProfileInfo, in boolean roamingAllowed, @@ -250,6 +276,8 @@ oneway interface IRadioData { * @param id callId The identifier of the data call which is provided in SetupDataCallResult * * Response function is IRadioDataResponse.startHandoverResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void startHandover(in int serial, in int callId); @@ -260,6 +288,8 @@ oneway interface IRadioData { * @param keepalive A request structure containing all necessary info to describe a keepalive * * Response function is IRadioDataResponse.startKeepaliveResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void startKeepalive(in int serial, in KeepaliveRequest keepalive); @@ -271,6 +301,8 @@ oneway interface IRadioData { * IRadioDataResponse.startKeepaliveResponse * * Response function is IRadioDataResponse.stopKeepaliveResponse() + * + * This is available when android.hardware.telephony.data is defined. */ void stopKeepalive(in int serial, in int sessionHandle); } diff --git a/radio/aidl/android/hardware/radio/data/IRadioDataResponse.aidl b/radio/aidl/android/hardware/radio/data/IRadioDataResponse.aidl index b7148449e7..538b90abb4 100644 --- a/radio/aidl/android/hardware/radio/data/IRadioDataResponse.aidl +++ b/radio/aidl/android/hardware/radio/data/IRadioDataResponse.aidl @@ -41,6 +41,7 @@ oneway interface IRadioDataResponse { * @param id The allocated id. On an error, this is set to 0. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -53,6 +54,7 @@ oneway interface IRadioDataResponse { * @param dcResponse Attributes of data call * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -65,6 +67,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE indicates success. Any other error will remove the network from the list. * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_CALL_ID @@ -83,6 +86,7 @@ oneway interface IRadioDataResponse { * @param dcResponse List of SetupDataCallResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -95,6 +99,7 @@ oneway interface IRadioDataResponse { * @param slicingConfig Current slicing configuration * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -106,6 +111,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -117,6 +123,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -135,6 +142,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SUBSCRIPTION_NOT_AVAILABLE @@ -150,6 +158,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -161,6 +170,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SUBSCRIPTION_NOT_AVAILABLE @@ -180,6 +190,7 @@ oneway interface IRadioDataResponse { * @param dcResponse SetupDataCallResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE must be returned on both success and failure of setup with the * DataCallResponse.status containing the actual status * For all other errors the DataCallResponse is ignored. @@ -197,6 +208,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -212,6 +224,7 @@ oneway interface IRadioDataResponse { * request. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:NO_RESOURCES * RadioError:INVALID_ARGUMENTS @@ -222,6 +235,7 @@ oneway interface IRadioDataResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.data is not defined * RadioError:NONE * RadioError:INVALID_ARGUMENTS */ diff --git a/radio/aidl/android/hardware/radio/ims/IRadioIms.aidl b/radio/aidl/android/hardware/radio/ims/IRadioIms.aidl index 05d60355b4..90792f7f88 100644 --- a/radio/aidl/android/hardware/radio/ims/IRadioIms.aidl +++ b/radio/aidl/android/hardware/radio/ims/IRadioIms.aidl @@ -45,6 +45,8 @@ oneway interface IRadioIms { * @param srvccCalls the list of calls * * Response function is IRadioImsResponse.setSrvccCallInfoResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void setSrvccCallInfo(int serial, in SrvccCall[] srvccCalls); @@ -60,6 +62,8 @@ oneway interface IRadioIms { * @param imsRegistration IMS registration information * * Response function is IRadioImsResponse.updateImsRegistrationInfoResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void updateImsRegistrationInfo(int serial, in ImsRegistration imsRegistration); @@ -90,6 +94,8 @@ oneway interface IRadioIms { * mobile terminated use case eg. MO/MT call/SMS etc * * Response function is IRadioImsResponse.startImsTrafficResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void startImsTraffic(int serial, int token, ImsTrafficType imsTrafficType, AccessNetwork accessNetworkType, ImsCall.Direction trafficDirection); @@ -103,6 +109,8 @@ oneway interface IRadioIms { * @param token The token assigned by startImsTraffic() * * Response function is IRadioImsResponse.stopImsTrafficResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void stopImsTraffic(int serial, int token); @@ -114,6 +122,8 @@ oneway interface IRadioIms { * @param reason Specifies the reason that causes EPS fallback * * Response function is IRadioImsResponse.triggerEpsFallbackResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void triggerEpsFallback(int serial, in EpsFallbackReason reason); @@ -122,6 +132,8 @@ oneway interface IRadioIms { * * @param radioImsResponse Object containing response functions * @param radioImsIndication Object containing radio indications + * + * This is available when android.hardware.telephony.ims is defined. */ void setResponseFunctions( in IRadioImsResponse radioImsResponse, in IRadioImsIndication radioImsIndication); @@ -137,6 +149,8 @@ oneway interface IRadioIms { * @param bitsPerSecond The bit rate requested by the opponent UE * * Response function is IRadioImsResponse.sendAnbrQueryResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void sendAnbrQuery( int serial, ImsStreamType mediaType, ImsStreamDirection direction, int bitsPerSecond); @@ -148,6 +162,8 @@ oneway interface IRadioIms { * @param imsCalls The list of IMS calls * * Response function is IRadioImsResponse.updateImsCallStatusResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void updateImsCallStatus(int serial, in ImsCall[] imsCalls); } diff --git a/radio/aidl/android/hardware/radio/ims/IRadioImsResponse.aidl b/radio/aidl/android/hardware/radio/ims/IRadioImsResponse.aidl index b8a5a94ae2..ca33d071b7 100644 --- a/radio/aidl/android/hardware/radio/ims/IRadioImsResponse.aidl +++ b/radio/aidl/android/hardware/radio/ims/IRadioImsResponse.aidl @@ -29,6 +29,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -45,6 +46,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -63,6 +65,7 @@ oneway interface IRadioImsResponse { * it should be {@code null}. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -80,6 +83,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -96,6 +100,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -112,6 +117,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -128,6 +134,7 @@ oneway interface IRadioImsResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE diff --git a/radio/aidl/android/hardware/radio/ims/media/IImsMedia.aidl b/radio/aidl/android/hardware/radio/ims/media/IImsMedia.aidl index 0af86c7df3..14fe68bda2 100644 --- a/radio/aidl/android/hardware/radio/ims/media/IImsMedia.aidl +++ b/radio/aidl/android/hardware/radio/ims/media/IImsMedia.aidl @@ -31,6 +31,8 @@ oneway interface IImsMedia { * Set the listener functions for receiving notifications from the RTP stack. * * @param mediaListener Object containing listener methods + * + * This is available when android.hardware.telephony.ims is defined. */ void setListener(in IImsMediaListener mediaListener); @@ -46,6 +48,8 @@ oneway interface IImsMedia { * @param localEndPoint provides IP address, port and logical modem id for local RTP endpoint * @param config provides remote end point info and codec details. This could be null initially * and the application may update this later using modifySession() API. + * + * This is available when android.hardware.telephony.ims is defined. */ void openSession(int sessionId, in LocalEndPoint localEndPoint, in RtpConfig config); @@ -54,6 +58,8 @@ oneway interface IImsMedia { * This shall also close the session specific binder connection opened as part of openSession(). * * @param sessionId identifier for the rtp session that needs to be closed + * + * This is available when android.hardware.telephony.ims is defined. */ void closeSession(int sessionId); } diff --git a/radio/aidl/android/hardware/radio/ims/media/IImsMediaSession.aidl b/radio/aidl/android/hardware/radio/ims/media/IImsMediaSession.aidl index deb741b64f..7e03da697e 100644 --- a/radio/aidl/android/hardware/radio/ims/media/IImsMediaSession.aidl +++ b/radio/aidl/android/hardware/radio/ims/media/IImsMediaSession.aidl @@ -32,6 +32,8 @@ oneway interface IImsMediaSession { * Set the listener functions to receive IMS media session specific notifications. * * @param sessionListener Object containing notification methods + * + * This is available when android.hardware.telephony.ims is defined. */ void setListener(in IImsMediaSessionListener sessionListener); @@ -40,6 +42,8 @@ oneway interface IImsMediaSession { * the media stream by changing the value of the MediaDirection. * * @param config provides remote end point info and codec details + * + * This is available when android.hardware.telephony.ims is defined. */ void modifySession(in RtpConfig config); @@ -48,6 +52,8 @@ oneway interface IImsMediaSession { * * @param dtmfDigit single char having one of 12 values: 0-9, *, # * @param duration of the key press in milliseconds. + * + * This is available when android.hardware.telephony.ims is defined. */ void sendDtmf(char dtmfDigit, int duration); @@ -57,12 +63,16 @@ oneway interface IImsMediaSession { * stopDtmf() is not received yet, then that digit must be stopped first * * @param dtmfDigit single char having one of 12 values: 0-9, *, # + * + * This is available when android.hardware.telephony.ims is defined. */ void startDtmf(char dtmfDigit); /** * Stop sending the last DTMF digit started by startDtmf(). * stopDtmf() without preceding startDtmf() must be ignored. + * + * This is available when android.hardware.telephony.ims is defined. */ void stopDtmf(); @@ -70,6 +80,8 @@ oneway interface IImsMediaSession { * Send RTP header extension to the other party in the next RTP packet. * * @param extensions data to be transmitted via RTP header extension + * + * This is available when android.hardware.telephony.ims is defined. */ void sendHeaderExtension(in List extensions); @@ -78,6 +90,8 @@ oneway interface IImsMediaSession { * media quality notifications. * * @param threshold media quality thresholds for various quality parameters + * + * This is available when android.hardware.telephony.ims is defined. */ void setMediaQualityThreshold(in MediaQualityThreshold threshold); } diff --git a/radio/aidl/android/hardware/radio/messaging/IRadioMessaging.aidl b/radio/aidl/android/hardware/radio/messaging/IRadioMessaging.aidl index 44818ff209..945453c771 100644 --- a/radio/aidl/android/hardware/radio/messaging/IRadioMessaging.aidl +++ b/radio/aidl/android/hardware/radio/messaging/IRadioMessaging.aidl @@ -50,6 +50,8 @@ oneway interface IRadioMessaging { * @param ackPdu acknowledgement TPDU in hexadecimal format * * Response function is IRadioMessagingResponse.acknowledgeIncomingGsmSmsWithPduResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void acknowledgeIncomingGsmSmsWithPdu(in int serial, in boolean success, in String ackPdu); @@ -61,6 +63,8 @@ oneway interface IRadioMessaging { * @param smsAck Cdma Sms ack to be sent described by CdmaSmsAck * * Response function is IRadioMessagingResponse.acknowledgeLastIncomingCdmaSmsResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void acknowledgeLastIncomingCdmaSms(in int serial, in CdmaSmsAck smsAck); @@ -75,6 +79,8 @@ oneway interface IRadioMessaging { * in TS 23.040, 9.2.3.22. * * Response function is IRadioMessagingResponse.acknowledgeLastIncomingGsmSmsResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void acknowledgeLastIncomingGsmSms( in int serial, in boolean success, in SmsAcknowledgeFailCause cause); @@ -86,6 +92,8 @@ oneway interface IRadioMessaging { * @param index record index of the message to delete * * Response function is IRadioMessagingResponse.deleteSmsOnRuimResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void deleteSmsOnRuim(in int serial, in int index); @@ -96,6 +104,8 @@ oneway interface IRadioMessaging { * @param index Record index of the message to delete. * * Response function is IRadioMessagingResponse.deleteSmsOnSimResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void deleteSmsOnSim(in int serial, in int index); @@ -105,6 +115,8 @@ oneway interface IRadioMessaging { * @param serial Serial number of request. * * Response function is IRadioMessagingResponse.getCdmaBroadcastConfigResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void getCdmaBroadcastConfig(in int serial); @@ -114,6 +126,8 @@ oneway interface IRadioMessaging { * @param serial Serial number of request. * * Response function is IRadioMessagingResponse.getGsmBroadcastConfigResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void getGsmBroadcastConfig(in int serial); @@ -123,6 +137,8 @@ oneway interface IRadioMessaging { * @param serial Serial number of request. * * Response function is IRadioMessagingResponse.getSmscAddressResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void getSmscAddress(in int serial); @@ -134,6 +150,8 @@ oneway interface IRadioMessaging { * false if memory capacity is exceeded * * Response function is IRadioMessagingResponse.reportSmsMemoryStatusResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void reportSmsMemoryStatus(in int serial, in boolean available); @@ -141,6 +159,8 @@ oneway interface IRadioMessaging { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony.messaging is defined. */ void responseAcknowledgement(); @@ -151,6 +171,8 @@ oneway interface IRadioMessaging { * @param sms CdmaSmsMessage to be sent * * Response function is IRadioMessagingResponse.sendCdmaSmsResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void sendCdmaSms(in int serial, in CdmaSmsMessage sms); @@ -162,6 +184,8 @@ oneway interface IRadioMessaging { * @param sms CdmaSmsMessage to be sent * * Response function is IRadioMessagingResponse.sendCdmaSmsExpectMoreResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void sendCdmaSmsExpectMore(in int serial, in CdmaSmsMessage sms); @@ -174,6 +198,8 @@ oneway interface IRadioMessaging { * @param message ImsSmsMessage to be sent * * Response function is IRadioMessagingResponse.sendImsSmsResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void sendImsSms(in int serial, in ImsSmsMessage message); @@ -186,6 +212,8 @@ oneway interface IRadioMessaging { * @param message GsmSmsMessage to be sent * * Response function is IRadioMessagingResponse.sendSmsResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void sendSms(in int serial, in GsmSmsMessage message); @@ -200,6 +228,8 @@ oneway interface IRadioMessaging { * @param message GsmSmsMessage to be sent * * Response function is IRadioMessagingResponse.sendSmsExpectMoreResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void sendSmsExpectMore(in int serial, in GsmSmsMessage message); @@ -211,6 +241,8 @@ oneway interface IRadioMessaging { * true = activate, false = turn off * * Response function is IRadioMessagingResponse.setCdmaBroadcastActivationResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void setCdmaBroadcastActivation(in int serial, in boolean activate); @@ -221,6 +253,8 @@ oneway interface IRadioMessaging { * @param configInfo CDMA Broadcast SMS config to be set. * * Response function is IRadioMessagingResponse.setCdmaBroadcastConfigResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void setCdmaBroadcastConfig(in int serial, in CdmaBroadcastSmsConfigInfo[] configInfo); @@ -232,6 +266,8 @@ oneway interface IRadioMessaging { * Cell Broadcast SMS. true = activate, false = turn off * * Response function is IRadioMessagingResponse.setGsmBroadcastActivationResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void setGsmBroadcastActivation(in int serial, in boolean activate); @@ -242,6 +278,8 @@ oneway interface IRadioMessaging { * @param configInfo Setting of GSM/WCDMA Cell broadcast config * * Response function is IRadioMessagingResponse.setGsmBroadcastConfigResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void setGsmBroadcastConfig(in int serial, in GsmBroadcastSmsConfigInfo[] configInfo); @@ -250,6 +288,8 @@ oneway interface IRadioMessaging { * * @param radioMessagingResponse Object containing response functions * @param radioMessagingIndication Object containing radio indications + * + * This is available when android.hardware.telephony.messaging is defined. */ void setResponseFunctions(in IRadioMessagingResponse radioMessagingResponse, in IRadioMessagingIndication radioMessagingIndication); @@ -261,6 +301,8 @@ oneway interface IRadioMessaging { * @param smsc Short Message Service Center address to set * * Response function is IRadioMessagingResponse.setSmscAddressResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void setSmscAddress(in int serial, in String smsc); @@ -271,6 +313,8 @@ oneway interface IRadioMessaging { * @param cdmaSms CdmaSmsWriteArgs * * Response function is IRadioMessagingResponse.writeSmsToRuimResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void writeSmsToRuim(in int serial, in CdmaSmsWriteArgs cdmaSms); @@ -281,6 +325,8 @@ oneway interface IRadioMessaging { * @param smsWriteArgs SmsWriteArgs * * Response function is IRadioMessagingResponse.writeSmsToSimResponse() + * + * This is available when android.hardware.telephony.messaging is defined. */ void writeSmsToSim(in int serial, in SmsWriteArgs smsWriteArgs); } diff --git a/radio/aidl/android/hardware/radio/messaging/IRadioMessagingResponse.aidl b/radio/aidl/android/hardware/radio/messaging/IRadioMessagingResponse.aidl index 84c34ca478..f0d799909b 100644 --- a/radio/aidl/android/hardware/radio/messaging/IRadioMessagingResponse.aidl +++ b/radio/aidl/android/hardware/radio/messaging/IRadioMessagingResponse.aidl @@ -31,6 +31,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -44,6 +46,7 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -66,6 +69,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -88,6 +93,7 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -109,6 +115,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_FULL @@ -131,6 +139,7 @@ oneway interface IRadioMessagingResponse { * @param configs Vector of CDMA Broadcast SMS configs. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -153,6 +162,8 @@ oneway interface IRadioMessagingResponse { * @param configs Vector of GSM/WCDMA Cell broadcast configs * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -175,6 +186,8 @@ oneway interface IRadioMessagingResponse { * @param smsc Short Message Service Center address on the device * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -196,6 +209,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -216,6 +231,7 @@ oneway interface IRadioMessagingResponse { * @param sms Response to sms sent as defined by SendSmsResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SMS_SEND_FAIL_RETRY @@ -249,6 +265,7 @@ oneway interface IRadioMessagingResponse { * @param sms Sms result struct as defined by SendSmsResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -282,6 +299,7 @@ oneway interface IRadioMessagingResponse { * @param sms Response to sms sent as defined by SendSmsResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SMS_SEND_FAIL_RETRY @@ -309,6 +327,8 @@ oneway interface IRadioMessagingResponse { * @param sms Response to sms sent as defined by SendSmsResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SMS_SEND_FAIL_RETRY @@ -341,6 +361,8 @@ oneway interface IRadioMessagingResponse { * @param sms Response to sms sent as defined by SendSmsResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SMS_SEND_FAIL_RETRY @@ -371,6 +393,7 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -391,6 +414,7 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -410,6 +434,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -430,6 +456,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -449,6 +477,8 @@ oneway interface IRadioMessagingResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -471,6 +501,7 @@ oneway interface IRadioMessagingResponse { * @param index record index where the cmda sms message is stored * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -497,6 +528,8 @@ oneway interface IRadioMessagingResponse { * @param index record index where the message is stored * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.messaging is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_FULL diff --git a/radio/aidl/android/hardware/radio/modem/IRadioModem.aidl b/radio/aidl/android/hardware/radio/modem/IRadioModem.aidl index 0d51584259..bfca5a9ef4 100644 --- a/radio/aidl/android/hardware/radio/modem/IRadioModem.aidl +++ b/radio/aidl/android/hardware/radio/modem/IRadioModem.aidl @@ -48,6 +48,8 @@ oneway interface IRadioModem { * @param on True to turn on the logical modem, otherwise turn it off. * * Response function is IRadioModemResponse.enableModemResponse() + * + * This is available when android.hardware.telephony is defined. */ void enableModem(in int serial, in boolean on); @@ -57,6 +59,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getBasebandVersionResponse() + * + * This is available when android.hardware.telephony is defined. */ void getBasebandVersion(in int serial); @@ -68,6 +72,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getDeviceIdentityResponse() + * + * This is available when android.hardware.telephony is defined. * @deprecated use getImei(int serial) */ void getDeviceIdentity(in int serial); @@ -78,6 +84,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getHardwareConfigResponse() + * + * This is available when android.hardware.telephony is defined. */ void getHardwareConfig(in int serial); @@ -89,6 +97,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getModemActivityInfoResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getModemActivityInfo(in int serial); @@ -99,6 +109,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getModemStackStatusResponse() + * + * This is available when android.hardware.telephony is defined. */ void getModemStackStatus(in int serial); @@ -108,6 +120,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.getRadioCapabilityResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getRadioCapability(in int serial); @@ -146,6 +160,8 @@ oneway interface IRadioModem { * * Response function is IRadioModemResponse.nvWriteCdmaPrlResponse() * + * This is available when android.hardware.telephony.cdma is defined. + * * @deprecated NV APIs are deprecated starting from Android U. */ void nvWriteCdmaPrl(in int serial, in byte[] prl); @@ -170,6 +186,8 @@ oneway interface IRadioModem { * @param serial Serial number of request. * * Response function is IRadioModemResponse.requestShutdownResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void requestShutdown(in int serial); @@ -177,6 +195,8 @@ oneway interface IRadioModem { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony is defined. */ void responseAcknowledgement(); @@ -189,6 +209,8 @@ oneway interface IRadioModem { * @param state The updated state. See the definition of state at DeviceStateType. * * Response function is IRadioModemResponse.sendDeviceStateResponse() + * + * This is available when android.hardware.telephony is defined. */ void sendDeviceState(in int serial, in DeviceStateType deviceStateType, in boolean state); @@ -201,6 +223,8 @@ oneway interface IRadioModem { * @param rc RadioCapability structure to be set * * Response function is IRadioModemResponse.setRadioCapabilityResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setRadioCapability(in int serial, in RadioCapability rc); @@ -225,6 +249,8 @@ oneway interface IRadioModem { * on this modem or not. No effect if forEmergencyCall is false, or powerOn is false. * * Response function is IRadioConfigResponse.setRadioPowerResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setRadioPower(in int serial, in boolean powerOn, in boolean forEmergencyCall, in boolean preferredForEmergencyCall); @@ -234,6 +260,8 @@ oneway interface IRadioModem { * * @param radioModemResponse Object containing response functions * @param radioModemIndication Object containing radio indications + * + * This is available when android.hardware.telephony is defined. */ void setResponseFunctions(in IRadioModemResponse radioModemResponse, in IRadioModemIndication radioModemIndication); @@ -244,6 +272,8 @@ oneway interface IRadioModem { * @param serial : Serial number of request. * * Response function is IRadioModemResponse.getImeiResponse() + * + * This is available when android.hardware.telephony.gsm is defined. */ void getImei(in int serial); } diff --git a/radio/aidl/android/hardware/radio/modem/IRadioModemResponse.aidl b/radio/aidl/android/hardware/radio/modem/IRadioModemResponse.aidl index b6946f3d1f..6d2504c24f 100644 --- a/radio/aidl/android/hardware/radio/modem/IRadioModemResponse.aidl +++ b/radio/aidl/android/hardware/radio/modem/IRadioModemResponse.aidl @@ -41,6 +41,7 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -55,6 +56,7 @@ oneway interface IRadioModemResponse { * @param version string containing version string for log reporting * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:EMPTY_RECORD @@ -79,6 +81,7 @@ oneway interface IRadioModemResponse { * accessing the device. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -100,6 +103,7 @@ oneway interface IRadioModemResponse { * @param config Array of HardwareConfig of the radio. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE */ @@ -110,6 +114,8 @@ oneway interface IRadioModemResponse { * @param activityInfo modem activity information * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -126,6 +132,7 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -137,6 +144,8 @@ oneway interface IRadioModemResponse { * @param rc Radio capability as defined by RadioCapability in types.hal * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -175,6 +184,7 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * @@ -197,6 +207,8 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -212,6 +224,7 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -229,6 +242,8 @@ oneway interface IRadioModemResponse { * feedback return status * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds. * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -247,6 +262,8 @@ oneway interface IRadioModemResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:INTERNAL_ERR * RadioError:INVALID_ARGUMENTS @@ -265,6 +282,7 @@ oneway interface IRadioModemResponse { * @param imeiInfo IMEI information * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.gsm is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR diff --git a/radio/aidl/android/hardware/radio/network/IRadioNetwork.aidl b/radio/aidl/android/hardware/radio/network/IRadioNetwork.aidl index 878ad23582..22b14de2ff 100644 --- a/radio/aidl/android/hardware/radio/network/IRadioNetwork.aidl +++ b/radio/aidl/android/hardware/radio/network/IRadioNetwork.aidl @@ -48,6 +48,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getAllowedNetworkTypesBitmapResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getAllowedNetworkTypesBitmap(in int serial); @@ -57,6 +59,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getAvailableBandModesResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getAvailableBandModes(in int serial); @@ -66,6 +70,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getAvailableNetworksResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getAvailableNetworks(in int serial); @@ -75,6 +81,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getBarringInfoResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getBarringInfo(in int serial); @@ -84,6 +92,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getCdmaRoamingPreferenceResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void getCdmaRoamingPreference(in int serial); @@ -96,6 +106,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getCellInfoListResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getCellInfoList(in int serial); @@ -105,6 +117,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getDataRegistrationStateResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getDataRegistrationState(in int serial); @@ -115,6 +129,8 @@ oneway interface IRadioNetwork { * * Response function is IRadioNetworkResponse.getImsRegistrationStateResponse() * + * This is available when android.hardware.telephony.ims is defined. + * * @deprecated Deprecated starting from Android U. */ void getImsRegistrationState(in int serial); @@ -125,6 +141,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getNetworkSelectionModeResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getNetworkSelectionMode(in int serial); @@ -134,6 +152,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getOperatorResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getOperator(in int serial); @@ -143,6 +163,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getSignalStrengthResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getSignalStrength(in int serial); @@ -152,6 +174,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getSystemSelectionChannelsResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getSystemSelectionChannels(in int serial); @@ -162,6 +186,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getVoiceRadioTechnologyResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getVoiceRadioTechnology(in int serial); @@ -171,6 +197,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.getVoiceRegistrationStateResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void getVoiceRegistrationState(in int serial); @@ -180,6 +208,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.isNrDualConnectivityEnabledResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void isNrDualConnectivityEnabled(in int serial); @@ -187,6 +217,8 @@ oneway interface IRadioNetwork { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony.radio.access is defined. */ void responseAcknowledgement(); @@ -199,6 +231,8 @@ oneway interface IRadioNetwork { * @param networkTypeBitmap a 32-bit bearer bitmap of RadioAccessFamily * * Response function is IRadioNetworkResponse.setAllowedNetworkTypesBitmapResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setAllowedNetworkTypesBitmap(in int serial, in int networkTypeBitmap); @@ -209,6 +243,8 @@ oneway interface IRadioNetwork { * @param mode RadioBandMode * * Response function is IRadioNetworkResponse.setBandModeResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setBandMode(in int serial, in RadioBandMode mode); @@ -221,6 +257,8 @@ oneway interface IRadioNetwork { * @param newPassword new password * * Response function is IRadioNetworkResponse.setBarringPasswordResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setBarringPassword( in int serial, in String facility, in String oldPassword, in String newPassword); @@ -232,6 +270,8 @@ oneway interface IRadioNetwork { * @param type CdmaRoamingType defined in types.hal * * Response function is IRadioNetworkResponse.setCdmaRoamingPreferenceResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void setCdmaRoamingPreference(in int serial, in CdmaRoamingType type); @@ -244,6 +284,8 @@ oneway interface IRadioNetwork { * @param rate minimum time in milliseconds to indicate time between unsolicited cellInfoList() * * Response function is IRadioNetworkResponse.setCellInfoListRateResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setCellInfoListRate(in int serial, in int rate); @@ -257,6 +299,8 @@ oneway interface IRadioNetwork { * indications are enabled. See IndicationFilter for the definition of each bit. * * Response function is IRadioNetworkResponse.setIndicationFilterResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setIndicationFilter(in int serial, in int indicationFilter); @@ -281,6 +325,8 @@ oneway interface IRadioNetwork { * @param accessNetwork The type of network for which to apply these thresholds. * * Response function is IRadioNetworkResponse.setLinkCapacityReportingCriteriaResponse(). + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setLinkCapacityReportingCriteria(in int serial, in int hysteresisMs, in int hysteresisDlKbps, in int hysteresisUlKbps, in int[] thresholdsDownlinkKbps, @@ -296,6 +342,8 @@ oneway interface IRadioNetwork { * @param enable true=updates enabled (+CREG=2), false=updates disabled (+CREG=1) * * Response function is IRadioNetworkResponse.setLocationUpdatesResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setLocationUpdates(in int serial, in boolean enable); @@ -306,6 +354,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.setNetworkSelectionModeAutomaticResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setNetworkSelectionModeAutomatic(in int serial); @@ -322,6 +372,8 @@ oneway interface IRadioNetwork { * the next best RAN for network registration. * * Response function is IRadioNetworkResponse.setNetworkSelectionModeManualResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setNetworkSelectionModeManual( in int serial, in String operatorNumeric, in AccessNetwork ran); @@ -338,6 +390,8 @@ oneway interface IRadioNetwork { * {NrDualConnectivityState:DISABLE_IMMEDIATE} * * Response function is IRadioNetworkResponse.setNrDualConnectivityStateResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setNrDualConnectivityState( in int serial, in NrDualConnectivityState nrDualConnectivityState); @@ -347,6 +401,8 @@ oneway interface IRadioNetwork { * * @param radioNetworkResponse Object containing response functions * @param radioNetworkIndication Object containing radio indications + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setResponseFunctions(in IRadioNetworkResponse radioNetworkResponse, in IRadioNetworkIndication radioNetworkIndication); @@ -365,6 +421,8 @@ oneway interface IRadioNetwork { * criteria. See SignalThresholdInfo for details. * * Response function is IRadioNetworkResponse.setSignalStrengthReportingCriteriaResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setSignalStrengthReportingCriteria( in int serial, in SignalThresholdInfo[] signalThresholdInfos); @@ -377,6 +435,8 @@ oneway interface IRadioNetwork { * @param enable true = notifications enabled, false = notifications disabled. * * Response function is IRadioNetworkResponse.setSuppServiceNotificationsResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setSuppServiceNotifications(in int serial, in boolean enable); @@ -390,6 +450,8 @@ oneway interface IRadioNetwork { * @param specifiers which bands to scan. Only used if specifyChannels is true. * * Response function is IRadioNetworkResponse.setSystemSelectionChannelsResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setSystemSelectionChannels( in int serial, in boolean specifyChannels, in RadioAccessSpecifier[] specifiers); @@ -401,6 +463,8 @@ oneway interface IRadioNetwork { * @param request Defines the radio networks/bands/channels which need to be scanned. * * Response function is IRadioNetworkResponse.startNetworkScanResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void startNetworkScan(in int serial, in NetworkScanRequest request); @@ -410,6 +474,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.stopNetworkScanResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void stopNetworkScan(in int serial); @@ -420,6 +486,8 @@ oneway interface IRadioNetwork { * @param netPin Network depersonlization code * * Response function is IRadioNetworkResponse.supplyNetworkDepersonalizationResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void supplyNetworkDepersonalization(in int serial, in String netPin); @@ -432,6 +500,8 @@ oneway interface IRadioNetwork { * * @param serial Serial number of request. * @param usageSetting the usage setting for the current SIM. + * + * This is available when android.hardware.telephony is defined. */ oneway void setUsageSetting(in int serial, in UsageSetting usageSetting); @@ -441,6 +511,8 @@ oneway interface IRadioNetwork { *

Gets the usage setting in accordance with 3gpp 24.301 sec 4.3 and 3gpp 24.501 sec 4.3. * * @param serial Serial number of request. + * + * This is available when android.hardware.telephony is defined. */ oneway void getUsageSetting(in int serial); @@ -452,6 +524,8 @@ oneway interface IRadioNetwork { * type of service to be scanned. * * Response function is IRadioEmergencyResponse.setEmergencyModeResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setEmergencyMode(int serial, in EmergencyMode emcModeType); @@ -463,6 +537,8 @@ oneway interface IRadioNetwork { * See {@link EmergencyNetworkScanTrigger}. * * Response function is IRadioEmergencyResponse.triggerEmergencyNetworkScanResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void triggerEmergencyNetworkScan(int serial, in EmergencyNetworkScanTrigger request); @@ -475,6 +551,8 @@ oneway interface IRadioNetwork { * otherwise the modem shall resume from the last search. * * Response function is IRadioEmergencyResponse.cancelEmergencyNetworkScan() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void cancelEmergencyNetworkScan(int serial, boolean resetScan); @@ -484,6 +562,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of the request. * * Response function is IRadioEmergencyResponse.exitEmergencyModeResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void exitEmergencyMode(in int serial); @@ -514,6 +594,8 @@ oneway interface IRadioNetwork { * Otherwise, false. * * Response callback is IRadioResponse.setNullCipherAndIntegrityEnabledResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setNullCipherAndIntegrityEnabled(in int serial, in boolean enabled); @@ -529,6 +611,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of the request. * * Response callback is IRadioNetworkResponse.isNullCipherAndIntegrityEnabledResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void isNullCipherAndIntegrityEnabled(in int serial); @@ -538,6 +622,8 @@ oneway interface IRadioNetwork { * @param serial Serial number of request. * * Response function is IRadioNetworkResponse.isN1ModeEnabledResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void isN1ModeEnabled(in int serial); @@ -555,6 +641,8 @@ oneway interface IRadioNetwork { * @param enable {@code true} to enable N1 mode, {@code false} to disable N1 mode. * * Response function is IRadioNetworkResponse.setN1ModeEnabledResponse() + * + * This is available when android.hardware.telephony.radio.access is defined. */ void setN1ModeEnabled(in int serial, boolean enable); } diff --git a/radio/aidl/android/hardware/radio/network/IRadioNetworkResponse.aidl b/radio/aidl/android/hardware/radio/network/IRadioNetworkResponse.aidl index 0889832271..0b283d35b7 100644 --- a/radio/aidl/android/hardware/radio/network/IRadioNetworkResponse.aidl +++ b/radio/aidl/android/hardware/radio/network/IRadioNetworkResponse.aidl @@ -51,6 +51,8 @@ oneway interface IRadioNetworkResponse { * @param networkTypeBitmap a 32-bit bitmap of RadioAccessFamily. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -67,6 +69,8 @@ oneway interface IRadioNetworkResponse { * @param bandModes List of RadioBandMode listing supported modes * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -84,6 +88,8 @@ oneway interface IRadioNetworkResponse { * @param networkInfos List of network operator information as OperatorInfos * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -104,6 +110,8 @@ oneway interface IRadioNetworkResponse { * @param barringInfos a vector of barring info for all barring service types * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -117,6 +125,7 @@ oneway interface IRadioNetworkResponse { * @param type CdmaRoamingType * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -135,6 +144,8 @@ oneway interface IRadioNetworkResponse { * @param cellInfo List of current cell information known to radio * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -146,6 +157,8 @@ oneway interface IRadioNetworkResponse { * @param dataRegResponse Current data registration response as defined by RegStateResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -160,6 +173,7 @@ oneway interface IRadioNetworkResponse { * @param ratFamily RadioTechnologyFamily. This value is valid only if isRegistered is true. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -178,6 +192,8 @@ oneway interface IRadioNetworkResponse { * @param selection false for automatic selection, true for manual selection * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -197,6 +213,8 @@ oneway interface IRadioNetworkResponse { * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -213,6 +231,8 @@ oneway interface IRadioNetworkResponse { * @param signalStrength Current signal strength * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -224,6 +244,8 @@ oneway interface IRadioNetworkResponse { * @param specifiers List of RadioAccessSpecifiers that are scanned. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -237,6 +259,8 @@ oneway interface IRadioNetworkResponse { * @param rat Current voice RAT * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -251,6 +275,8 @@ oneway interface IRadioNetworkResponse { * @param voiceRegResponse Current Voice registration response as defined by RegStateResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -264,6 +290,8 @@ oneway interface IRadioNetworkResponse { * else false. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -274,6 +302,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -289,6 +319,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NOT_ALLOWED @@ -306,6 +338,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -326,6 +360,7 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -344,6 +379,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -359,6 +396,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:INVALID_ARGUMENTS * RadioError:RADIO_NOT_AVAILABLE @@ -371,6 +410,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:INVALID_ARGUMENTS * RadioError:RADIO_NOT_AVAILABLE @@ -382,6 +423,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -399,6 +442,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:ILLEGAL_SIM_OR_ME @@ -420,6 +465,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:ILLEGAL_SIM_OR_ME @@ -442,6 +489,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -453,6 +502,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:INVALID_ARGUMENTS * RadioError:RADIO_NOT_AVAILABLE @@ -463,6 +514,7 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -481,6 +533,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -492,6 +546,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:DEVICE_IN_USE @@ -505,6 +561,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:INTERNAL_ERR * RadioError:MODEM_ERR @@ -516,6 +574,8 @@ oneway interface IRadioNetworkResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:PASSWORD_INCORRECT (code is invalid) @@ -535,6 +595,7 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -549,6 +610,7 @@ oneway interface IRadioNetworkResponse { * @param usageSetting the usage setting for the current SIM. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -565,6 +627,8 @@ oneway interface IRadioNetworkResponse { * @param regState the current registration state of the modem. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:REQUEST_NOT_SUPPORTED * RadioError:RADIO_NOT_AVAILABLE @@ -580,6 +644,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:REQUEST_NOT_SUPPORTED * RadioError:RADIO_NOT_AVAILABLE @@ -595,6 +661,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:REQUEST_NOT_SUPPORTED * RadioError:RADIO_NOT_AVAILABLE @@ -609,6 +677,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:REQUEST_NOT_SUPPORTED * RadioError:RADIO_NOT_AVAILABLE @@ -620,6 +690,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -631,6 +703,8 @@ oneway interface IRadioNetworkResponse { * @param enabled the last known state of null ciphering and integrity algorithms * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -645,6 +719,8 @@ oneway interface IRadioNetworkResponse { * @param isEnabled Indicates whether N1 mode is enabled or not. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -659,6 +735,8 @@ oneway interface IRadioNetworkResponse { * @param info Response info struct containing response type, serial no. and error. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.radio.access is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR diff --git a/radio/aidl/android/hardware/radio/sap/ISap.aidl b/radio/aidl/android/hardware/radio/sap/ISap.aidl index 552e602b75..04eee439e9 100644 --- a/radio/aidl/android/hardware/radio/sap/ISap.aidl +++ b/radio/aidl/android/hardware/radio/sap/ISap.aidl @@ -28,6 +28,8 @@ oneway interface ISap { * @param serial Id to match req-resp. Resp must include same serial. * @param type APDU command type * @param command CommandAPDU/CommandAPDU7816 parameter depending on type + * + * This is available when android.hardware.telephony.subscription is defined. */ void apduReq(in int serial, in SapApduType type, in byte[] command); @@ -36,6 +38,8 @@ oneway interface ISap { * * @param serial Id to match req-resp. Resp must include same serial. * @param maxMsgSizeBytes MaxMsgSize to be used for SIM Access Profile connection + * + * This is available when android.hardware.telephony.subscription is defined. */ void connectReq(in int serial, in int maxMsgSizeBytes); @@ -43,6 +47,8 @@ oneway interface ISap { * DISCONNECT_REQ from SAP 1.1 spec 5.1.3 * * @param serial Id to match req-resp. Resp must include same serial. + * + * This is available when android.hardware.telephony.subscription is defined. */ void disconnectReq(in int serial); @@ -51,6 +57,8 @@ oneway interface ISap { * * @param serial Id to match req-resp. Resp must include same serial. * @param powerOn true for on, false for off + * + * This is available when android.hardware.telephony.subscription is defined. */ void powerReq(in int serial, in boolean powerOn); @@ -58,6 +66,8 @@ oneway interface ISap { * RESET_SIM_REQ from SAP 1.1 spec 5.1.14 * * @param serial Id to match req-resp. Resp must include same serial. + * + * This is available when android.hardware.telephony.subscription is defined. */ void resetSimReq(in int serial); @@ -65,6 +75,8 @@ oneway interface ISap { * Set callback that has response and unsolicited indication functions * * @param sapCallback Object containing response and unosolicited indication callbacks + * + * This is available when android.hardware.telephony.subscription is defined. */ void setCallback(in ISapCallback sapCallback); @@ -73,6 +85,8 @@ oneway interface ISap { * * @param serial Id to match req-resp. Resp must include same serial. * @param transferProtocol Transport Protocol + * + * This is available when android.hardware.telephony.subscription is defined. */ void setTransferProtocolReq(in int serial, in SapTransferProtocol transferProtocol); @@ -80,6 +94,8 @@ oneway interface ISap { * TRANSFER_ATR_REQ from SAP 1.1 spec 5.1.8 * * @param serial Id to match req-resp. Resp must include same serial. + * + * This is available when android.hardware.telephony.subscription is defined. */ void transferAtrReq(in int serial); @@ -87,6 +103,8 @@ oneway interface ISap { * TRANSFER_CARD_READER_STATUS_REQ from SAP 1.1 spec 5.1.17 * * @param serial Id to match req-resp. Resp must include same serial. + * + * This is available when android.hardware.telephony.subscription is defined. */ void transferCardReaderStatusReq(in int serial); } diff --git a/radio/aidl/android/hardware/radio/sap/ISapCallback.aidl b/radio/aidl/android/hardware/radio/sap/ISapCallback.aidl index 34111eb7ff..37a94b8b5a 100644 --- a/radio/aidl/android/hardware/radio/sap/ISapCallback.aidl +++ b/radio/aidl/android/hardware/radio/sap/ISapCallback.aidl @@ -29,6 +29,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS, * SapResultCode:GENERIC_FAILURE, * SapResultCode:CARD_NOT_ACCESSSIBLE, @@ -77,6 +79,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS, * SapResultCode:GENERIC_FAILURE, * SapResultCode:CARD_NOT_ACCESSSIBLE, (possible only for power on req) @@ -92,6 +96,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS, * SapResultCode:GENERIC_FAILURE, * SapResultCode:CARD_NOT_ACCESSSIBLE, @@ -114,6 +120,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS, * SapResultCode:GENERIC_FAILURE, * SapResultCode:CARD_ALREADY_POWERED_OFF, @@ -130,6 +138,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS, * SapResultCode:GENERIC_FAILURE * SapResultCode:DATA_NOT_AVAILABLE @@ -145,6 +155,8 @@ oneway interface ISapCallback { * @param serial Id to match req-resp. Value must match the one in req. * @param resultCode ResultCode to indicate if command was processed correctly * Possible values: + * SapResultCode:NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * SapResultCode:SUCCESS * SapResultCode:NOT_SUPPORTED */ diff --git a/radio/aidl/android/hardware/radio/sim/IRadioSim.aidl b/radio/aidl/android/hardware/radio/sim/IRadioSim.aidl index 14536647ed..7870a749b0 100644 --- a/radio/aidl/android/hardware/radio/sim/IRadioSim.aidl +++ b/radio/aidl/android/hardware/radio/sim/IRadioSim.aidl @@ -49,6 +49,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.areUiccApplicationsEnabledResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void areUiccApplicationsEnabled(in int serial); @@ -61,6 +63,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.changeIccPin2ForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void changeIccPin2ForApp(in int serial, in String oldPin2, in String newPin2, in String aid); @@ -73,6 +77,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.changeIccPinForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void changeIccPinForApp(in int serial, in String oldPin, in String newPin, in String aid); @@ -91,6 +97,8 @@ oneway interface IRadioSim { * @param enable true if to enable uiccApplications, false to disable. * * Response function is IRadioSimResponse.enableUiccApplicationsResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void enableUiccApplications(in int serial, in boolean enable); @@ -100,6 +108,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getAllowedCarriersResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getAllowedCarriers(in int serial); @@ -111,6 +121,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getCdmaSubscriptionResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void getCdmaSubscription(in int serial); @@ -120,6 +132,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getCdmaSubscriptionSourceResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void getCdmaSubscriptionSource(in int serial); @@ -135,6 +149,8 @@ oneway interface IRadioSim { * This is only applicable in the case of Fixed Dialing Numbers (FDN) requests. * * Response function is IRadioSimResponse.getFacilityLockForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getFacilityLockForApp(in int serial, in String facility, in String password, in int serviceClass, in String appId); @@ -145,6 +161,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getIccCardStatusResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getIccCardStatus(in int serial); @@ -155,6 +173,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.getImsiForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getImsiForApp(in int serial, in String aid); @@ -164,6 +184,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getSimPhonebookCapacityResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getSimPhonebookCapacity(in int serial); @@ -175,6 +197,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.getSimPhonebookRecordsResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void getSimPhonebookRecords(in int serial); @@ -187,6 +211,8 @@ oneway interface IRadioSim { * * Response function is IRadioSimResponse.iccCloseLogicalChannelResponse() * + * This is available when android.hardware.telephony.subscription is defined. + * * @deprecated use iccCloseLogicalChannelWithSessionInfo instead. */ void iccCloseLogicalChannel(in int serial, in int channelId); @@ -202,6 +228,8 @@ oneway interface IRadioSim { * @param iccIo IccIo * * Response function is IRadioSimResponse.iccIoForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void iccIoForApp(in int serial, in IccIo iccIo); @@ -220,6 +248,8 @@ oneway interface IRadioSim { * @param p2 P2 value, described in ISO 7816-4. Ignore if equal to RadioConst:P2_CONSTANT_NO_P2 * * Response function is IRadioSimResponse.iccOpenLogicalChannelResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void iccOpenLogicalChannel(in int serial, in String aid, in int p2); @@ -233,6 +263,8 @@ oneway interface IRadioSim { * @param message SimApdu to be sent * * Response function is IRadioSimResponse.iccTransmitApduBasicChannelResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void iccTransmitApduBasicChannel(in int serial, in SimApdu message); @@ -245,6 +277,8 @@ oneway interface IRadioSim { * @param message SimApdu to be sent * * Response function is IRadioSimResponse.iccTransmitApduLogicalChannelResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void iccTransmitApduLogicalChannel(in int serial, in SimApdu message); @@ -254,6 +288,8 @@ oneway interface IRadioSim { * @param serial Serial number of request. * * Response function is IRadioSimResponse.reportStkServiceIsRunningResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void reportStkServiceIsRunning(in int serial); @@ -267,6 +303,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value * * Response function is IRadioSimResponse.requestIccSimAuthenticationResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void requestIccSimAuthentication( in int serial, in int authContext, in String authData, in String aid); @@ -275,6 +313,8 @@ oneway interface IRadioSim { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony.subscription is defined. */ void responseAcknowledgement(); @@ -286,6 +326,8 @@ oneway interface IRadioSim { * @param contents SAT/USAT command in hexadecimal format string starting with command tag * * Response function is IRadioSimResponse.sendEnvelopeResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void sendEnvelope(in int serial, in String contents); @@ -301,6 +343,8 @@ oneway interface IRadioSim { * @param contents SAT/USAT command in hexadecimal format starting with command tag * * Response function is IRadioSimResponse.sendEnvelopeWithStatusResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void sendEnvelopeWithStatus(in int serial, in String contents); @@ -312,6 +356,8 @@ oneway interface IRadioSim { * first byte of response data * * Response function is IRadioSimResponse.sendTerminalResponseResponseToSim() + * + * This is available when android.hardware.telephony.subscription is defined. */ void sendTerminalResponseToSim(in int serial, in String contents); @@ -331,6 +377,8 @@ oneway interface IRadioSim { * @param multiSimPolicy Policy to be used for devices with multiple SIMs. * * Response function is IRadioSimResponse.setAllowedCarriersResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setAllowedCarriers(in int serial, in CarrierRestrictions carriers, in SimLockMultiSimPolicy multiSimPolicy); @@ -344,6 +392,8 @@ oneway interface IRadioSim { * @param imsiEncryptionInfo ImsiEncryptionInfo * * Response function is IRadioSimResponse.setCarrierInfoForImsiEncryptionResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setCarrierInfoForImsiEncryption(in int serial, in ImsiEncryptionInfo imsiEncryptionInfo); @@ -354,6 +404,8 @@ oneway interface IRadioSim { * @param cdmaSub CdmaSubscriptionSource * * Response function is IRadioSimResponse.setCdmaSubscriptionSourceResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void setCdmaSubscriptionSource(in int serial, in CdmaSubscriptionSource cdmaSub); @@ -370,6 +422,8 @@ oneway interface IRadioSim { * This is only applicable in the case of Fixed Dialing Numbers (FDN) requests. * * Response function is IRadioSimResponse.setFacilityLockForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setFacilityLockForApp(in int serial, in String facility, in boolean lockState, in String password, in int serviceClass, in String appId); @@ -379,6 +433,8 @@ oneway interface IRadioSim { * * @param radioSimResponse Object containing response functions * @param radioSimIndication Object containing radio indications + * + * This is available when android.hardware.telephony.subscription is defined. */ void setResponseFunctions( in IRadioSimResponse radioSimResponse, in IRadioSimIndication radioSimIndication); @@ -409,6 +465,8 @@ oneway interface IRadioSim { * POWER_UP_PASS_THROUGH if powering up the SIM card in pass through mode * * Response function is IRadioSimResponse.setSimCardPowerResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setSimCardPower(in int serial, in CardPowerState powerUp); @@ -419,6 +477,8 @@ oneway interface IRadioSim { * @param uiccSub SelectUiccSub * * Response function is IRadioSimResponse.setUiccSubscriptionResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void setUiccSubscription(in int serial, in SelectUiccSub uiccSub); @@ -431,6 +491,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.supplyIccPin2ForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void supplyIccPin2ForApp(in int serial, in String pin2, in String aid); @@ -442,6 +504,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.supplyIccPinForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void supplyIccPinForApp(in int serial, in String pin, in String aid); @@ -454,6 +518,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.supplyIccPuk2ForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void supplyIccPuk2ForApp(in int serial, in String puk2, in String pin2, in String aid); @@ -466,6 +532,8 @@ oneway interface IRadioSim { * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. * * Response function is IRadioSimResponse.supplyIccPukForAppResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void supplyIccPukForApp(in int serial, in String puk, in String pin, in String aid); @@ -481,6 +549,8 @@ oneway interface IRadioSim { * @param controlKey the unlock code for removing persoType personalization from this device * * Response function is IRadioSimResponse.supplySimDepersonalizationResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void supplySimDepersonalization( in int serial, in PersoSubstate persoType, in String controlKey); @@ -496,6 +566,8 @@ oneway interface IRadioSim { * @param recordInfo Details of the record to insert, delete or update. * * Response function is IRadioSimResponse.updateSimPhonebookRecordsResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void updateSimPhonebookRecords(in int serial, in PhonebookRecordInfo recordInfo); @@ -511,6 +583,8 @@ oneway interface IRadioSim { * @param sessionInfo Details of the opened logical channel info like sessionId and isEs10. * * Response function is IRadioSimResponse.iccCloseLogicalChannelWithSessionInfoResponse() + * + * This is available when android.hardware.telephony.subscription is defined. */ void iccCloseLogicalChannelWithSessionInfo(in int serial, in SessionInfo sessionInfo); } diff --git a/radio/aidl/android/hardware/radio/sim/IRadioSimResponse.aidl b/radio/aidl/android/hardware/radio/sim/IRadioSimResponse.aidl index 48253d4e43..91b57292be 100644 --- a/radio/aidl/android/hardware/radio/sim/IRadioSimResponse.aidl +++ b/radio/aidl/android/hardware/radio/sim/IRadioSimResponse.aidl @@ -45,6 +45,8 @@ oneway interface IRadioSimResponse { * @param enabled whether Uicc applications are enabled. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:SIM_ABSENT * RadioError:RADIO_NOT_AVAILABLE @@ -57,6 +59,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT (old PIN2 is invalid) @@ -75,6 +79,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT @@ -91,6 +97,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:SIM_ABSENT * RadioError:RADIO_NOT_AVAILABLE @@ -105,6 +113,8 @@ oneway interface IRadioSimResponse { * @param multiSimPolicy Policy used for devices with multiple SIM cards. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE */ @@ -122,6 +132,7 @@ oneway interface IRadioSimResponse { * @param prl PRL version if CDMA subscription is available * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SUBSCRIPTION_NOT_AVAILABLE @@ -143,6 +154,7 @@ oneway interface IRadioSimResponse { * @param source CDMA subscription source * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SUBSCRIPTION_NOT_AVAILABLE @@ -161,6 +173,8 @@ oneway interface IRadioSimResponse { * specified barring facility is active. "0" means "disabled for all" * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -182,6 +196,8 @@ oneway interface IRadioSimResponse { * @param cardStatus ICC card status as defined by CardStatus * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -194,6 +210,8 @@ oneway interface IRadioSimResponse { * @param imsi String containing the IMSI * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INTERNAL_ERR @@ -210,6 +228,8 @@ oneway interface IRadioSimResponse { * @param capacity Response capacity enum indicating response processing status * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -223,6 +243,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -236,6 +258,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -252,6 +276,8 @@ oneway interface IRadioSimResponse { * @param iccIo ICC IO operation response * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_PIN2 @@ -272,6 +298,8 @@ oneway interface IRadioSimResponse { * byte per integer * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MISSING_RESOURCE @@ -292,6 +320,8 @@ oneway interface IRadioSimResponse { * @param result IccIoResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -306,6 +336,8 @@ oneway interface IRadioSimResponse { * @param result IccIoResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -319,6 +351,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -333,6 +367,8 @@ oneway interface IRadioSimResponse { * @param result IccIoResult * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR @@ -351,6 +387,8 @@ oneway interface IRadioSimResponse { * byte of response * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_BUSY @@ -370,6 +408,8 @@ oneway interface IRadioSimResponse { * @param iccIo IccIoResult corresponding to ICC IO response * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_BUSY @@ -386,6 +426,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -403,6 +445,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -413,6 +457,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_ABSENT @@ -425,6 +471,7 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_ABSENT @@ -441,6 +488,8 @@ oneway interface IRadioSimResponse { * @param retry 0 is the number of retries remaining, or -1 if unknown * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -463,6 +512,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -474,6 +525,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SUBSCRIPTION_NOT_SUPPORTED @@ -492,6 +545,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT @@ -510,6 +565,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT @@ -527,6 +584,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT (PUK is invalid) @@ -544,6 +603,8 @@ oneway interface IRadioSimResponse { * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:PASSWORD_INCORRECT (PUK is invalid) @@ -563,6 +624,8 @@ oneway interface IRadioSimResponse { * to -1 if number of retries is infinite. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:PASSWORD_INCORRECT (code is invalid) @@ -583,6 +646,8 @@ oneway interface IRadioSimResponse { * the minimum value is 1 * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -599,6 +664,8 @@ oneway interface IRadioSimResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.subscription is not + * defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INTERNAL_ERR diff --git a/radio/aidl/android/hardware/radio/voice/IRadioVoice.aidl b/radio/aidl/android/hardware/radio/voice/IRadioVoice.aidl index bf9b9cba1b..0c2b51d2aa 100644 --- a/radio/aidl/android/hardware/radio/voice/IRadioVoice.aidl +++ b/radio/aidl/android/hardware/radio/voice/IRadioVoice.aidl @@ -41,6 +41,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.acceptCallResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void acceptCall(in int serial); @@ -50,6 +52,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.cancelPendingUssdResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void cancelPendingUssd(in int serial); @@ -59,6 +63,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.conferenceResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void conference(in int serial); @@ -69,6 +75,8 @@ oneway interface IRadioVoice { * @param dialInfo Dial struct * * Response function is IRadioVoiceResponse.dialResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void dial(in int serial, in Dial dialInfo); @@ -125,6 +133,8 @@ oneway interface IRadioVoice { * @param isTesting Flag indicating if this request is for testing purpose. * * Response function is IRadioVoiceResponse.emergencyDialResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void emergencyDial(in int serial, in Dial dialInfo, in int categories, in String[] urns, in EmergencyCallRouting routing, in boolean hasKnownUserIntentEmergency, @@ -137,6 +147,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.exitEmergencyCallbackModeResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void exitEmergencyCallbackMode(in int serial); @@ -146,6 +158,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.explicitCallTransferResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void explicitCallTransfer(in int serial); @@ -156,6 +170,8 @@ oneway interface IRadioVoice { * @param callInfo CallForwardInfo * * Response function is IRadioVoiceResponse.getCallForwardStatusResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getCallForwardStatus(in int serial, in CallForwardInfo callInfo); @@ -166,6 +182,8 @@ oneway interface IRadioVoice { * @param serviceClass Service class is the TS 27.007 service class to query * * Response function is IRadioVoiceResponse.getCallWaitingResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getCallWaiting(in int serial, in int serviceClass); @@ -175,6 +193,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getClipResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getClip(in int serial); @@ -184,6 +204,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getClirResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getClir(in int serial); @@ -193,6 +215,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getCurrentCallsResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getCurrentCalls(in int serial); @@ -202,6 +226,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getLastCallFailCauseResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getLastCallFailCause(in int serial); @@ -211,6 +237,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getMuteResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getMute(in int serial); @@ -220,6 +248,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getPreferredVoicePrivacyResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getPreferredVoicePrivacy(in int serial); @@ -229,6 +259,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.getTtyModeResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void getTtyMode(in int serial); @@ -241,6 +273,8 @@ oneway interface IRadioVoice { * @param accept true = accept the call setup, false = reject the call setup * * Response function is IRadioVoiceResponse.handleStkCallSetupRequestFromSimResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void handleStkCallSetupRequestFromSim(in int serial, in boolean accept); @@ -252,6 +286,8 @@ oneway interface IRadioVoice { * @param gsmIndex Connection index (value of 'x' in CHLD above) * * Response function is IRadioVoiceResponse.hangupResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void hangup(in int serial, in int gsmIndex); @@ -262,6 +298,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.hangupForegroundResumeBackgroundResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void hangupForegroundResumeBackground(in int serial); @@ -272,6 +310,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.hangupWaitingOrBackgroundResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void hangupWaitingOrBackground(in int serial); @@ -281,6 +321,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.isVoNrEnabledResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void isVoNrEnabled(in int serial); @@ -290,6 +332,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.rejectCallResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void rejectCall(in int serial); @@ -297,6 +341,8 @@ oneway interface IRadioVoice { * When response type received from a radio indication or radio response is * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, * acknowledge the receipt of those messages by sending responseAcknowledgement(). + * + * This is available when android.hardware.telephony.calling is defined. */ void responseAcknowledgement(); @@ -309,6 +355,8 @@ oneway interface IRadioVoice { * @param off is the DTMF OFF length in milliseconds, or 0 to use default * * Response function is IRadioVoiceResponse.sendBurstDtmfResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void sendBurstDtmf(in int serial, in String dtmf, in int on, in int off); @@ -319,6 +367,8 @@ oneway interface IRadioVoice { * @param featureCode String associated with Flash command * * Response function is IRadioVoiceResponse.sendCdmaFeatureCodeResponse() + * + * This is available when android.hardware.telephony.cdma is defined. */ void sendCdmaFeatureCode(in int serial, in String featureCode); @@ -330,6 +380,8 @@ oneway interface IRadioVoice { * @param s string with single char having one of 12 values: 0-9, *, # * * Response function is IRadioVoiceResponse.sendDtmfResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void sendDtmf(in int serial, in String s); @@ -347,6 +399,8 @@ oneway interface IRadioVoice { * @param ussd string containing the USSD request in UTF-8 format * * Response function is IRadioVoiceResponse.sendUssdResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void sendUssd(in int serial, in String ussd); @@ -363,6 +417,8 @@ oneway interface IRadioVoice { * @param gsmIndex contains Connection index (value of 'x' in CHLD above) * * Response function is IRadioVoiceResponse.separateConnectionResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void separateConnection(in int serial, in int gsmIndex); @@ -373,6 +429,8 @@ oneway interface IRadioVoice { * @param callInfo CallForwardInfo * * Response function is IRadioVoiceResponse.setCallForwardResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setCallForward(in int serial, in CallForwardInfo callInfo); @@ -384,6 +442,8 @@ oneway interface IRadioVoice { * @param serviceClass is the TS 27.007 service class bit vector of services to modify * * Response function is IRadioVoiceResponse.setCallWaitingResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setCallWaiting(in int serial, in boolean enable, in int serviceClass); @@ -394,6 +454,8 @@ oneway interface IRadioVoice { * @param status "n" parameter from TS 27.007 7.7 * * Response function is IRadioVoiceResponse.setClirResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setClir(in int serial, in int status); @@ -405,6 +467,8 @@ oneway interface IRadioVoice { * @param enable true for "enable mute" and false for "disable mute" * * Response function is IRadioVoiceResponse.setMuteResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setMute(in int serial, in boolean enable); @@ -416,6 +480,8 @@ oneway interface IRadioVoice { * true for Enhanced Privacy Mode (Private Long Code Mask) * * Response function is IRadioVoiceResponse.setPreferredVoicePrivacyResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setPreferredVoicePrivacy(in int serial, in boolean enable); @@ -424,6 +490,8 @@ oneway interface IRadioVoice { * * @param radioVoiceResponse Object containing response functions * @param radioVoiceIndication Object containing radio indications + * + * This is available when android.hardware.telephony.calling is defined. */ void setResponseFunctions(in IRadioVoiceResponse radioVoiceResponse, in IRadioVoiceIndication radioVoiceIndication); @@ -435,6 +503,8 @@ oneway interface IRadioVoice { * @param mode TtyMode * * Response function is IRadioVoiceResponse.setTtyModeResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void setTtyMode(in int serial, in TtyMode mode); @@ -445,6 +515,8 @@ oneway interface IRadioVoice { * @param enable true for "enable vonr" and false for "disable vonr" * * Response function is IRadioVoiceResponse.setVoNrEnabledResponse() + * + * This is available when android.hardware.telephony.ims is defined. */ void setVoNrEnabled(in int serial, in boolean enable); @@ -457,6 +529,8 @@ oneway interface IRadioVoice { * @param s string having a single character with one of 12 values: 0-9,*,# * * Response function is IRadioVoiceResponse.startDtmfResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void startDtmf(in int serial, in String s); @@ -466,6 +540,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.stopDtmfResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void stopDtmf(in int serial); @@ -483,6 +559,8 @@ oneway interface IRadioVoice { * @param serial Serial number of request. * * Response function is IRadioVoiceResponse.switchWaitingOrHoldingAndActiveResponse() + * + * This is available when android.hardware.telephony.calling is defined. */ void switchWaitingOrHoldingAndActive(in int serial); } diff --git a/radio/aidl/android/hardware/radio/voice/IRadioVoiceResponse.aidl b/radio/aidl/android/hardware/radio/voice/IRadioVoiceResponse.aidl index 21264dffd2..a904eaab43 100644 --- a/radio/aidl/android/hardware/radio/voice/IRadioVoiceResponse.aidl +++ b/radio/aidl/android/hardware/radio/voice/IRadioVoiceResponse.aidl @@ -33,6 +33,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_STATE @@ -61,6 +62,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SIM_BUSY @@ -81,6 +83,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:NO_MEMORY @@ -101,6 +104,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:DIAL_MODIFIED_TO_USSD @@ -129,6 +133,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:DIAL_MODIFIED_TO_USSD @@ -152,6 +157,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:OPERATION_NO_ALLOWED @@ -170,6 +176,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -196,6 +203,7 @@ oneway interface IRadioVoiceResponse { * CallForwardInfo must be returned with the service class set to "data + voice = 3". * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -223,6 +231,7 @@ oneway interface IRadioVoiceResponse { * for data and voice and disabled for everything else. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -245,6 +254,7 @@ oneway interface IRadioVoiceResponse { * @param status indicates CLIP status * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -264,6 +274,7 @@ oneway interface IRadioVoiceResponse { * @param m is "m" parameter from TS 27.007 7.7 * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -285,6 +296,7 @@ oneway interface IRadioVoiceResponse { * @param calls Current call list * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NO_MEMORY * RadioError:INTERNAL_ERR * RadioError:SYSTEM_ERR @@ -327,6 +339,7 @@ oneway interface IRadioVoiceResponse { * for tone generation or error notification. * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:NO_MEMORY * RadioError:RADIO_NOT_AVAILABLE @@ -346,6 +359,7 @@ oneway interface IRadioVoiceResponse { * @param enable true for "mute enabled" and false for "mute disabled" * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -367,6 +381,7 @@ oneway interface IRadioVoiceResponse { * true for Enhanced Privacy Mode (Private Long Code Mask) * * Valid errors: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -384,6 +399,7 @@ oneway interface IRadioVoiceResponse { * @param mode TtyMode * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -400,6 +416,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:NO_MEMORY @@ -417,6 +434,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INVALID_ARGUMENTS @@ -434,6 +452,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INVALID_STATE @@ -454,6 +473,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INVALID_STATE @@ -474,6 +494,7 @@ oneway interface IRadioVoiceResponse { * @param enable true for "vonr enabled" and false for "vonr disabled" * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.ims is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:MODEM_ERR @@ -486,6 +507,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INVALID_STATE @@ -507,6 +529,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -527,6 +550,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.cdma is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -547,6 +571,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -565,6 +590,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:FDN_CHECK_FAILURE @@ -590,6 +616,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -610,6 +637,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -632,6 +660,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:SS_MODIFIED_TO_DIAL @@ -654,6 +683,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:INVALID_ARGUMENTS * RadioError:RADIO_NOT_AVAILABLE @@ -672,6 +702,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -688,6 +719,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -705,6 +737,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -721,6 +754,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -734,6 +768,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -753,6 +788,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE * RadioError:INVALID_ARGUMENTS @@ -772,6 +808,7 @@ oneway interface IRadioVoiceResponse { * @param info Response info struct containing response type, serial no. and error * * Valid errors returned: + * RadioError:REQUEST_NOT_SUPPORTED when android.hardware.telephony.calling is not defined * RadioError:NONE * RadioError:RADIO_NOT_AVAILABLE (radio resetting) * RadioError:INVALID_STATE From d519aead5bdfc4dfe6fea06c4e8e994bb56d3264 Mon Sep 17 00:00:00 2001 From: joonhunshin Date: Tue, 31 Oct 2023 03:06:54 +0000 Subject: [PATCH 2/2] update vts to enforce telephony feature mapping Bug: 297989574 Test: build pass Change-Id: I74da66f0f066a9da3a97901b992ea02adf3fece2 --- radio/aidl/vts/Android.bp | 5 + radio/aidl/vts/radio_aidl_hal_utils.h | 15 + radio/aidl/vts/radio_config_test.cpp | 49 +++ radio/aidl/vts/radio_data_test.cpp | 76 ++++ radio/aidl/vts/radio_messaging_test.cpp | 147 ++++++++ radio/aidl/vts/radio_modem_test.cpp | 91 +++++ radio/aidl/vts/radio_network_test.cpp | 448 ++++++++++++++++++++++++ radio/aidl/vts/radio_sap_test.cpp | 56 +++ radio/aidl/vts/radio_sim_test.cpp | 245 +++++++++++++ radio/aidl/vts/radio_voice_test.cpp | 321 +++++++++++++++-- 10 files changed, 1429 insertions(+), 24 deletions(-) diff --git a/radio/aidl/vts/Android.bp b/radio/aidl/vts/Android.bp index ddb1b335dd..d985686370 100644 --- a/radio/aidl/vts/Android.bp +++ b/radio/aidl/vts/Android.bp @@ -66,9 +66,13 @@ cc_test { "radio_voice_test.cpp", "VtsHalRadioTargetTest.cpp", ], + header_libs: [ + "jni_headers", + ], shared_libs: [ "libbinder_ndk", "libvintf", + "server_configurable_flags", ], static_libs: [ "android.hardware.radio-V3-ndk", @@ -82,6 +86,7 @@ cc_test { "android.hardware.radio.sap-V1-ndk", "android.hardware.radio.sim-V3-ndk", "android.hardware.radio.voice-V3-ndk", + "telephony_flags_c_lib", ], test_suites: [ "general-tests", diff --git a/radio/aidl/vts/radio_aidl_hal_utils.h b/radio/aidl/vts/radio_aidl_hal_utils.h index d8aa02431e..aea5cee2b1 100644 --- a/radio/aidl/vts/radio_aidl_hal_utils.h +++ b/radio/aidl/vts/radio_aidl_hal_utils.h @@ -24,6 +24,7 @@ #include #include #include +#include #include using namespace aidl::android::hardware::radio; @@ -31,6 +32,8 @@ using aidl::android::hardware::radio::config::SimSlotStatus; using aidl::android::hardware::radio::network::RegState; using aidl::android::hardware::radio::sim::CardStatus; +namespace telephony_flags = com::android::internal::telephony::flags; + extern CardStatus cardStatus; extern SimSlotStatus slotStatus; extern int serial; @@ -68,6 +71,18 @@ static constexpr const char* FEATURE_TELEPHONY_CDMA = "android.hardware.telephon static constexpr const char* FEATURE_TELEPHONY_IMS = "android.hardware.telephony.ims"; +static constexpr const char* FEATURE_TELEPHONY_CALLING = "android.hardware.telephony.calling"; + +static constexpr const char* FEATURE_TELEPHONY_DATA = "android.hardware.telephony.data"; + +static constexpr const char* FEATURE_TELEPHONY_MESSAGING = "android.hardware.telephony.messaging"; + +static constexpr const char* FEATURE_TELEPHONY_SUBSCRIPTION = + "android.hardware.telephony.subscription"; + +static constexpr const char* FEATURE_TELEPHONY_RADIO_ACCESS = + "android.hardware.telephony.radio.access"; + #define MODEM_EMERGENCY_CALL_ESTABLISH_TIME 3 #define MODEM_EMERGENCY_CALL_DISCONNECT_TIME 3 #define MODEM_SET_SIM_POWER_DELAY_IN_SECONDS 2 diff --git a/radio/aidl/vts/radio_config_test.cpp b/radio/aidl/vts/radio_config_test.cpp index aed3b05b4f..d8c0142ccd 100644 --- a/radio/aidl/vts/radio_config_test.cpp +++ b/radio/aidl/vts/radio_config_test.cpp @@ -54,6 +54,13 @@ void RadioConfigTest::updateSimSlotStatus() { * Test IRadioConfig.getHalDeviceCapabilities() for the response returned. */ TEST_P(RadioConfigTest, getHalDeviceCapabilities) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getHalDeviceCapabilities " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_config->getHalDeviceCapabilities(serial); ASSERT_OK(res); @@ -66,6 +73,13 @@ TEST_P(RadioConfigTest, getHalDeviceCapabilities) { * Test IRadioConfig.getSimSlotsStatus() for the response returned. */ TEST_P(RadioConfigTest, getSimSlotsStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getSimSlotsStatus " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_config->getSimSlotsStatus(serial); ASSERT_OK(res); @@ -78,6 +92,13 @@ TEST_P(RadioConfigTest, getSimSlotsStatus) { * Test IRadioConfig.getPhoneCapability() for the response returned. */ TEST_P(RadioConfigTest, getPhoneCapability) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getPhoneCapability " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_config->getPhoneCapability(serial); ASSERT_OK(res); @@ -104,6 +125,13 @@ TEST_P(RadioConfigTest, getPhoneCapability) { * Test IRadioConfig.setPreferredDataModem() for the response returned. */ TEST_P(RadioConfigTest, setPreferredDataModem) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setPreferredDataModem " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_config->getPhoneCapability(serial); ASSERT_OK(res); @@ -146,6 +174,13 @@ TEST_P(RadioConfigTest, setPreferredDataModem) { * Test IRadioConfig.setPreferredDataModem() with invalid arguments. */ TEST_P(RadioConfigTest, setPreferredDataModem_invalidArgument) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setPreferredDataModem_invalidArgument " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); uint8_t modemId = -1; ndk::ScopedAStatus res = radio_config->setPreferredDataModem(serial, modemId); @@ -166,6 +201,13 @@ TEST_P(RadioConfigTest, setPreferredDataModem_invalidArgument) { * Test IRadioConfig.setSimSlotsMapping() for the response returned. */ TEST_P(RadioConfigTest, setSimSlotsMapping) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setSimSlotsMapping " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + // get slot status and set SIM slots mapping based on the result. updateSimSlotStatus(); if (radioRsp_config->rspInfo.error == RadioError::NONE) { @@ -227,6 +269,13 @@ TEST_P(RadioConfigTest, setSimSlotsMapping) { */ TEST_P(RadioConfigTest, checkPortInfoExistsAndPortActive) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping checkPortInfoExistsAndPortActive " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_config->getSimSlotsStatus(serial); ASSERT_OK(res); diff --git a/radio/aidl/vts/radio_data_test.cpp b/radio/aidl/vts/radio_data_test.cpp index f31c254277..2aa5508b01 100644 --- a/radio/aidl/vts/radio_data_test.cpp +++ b/radio/aidl/vts/radio_data_test.cpp @@ -68,6 +68,12 @@ ndk::ScopedAStatus RadioDataTest::getDataCallList() { * Test IRadioData.setupDataCall() for the response returned. */ TEST_P(RadioDataTest, setupDataCall) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "setupDataCall : required FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); AccessNetwork accessNetwork = AccessNetwork::EUTRAN; @@ -135,6 +141,13 @@ TEST_P(RadioDataTest, setupDataCall) { * Test IRadioData.setupDataCall() with osAppId for the response returned. */ TEST_P(RadioDataTest, setupDataCall_osAppId) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setupDataCall_osAppId " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); AccessNetwork accessNetwork = AccessNetwork::EUTRAN; @@ -227,6 +240,13 @@ TEST_P(RadioDataTest, setupDataCall_osAppId) { * Test IRadioData.getSlicingConfig() for the response returned. */ TEST_P(RadioDataTest, getSlicingConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping getSlicingConfig " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); radio_data->getSlicingConfig(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -242,6 +262,13 @@ TEST_P(RadioDataTest, getSlicingConfig) { * Test IRadioData.setDataThrottling() for the response returned. */ TEST_P(RadioDataTest, setDataThrottling) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setDataThrottling " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_data->setDataThrottling( @@ -320,6 +347,13 @@ TEST_P(RadioDataTest, setDataThrottling) { * Test IRadioData.setInitialAttachApn() for the response returned. */ TEST_P(RadioDataTest, setInitialAttachApn) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setInitialAttachApn " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); // Create a dataProfileInfo @@ -363,6 +397,13 @@ TEST_P(RadioDataTest, setInitialAttachApn) { * Test IRadioData.setDataProfile() for the response returned. */ TEST_P(RadioDataTest, setDataProfile) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setDataProfile " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); // Create a dataProfileInfo @@ -409,6 +450,13 @@ TEST_P(RadioDataTest, setDataProfile) { * Test IRadioData.deactivateDataCall() for the response returned. */ TEST_P(RadioDataTest, deactivateDataCall) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping deactivateDataCall " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); int cid = 1; DataRequestReason reason = DataRequestReason::NORMAL; @@ -440,6 +488,13 @@ TEST_P(RadioDataTest, deactivateDataCall) { * Test IRadioData.startKeepalive() for the response returned. */ TEST_P(RadioDataTest, startKeepalive) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping startKeepalive " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + std::vector requests = { { // Invalid IPv4 source address @@ -538,6 +593,13 @@ TEST_P(RadioDataTest, startKeepalive) { * Test IRadioData.stopKeepalive() for the response returned. */ TEST_P(RadioDataTest, stopKeepalive) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping stopKeepalive " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); radio_data->stopKeepalive(serial, 0xBAD); @@ -554,6 +616,13 @@ TEST_P(RadioDataTest, stopKeepalive) { * Test IRadioData.getDataCallList() for the response returned. */ TEST_P(RadioDataTest, getDataCallList) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping getDataCallList " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); radio_data->getDataCallList(serial); @@ -573,6 +642,13 @@ TEST_P(RadioDataTest, getDataCallList) { * Test IRadioData.setDataAllowed() for the response returned. */ TEST_P(RadioDataTest, setDataAllowed) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_DATA)) { + GTEST_SKIP() << "Skipping setDataAllowed " + "due to undefined FEATURE_TELEPHONY_DATA"; + } + } + serial = GetRandomSerialNumber(); bool allow = true; diff --git a/radio/aidl/vts/radio_messaging_test.cpp b/radio/aidl/vts/radio_messaging_test.cpp index 4ab88d2d8a..95e261790b 100644 --- a/radio/aidl/vts/radio_messaging_test.cpp +++ b/radio/aidl/vts/radio_messaging_test.cpp @@ -59,6 +59,13 @@ void RadioMessagingTest::SetUp() { * Test IRadioMessaging.sendSms() for the response returned. */ TEST_P(RadioMessagingTest, sendSms) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping sendSms " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); GsmSmsMessage msg; msg.smscPdu = ""; @@ -83,6 +90,13 @@ TEST_P(RadioMessagingTest, sendSms) { * Test IRadioMessaging.sendSmsExpectMore() for the response returned. */ TEST_P(RadioMessagingTest, sendSmsExpectMore) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping sendSmsExpectMore " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); GsmSmsMessage msg; msg.smscPdu = ""; @@ -106,6 +120,13 @@ TEST_P(RadioMessagingTest, sendSmsExpectMore) { * Test IRadioMessaging.sendCdmaSms() for the response returned. */ TEST_P(RadioMessagingTest, sendCdmaSms) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping sendCdmaSms " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); // Create a CdmaSmsAddress @@ -150,6 +171,13 @@ TEST_P(RadioMessagingTest, sendCdmaSms) { * Test IRadioMessaging.sendCdmaSmsExpectMore() for the response returned. */ TEST_P(RadioMessagingTest, sendCdmaSmsExpectMore) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping sendCdmaSmsExpectMore " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); // Create a CdmaSmsAddress @@ -194,6 +222,13 @@ TEST_P(RadioMessagingTest, sendCdmaSmsExpectMore) { * Test IRadioMessaging.setGsmBroadcastConfig() for the response returned. */ TEST_P(RadioMessagingTest, setGsmBroadcastConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping setGsmBroadcastConfig " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); // Create GsmBroadcastSmsConfigInfo #1 @@ -257,6 +292,13 @@ TEST_P(RadioMessagingTest, setGsmBroadcastConfig) { * Test IRadioMessaging.getGsmBroadcastConfig() for the response returned. */ TEST_P(RadioMessagingTest, getGsmBroadcastConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping getGsmBroadcastConfig " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); radio_messaging->getGsmBroadcastConfig(serial); @@ -277,6 +319,13 @@ TEST_P(RadioMessagingTest, getGsmBroadcastConfig) { * Test IRadioMessaging.setCdmaBroadcastConfig() for the response returned. */ TEST_P(RadioMessagingTest, setCdmaBroadcastConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping setCdmaBroadcastConfig " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); CdmaBroadcastSmsConfigInfo cbSmsConfig; @@ -303,6 +352,13 @@ TEST_P(RadioMessagingTest, setCdmaBroadcastConfig) { * Test IRadioMessaging.getCdmaBroadcastConfig() for the response returned. */ TEST_P(RadioMessagingTest, getCdmaBroadcastConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping getCdmaBroadcastConfig " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_messaging->getCdmaBroadcastConfig(serial); @@ -321,6 +377,13 @@ TEST_P(RadioMessagingTest, getCdmaBroadcastConfig) { * Test IRadioMessaging.setCdmaBroadcastActivation() for the response returned. */ TEST_P(RadioMessagingTest, setCdmaBroadcastActivation) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping setCdmaBroadcastActivation " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); bool activate = false; @@ -341,6 +404,13 @@ TEST_P(RadioMessagingTest, setCdmaBroadcastActivation) { * Test IRadioMessaging.setGsmBroadcastActivation() for the response returned. */ TEST_P(RadioMessagingTest, setGsmBroadcastActivation) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping setGsmBroadcastActivation " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); bool activate = false; @@ -363,6 +433,13 @@ TEST_P(RadioMessagingTest, setGsmBroadcastActivation) { * Test IRadioMessaging.acknowledgeLastIncomingGsmSms() for the response returned. */ TEST_P(RadioMessagingTest, acknowledgeLastIncomingGsmSms) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping acknowledgeLastIncomingGsmSms " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); bool success = true; @@ -384,6 +461,13 @@ TEST_P(RadioMessagingTest, acknowledgeLastIncomingGsmSms) { * Test IRadioMessaging.acknowledgeIncomingGsmSmsWithPdu() for the response returned. */ TEST_P(RadioMessagingTest, acknowledgeIncomingGsmSmsWithPdu) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping acknowledgeIncomingGsmSmsWithPdu " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); bool success = true; std::string ackPdu = ""; @@ -405,6 +489,13 @@ TEST_P(RadioMessagingTest, acknowledgeIncomingGsmSmsWithPdu) { * Test IRadioMessaging.acknowledgeLastIncomingCdmaSms() for the response returned. */ TEST_P(RadioMessagingTest, acknowledgeLastIncomingCdmaSms) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping acknowledgeIncomingGsmSmsWithPdu " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); // Create a CdmaSmsAck @@ -429,6 +520,13 @@ TEST_P(RadioMessagingTest, acknowledgeLastIncomingCdmaSms) { * Test IRadioMessaging.sendImsSms() for the response returned. */ TEST_P(RadioMessagingTest, sendImsSms) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_IMS)) { + GTEST_SKIP() << "Skipping acknowledgeIncomingGsmSmsWithPdu " + "due to undefined FEATURE_TELEPHONY_IMS"; + } + } + serial = GetRandomSerialNumber(); // Create a CdmaSmsAddress @@ -479,6 +577,13 @@ TEST_P(RadioMessagingTest, sendImsSms) { * Test IRadioMessaging.getSmscAddress() for the response returned. */ TEST_P(RadioMessagingTest, getSmscAddress) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping getSmscAddress " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); radio_messaging->getSmscAddress(serial); @@ -499,6 +604,13 @@ TEST_P(RadioMessagingTest, getSmscAddress) { * Test IRadioMessaging.setSmscAddress() for the response returned. */ TEST_P(RadioMessagingTest, setSmscAddress) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping setSmscAddress " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); std::string address = std::string("smscAddress"); @@ -520,6 +632,13 @@ TEST_P(RadioMessagingTest, setSmscAddress) { * Test IRadioMessaging.writeSmsToSim() for the response returned. */ TEST_P(RadioMessagingTest, writeSmsToSim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping writeSmsToSim " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); SmsWriteArgs smsWriteArgs; smsWriteArgs.status = SmsWriteArgs::STATUS_REC_UNREAD; @@ -546,6 +665,13 @@ TEST_P(RadioMessagingTest, writeSmsToSim) { * Test IRadioMessaging.deleteSmsOnSim() for the response returned. */ TEST_P(RadioMessagingTest, deleteSmsOnSim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping deleteSmsOnSim " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); int index = 1; @@ -569,6 +695,13 @@ TEST_P(RadioMessagingTest, deleteSmsOnSim) { * Test IRadioMessaging.writeSmsToRuim() for the response returned. */ TEST_P(RadioMessagingTest, writeSmsToRuim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping writeSmsToRuim " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); // Create a CdmaSmsAddress @@ -620,6 +753,13 @@ TEST_P(RadioMessagingTest, writeSmsToRuim) { * Test IRadioMessaging.deleteSmsOnRuim() for the response returned. */ TEST_P(RadioMessagingTest, deleteSmsOnRuim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping deleteSmsOnRuim " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); int index = 1; @@ -671,6 +811,13 @@ TEST_P(RadioMessagingTest, deleteSmsOnRuim) { * Test IRadioMessaging.reportSmsMemoryStatus() for the response returned. */ TEST_P(RadioMessagingTest, reportSmsMemoryStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_MESSAGING)) { + GTEST_SKIP() << "Skipping reportSmsMemoryStatus " + "due to undefined FEATURE_TELEPHONY_MESSAGING"; + } + } + serial = GetRandomSerialNumber(); bool available = true; diff --git a/radio/aidl/vts/radio_modem_test.cpp b/radio/aidl/vts/radio_modem_test.cpp index c48a46104a..6a9996bb1d 100644 --- a/radio/aidl/vts/radio_modem_test.cpp +++ b/radio/aidl/vts/radio_modem_test.cpp @@ -59,6 +59,13 @@ void RadioModemTest::SetUp() { * Test IRadioModem.setRadioPower() for the response returned. */ TEST_P(RadioModemTest, setRadioPower_emergencyCall_cancelled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setRadioPower_emergencyCall_cancelled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + // Set radio power to off. serial = GetRandomSerialNumber(); radio_modem->setRadioPower(serial, false, false, false); @@ -90,6 +97,13 @@ TEST_P(RadioModemTest, setRadioPower_emergencyCall_cancelled) { * Test IRadioModem.enableModem() for the response returned. */ TEST_P(RadioModemTest, enableModem) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping enableModem " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); if (isSsSsEnabled()) { @@ -134,6 +148,13 @@ TEST_P(RadioModemTest, enableModem) { * Test IRadioModem.getModemStackStatus() for the response returned. */ TEST_P(RadioModemTest, getModemStackStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getModemStackStatus " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_modem->getModemStackStatus(serial); @@ -152,6 +173,13 @@ TEST_P(RadioModemTest, getModemStackStatus) { * Test IRadioModem.getBasebandVersion() for the response returned. */ TEST_P(RadioModemTest, getBasebandVersion) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getBasebandVersion " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); radio_modem->getBasebandVersion(serial); @@ -168,6 +196,13 @@ TEST_P(RadioModemTest, getBasebandVersion) { * Test IRadioModem.getDeviceIdentity() for the response returned. */ TEST_P(RadioModemTest, getDeviceIdentity) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getDeviceIdentity " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); radio_modem->getDeviceIdentity(serial); @@ -185,6 +220,13 @@ TEST_P(RadioModemTest, getDeviceIdentity) { * Test IRadioModem.getImei() for the response returned. */ TEST_P(RadioModemTest, getImei) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM)) { + GTEST_SKIP() << "Skipping getImei " + "due to undefined FEATURE_TELEPHONY_GSM"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_modem->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -246,6 +288,13 @@ TEST_P(RadioModemTest, nvWriteItem) { * Test IRadioModem.nvWriteCdmaPrl() for the response returned. */ TEST_P(RadioModemTest, nvWriteCdmaPrl) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping nvWriteCdmaPrl " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); std::vector prl = {1, 2, 3, 4, 5}; @@ -283,6 +332,13 @@ TEST_P(RadioModemTest, nvResetConfig) { * Test IRadioModem.getHardwareConfig() for the response returned. */ TEST_P(RadioModemTest, getHardwareConfig) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getHardwareConfig " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); radio_modem->getHardwareConfig(serial); @@ -302,6 +358,13 @@ TEST_P(RadioModemTest, getHardwareConfig) { * Test IRadioModem.requestShutdown() for the response returned. */ TEST_P(RadioModemTest, DISABLED_requestShutdown) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping DISABLED_requestShutdown " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_modem->requestShutdown(serial); @@ -319,6 +382,13 @@ TEST_P(RadioModemTest, DISABLED_requestShutdown) { * Test IRadioModem.getRadioCapability() for the response returned. */ TEST_P(RadioModemTest, getRadioCapability) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getRadioCapability " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_modem->getRadioCapability(serial); @@ -335,6 +405,13 @@ TEST_P(RadioModemTest, getRadioCapability) { * Test IRadioModem.setRadioCapability() for the response returned. */ TEST_P(RadioModemTest, setRadioCapability) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setRadioCapability " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); RadioCapability rc; memset(&rc, 0, sizeof(rc)); @@ -356,6 +433,13 @@ TEST_P(RadioModemTest, setRadioCapability) { * Test IRadioModem.getModemActivityInfo() for the response returned. */ TEST_P(RadioModemTest, getModemActivityInfo) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getModemActivityInfo " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_modem->getModemActivityInfo(serial); @@ -373,6 +457,13 @@ TEST_P(RadioModemTest, getModemActivityInfo) { * Test IRadioModem.sendDeviceState() for the response returned. */ TEST_P(RadioModemTest, sendDeviceState) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping sendDeviceState " + "due to undefined FEATURE_TELEPHONY"; + } + } + serial = GetRandomSerialNumber(); radio_modem->sendDeviceState(serial, DeviceStateType::POWER_SAVE_MODE, true); diff --git a/radio/aidl/vts/radio_network_test.cpp b/radio/aidl/vts/radio_network_test.cpp index 4e84116e7b..a531749c15 100644 --- a/radio/aidl/vts/radio_network_test.cpp +++ b/radio/aidl/vts/radio_network_test.cpp @@ -81,6 +81,13 @@ void RadioNetworkTest::stopNetworkScan() { * for the response returned. */ TEST_P(RadioNetworkTest, setGetAllowedNetworkTypesBitmap) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setGetAllowedNetworkTypesBitmap " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); // save current value @@ -133,6 +140,13 @@ TEST_P(RadioNetworkTest, setGetAllowedNetworkTypesBitmap) { * Test IRadioNetwork.setNrDualConnectivityState() for the response returned. */ TEST_P(RadioNetworkTest, setNrDualConnectivityState) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setNrDualConnectivityState " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = @@ -157,6 +171,13 @@ TEST_P(RadioNetworkTest, setNrDualConnectivityState) { * Test IRadioNetwork.isNrDualConnectivityEnabled() for the response returned. */ TEST_P(RadioNetworkTest, isNrDualConnectivityEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping isNrDualConnectivityEnabled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->isNrDualConnectivityEnabled(serial); @@ -195,6 +216,13 @@ void RadioNetworkTest::invokeAndExpectResponse( * Verify that the usage setting can be retrieved. */ TEST_P(RadioNetworkTest, getUsageSetting) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping getUsageSetting " + "due to undefined FEATURE_TELEPHONY"; + } + } + invokeAndExpectResponse([&](int serial) { return radio_network->getUsageSetting(serial); }, {RadioError::RADIO_NOT_AVAILABLE, RadioError::INVALID_STATE, RadioError::SIM_ABSENT, RadioError::INTERNAL_ERR, RadioError::NONE}); @@ -232,6 +260,13 @@ void RadioNetworkTest::testSetUsageSetting_InvalidValues(std::vector * -That the usage setting cannot be set to invalid values. */ TEST_P(RadioNetworkTest, setUsageSetting) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY)) { + GTEST_SKIP() << "Skipping setUsageSetting " + "due to undefined FEATURE_TELEPHONY"; + } + } + invokeAndExpectResponse([&](int serial) { return radio_network->getUsageSetting(serial); }, {RadioError::RADIO_NOT_AVAILABLE, RadioError::INVALID_STATE, RadioError::SIM_ABSENT, RadioError::INTERNAL_ERR, RadioError::NONE}); @@ -294,6 +329,13 @@ TEST_P(RadioNetworkTest, setUsageSetting) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() with invalid hysteresisDb */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_invalidHysteresisDb) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_invalidHysteresisDb " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -320,6 +362,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_invalidHysteresisDb) * Test IRadioNetwork.setSignalStrengthReportingCriteria() with empty thresholds */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_EmptyThresholds) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_EmptyThresholds " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -345,6 +394,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_EmptyThresholds) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for GERAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Geran) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Geran " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -372,6 +428,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Geran) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for UTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Utran_Rscp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Utran_Rscp " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -398,6 +461,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Utran_Rscp) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for UTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Utran_Ecno) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Utran_Ecno " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -425,6 +495,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Utran_Ecno) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for EUTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSRP) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Eutran_RSRP " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -451,6 +528,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSRP) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for EUTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSRQ) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Eutran_RSRQ " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -477,6 +561,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSRQ) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for EUTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSSNR) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Eutran_RSSNR " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -499,6 +590,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Eutran_RSSNR) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for CDMA2000 */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Cdma2000) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Cdma2000 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -525,6 +623,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Cdma2000) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for NGRAN_SSRSRP */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSRSRP) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_NGRAN_SSRSRP " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -555,6 +660,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSRSRP) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for NGRAN_SSRSRQ */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSRSRQ) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_NGRAN_SSRSRQ " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -585,6 +697,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSRSRQ) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for EUTRAN */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Disable_RSSNR) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_Disable_RSSNR " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -607,6 +726,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_Disable_RSSNR) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for NGRAN_SSSINR */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSSINR) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_NGRAN_SSSINR " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); SignalThresholdInfo signalThresholdInfo; @@ -637,6 +763,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_NGRAN_SSSINR) { * Test IRadioNetwork.setSignalStrengthReportingCriteria() for multi-RANs per request */ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_multiRansPerRequest) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSignalStrengthReportingCriteria_multiRansPerRequest " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + SignalThresholdInfo signalThresholdInfoGeran; signalThresholdInfoGeran.signalMeasurement = SignalThresholdInfo::SIGNAL_MEASUREMENT_TYPE_RSSI; signalThresholdInfoGeran.hysteresisMs = 5000; @@ -720,6 +853,13 @@ TEST_P(RadioNetworkTest, setSignalStrengthReportingCriteria_multiRansPerRequest) * Test IRadioNetwork.setLinkCapacityReportingCriteria() invalid hysteresisDlKbps */ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_invalidHysteresisDlKbps) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setLinkCapacityReportingCriteria_invalidHysteresisDlKbps " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->setLinkCapacityReportingCriteria( @@ -740,6 +880,13 @@ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_invalidHysteresisDlKbp * Test IRadioNetwork.setLinkCapacityReportingCriteria() invalid hysteresisUlKbps */ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_invalidHysteresisUlKbps) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setLinkCapacityReportingCriteria_invalidHysteresisUlKbps " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->setLinkCapacityReportingCriteria( @@ -759,6 +906,13 @@ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_invalidHysteresisUlKbp * Test IRadioNetwork.setLinkCapacityReportingCriteria() empty params */ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_emptyParams) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setLinkCapacityReportingCriteria_emptyParams " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->setLinkCapacityReportingCriteria( @@ -777,6 +931,13 @@ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_emptyParams) { * Test IRadioNetwork.setLinkCapacityReportingCriteria() for GERAN */ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_Geran) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setLinkCapacityReportingCriteria_Geran " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->setLinkCapacityReportingCriteria( @@ -799,6 +960,13 @@ TEST_P(RadioNetworkTest, setLinkCapacityReportingCriteria_Geran) { * Test IRadioNetwork.setSystemSelectionChannels() for the response returned. */ TEST_P(RadioNetworkTest, setSystemSelectionChannels) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setSystemSelectionChannels " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getSystemSelectionChannels(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -848,6 +1016,13 @@ TEST_P(RadioNetworkTest, setSystemSelectionChannels) { * Test IRadioNetwork.startNetworkScan() for the response returned. */ TEST_P(RadioNetworkTest, startNetworkScan) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -890,6 +1065,13 @@ TEST_P(RadioNetworkTest, startNetworkScan) { * Test IRadioNetwork.startNetworkScan() with invalid specifier. */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidArgument) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidArgument " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, .interval = 60}; @@ -915,6 +1097,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidArgument) { * Test IRadioNetwork.startNetworkScan() with invalid interval (lower boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidInterval1) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidInterval1 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_PERIODIC, @@ -944,6 +1133,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidInterval1) { * Test IRadioNetwork.startNetworkScan() with invalid interval (upper boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidInterval2) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidInterval2 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_PERIODIC, @@ -973,6 +1169,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidInterval2) { * Test IRadioNetwork.startNetworkScan() with invalid max search time (lower boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidMaxSearchTime1) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidMaxSearchTime1 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1002,6 +1205,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidMaxSearchTime1) { * Test IRadioNetwork.startNetworkScan() with invalid max search time (upper boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidMaxSearchTime2) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidMaxSearchTime2 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1031,6 +1241,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidMaxSearchTime2) { * Test IRadioNetwork.startNetworkScan() with invalid periodicity (lower boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidPeriodicity1) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidPeriodicity1 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1060,6 +1277,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidPeriodicity1) { * Test IRadioNetwork.startNetworkScan() with invalid periodicity (upper boundary). */ TEST_P(RadioNetworkTest, startNetworkScan_InvalidPeriodicity2) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_InvalidPeriodicity2 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1089,6 +1313,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_InvalidPeriodicity2) { * Test IRadioNetwork.startNetworkScan() with valid periodicity */ TEST_P(RadioNetworkTest, startNetworkScan_GoodRequest1) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_GoodRequest1 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1123,6 +1354,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_GoodRequest1) { * Test IRadioNetwork.startNetworkScan() with valid periodicity and plmns */ TEST_P(RadioNetworkTest, startNetworkScan_GoodRequest2) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping startNetworkScan_GoodRequest2 " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); NetworkScanRequest request = {.type = NetworkScanRequest::SCAN_TYPE_ONE_SHOT, @@ -1158,6 +1396,13 @@ TEST_P(RadioNetworkTest, startNetworkScan_GoodRequest2) { * Test IRadioNetwork.setNetworkSelectionModeManual() for the response returned. */ TEST_P(RadioNetworkTest, setNetworkSelectionModeManual) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setNetworkSelectionModeManual " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); // can't camp on nonexistent MCCMNC, so we expect this to fail. @@ -1186,6 +1431,13 @@ TEST_P(RadioNetworkTest, setNetworkSelectionModeManual) { * Test IRadioNetwork.getBarringInfo() for the response returned. */ TEST_P(RadioNetworkTest, getBarringInfo) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getBarringInfo " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getBarringInfo(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -1290,6 +1542,13 @@ TEST_P(RadioNetworkTest, getBarringInfo) { * Test IRadioNetwork.getSignalStrength() for the response returned. */ TEST_P(RadioNetworkTest, getSignalStrength) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getSignalStrength " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getSignalStrength(serial); @@ -1309,6 +1568,13 @@ TEST_P(RadioNetworkTest, getSignalStrength) { * Test IRadioNetwork.getCellInfoList() for the response returned. */ TEST_P(RadioNetworkTest, getCellInfoList) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getCellInfoList " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getCellInfoList(serial); @@ -1327,6 +1593,13 @@ TEST_P(RadioNetworkTest, getCellInfoList) { * Test IRadioNetwork.getVoiceRegistrationState() for the response returned. */ TEST_P(RadioNetworkTest, getVoiceRegistrationState) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getVoiceRegistrationState " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getVoiceRegistrationState(serial); @@ -1345,6 +1618,13 @@ TEST_P(RadioNetworkTest, getVoiceRegistrationState) { * Test IRadioNetwork.getDataRegistrationState() for the response returned. */ TEST_P(RadioNetworkTest, getDataRegistrationState) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getDataRegistrationState " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getDataRegistrationState(serial); @@ -1440,6 +1720,13 @@ TEST_P(RadioNetworkTest, getDataRegistrationState) { * Test IRadioNetwork.getAvailableBandModes() for the response returned. */ TEST_P(RadioNetworkTest, getAvailableBandModes) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getAvailableBandModes " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = radio_network->getAvailableBandModes(serial); @@ -1469,6 +1756,13 @@ TEST_P(RadioNetworkTest, getAvailableBandModes) { * Test IRadioNetwork.setIndicationFilter() */ TEST_P(RadioNetworkTest, setIndicationFilter) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setIndicationFilter " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = @@ -1487,6 +1781,13 @@ TEST_P(RadioNetworkTest, setIndicationFilter) { * Test IRadioNetwork.setBarringPassword() for the response returned. */ TEST_P(RadioNetworkTest, setBarringPassword) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setBarringPassword " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); std::string facility = ""; std::string oldPassword = ""; @@ -1510,6 +1811,13 @@ TEST_P(RadioNetworkTest, setBarringPassword) { * Test IRadioNetwork.setSuppServiceNotifications() for the response returned. */ TEST_P(RadioNetworkTest, setSuppServiceNotifications) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setSuppServiceNotifications " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); bool enable = false; @@ -1529,6 +1837,13 @@ TEST_P(RadioNetworkTest, setSuppServiceNotifications) { * Test IRadioNetwork.getImsRegistrationState() for the response returned. */ TEST_P(RadioNetworkTest, getImsRegistrationState) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_IMS)) { + GTEST_SKIP() << "Skipping getImsRegistrationState " + "due to undefined FEATURE_TELEPHONY_IMS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getImsRegistrationState(serial); @@ -1549,6 +1864,13 @@ TEST_P(RadioNetworkTest, getImsRegistrationState) { * Test IRadioNetwork.getOperator() for the response returned. */ TEST_P(RadioNetworkTest, getOperator) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getOperator " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getOperator(serial); @@ -1565,6 +1887,13 @@ TEST_P(RadioNetworkTest, getOperator) { * Test IRadioNetwork.getNetworkSelectionMode() for the response returned. */ TEST_P(RadioNetworkTest, getNetworkSelectionMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getNetworkSelectionMode " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getNetworkSelectionMode(serial); @@ -1581,6 +1910,13 @@ TEST_P(RadioNetworkTest, getNetworkSelectionMode) { * Test IRadioNetwork.setNetworkSelectionModeAutomatic() for the response returned. */ TEST_P(RadioNetworkTest, setNetworkSelectionModeAutomatic) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setNetworkSelectionModeAutomatic " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->setNetworkSelectionModeAutomatic(serial); @@ -1600,6 +1936,13 @@ TEST_P(RadioNetworkTest, setNetworkSelectionModeAutomatic) { * Test IRadioNetwork.getAvailableNetworks() for the response returned. */ TEST_P(RadioNetworkTest, getAvailableNetworks) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getAvailableNetworks " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getAvailableNetworks(serial); @@ -1621,6 +1964,13 @@ TEST_P(RadioNetworkTest, getAvailableNetworks) { * Test IRadioNetwork.setBandMode() for the response returned. */ TEST_P(RadioNetworkTest, setBandMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setBandMode " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->setBandMode(serial, RadioBandMode::BAND_MODE_USA); @@ -1638,6 +1988,13 @@ TEST_P(RadioNetworkTest, setBandMode) { * Test IRadioNetwork.setLocationUpdates() for the response returned. */ TEST_P(RadioNetworkTest, setLocationUpdates) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setLocationUpdates " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->setLocationUpdates(serial, true); @@ -1655,6 +2012,13 @@ TEST_P(RadioNetworkTest, setLocationUpdates) { * Test IRadioNetwork.setCdmaRoamingPreference() for the response returned. */ TEST_P(RadioNetworkTest, setCdmaRoamingPreference) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping setCdmaRoamingPreference " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_network->setCdmaRoamingPreference(serial, CdmaRoamingType::HOME_NETWORK); @@ -1673,6 +2037,13 @@ TEST_P(RadioNetworkTest, setCdmaRoamingPreference) { * Test IRadioNetwork.getCdmaRoamingPreference() for the response returned. */ TEST_P(RadioNetworkTest, getCdmaRoamingPreference) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping getCdmaRoamingPreference " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_network->getCdmaRoamingPreference(serial); @@ -1692,6 +2063,13 @@ TEST_P(RadioNetworkTest, getCdmaRoamingPreference) { * Test IRadioNetwork.getVoiceRadioTechnology() for the response returned. */ TEST_P(RadioNetworkTest, getVoiceRadioTechnology) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping getVoiceRadioTechnology " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->getVoiceRadioTechnology(serial); @@ -1708,6 +2086,13 @@ TEST_P(RadioNetworkTest, getVoiceRadioTechnology) { * Test IRadioNetwork.setCellInfoListRate() for the response returned. */ TEST_P(RadioNetworkTest, setCellInfoListRate) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setCellInfoListRate " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->setCellInfoListRate(serial, 10); @@ -1725,6 +2110,13 @@ TEST_P(RadioNetworkTest, setCellInfoListRate) { * Test IRadioNetwork.supplyNetworkDepersonalization() for the response returned. */ TEST_P(RadioNetworkTest, supplyNetworkDepersonalization) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping supplyNetworkDepersonalization " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + serial = GetRandomSerialNumber(); radio_network->supplyNetworkDepersonalization(serial, std::string("test")); @@ -1745,6 +2137,13 @@ TEST_P(RadioNetworkTest, supplyNetworkDepersonalization) { * Test IRadioNetwork.setEmergencyMode() for the response returned. */ TEST_P(RadioNetworkTest, setEmergencyMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setEmergencyMode " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1774,6 +2173,13 @@ TEST_P(RadioNetworkTest, setEmergencyMode) { * Test IRadioNetwork.triggerEmergencyNetworkScan() for the response returned. */ TEST_P(RadioNetworkTest, triggerEmergencyNetworkScan) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping triggerEmergencyNetworkScan " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1804,6 +2210,13 @@ TEST_P(RadioNetworkTest, triggerEmergencyNetworkScan) { * Test IRadioNetwork.cancelEmergencyNetworkScan() for the response returned. */ TEST_P(RadioNetworkTest, cancelEmergencyNetworkScan) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping cancelEmergencyNetworkScan " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1828,6 +2241,13 @@ TEST_P(RadioNetworkTest, cancelEmergencyNetworkScan) { * Test IRadioNetwork.exitEmergencyMode() for the response returned. */ TEST_P(RadioNetworkTest, exitEmergencyMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping exitEmergencyMode " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1852,6 +2272,13 @@ TEST_P(RadioNetworkTest, exitEmergencyMode) { * Test IRadioNetwork.setN1ModeEnabled() for the response returned. */ TEST_P(RadioNetworkTest, setN1ModeEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setN1ModeEnabled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1884,6 +2311,13 @@ TEST_P(RadioNetworkTest, setN1ModeEnabled) { * Test IRadioNetwork.isN1ModeEnabled() for the response returned. */ TEST_P(RadioNetworkTest, isN1ModeEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping isN1ModeEnabled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1915,6 +2349,13 @@ TEST_P(RadioNetworkTest, isN1ModeEnabled) { * Test IRadioNetwork.setNullCipherAndIntegrityEnabled() for the response returned. */ TEST_P(RadioNetworkTest, setNullCipherAndIntegrityEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping setNullCipherAndIntegrityEnabled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -1940,6 +2381,13 @@ TEST_P(RadioNetworkTest, setNullCipherAndIntegrityEnabled) { * Test IRadioNetwork.isNullCipherAndIntegrityEnabled() for the response returned. */ TEST_P(RadioNetworkTest, isNullCipherAndIntegrityEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_RADIO_ACCESS)) { + GTEST_SKIP() << "Skipping isNullCipherAndIntegrityEnabled " + "due to undefined FEATURE_TELEPHONY_RADIO_ACCESS"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_network->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); diff --git a/radio/aidl/vts/radio_sap_test.cpp b/radio/aidl/vts/radio_sap_test.cpp index 9a1c145576..6d283e9651 100644 --- a/radio/aidl/vts/radio_sap_test.cpp +++ b/radio/aidl/vts/radio_sap_test.cpp @@ -85,6 +85,13 @@ std::cv_status SapTest::wait() { * Test ISap.connectReq() for the response returned. */ TEST_P(SapTest, connectReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping connectReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); int32_t maxMsgSize = 100; @@ -103,6 +110,13 @@ TEST_P(SapTest, connectReq) { * Test ISap.disconnectReq() for the response returned */ TEST_P(SapTest, disconnectReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping disconnectReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = sap->disconnectReq(serial); @@ -116,6 +130,13 @@ TEST_P(SapTest, disconnectReq) { * Test ISap.apduReq() for the response returned. */ TEST_P(SapTest, apduReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping apduReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); SapApduType sapApduType = SapApduType::APDU; std::vector command = {}; @@ -137,6 +158,13 @@ TEST_P(SapTest, apduReq) { * Test ISap.transferAtrReq() for the response returned. */ TEST_P(SapTest, transferAtrReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping transferAtrReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = sap->transferAtrReq(serial); @@ -155,6 +183,13 @@ TEST_P(SapTest, transferAtrReq) { * Test ISap.powerReq() for the response returned. */ TEST_P(SapTest, powerReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping powerReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); bool state = true; @@ -175,6 +210,13 @@ TEST_P(SapTest, powerReq) { * Test ISap.resetSimReq() for the response returned. */ TEST_P(SapTest, resetSimReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping resetSimReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = sap->resetSimReq(serial); @@ -194,6 +236,13 @@ TEST_P(SapTest, resetSimReq) { * Test ISap.transferCardReaderStatusReq() for the response returned. */ TEST_P(SapTest, transferCardReaderStatusReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping transferCardReaderStatusReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ndk::ScopedAStatus res = sap->transferCardReaderStatusReq(serial); @@ -211,6 +260,13 @@ TEST_P(SapTest, transferCardReaderStatusReq) { * Test ISap.setTransferProtocolReq() for the response returned. */ TEST_P(SapTest, setTransferProtocolReq) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setTransferProtocolReq " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); SapTransferProtocol sapTransferProtocol = SapTransferProtocol::T0; diff --git a/radio/aidl/vts/radio_sim_test.cpp b/radio/aidl/vts/radio_sim_test.cpp index d90658893b..06654c2982 100644 --- a/radio/aidl/vts/radio_sim_test.cpp +++ b/radio/aidl/vts/radio_sim_test.cpp @@ -65,6 +65,13 @@ void RadioSimTest::updateSimCardStatus() { * Test IRadioSim.setSimCardPower() for the response returned. */ TEST_P(RadioSimTest, setSimCardPower) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setSimCardPower " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + /* Test setSimCardPower power down */ serial = GetRandomSerialNumber(); radio_sim->setSimCardPower(serial, CardPowerState::POWER_DOWN); @@ -120,6 +127,13 @@ TEST_P(RadioSimTest, setSimCardPower) { * Test IRadioSim.setCarrierInfoForImsiEncryption() for the response returned. */ TEST_P(RadioSimTest, setCarrierInfoForImsiEncryption) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setCarrierInfoForImsiEncryption " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); ImsiEncryptionInfo imsiInfo; imsiInfo.mcc = "310"; @@ -144,6 +158,13 @@ TEST_P(RadioSimTest, setCarrierInfoForImsiEncryption) { * Test IRadioSim.getSimPhonebookRecords() for the response returned. */ TEST_P(RadioSimTest, getSimPhonebookRecords) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getSimPhonebookRecords " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getSimPhonebookRecords(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -167,6 +188,13 @@ TEST_P(RadioSimTest, getSimPhonebookRecords) { * Test IRadioSim.getSimPhonebookCapacity for the response returned. */ TEST_P(RadioSimTest, getSimPhonebookCapacity) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getSimPhonebookCapacity " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getSimPhonebookCapacity(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -207,6 +235,13 @@ TEST_P(RadioSimTest, getSimPhonebookCapacity) { * Test IRadioSim.updateSimPhonebookRecords() for the response returned. */ TEST_P(RadioSimTest, updateSimPhonebookRecords) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping updateSimPhonebookRecords " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getSimPhonebookCapacity(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -271,6 +306,13 @@ TEST_P(RadioSimTest, updateSimPhonebookRecords) { * For SIM ABSENT case. */ TEST_P(RadioSimTest, togglingUiccApplicationsSimAbsent) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping togglingUiccApplicationsSimAbsent " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + // This test case only test SIM ABSENT case. if (cardStatus.cardState != CardStatus::STATE_ABSENT) return; @@ -298,6 +340,13 @@ TEST_P(RadioSimTest, togglingUiccApplicationsSimAbsent) { * For SIM PRESENT case. */ TEST_P(RadioSimTest, togglingUiccApplicationsSimPresent) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping togglingUiccApplicationsSimPresent " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + // This test case only test SIM ABSENT case. if (cardStatus.cardState != CardStatus::STATE_PRESENT) return; if (cardStatus.applications.size() == 0) return; @@ -345,6 +394,13 @@ TEST_P(RadioSimTest, togglingUiccApplicationsSimPresent) { * Test IRadioSim.areUiccApplicationsEnabled() for the response returned. */ TEST_P(RadioSimTest, areUiccApplicationsEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping areUiccApplicationsEnabled " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + // Disable Uicc applications. serial = GetRandomSerialNumber(); radio_sim->areUiccApplicationsEnabled(serial); @@ -365,6 +421,13 @@ TEST_P(RadioSimTest, areUiccApplicationsEnabled) { * Test IRadioSim.getAllowedCarriers() for the response returned. */ TEST_P(RadioSimTest, getAllowedCarriers) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getAllowedCarriers " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getAllowedCarriers(serial); @@ -380,6 +443,13 @@ TEST_P(RadioSimTest, getAllowedCarriers) { * Test IRadioSim.setAllowedCarriers() for the response returned. */ TEST_P(RadioSimTest, setAllowedCarriers) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setAllowedCarriers " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); CarrierRestrictions carrierRestrictions; memset(&carrierRestrictions, 0, sizeof(carrierRestrictions)); @@ -479,6 +549,13 @@ TEST_P(RadioSimTest, setAllowedCarriers) { * Test IRadioSim.getIccCardStatus() for the response returned. */ TEST_P(RadioSimTest, getIccCardStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getIccCardStatus " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + EXPECT_LE(cardStatus.applications.size(), RadioConst::CARD_MAX_APPS); EXPECT_LT(cardStatus.gsmUmtsSubscriptionAppIndex, RadioConst::CARD_MAX_APPS); EXPECT_LT(cardStatus.cdmaSubscriptionAppIndex, RadioConst::CARD_MAX_APPS); @@ -489,6 +566,13 @@ TEST_P(RadioSimTest, getIccCardStatus) { * Test IRadioSim.supplyIccPinForApp() for the response returned */ TEST_P(RadioSimTest, supplyIccPinForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping supplyIccPinForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -514,6 +598,13 @@ TEST_P(RadioSimTest, supplyIccPinForApp) { * Test IRadioSim.supplyIccPukForApp() for the response returned. */ TEST_P(RadioSimTest, supplyIccPukForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping supplyIccPukForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -539,6 +630,13 @@ TEST_P(RadioSimTest, supplyIccPukForApp) { * Test IRadioSim.supplyIccPin2ForApp() for the response returned. */ TEST_P(RadioSimTest, supplyIccPin2ForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping supplyIccPin2ForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -565,6 +663,13 @@ TEST_P(RadioSimTest, supplyIccPin2ForApp) { * Test IRadioSim.supplyIccPuk2ForApp() for the response returned. */ TEST_P(RadioSimTest, supplyIccPuk2ForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping supplyIccPuk2ForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -590,6 +695,13 @@ TEST_P(RadioSimTest, supplyIccPuk2ForApp) { * Test IRadioSim.changeIccPinForApp() for the response returned. */ TEST_P(RadioSimTest, changeIccPinForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping changeIccPinForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -615,6 +727,13 @@ TEST_P(RadioSimTest, changeIccPinForApp) { * Test IRadioSim.changeIccPin2ForApp() for the response returned. */ TEST_P(RadioSimTest, changeIccPin2ForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping changeIccPin2ForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong password and check PASSWORD_INCORRECT returned for 3GPP and @@ -641,6 +760,13 @@ TEST_P(RadioSimTest, changeIccPin2ForApp) { * Test IRadioSim.getImsiForApp() for the response returned. */ TEST_P(RadioSimTest, getImsiForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getImsiForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Check success returned while getting imsi for 3GPP and 3GPP2 apps only @@ -670,6 +796,13 @@ TEST_P(RadioSimTest, getImsiForApp) { * Test IRadioSim.iccIoForApp() for the response returned. */ TEST_P(RadioSimTest, iccIoForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccIoForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); for (int i = 0; i < (int)cardStatus.applications.size(); i++) { @@ -695,6 +828,13 @@ TEST_P(RadioSimTest, iccIoForApp) { * Test IRadioSim.iccTransmitApduBasicChannel() for the response returned. */ TEST_P(RadioSimTest, iccTransmitApduBasicChannel) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccTransmitApduBasicChannel " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); SimApdu msg; memset(&msg, 0, sizeof(msg)); @@ -710,6 +850,13 @@ TEST_P(RadioSimTest, iccTransmitApduBasicChannel) { * Test IRadioSim.iccOpenLogicalChannel() for the response returned. */ TEST_P(RadioSimTest, iccOpenLogicalChannel) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccOpenLogicalChannel " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); int p2 = 0x04; // Specified in ISO 7816-4 clause 7.1.1 0x04 means that FCP template is requested. @@ -725,6 +872,13 @@ TEST_P(RadioSimTest, iccOpenLogicalChannel) { * Test IRadioSim.iccCloseLogicalChannel() for the response returned. */ TEST_P(RadioSimTest, iccCloseLogicalChannel) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccCloseLogicalChannel " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Try closing invalid channel and check INVALID_ARGUMENTS returned as error radio_sim->iccCloseLogicalChannel(serial, 0); @@ -739,6 +893,13 @@ TEST_P(RadioSimTest, iccCloseLogicalChannel) { * Test IRadioSim.iccCloseLogicalChannelWithSessionInfo() for the response returned. */ TEST_P(RadioSimTest, iccCloseLogicalChannelWithSessionInfo) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccCloseLogicalChannelWithSessionInfo " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + int32_t aidl_version; ndk::ScopedAStatus aidl_status = radio_sim->getInterfaceVersion(&aidl_version); ASSERT_OK(aidl_status); @@ -766,6 +927,13 @@ TEST_P(RadioSimTest, iccCloseLogicalChannelWithSessionInfo) { * Test IRadioSim.iccTransmitApduLogicalChannel() for the response returned. */ TEST_P(RadioSimTest, iccTransmitApduLogicalChannel) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping iccTransmitApduLogicalChannel " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); SimApdu msg; memset(&msg, 0, sizeof(msg)); @@ -781,6 +949,13 @@ TEST_P(RadioSimTest, iccTransmitApduLogicalChannel) { * Test IRadioSim.requestIccSimAuthentication() for the response returned. */ TEST_P(RadioSimTest, requestIccSimAuthentication) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping requestIccSimAuthentication " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Pass wrong challenge string and check RadioError::INVALID_ARGUMENTS @@ -801,6 +976,13 @@ TEST_P(RadioSimTest, requestIccSimAuthentication) { * Test IRadioSim.getFacilityLockForApp() for the response returned. */ TEST_P(RadioSimTest, getFacilityLockForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping getFacilityLockForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); std::string facility = ""; std::string password = ""; @@ -824,6 +1006,13 @@ TEST_P(RadioSimTest, getFacilityLockForApp) { * Test IRadioSim.setFacilityLockForApp() for the response returned. */ TEST_P(RadioSimTest, setFacilityLockForApp) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setFacilityLockForApp " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); std::string facility = ""; bool lockState = false; @@ -848,6 +1037,13 @@ TEST_P(RadioSimTest, setFacilityLockForApp) { * Test IRadioSim.getCdmaSubscription() for the response returned. */ TEST_P(RadioSimTest, getCdmaSubscription) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping getCdmaSubscription " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getCdmaSubscription(serial); @@ -866,6 +1062,13 @@ TEST_P(RadioSimTest, getCdmaSubscription) { * Test IRadioSim.getCdmaSubscriptionSource() for the response returned. */ TEST_P(RadioSimTest, getCdmaSubscriptionSource) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping getCdmaSubscriptionSource " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_sim->getCdmaSubscriptionSource(serial); @@ -884,6 +1087,13 @@ TEST_P(RadioSimTest, getCdmaSubscriptionSource) { * Test IRadioSim.setCdmaSubscriptionSource() for the response returned. */ TEST_P(RadioSimTest, setCdmaSubscriptionSource) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping setCdmaSubscriptionSource " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_sim->setCdmaSubscriptionSource(serial, CdmaSubscriptionSource::RUIM_SIM); @@ -903,6 +1113,13 @@ TEST_P(RadioSimTest, setCdmaSubscriptionSource) { * Test IRadioSim.setUiccSubscription() for the response returned. */ TEST_P(RadioSimTest, setUiccSubscription) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping setUiccSubscription " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); SelectUiccSub item; memset(&item, 0, sizeof(item)); @@ -925,6 +1142,13 @@ TEST_P(RadioSimTest, setUiccSubscription) { * Test IRadioSim.sendEnvelope() for the response returned. */ TEST_P(RadioSimTest, sendEnvelope) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping sendEnvelope " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Test with sending empty string @@ -948,6 +1172,13 @@ TEST_P(RadioSimTest, sendEnvelope) { * Test IRadioSim.sendTerminalResponseToSim() for the response returned. */ TEST_P(RadioSimTest, sendTerminalResponseToSim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping sendTerminalResponseToSim " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Test with sending empty string @@ -971,6 +1202,13 @@ TEST_P(RadioSimTest, sendTerminalResponseToSim) { * Test IRadioSim.reportStkServiceIsRunning() for the response returned. */ TEST_P(RadioSimTest, reportStkServiceIsRunning) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping reportStkServiceIsRunning " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); radio_sim->reportStkServiceIsRunning(serial); @@ -990,6 +1228,13 @@ TEST_P(RadioSimTest, reportStkServiceIsRunning) { * string. */ TEST_P(RadioSimTest, sendEnvelopeWithStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_SUBSCRIPTION)) { + GTEST_SKIP() << "Skipping sendEnvelopeWithStatus " + "due to undefined FEATURE_TELEPHONY_SUBSCRIPTION"; + } + } + serial = GetRandomSerialNumber(); // Test with sending empty string diff --git a/radio/aidl/vts/radio_voice_test.cpp b/radio/aidl/vts/radio_voice_test.cpp index 397c417efa..6c68fd580a 100644 --- a/radio/aidl/vts/radio_voice_test.cpp +++ b/radio/aidl/vts/radio_voice_test.cpp @@ -93,15 +93,22 @@ ndk::ScopedAStatus RadioVoiceTest::clearPotentialEstablishedCalls() { * Test IRadioVoice.emergencyDial() for the response returned. */ TEST_P(RadioVoiceTest, emergencyDial) { - if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { - ALOGI("Skipping emergencyDial because voice call is not supported in device"); - return; - } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && - !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { - ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); - return; + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping emergencyDial " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } } else { - ALOGI("Running emergencyDial because voice call is supported in device"); + if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { + ALOGI("Skipping emergencyDial because voice call is not supported in device"); + return; + } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && + !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); + return; + } else { + ALOGI("Running emergencyDial because voice call is supported in device"); + } } serial = GetRandomSerialNumber(); @@ -147,15 +154,22 @@ TEST_P(RadioVoiceTest, emergencyDial) { * Test IRadioVoice.emergencyDial() with specified service and its response returned. */ TEST_P(RadioVoiceTest, emergencyDial_withServices) { - if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { - ALOGI("Skipping emergencyDial because voice call is not supported in device"); - return; - } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && - !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { - ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); - return; + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping emergencyDial_withServices " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } } else { - ALOGI("Running emergencyDial because voice call is supported in device"); + if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { + ALOGI("Skipping emergencyDial because voice call is not supported in device"); + return; + } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && + !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); + return; + } else { + ALOGI("Running emergencyDial because voice call is supported in device"); + } } serial = GetRandomSerialNumber(); @@ -201,15 +215,22 @@ TEST_P(RadioVoiceTest, emergencyDial_withServices) { * Test IRadioVoice.emergencyDial() with known emergency call routing and its response returned. */ TEST_P(RadioVoiceTest, emergencyDial_withEmergencyRouting) { - if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { - ALOGI("Skipping emergencyDial because voice call is not supported in device"); - return; - } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && - !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { - ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); - return; + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping emergencyDial_withEmergencyRouting " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } } else { - ALOGI("Running emergencyDial because voice call is supported in device"); + if (!deviceSupportsFeature(FEATURE_VOICE_CALL)) { + ALOGI("Skipping emergencyDial because voice call is not supported in device"); + return; + } else if (!deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && + !deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + ALOGI("Skipping emergencyDial because gsm/cdma radio is not supported in device"); + return; + } else { + ALOGI("Running emergencyDial because voice call is supported in device"); + } } serial = GetRandomSerialNumber(); @@ -256,6 +277,13 @@ TEST_P(RadioVoiceTest, emergencyDial_withEmergencyRouting) { * Test IRadioVoice.getCurrentCalls() for the response returned. */ TEST_P(RadioVoiceTest, getCurrentCalls) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getCurrentCalls " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getCurrentCalls(serial); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -268,6 +296,13 @@ TEST_P(RadioVoiceTest, getCurrentCalls) { * Test IRadioVoice.getClir() for the response returned. */ TEST_P(RadioVoiceTest, getClir) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getClir " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getClir(serial); @@ -286,6 +321,13 @@ TEST_P(RadioVoiceTest, getClir) { * Test IRadioVoice.setClir() for the response returned. */ TEST_P(RadioVoiceTest, setClir) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setClir " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); int32_t status = 1; @@ -304,6 +346,13 @@ TEST_P(RadioVoiceTest, setClir) { * Test IRadioVoice.getClip() for the response returned. */ TEST_P(RadioVoiceTest, getClip) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getClip " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getClip(serial); @@ -322,6 +371,13 @@ TEST_P(RadioVoiceTest, getClip) { * Test IRadioVoice.getTtyMode() for the response returned. */ TEST_P(RadioVoiceTest, getTtyMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getTtyMode " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getTtyMode(serial); @@ -338,6 +394,13 @@ TEST_P(RadioVoiceTest, getTtyMode) { * Test IRadioVoice.setTtyMode() for the response returned. */ TEST_P(RadioVoiceTest, setTtyMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setTtyMode " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->setTtyMode(serial, TtyMode::OFF); @@ -354,6 +417,13 @@ TEST_P(RadioVoiceTest, setTtyMode) { * Test IRadioVoice.setPreferredVoicePrivacy() for the response returned. */ TEST_P(RadioVoiceTest, setPreferredVoicePrivacy) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setPreferredVoicePrivacy " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->setPreferredVoicePrivacy(serial, true); @@ -371,6 +441,13 @@ TEST_P(RadioVoiceTest, setPreferredVoicePrivacy) { * Test IRadioVoice.getPreferredVoicePrivacy() for the response returned. */ TEST_P(RadioVoiceTest, getPreferredVoicePrivacy) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getPreferredVoicePrivacy " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getPreferredVoicePrivacy(serial); @@ -388,6 +465,13 @@ TEST_P(RadioVoiceTest, getPreferredVoicePrivacy) { * Test IRadioVoice.exitEmergencyCallbackMode() for the response returned. */ TEST_P(RadioVoiceTest, exitEmergencyCallbackMode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping exitEmergencyCallbackMode " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->exitEmergencyCallbackMode(serial); @@ -406,6 +490,13 @@ TEST_P(RadioVoiceTest, exitEmergencyCallbackMode) { * Test IRadioVoice.handleStkCallSetupRequestFromSim() for the response returned. */ TEST_P(RadioVoiceTest, handleStkCallSetupRequestFromSim) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping handleStkCallSetupRequestFromSim " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); bool accept = false; @@ -427,6 +518,13 @@ TEST_P(RadioVoiceTest, handleStkCallSetupRequestFromSim) { * Test IRadioVoice.dial() for the response returned. */ TEST_P(RadioVoiceTest, dial) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping dial " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); Dial dialInfo; @@ -454,6 +552,13 @@ TEST_P(RadioVoiceTest, dial) { * Test IRadioVoice.hangup() for the response returned. */ TEST_P(RadioVoiceTest, hangup) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping hangup " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->hangup(serial, 1); @@ -473,6 +578,13 @@ TEST_P(RadioVoiceTest, hangup) { * Test IRadioVoice.hangupWaitingOrBackground() for the response returned. */ TEST_P(RadioVoiceTest, hangupWaitingOrBackground) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping hangupWaitingOrBackground " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->hangupWaitingOrBackground(serial); @@ -491,6 +603,13 @@ TEST_P(RadioVoiceTest, hangupWaitingOrBackground) { * Test IRadioVoice.hangupForegroundResumeBackground() for the response returned. */ TEST_P(RadioVoiceTest, hangupForegroundResumeBackground) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping hangupForegroundResumeBackground " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->hangupForegroundResumeBackground(serial); @@ -509,6 +628,13 @@ TEST_P(RadioVoiceTest, hangupForegroundResumeBackground) { * Test IRadioVoice.switchWaitingOrHoldingAndActive() for the response returned. */ TEST_P(RadioVoiceTest, switchWaitingOrHoldingAndActive) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping switchWaitingOrHoldingAndActive " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->switchWaitingOrHoldingAndActive(serial); @@ -527,6 +653,13 @@ TEST_P(RadioVoiceTest, switchWaitingOrHoldingAndActive) { * Test IRadioVoice.conference() for the response returned. */ TEST_P(RadioVoiceTest, conference) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping conference " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->conference(serial); @@ -545,6 +678,13 @@ TEST_P(RadioVoiceTest, conference) { * Test IRadioVoice.rejectCall() for the response returned. */ TEST_P(RadioVoiceTest, rejectCall) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping rejectCall " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->rejectCall(serial); @@ -563,6 +703,13 @@ TEST_P(RadioVoiceTest, rejectCall) { * Test IRadioVoice.getLastCallFailCause() for the response returned. */ TEST_P(RadioVoiceTest, getLastCallFailCause) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getLastCallFailCause " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getLastCallFailCause(serial); @@ -580,6 +727,13 @@ TEST_P(RadioVoiceTest, getLastCallFailCause) { * Test IRadioVoice.getCallForwardStatus() for the response returned. */ TEST_P(RadioVoiceTest, getCallForwardStatus) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getCallForwardStatus " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); CallForwardInfo callInfo; memset(&callInfo, 0, sizeof(callInfo)); @@ -602,6 +756,13 @@ TEST_P(RadioVoiceTest, getCallForwardStatus) { * Test IRadioVoice.setCallForward() for the response returned. */ TEST_P(RadioVoiceTest, setCallForward) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setCallForward " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); CallForwardInfo callInfo; memset(&callInfo, 0, sizeof(callInfo)); @@ -624,6 +785,13 @@ TEST_P(RadioVoiceTest, setCallForward) { * Test IRadioVoice.getCallWaiting() for the response returned. */ TEST_P(RadioVoiceTest, getCallWaiting) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getCallWaiting " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getCallWaiting(serial, 1); @@ -643,6 +811,13 @@ TEST_P(RadioVoiceTest, getCallWaiting) { * Test IRadioVoice.setCallWaiting() for the response returned. */ TEST_P(RadioVoiceTest, setCallWaiting) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setCallWaiting " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->setCallWaiting(serial, true, 1); @@ -662,6 +837,13 @@ TEST_P(RadioVoiceTest, setCallWaiting) { * Test IRadioVoice.acceptCall() for the response returned. */ TEST_P(RadioVoiceTest, acceptCall) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping acceptCall " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->acceptCall(serial); @@ -680,6 +862,13 @@ TEST_P(RadioVoiceTest, acceptCall) { * Test IRadioVoice.separateConnection() for the response returned. */ TEST_P(RadioVoiceTest, separateConnection) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping separateConnection " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->separateConnection(serial, 1); @@ -699,6 +888,13 @@ TEST_P(RadioVoiceTest, separateConnection) { * Test IRadioVoice.explicitCallTransfer() for the response returned. */ TEST_P(RadioVoiceTest, explicitCallTransfer) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping explicitCallTransfer " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->explicitCallTransfer(serial); @@ -717,6 +913,13 @@ TEST_P(RadioVoiceTest, explicitCallTransfer) { * Test IRadioVoice.sendCdmaFeatureCode() for the response returned. */ TEST_P(RadioVoiceTest, sendCdmaFeatureCode) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CDMA)) { + GTEST_SKIP() << "Skipping sendCdmaFeatureCode " + "due to undefined FEATURE_TELEPHONY_CDMA"; + } + } + serial = GetRandomSerialNumber(); radio_voice->sendCdmaFeatureCode(serial, std::string()); @@ -737,6 +940,13 @@ TEST_P(RadioVoiceTest, sendCdmaFeatureCode) { * Test IRadioVoice.sendDtmf() for the response returned. */ TEST_P(RadioVoiceTest, sendDtmf) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping sendDtmf " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->sendDtmf(serial, "1"); @@ -757,6 +967,13 @@ TEST_P(RadioVoiceTest, sendDtmf) { * Test IRadioVoice.startDtmf() for the response returned. */ TEST_P(RadioVoiceTest, startDtmf) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping startDtmf " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->startDtmf(serial, "1"); @@ -777,6 +994,13 @@ TEST_P(RadioVoiceTest, startDtmf) { * Test IRadioVoice.stopDtmf() for the response returned. */ TEST_P(RadioVoiceTest, stopDtmf) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping stopDtmf " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->stopDtmf(serial); @@ -796,6 +1020,13 @@ TEST_P(RadioVoiceTest, stopDtmf) { * Test IRadioVoice.setMute() for the response returned. */ TEST_P(RadioVoiceTest, setMute) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping setMute " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->setMute(serial, true); @@ -814,6 +1045,13 @@ TEST_P(RadioVoiceTest, setMute) { * Test IRadioVoice.getMute() for the response returned. */ TEST_P(RadioVoiceTest, getMute) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping getMute " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->getMute(serial); @@ -830,6 +1068,13 @@ TEST_P(RadioVoiceTest, getMute) { * Test IRadioVoice.sendBurstDtmf() for the response returned. */ TEST_P(RadioVoiceTest, sendBurstDtmf) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping sendBurstDtmf " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->sendBurstDtmf(serial, "1", 0, 0); @@ -849,6 +1094,13 @@ TEST_P(RadioVoiceTest, sendBurstDtmf) { * Test IRadioVoice.sendUssd() for the response returned. */ TEST_P(RadioVoiceTest, sendUssd) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping sendUssd " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->sendUssd(serial, std::string("test")); EXPECT_EQ(std::cv_status::no_timeout, wait()); @@ -867,6 +1119,13 @@ TEST_P(RadioVoiceTest, sendUssd) { * Test IRadioVoice.cancelPendingUssd() for the response returned. */ TEST_P(RadioVoiceTest, cancelPendingUssd) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_CALLING)) { + GTEST_SKIP() << "Skipping cancelPendingUssd " + "due to undefined FEATURE_TELEPHONY_CALLING"; + } + } + serial = GetRandomSerialNumber(); radio_voice->cancelPendingUssd(serial); @@ -886,6 +1145,13 @@ TEST_P(RadioVoiceTest, cancelPendingUssd) { * Test IRadioVoice.isVoNrEnabled() for the response returned. */ TEST_P(RadioVoiceTest, isVoNrEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_IMS)) { + GTEST_SKIP() << "Skipping isVoNrEnabled " + "due to undefined FEATURE_TELEPHONY_IMS"; + } + } + serial = GetRandomSerialNumber(); radio_voice->isVoNrEnabled(serial); @@ -901,6 +1167,13 @@ TEST_P(RadioVoiceTest, isVoNrEnabled) { * Test IRadioVoice.setVoNrEnabled() for the response returned. */ TEST_P(RadioVoiceTest, setVoNrEnabled) { + if (telephony_flags::enforce_telephony_feature_mapping()) { + if (!deviceSupportsFeature(FEATURE_TELEPHONY_IMS)) { + GTEST_SKIP() << "Skipping setVoNrEnabled " + "due to undefined FEATURE_TELEPHONY_IMS"; + } + } + serial = GetRandomSerialNumber(); radio_voice->setVoNrEnabled(serial, true);