HomeSort by relevance Sort by last modified time
    Searched refs:HSWanMetricsElement (Results 1 - 6 of 6) sorted by null

  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
HSWanMetricsElementTest.java 30 * Unit tests for {@link com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement}.
34 private static final int TEST_LINK_STATUS = HSWanMetricsElement.LINK_STATUS_UP;
49 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
51 int wanInfo = TEST_LINK_STATUS & HSWanMetricsElement.LINK_STATUS_MASK;
52 if (TEST_SYMMETRIC_LINK) wanInfo |= HSWanMetricsElement.SYMMETRIC_LINK_MASK;
53 if (TEST_AT_CAPACITY) wanInfo |= HSWanMetricsElement.AT_CAPACITY_MASK;
71 HSWanMetricsElement.parse(ByteBuffer.allocate(0));
82 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1);
83 buffer.put(new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1]);
85 HSWanMetricsElement.parse(buffer)
    [all...]
ANQPParserTest.java 182 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE)
184 int wanInfo = status & HSWanMetricsElement.LINK_STATUS_MASK;
185 if (symmetric) wanInfo |= HSWanMetricsElement.SYMMETRIC_LINK_MASK;
186 if (capped) wanInfo |= HSWanMetricsElement.AT_CAPACITY_MASK;
194 byte[] data = new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE];
420 * Verify that an expected HSWanMetricsElement will be returned when parsing a buffer that
427 int status = HSWanMetricsElement.LINK_STATUS_UP;
436 HSWanMetricsElement expected = new HSWanMetricsElement(status, symmetric, capped,
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
HSWanMetricsElement.java 39 public class HSWanMetricsElement extends ANQPElement {
69 public HSWanMetricsElement(int status, boolean symmetric, boolean capped, long downlinkSpeed,
83 * Parse a HSWanMetricsElement from the given buffer.
86 * @return {@link HSWanMetricsElement}
89 public static HSWanMetricsElement parse(ByteBuffer payload)
106 return new HSWanMetricsElement(status, symmetric, capped, downlinkSpeed, uplinkSpeed,
147 if (!(thatObject instanceof HSWanMetricsElement)) {
150 HSWanMetricsElement that = (HSWanMetricsElement) thatObject;
ANQPParser.java 95 return HSWanMetricsElement.parse(payload);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointNetworkScoreTest.java 30 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
67 private static final HSWanMetricsElement WAN_PORT_DOWN_ELEMENT = new HSWanMetricsElement(
68 HSWanMetricsElement.LINK_STATUS_DOWN /* status */, true /* symmetric */,
72 private static final HSWanMetricsElement WAN_PORT_UP_ELEMENT = new HSWanMetricsElement(
73 HSWanMetricsElement.LINK_STATUS_UP /* status */, true /* symmetric */,
77 private static final HSWanMetricsElement WAN_PORT_CAPPED_ELEMENT = new HSWanMetricsElement(
78 HSWanMetricsElement.LINK_STATUS_UP /* status */, true /* symmetric */
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointNetworkScore.java 25 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
162 HSWanMetricsElement wm =
163 (HSWanMetricsElement) anqpElements.get(ANQPElementType.HSWANMetrics);
165 if (wm.getStatus() != HSWanMetricsElement.LINK_STATUS_UP || wm.isCapped()) {

Completed in 61 milliseconds