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

Commit 22d4271c authored by Nathalie Ruano's avatar Nathalie Ruano Committed by Jack Yu
Browse files

Added changes to support new telephony service in context.java

Test: presubmit

Bug: b/418868405 Bug: b/412560144

Flag: com.android.internal.telephony.flags.enable_phone_number_parsing_api
Change-Id: I33c965c1b688f3d649c37faa71b0f60aa164dba1
parent 725b329d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11358,6 +11358,7 @@ package android.content {
    field public static final String SYSTEM_HEALTH_SERVICE = "systemhealth";
    field public static final String TELECOM_SERVICE = "telecom";
    field public static final String TELEPHONY_IMS_SERVICE = "telephony_ims";
    field @FlaggedApi("com.android.internal.telephony.flags.enable_phone_number_parsing_api") public static final String TELEPHONY_PHONE_NUMBER_SERVICE = "telephony_phone_number";
    field public static final String TELEPHONY_SERVICE = "phone";
    field public static final String TELEPHONY_SUBSCRIPTION_SERVICE = "telephony_subscription_service";
    field public static final String TETHERING_SERVICE = "tethering";
+11 −0
Original line number Diff line number Diff line
@@ -4385,6 +4385,7 @@ public abstract class Context {
                MEDIA_ROUTER_SERVICE,
                TELEPHONY_SERVICE,
                TELEPHONY_SUBSCRIPTION_SERVICE,
                TELEPHONY_PHONE_NUMBER_SERVICE,
                CARRIER_CONFIG_SERVICE,
                EUICC_SERVICE,
                // @hide: MMS_SERVICE,
@@ -5431,6 +5432,16 @@ public abstract class Context {
     */
    public static final String TELEPHONY_SUBSCRIPTION_SERVICE = "telephony_subscription_service";

    /**
     * Use with {@link #getSystemService(String)} to retrieve a
     * {@link android.telephony.PhoneNumberManager} for parsing phone numbers.
     *
     * @see #getSystemService(String)
     * @see android.telephony.PhoneNumberManager
     */
    @FlaggedApi(com.android.internal.telephony.flags.Flags.FLAG_ENABLE_PHONE_NUMBER_PARSING_API)
    public static final String TELEPHONY_PHONE_NUMBER_SERVICE = "telephony_phone_number";

    /**
     * Use with {@link #getSystemService(String)} to retrieve a
     * {@link android.telecom.TelecomManager} to manage telecom-related features