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

Commit a967a3ab authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add doc for NetworkScore#getLegacyInt" into sc-dev am: cf1e26b1

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

Change-Id: Id16fba9f32aba1357c701c0c81a6ee4df7042e4f
parents c6312f7b cf1e26b1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ public final class NetworkScore implements Parcelable {
        mKeepConnectedReason = in.readInt();
    }

    /**
     * Get the legacy int score embedded in this NetworkScore.
     * @see Builder#setLegacyInt(int)
     */
    public int getLegacyInt() {
        return mLegacyInt;
    }
@@ -212,7 +216,9 @@ public final class NetworkScore implements Parcelable {
        /**
         * Sets the legacy int for this score.
         *
         * Do not rely on this. It will be gone by the time S is released.
         * This will be used for measurements and logs, but will no longer be used for ranking
         * networks against each other. Callers that existed before Android S should send what
         * they used to send as the int score.
         *
         * @param score the legacy int
         * @return this