Searched refs:ProtocolPortTuple (Results 1 - 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | ProtocolPortTupleTest.java | 30 * Unit tests for {@link com.android.server.wifi.hotspot2.anqp.ProtocolPortTuple}. 36 private static final int TEST_STATUS = ProtocolPortTuple.PROTO_STATUS_CLOSED; 47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) 63 ProtocolPortTuple.parse(ByteBuffer.allocate(0)); 74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); 75 buffer.put(new byte[ProtocolPortTuple.RAW_BYTE_SIZE - 1]); 77 ProtocolPortTuple.parse(buffer); 81 * Verify that the expected ProtocolPortTuple is returned when parsing a buffer contained 89 ProtocolPortTuple expected = new ProtocolPortTuple(TEST_PROTOCO [all...] |
H A 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); 43 * Helper function for writing a ProtocolPortTuple into a buffer. 48 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { 60 private ByteBuffer getTestBuffer(ProtocolPortTuple[] tuples) { 61 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple [all...] |
H A D | ANQPParserTest.java | 473 int status = ProtocolPortTuple.PROTO_STATUS_OPEN; 475 List<ProtocolPortTuple> statusList = new ArrayList<>(); 476 statusList.add(new ProtocolPortTuple(protocol, port, status));
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | ProtocolPortTuple.java | 35 public class ProtocolPortTuple { class 51 public ProtocolPortTuple(int protocol, int port, int status) { method in class:ProtocolPortTuple 58 * Parse a ProtocolPortTuple from the given buffer. 61 * @return {@link ProtocolPortTuple} 64 public static ProtocolPortTuple parse(ByteBuffer payload) { 69 return new ProtocolPortTuple(protocol, port, status); 89 if (!(thatObject instanceof ProtocolPortTuple)) { 92 ProtocolPortTuple that = (ProtocolPortTuple) thatObject;
|
H A D | HSConnectionCapabilityElement.java | 37 private final List<ProtocolPortTuple> mStatusList; 40 public HSConnectionCapabilityElement(List<ProtocolPortTuple> statusList) { 53 List<ProtocolPortTuple> statusList = new ArrayList<>(); 55 statusList.add(ProtocolPortTuple.parse(payload)); 60 public List<ProtocolPortTuple> getStatusList() {
|
Completed in 107 milliseconds