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

Commit 6201189f authored by Amit Mahajan's avatar Amit Mahajan Committed by Automerger Merge Worker
Browse files

Merge "add capability for TelephonyManager.getNetworkSlicingConfiguration()"...

Merge "add capability for TelephonyManager.getNetworkSlicingConfiguration()" into sc-dev am: f57e4c9b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13773763

Change-Id: I61e603882f26c971d0c0e275d2c6021bd86564a1
parents 5dee674e f57e4c9b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -42503,6 +42503,7 @@ package android.telephony {
    field public static final int CALL_STATE_IDLE = 0; // 0x0
    field public static final int CALL_STATE_IDLE = 0; // 0x0
    field public static final int CALL_STATE_OFFHOOK = 2; // 0x2
    field public static final int CALL_STATE_OFFHOOK = 2; // 0x2
    field public static final int CALL_STATE_RINGING = 1; // 0x1
    field public static final int CALL_STATE_RINGING = 1; // 0x1
    field public static final String CAPABILITY_SLICING_CONFIG_SUPPORTED = "CAPABILITY_SLICING_CONFIG_SUPPORTED";
    field public static final int CDMA_ROAMING_MODE_AFFILIATED = 1; // 0x1
    field public static final int CDMA_ROAMING_MODE_AFFILIATED = 1; // 0x1
    field public static final int CDMA_ROAMING_MODE_ANY = 2; // 0x2
    field public static final int CDMA_ROAMING_MODE_ANY = 2; // 0x2
    field public static final int CDMA_ROAMING_MODE_HOME = 0; // 0x0
    field public static final int CDMA_ROAMING_MODE_HOME = 0; // 0x0
+14 −0
Original line number Original line Diff line number Diff line
@@ -14951,6 +14951,13 @@ public class TelephonyManager {
    public static final String CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING =
    public static final String CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING =
            "CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING";
            "CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING";
    /**
     * Indicates whether {@link #getNetworkSlicingConfiguration} is supported. See comments on
     * respective methods for more information.
     */
    public static final String CAPABILITY_SLICING_CONFIG_SUPPORTED =
            "CAPABILITY_SLICING_CONFIG_SUPPORTED";
    /** @hide */
    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @Retention(RetentionPolicy.SOURCE)
    @StringDef(prefix = "CAPABILITY_", value = {
    @StringDef(prefix = "CAPABILITY_", value = {
@@ -14958,6 +14965,7 @@ public class TelephonyManager {
            CAPABILITY_ALLOWED_NETWORK_TYPES_USED,
            CAPABILITY_ALLOWED_NETWORK_TYPES_USED,
            CAPABILITY_NR_DUAL_CONNECTIVITY_CONFIGURATION_AVAILABLE,
            CAPABILITY_NR_DUAL_CONNECTIVITY_CONFIGURATION_AVAILABLE,
            CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING,
            CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING,
            CAPABILITY_SLICING_CONFIG_SUPPORTED,
    })
    })
    public @interface RadioInterfaceCapability {}
    public @interface RadioInterfaceCapability {}
@@ -15609,9 +15617,15 @@ public class TelephonyManager {
     *     <li>If the calling app has carrier privileges (see {@link #hasCarrierPrivileges}).
     *     <li>If the calling app has carrier privileges (see {@link #hasCarrierPrivileges}).
     * </ul>
     * </ul>
     *
     *
     * This will be invalid if the device does not support
     * android.telephony.TelephonyManager#CAPABILITY_SLICING_CONFIG_SUPPORTED.
     *
     * @param executor the executor on which callback will be invoked.
     * @param executor the executor on which callback will be invoked.
     * @param callback a callback to receive the current slicing configuration.
     * @param callback a callback to receive the current slicing configuration.
     */
     */
    @RequiresFeature(
            enforcement = "android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported",
            value = TelephonyManager.CAPABILITY_SLICING_CONFIG_SUPPORTED)
    @SuppressAutoDoc // No support for carrier privileges (b/72967236).
    @SuppressAutoDoc // No support for carrier privileges (b/72967236).
    @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
    @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
    public void getNetworkSlicingConfiguration(
    public void getNetworkSlicingConfiguration(