/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ProxyInfoTest.java | 45 private static final int TEST_PORT = 5566; field in ProxyInfoTest 67 final ProxyInfo proxy1 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT); in testBuildDirectProxy() 70 assertEquals(TEST_PORT, proxy1.getPort()); in testBuildDirectProxy() 77 final ProxyInfo proxy2 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT, exclList); in testBuildDirectProxy() 80 assertEquals(TEST_PORT, proxy2.getPort()); in testBuildDirectProxy() 95 final ProxyInfo proxy2 = ProxyInfo.buildPacProxy(TEST_URI, TEST_PORT); in testBuildPacProxy() 98 assertEquals(TEST_PORT, proxy2.getPort()); in testBuildPacProxy() 106 final ProxyInfo proxy1 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT); in testIsValid() 110 final ProxyInfo proxy2 = ProxyInfo.buildDirectProxy("", TEST_PORT); in testIsValid() 113 final ProxyInfo proxy3 = ProxyInfo.buildDirectProxy(".invalid.com", TEST_PORT); in testIsValid() [all …]
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NattKeepalivePacketDataTest.kt | 46 private val TEST_PORT = 4243 constant in android.net.NattKeepalivePacketDataTest 80 srcPort: Int = TEST_PORT, in address() 89 nattKeepalivePacket(dstPort = TEST_PORT) in address() 108 NattKeepalivePacketData(TEST_SRC_ADDRV4, TEST_PORT, TEST_DST_ADDRV4, TEST_PORT, in address()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordRepositoryTest.kt | 63 private const val TEST_PORT = 12345 in <lambda>() constant 82 port = TEST_PORT in <lambda>() 88 port = TEST_PORT in <lambda>() 94 port = TEST_PORT in <lambda>() 114 port = TEST_PORT in <lambda>() 122 port = TEST_PORT in <lambda>() 212 TEST_PORT, TEST_HOSTNAME), packet.authorityRecords[0]) in makeFlags() 458 TEST_PORT /* servicePort */, in testOnProbingSucceeded() 535 TEST_PORT /* servicePort */, in testGetOffloadPacket() 623 MdnsServiceRecord(serviceName, 0L, true, SHORT_TTL, 0, 0, TEST_PORT, TEST_HOSTNAME), in testGetReply_singlePtrQuestion_returnsSrvTxtAddressNsecRecords() [all …]
|
D | MdnsReplySenderTest.kt | 51 private const val TEST_PORT = 12345 constant 63 InetAddresses.parseNumericAddress("192.0.2.1"), TEST_PORT) 80 SHORT_TTL, 0 /* servicePriority */, 0 /* serviceWeight */, TEST_PORT, hostname), 96 SHORT_TTL, 0 /* servicePriority */, 0 /* serviceWeight */, TEST_PORT, 290 0 /* serviceWeight */, TEST_PORT, otherHostname)) in testQueueReply_MultiplePacket_WithMultipleQuestions() 302 0 /* serviceWeight */, TEST_PORT, otherHostname)) in testQueueReply_MultiplePacket_WithMultipleQuestions()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ProtocolPortTupleTest.java | 37 private static final int TEST_PORT = 2; field in ProtocolPortTupleTest 90 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData() 91 ProtocolPortTuple expected = new ProtocolPortTuple(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData()
|
/packages/modules/Connectivity/tests/common/java/android/net/util/ |
D | SocketUtilsTest.kt | 37 private const val TEST_PORT = 555 constant 45 val nlAddress = SocketUtils.makeNetlinkSocketAddress(TEST_PORT, RTMGRP_NEIGH) in testMakeNetlinkSocketAddress() 47 assertEquals(TEST_PORT, nlAddress.getPortId()) in testMakeNetlinkSocketAddress()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | RedirectListenerTest.java | 48 private static final int TEST_PORT = 1010; field in RedirectListenerTest 87 mRedirectListener = new RedirectListenerSpy(mLooper.getLooper(), TEST_PORT); in setUp()
|