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

Commit 322ad253 authored by Nathan Harold's avatar Nathan Harold Committed by Android (Google) Code Review
Browse files

Merge "Expose NRI#rejectCause as Public" into main

parents d332eba3 e1d306eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44544,6 +44544,7 @@ package android.telephony {
    method @Nullable public android.telephony.CellIdentity getCellIdentity();
    method public int getDomain();
    method @Nullable public String getRegisteredPlmn();
    method @FlaggedApi("com.android.internal.telephony.flags.network_registration_info_reject_cause") public int getRejectCause();
    method public int getTransportType();
    method public boolean isNetworkRegistered();
    method public boolean isNetworkRoaming();
+0 −1
Original line number Diff line number Diff line
@@ -14128,7 +14128,6 @@ package android.telephony {
    method @Nullable public android.telephony.DataSpecificRegistrationInfo getDataSpecificInfo();
    method public int getNetworkRegistrationState();
    method @Deprecated public int getRegistrationState();
    method public int getRejectCause();
    method public int getRoamingType();
    method public boolean isEmergencyEnabled();
    method public void writeToParcel(android.os.Parcel, int);
+12 −5
Original line number Diff line number Diff line
@@ -649,12 +649,19 @@ public final class NetworkRegistrationInfo implements Parcelable {
    }

    /**
     * @return Reason for denial if the registration state is {@link #REGISTRATION_STATE_DENIED}.
     * Depending on {@code accessNetworkTechnology}, the values are defined in 3GPP TS 24.008
     * 10.5.3.6 for UMTS, 3GPP TS 24.301 9.9.3.9 for LTE, and 3GPP2 A.S0001 6.2.2.44 for CDMA
     * @hide
     * Get the 3GPP/3GPP2 reason code indicating why registration failed.
     *
     * Returns the reason code for non-transient registration failures. Typically this method will
     * only return the last reason code received during a network selection procedure. The reason
     * code is system-specific; however, the reason codes for both 3GPP and 3GPP2 systems are
     * largely equivalent across generations.
     *
     * @return registration reject cause if available, otherwise 0. Depending on
     * {@link #getAccessNetworkTechnology}, the values are defined in 3GPP TS 24.008 10.5.3.6 for
     * WCDMA/UMTS, 3GPP TS 24.301 9.9.3.9 for LTE/EPS, 3GPP 24.501 Annex A for NR/5GS, or 3GPP2
     * A.S0001 6.2.2.44 for CDMA.
     */
    @SystemApi
    @FlaggedApi(Flags.FLAG_NETWORK_REGISTRATION_INFO_REJECT_CAUSE)
    public int getRejectCause() {
        return mRejectCause;
    }