Home
last modified time | relevance | path

Searched refs:HSWanMetricsElement (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DHSWanMetricsElementTest.java38 private static final int TEST_LINK_STATUS = HSWanMetricsElement.LINK_STATUS_UP;
47 private static final HSWanMetricsElement TEST_ELEMENT = new HSWanMetricsElement(
58 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getTestBuffer()
60 int wanInfo = TEST_LINK_STATUS & HSWanMetricsElement.LINK_STATUS_MASK; in getTestBuffer()
61 if (TEST_SYMMETRIC_LINK) wanInfo |= HSWanMetricsElement.SYMMETRIC_LINK_MASK; in getTestBuffer()
62 if (TEST_AT_CAPACITY) wanInfo |= HSWanMetricsElement.AT_CAPACITY_MASK; in getTestBuffer()
75 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getUninitializedBuffer()
77 buffer.put(new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE]); in getUninitializedBuffer()
129 HSWanMetricsElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer()
140 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1); in parseBufferWithLessThanExpectedSize()
[all …]
DANQPParserTest.java186 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getHSWanMetricsPayload()
188 int wanInfo = status & HSWanMetricsElement.LINK_STATUS_MASK; in getHSWanMetricsPayload()
189 if (symmetric) wanInfo |= HSWanMetricsElement.SYMMETRIC_LINK_MASK; in getHSWanMetricsPayload()
190 if (capped) wanInfo |= HSWanMetricsElement.AT_CAPACITY_MASK; in getHSWanMetricsPayload()
198 byte[] data = new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE]; in getHSWanMetricsPayload()
447 int status = HSWanMetricsElement.LINK_STATUS_UP; in parseHSWANMetricsElement()
456 HSWanMetricsElement expected = new HSWanMetricsElement(status, symmetric, capped, in parseHSWANMetricsElement()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPDataTest.java32 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
167 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE); in testDataLifetime()
168 buffer.put(new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE]); in testDataLifetime()
170 HSWanMetricsElement wanMetricsElement = HSWanMetricsElement.parse(buffer); in testDataLifetime()
186 wanMetricsElement = new HSWanMetricsElement(HSWanMetricsElement.LINK_STATUS_UP, true, false, in testDataLifetime()
199 wanMetricsElement = new HSWanMetricsElement(HSWanMetricsElement.LINK_STATUS_DOWN, true, in testDataLifetime()
213 wanMetricsElement = new HSWanMetricsElement(HSWanMetricsElement.LINK_STATUS_UP, true, true, in testDataLifetime()
DPasspointNetworkNominateHelperTest.java54 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
522 HSWanMetricsElement wm = mock(HSWanMetricsElement.class); in evaluateScansWithNetworkMatchingHomeProviderWithAnqpLinkDown()
527 when(wm.getStatus()).thenReturn(HSWanMetricsElement.LINK_STATUS_DOWN); in evaluateScansWithNetworkMatchingHomeProviderWithAnqpLinkDown()
712 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE); in evaluateScansWithNetworkMatchingHomeProviderWithUninitializedWanMetricsAnqpElement()
713 buffer.put(new byte[HSWanMetricsElement.EXPECTED_BUFFER_SIZE]); in evaluateScansWithNetworkMatchingHomeProviderWithUninitializedWanMetricsAnqpElement()
715 HSWanMetricsElement wanMetricsElement = HSWanMetricsElement.parse(buffer); in evaluateScansWithNetworkMatchingHomeProviderWithUninitializedWanMetricsAnqpElement()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DHSWanMetricsElement.java39 public class HSWanMetricsElement extends ANQPElement { class
69 public HSWanMetricsElement(int status, boolean symmetric, boolean atCapacity, in HSWanMetricsElement() method in HSWanMetricsElement
89 public static HSWanMetricsElement parse(ByteBuffer payload) in parse()
106 return new HSWanMetricsElement(status, symmetric, capped, downlinkSpeed, uplinkSpeed, in parse()
162 if (!(thatObject instanceof HSWanMetricsElement)) { in equals()
165 HSWanMetricsElement that = (HSWanMetricsElement) thatObject; in equals()
DANQPParser.java97 return HSWanMetricsElement.parse(payload); in parseHS20Element()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DANQPData.java23 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
52 HSWanMetricsElement hsWanMetricsElement = in ANQPData()
53 (HSWanMetricsElement) anqpElements.get(Constants.ANQPElementType.HSWANMetrics); in ANQPData()
60 && (hsWanMetricsElement.getStatus() != HSWanMetricsElement.LINK_STATUS_UP in ANQPData()
DPasspointNetworkNominateHelper.java31 import com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement;
114 HSWanMetricsElement wm = (HSWanMetricsElement) anqpElements.get( in isApWanLinkStatusDown()
125 return wm.getStatus() != HSWanMetricsElement.LINK_STATUS_UP || wm.isAtCapacity(); in isApWanLinkStatusDown()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp672 "com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement",
673 "com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement$*",
674 "com.android.server.wifi.hotspot2.anqp.HSWanMetricsElement.**",