Add doc for NetworkScore#getLegacyInt

Test: comment-only change
Fixes: 184786246
Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f
Merged-In: I8306f01f3d247986683e272074047e3ad190f68e
Change-Id: I8306f01f3d247986683e272074047e3ad190f68e
  (cherry-picked from ag/14125152)
This commit is contained in:
Chalard Jean
2021-04-08 18:08:49 +09:00
committed by Junyu Lai
parent 536a5bac26
commit 0422927cd8

View File

@@ -93,6 +93,10 @@ public final class NetworkScore implements Parcelable {
mKeepConnectedReason = in.readInt(); mKeepConnectedReason = in.readInt();
} }
/**
* Get the legacy int score embedded in this NetworkScore.
* @see Builder#setLegacyInt(int)
*/
public int getLegacyInt() { public int getLegacyInt() {
return mLegacyInt; return mLegacyInt;
} }
@@ -212,7 +216,9 @@ public final class NetworkScore implements Parcelable {
/** /**
* Sets the legacy int for this score. * 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 * @param score the legacy int
* @return this * @return this