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

Commit 0ec61c2d authored by Muralidhar Reddy Mule's avatar Muralidhar Reddy Mule Committed by Android (Google) Code Review
Browse files

Merge "Add HAL APIs to support sim type switching on 2pSIM+1eSIM configured devices" into main

parents cc01341d 9120ebd4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -53,4 +53,6 @@ interface IRadioConfig {
  oneway void setResponseFunctions(in android.hardware.radio.config.IRadioConfigResponse radioConfigResponse, in android.hardware.radio.config.IRadioConfigIndication radioConfigIndication);
  oneway void setSimSlotsMapping(in int serial, in android.hardware.radio.config.SlotPortMapping[] slotMap);
  oneway void getSimultaneousCallingSupport(in int serial);
  oneway void getSimTypeInfo(in int serial);
  oneway void setSimType(in int serial, in android.hardware.radio.config.SimType[] simTypes);
}
+2 −0
Original line number Diff line number Diff line
@@ -43,4 +43,6 @@ interface IRadioConfigResponse {
  oneway void setPreferredDataModemResponse(in android.hardware.radio.RadioResponseInfo info);
  oneway void setSimSlotsMappingResponse(in android.hardware.radio.RadioResponseInfo info);
  oneway void getSimultaneousCallingSupportResponse(in android.hardware.radio.RadioResponseInfo info, in int[] enabledLogicalSlots);
  oneway void getSimTypeInfoResponse(in android.hardware.radio.RadioResponseInfo info, in android.hardware.radio.config.SimTypeInfo[] simTypeInfo);
  oneway void setSimTypeResponse(in android.hardware.radio.RadioResponseInfo info);
}
+41 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.radio.config;
/* @hide */
@Backing(type="int") @JavaDerive(toString=true) @VintfStability
enum SimType {
  UNKNOWN = 0,
  PHYSICAL = (1 << 0) /* 1 */,
  ESIM = (1 << 1) /* 2 */,
}
+40 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.radio.config;
/* @hide */
@JavaDerive(toString=true) @VintfStability
parcelable SimTypeInfo {
  android.hardware.radio.config.SimType currentSimType = android.hardware.radio.config.SimType.UNKNOWN;
  int supportedSimTypes;
}
+36 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ package android.hardware.radio.config;

import android.hardware.radio.config.IRadioConfigIndication;
import android.hardware.radio.config.IRadioConfigResponse;
import android.hardware.radio.config.SimType;
import android.hardware.radio.config.SlotPortMapping;

/** @hide */
@@ -208,4 +209,39 @@ oneway interface IRadioConfig {
     * This is available when android.hardware.telephony is defined.
     */
    void getSimultaneousCallingSupport(in int serial);

    /**
     * Get the sim type information.
     *
     * Response provides the current active sim type and supported sim types associated with each
     * active physical slot ids.
     *
     * @param serial Serial number of request.
     *
     * Response callback is IRadioConfigResponse.getSimTypeInfoResponse()
     *
     * This is available when android.hardware.telephony.subscription is defined.
     */
    void getSimTypeInfo(in int serial);

    /**
     * Set the sim type associated with the physical slot id and activate if the sim type is
     * currently inactive.
     *
     * Example: There are 2 active physical slot ids and 3 physical sims(2 pSIM and 1 eSIM). First
     * physical slot id is always linked pSIM and 2nd physical slot id supports either pSIM/eSIM one
     * at a time. In order to activate eSIM on 2nd physical slot id, caller should pass
     * corresponding sim type.
     *
     * simTypes[0] = pSIM
     * simTypes[1] = eSIM
     *
     * @param serial Serial number of request.
     * @param simTypes SimType to be activated on each logical slot
     *
     * Response callback is IRadioConfigResponse.setSimTypeResponse()
     *
     * This is available when android.hardware.telephony.subscription is defined.
     */
    void setSimType(in int serial, in SimType[] simTypes);
}
Loading