Searched refs:ProtocolPortTuple (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | HSConnectionCapabilityElementTest.java | 37 private static final ProtocolPortTuple TEST_TUPLE1 = 38 new ProtocolPortTuple(1, 2, ProtocolPortTuple.PROTO_STATUS_CLOSED); 39 private static final ProtocolPortTuple TEST_TUPLE2 = 40 new ProtocolPortTuple(3, 4, ProtocolPortTuple.PROTO_STATUS_OPEN); 48 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple() 60 private ByteBuffer getTestBuffer(ProtocolPortTuple[] tuples) { in getTestBuffer() 61 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() 63 for (ProtocolPortTuple tuple : tuples) { in getTestBuffer() 91 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() 92 buffer.put(new byte[ProtocolPortTuple.RAW_BYTE_SIZE - 1]); in parseBufferWithLessThanMinimumSize() [all …]
|
D | ProtocolPortTupleTest.java | 36 private static final int TEST_STATUS = ProtocolPortTuple.PROTO_STATUS_CLOSED; 47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() 63 ProtocolPortTuple.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithIncompleteData() 75 buffer.put(new byte[ProtocolPortTuple.RAW_BYTE_SIZE - 1]); in parseBufferWithIncompleteData() 77 ProtocolPortTuple.parse(buffer); in parseBufferWithIncompleteData() 89 ProtocolPortTuple expected = new ProtocolPortTuple(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData() 90 assertEquals(expected, ProtocolPortTuple.parse(buffer)); in parseBufferWithTestData()
|
D | ANQPParserTest.java | 474 int status = ProtocolPortTuple.PROTO_STATUS_OPEN; in parseHSConnectionCapabilityElement() 476 List<ProtocolPortTuple> statusList = new ArrayList<>(); in parseHSConnectionCapabilityElement() 477 statusList.add(new ProtocolPortTuple(protocol, port, status)); in parseHSConnectionCapabilityElement()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | ProtocolPortTuple.java | 35 public class ProtocolPortTuple { class 51 public ProtocolPortTuple(int protocol, int port, int status) { in ProtocolPortTuple() method in ProtocolPortTuple 64 public static ProtocolPortTuple parse(ByteBuffer payload) { in parse() 69 return new ProtocolPortTuple(protocol, port, status); in parse() 89 if (!(thatObject instanceof ProtocolPortTuple)) { in equals() 92 ProtocolPortTuple that = (ProtocolPortTuple) thatObject; in equals()
|
D | HSConnectionCapabilityElement.java | 37 private final List<ProtocolPortTuple> mStatusList; 40 public HSConnectionCapabilityElement(List<ProtocolPortTuple> statusList) { in HSConnectionCapabilityElement() 53 List<ProtocolPortTuple> statusList = new ArrayList<>(); in parse() 55 statusList.add(ProtocolPortTuple.parse(payload)); in parse() 60 public List<ProtocolPortTuple> getStatusList() { in getStatusList()
|