Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30945ccb authored by Joonhun Shin's avatar Joonhun Shin Committed by Android (Google) Code Review
Browse files

Merge changes from topic "hal_telephony_feature_mapping" into main

* changes:
  update vts to enforce telephony feature mapping
  Add comment for HAL radio APIs and telephony feature mapping
parents ed9d6774 d519aead
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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 <byte>.
     *
     * 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 <PhoneCapability>.
     *
     * 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);
}
+9 −0
Original line number Diff line number Diff line
@@ -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
+32 −0
Original line number Diff line number Diff line
@@ -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);
}
+14 −0
Original line number Diff line number Diff line
@@ -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
     */
+16 −0
Original line number Diff line number Diff line
@@ -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);
}
Loading