Loading wifi/java/android/net/wifi/ScanResult.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -569,6 +569,9 @@ public class ScanResult implements Parcelable { dest.writeString(anqpLines.get(i)); dest.writeString(anqpLines.get(i)); } } } } else { dest.writeInt(0); } if (anqpElements != null) { if (anqpElements != null) { dest.writeInt(anqpElements.length); dest.writeInt(anqpElements.length); for (AnqpInformationElement element : anqpElements) { for (AnqpInformationElement element : anqpElements) { Loading Loading @@ -647,7 +650,7 @@ public class ScanResult implements Parcelable { int len = in.readInt(); int len = in.readInt(); byte[] payload = new byte[len]; byte[] payload = new byte[len]; in.readByteArray(payload); in.readByteArray(payload); sr.anqpElements[n] = sr.anqpElements[i] = new AnqpInformationElement(vendorId, elementId, payload); new AnqpInformationElement(vendorId, elementId, payload); } } } } Loading Loading
wifi/java/android/net/wifi/ScanResult.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -569,6 +569,9 @@ public class ScanResult implements Parcelable { dest.writeString(anqpLines.get(i)); dest.writeString(anqpLines.get(i)); } } } } else { dest.writeInt(0); } if (anqpElements != null) { if (anqpElements != null) { dest.writeInt(anqpElements.length); dest.writeInt(anqpElements.length); for (AnqpInformationElement element : anqpElements) { for (AnqpInformationElement element : anqpElements) { Loading Loading @@ -647,7 +650,7 @@ public class ScanResult implements Parcelable { int len = in.readInt(); int len = in.readInt(); byte[] payload = new byte[len]; byte[] payload = new byte[len]; in.readByteArray(payload); in.readByteArray(payload); sr.anqpElements[n] = sr.anqpElements[i] = new AnqpInformationElement(vendorId, elementId, payload); new AnqpInformationElement(vendorId, elementId, payload); } } } } Loading