Merge "Fixed incorrect merge service state" into qt-r1-dev am: 9544faab4a

am: dba9e126ec

Change-Id: Ieeb751136cb3840982dd51a9db36a1f39e701407
This commit is contained in:
Jack Yu
2019-06-13 21:54:02 -07:00
committed by android-build-merger

View File

@@ -2035,4 +2035,18 @@ public class ServiceState implements Parcelable {
public void setIwlanPreferred(boolean isIwlanPreferred) {
mIsIwlanPreferred = isIwlanPreferred;
}
/**
* @return {@code true} if any data network is preferred on IWLAN.
*
* Note only when this value is true, {@link #getDataNetworkType()} will return
* {@link TelephonyManager#NETWORK_TYPE_IWLAN} when AP-assisted mode device camps on both
* cellular and IWLAN. This value does not affect legacy mode devices as the data network
* type is directly reported by the modem.
*
* @hide
*/
public boolean isIwlanPreferred() {
return mIsIwlanPreferred;
}
}