Loading core/java/android/net/RecommendationRequest.java +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public final class RecommendationRequest implements Parcelable { private WifiConfiguration mDefaultConfig; private WifiConfiguration mConnectedConfig; private WifiConfiguration[] mConnectableConfigs; private int mLastSelectedNetworkId; private int mLastSelectedNetworkId = -1; private long mLastSelectedTimestamp; public Builder setScanResults(ScanResult[] scanResults) { Loading Loading @@ -161,7 +161,7 @@ public final class RecommendationRequest implements Parcelable { /** * @return The {@link WifiConfiguration#networkId} of the last user selected network. * {@code 0} if not set. * {@code -1} if not set. */ public int getLastSelectedNetworkId() { return mLastSelectedNetworkId; Loading core/tests/coretests/src/android/net/RecommendationRequestTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ public class RecommendationRequestTest extends AndroidTestCase { RecommendationRequest parceled = passThroughParcel(request); assertEquals(0, parceled.getLastSelectedNetworkId()); assertEquals(-1, parceled.getLastSelectedNetworkId()); assertEquals(0, parceled.getLastSelectedNetworkTimestamp()); } Loading Loading
core/java/android/net/RecommendationRequest.java +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public final class RecommendationRequest implements Parcelable { private WifiConfiguration mDefaultConfig; private WifiConfiguration mConnectedConfig; private WifiConfiguration[] mConnectableConfigs; private int mLastSelectedNetworkId; private int mLastSelectedNetworkId = -1; private long mLastSelectedTimestamp; public Builder setScanResults(ScanResult[] scanResults) { Loading Loading @@ -161,7 +161,7 @@ public final class RecommendationRequest implements Parcelable { /** * @return The {@link WifiConfiguration#networkId} of the last user selected network. * {@code 0} if not set. * {@code -1} if not set. */ public int getLastSelectedNetworkId() { return mLastSelectedNetworkId; Loading
core/tests/coretests/src/android/net/RecommendationRequestTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ public class RecommendationRequestTest extends AndroidTestCase { RecommendationRequest parceled = passThroughParcel(request); assertEquals(0, parceled.getLastSelectedNetworkId()); assertEquals(-1, parceled.getLastSelectedNetworkId()); assertEquals(0, parceled.getLastSelectedNetworkTimestamp()); } Loading