Loading api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -26403,6 +26403,7 @@ package android.net.wifi { field public int numberBurst; field public int preamble; field public int requestType; field public boolean secure; } public static class RttManager.RttResult { Loading Loading @@ -26434,6 +26435,7 @@ package android.net.wifi { field public deprecated long rtt_sd_ns; field public deprecated long rtt_spread_ns; field public int rxRate; field public boolean secure; field public int status; field public int successMeasurementFrameNumber; field public long ts; wifi/java/android/net/wifi/RttManager.java +14 −0 Original line number Diff line number Diff line Loading @@ -323,6 +323,11 @@ public class RttManager { */ public int requestType; /** * Whether the secure RTT protocol needs to be used for ranging this peer device. */ public boolean secure; /** * mac address of the device being ranged * Default value: null Loading Loading @@ -478,6 +483,7 @@ public class RttManager { for (RttParams params : mParams) { dest.writeInt(params.deviceType); dest.writeInt(params.requestType); dest.writeByte(params.secure ? (byte) 1 : 0); dest.writeString(params.bssid); dest.writeInt(params.channelWidth); dest.writeInt(params.frequency); Loading Loading @@ -515,6 +521,7 @@ public class RttManager { params[i] = new RttParams(); params[i].deviceType = in.readInt(); params[i].requestType = in.readInt(); params[i].secure = (in.readByte() != 0); params[i].bssid = in.readString(); params[i].channelWidth = in.readInt(); params[i].frequency = in.readInt(); Loading Loading @@ -690,6 +697,11 @@ public class RttManager { /** LCR information Element, only available to double side RTT. */ public WifiInformationElement LCR; /** * Whether the secure RTT protocol was used for ranging. */ public boolean secure; } Loading Loading @@ -742,6 +754,7 @@ public class RttManager { dest.writeInt((byte) result.LCR.data.length); dest.writeByte(result.LCR.id); } dest.writeByte(result.secure ? (byte) 1 : 0); } } else { dest.writeInt(0); Loading Loading @@ -796,6 +809,7 @@ public class RttManager { results[i].LCR.data = new byte[length]; in.readByteArray(results[i].LCR.data); } results[i].secure = (in.readByte() != 0); } ParcelableRttResults parcelableResults = new ParcelableRttResults(results); Loading Loading
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -26403,6 +26403,7 @@ package android.net.wifi { field public int numberBurst; field public int preamble; field public int requestType; field public boolean secure; } public static class RttManager.RttResult { Loading Loading @@ -26434,6 +26435,7 @@ package android.net.wifi { field public deprecated long rtt_sd_ns; field public deprecated long rtt_spread_ns; field public int rxRate; field public boolean secure; field public int status; field public int successMeasurementFrameNumber; field public long ts;
wifi/java/android/net/wifi/RttManager.java +14 −0 Original line number Diff line number Diff line Loading @@ -323,6 +323,11 @@ public class RttManager { */ public int requestType; /** * Whether the secure RTT protocol needs to be used for ranging this peer device. */ public boolean secure; /** * mac address of the device being ranged * Default value: null Loading Loading @@ -478,6 +483,7 @@ public class RttManager { for (RttParams params : mParams) { dest.writeInt(params.deviceType); dest.writeInt(params.requestType); dest.writeByte(params.secure ? (byte) 1 : 0); dest.writeString(params.bssid); dest.writeInt(params.channelWidth); dest.writeInt(params.frequency); Loading Loading @@ -515,6 +521,7 @@ public class RttManager { params[i] = new RttParams(); params[i].deviceType = in.readInt(); params[i].requestType = in.readInt(); params[i].secure = (in.readByte() != 0); params[i].bssid = in.readString(); params[i].channelWidth = in.readInt(); params[i].frequency = in.readInt(); Loading Loading @@ -690,6 +697,11 @@ public class RttManager { /** LCR information Element, only available to double side RTT. */ public WifiInformationElement LCR; /** * Whether the secure RTT protocol was used for ranging. */ public boolean secure; } Loading Loading @@ -742,6 +754,7 @@ public class RttManager { dest.writeInt((byte) result.LCR.data.length); dest.writeByte(result.LCR.id); } dest.writeByte(result.secure ? (byte) 1 : 0); } } else { dest.writeInt(0); Loading Loading @@ -796,6 +809,7 @@ public class RttManager { results[i].LCR.data = new byte[length]; in.readByteArray(results[i].LCR.data); } results[i].secure = (in.readByte() != 0); } ParcelableRttResults parcelableResults = new ParcelableRttResults(results); Loading