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

Commit e2823007 authored by Nathan Harold's avatar Nathan Harold
Browse files

Add a Constant for CellInfo#UNAVAILABLE_LONG

CellInfo needed a constant for LONG NR CI
in the event that it is unreported.

Bug: 124130720
Test: compilation; make offline-sdk-docs
Change-Id: I70e480573727bac070bdf5ab70dc49aa356b685f
parent f8881b68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42380,6 +42380,7 @@ package android.telephony {
    field public static final int CONNECTION_UNKNOWN = 2147483647; // 0x7fffffff
    field public static final android.os.Parcelable.Creator<android.telephony.CellInfo> CREATOR;
    field public static final int UNAVAILABLE = 2147483647; // 0x7fffffff
    field public static final long UNAVAILABLE_LONG = 9223372036854775807L; // 0x7fffffffffffffffL
  }
  public final class CellInfoCdma extends android.telephony.CellInfo implements android.os.Parcelable {
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ public final class CellIdentityNr extends CellIdentity {
    /**
     * Get the NR Cell Identity.
     *
     * @return The NR Cell Identity in range [0, 68719476735] or Long.MAX_VALUE if unknown.
     * @return The 36-bit NR Cell Identity in range [0, 68719476735] or
     *         {@link CellInfo#UNAVAILABLE_LONG} if unknown.
     */
    public long getNci() {
        return mNci;
+5 −0
Original line number Diff line number Diff line
@@ -39,6 +39,11 @@ public abstract class CellInfo implements Parcelable {
     */
    public static final int UNAVAILABLE = Integer.MAX_VALUE;

    /**
     * This value indicates that the long field is unreported.
     */
    public static final long UNAVAILABLE_LONG = Long.MAX_VALUE;

    /**
     * Cell identity type
     * @hide