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

Commit 1e2edb06 authored by Nathan Harold's avatar Nathan Harold
Browse files

Add getCellIdentity() to improve test-ability

Add a method to get the CellIdentity from the barring
info class to improve test-ability.

Bug: 361387150
Test: atest TelephonyRegistryTest #(test-only change)
Flag: EXEMPT bugfix
Change-Id: I4030b928419df360be3951549337bd88c86341bb
parent a7963da6
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -301,6 +301,17 @@ public final class BarringInfo implements Parcelable {
                ? BARRING_SERVICE_INFO_UNBARRED : BARRING_SERVICE_INFO_UNKNOWN;
    }

    /**
     * Return the cell that reported the BarringInfo.
     *
     * @return the {@link CellIdentity} of the cell that is broadcasting this barring information.
     *
     * @hide
     */
    public CellIdentity getCellIdentity() {
        return mCellIdentity;
    }

    /** @hide */
    @SystemApi
    public @NonNull BarringInfo createLocationInfoSanitizedCopy() {