Loading api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -26425,9 +26425,11 @@ package android.net.wifi { field public int bwSupported; field public boolean lciSupported; field public boolean lcrSupported; field public int mcVersion; field public boolean oneSidedRttSupported; field public int preambleSupported; field public boolean responderSupported; field public boolean secureRttSupported; field public deprecated boolean supportedPeerType; field public deprecated boolean supportedType; field public boolean twoSided11McRttSupported; wifi/java/android/net/wifi/RttManager.java +25 −12 Original line number Diff line number Diff line Loading @@ -199,6 +199,12 @@ public class RttManager { // Whether STA responder role is supported. public boolean responderSupported; /** Whether the secure RTT protocol is supported. */ public boolean secureRttSupported; /** Draft 11mc version supported, including major and minor version. e.g, draft 4.3 is 43 */ public int mcVersion; @Override public String toString() { StringBuffer sb = new StringBuffer(); Loading @@ -223,7 +229,7 @@ public class RttManager { sb.append("VHT "); } sb.append("is supported. \n"); sb.append("is supported. "); if ((bwSupported & RTT_BW_5_SUPPORT) != 0) { sb.append("5 MHz "); Loading Loading @@ -252,7 +258,10 @@ public class RttManager { sb.append("is supported."); sb.append(" STA responder role is ") .append(responderSupported ? "supported" : "not supported."); .append(responderSupported ? "supported" : "not supported"); sb.append(" Secure RTT protocol is ") .append(secureRttSupported ? "supported" : "not supported"); sb.append(" 11mc version is " + mcVersion); return sb.toString(); } Loading @@ -272,6 +281,8 @@ public class RttManager { dest.writeInt(preambleSupported); dest.writeInt(bwSupported); dest.writeInt(responderSupported ? 1 : 0); dest.writeInt(secureRttSupported ? 1 : 0); dest.writeInt(mcVersion); } /** Implement the Parcelable interface {@hide} */ Loading @@ -287,6 +298,8 @@ public class RttManager { capabilities.preambleSupported = in.readInt(); capabilities.bwSupported = in.readInt(); capabilities.responderSupported = (in.readInt() == 1); capabilities.secureRttSupported = (in.readInt() == 1); capabilities.mcVersion = in.readInt(); return capabilities; } /** Implement the Parcelable interface {@hide} */ Loading Loading
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -26425,9 +26425,11 @@ package android.net.wifi { field public int bwSupported; field public boolean lciSupported; field public boolean lcrSupported; field public int mcVersion; field public boolean oneSidedRttSupported; field public int preambleSupported; field public boolean responderSupported; field public boolean secureRttSupported; field public deprecated boolean supportedPeerType; field public deprecated boolean supportedType; field public boolean twoSided11McRttSupported;
wifi/java/android/net/wifi/RttManager.java +25 −12 Original line number Diff line number Diff line Loading @@ -199,6 +199,12 @@ public class RttManager { // Whether STA responder role is supported. public boolean responderSupported; /** Whether the secure RTT protocol is supported. */ public boolean secureRttSupported; /** Draft 11mc version supported, including major and minor version. e.g, draft 4.3 is 43 */ public int mcVersion; @Override public String toString() { StringBuffer sb = new StringBuffer(); Loading @@ -223,7 +229,7 @@ public class RttManager { sb.append("VHT "); } sb.append("is supported. \n"); sb.append("is supported. "); if ((bwSupported & RTT_BW_5_SUPPORT) != 0) { sb.append("5 MHz "); Loading Loading @@ -252,7 +258,10 @@ public class RttManager { sb.append("is supported."); sb.append(" STA responder role is ") .append(responderSupported ? "supported" : "not supported."); .append(responderSupported ? "supported" : "not supported"); sb.append(" Secure RTT protocol is ") .append(secureRttSupported ? "supported" : "not supported"); sb.append(" 11mc version is " + mcVersion); return sb.toString(); } Loading @@ -272,6 +281,8 @@ public class RttManager { dest.writeInt(preambleSupported); dest.writeInt(bwSupported); dest.writeInt(responderSupported ? 1 : 0); dest.writeInt(secureRttSupported ? 1 : 0); dest.writeInt(mcVersion); } /** Implement the Parcelable interface {@hide} */ Loading @@ -287,6 +298,8 @@ public class RttManager { capabilities.preambleSupported = in.readInt(); capabilities.bwSupported = in.readInt(); capabilities.responderSupported = (in.readInt() == 1); capabilities.secureRttSupported = (in.readInt() == 1); capabilities.mcVersion = in.readInt(); return capabilities; } /** Implement the Parcelable interface {@hide} */ Loading