Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/location/src/android/location/cts/
DAddressTest.java40 Address address = new Address(Locale.GERMAN); in testDescribeContents() local
42 assertEquals(0, address.describeContents()); in testDescribeContents()
46 address.setExtras(extras); in testDescribeContents()
48 assertEquals(extras.describeContents(), address.describeContents()); in testDescribeContents()
52 Address address = new Address(Locale.ITALY); in testAccessAdminArea() local
55 address.setAdminArea(adminArea); in testAccessAdminArea()
56 assertEquals(adminArea, address.getAdminArea()); in testAccessAdminArea()
58 address.setAdminArea(null); in testAccessAdminArea()
59 assertNull(address.getAdminArea()); in testAccessAdminArea()
63 Address address = new Address(Locale.JAPAN); in testAccessCountryCode() local
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenTest.java29 final String address = "jdoe@example.net"; in testConstructor() local
31 Rfc822Token rfc822Token1 = new Rfc822Token(name, address, comment); in testConstructor()
33 assertEquals(address, rfc822Token1.getAddress()); in testConstructor()
36 Rfc822Token rfc822Token2 = new Rfc822Token(null, address, comment); in testConstructor()
38 assertEquals(address, rfc822Token2.getAddress()); in testConstructor()
46 Rfc822Token rfc822Token4 = new Rfc822Token(name, address, null); in testConstructor()
48 assertEquals(address, rfc822Token4.getAddress()); in testConstructor()
54 final String address = "jdoe@example.net"; in testAccessName() local
56 Rfc822Token rfc822Token = new Rfc822Token(name, address, comment); in testAccessName()
86 final String address = "jdoe@example.net"; in testAccessComment() local
[all …]
DRfc822TokenizerTest.java145 String address, String comment) { in localAssertEquals() argument
147 assertEquals(address, token.getAddress()); in localAssertEquals()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java37 String address = ADDRESS_PREFIX + "_testLocalConnections"; in testLocalConnections() local
39 LocalServerSocket localServerSocket = new LocalServerSocket(address); in testLocalConnections()
43 LocalSocketAddress locSockAddr = new LocalSocketAddress(address); in testLocalConnections()
120 String address = ADDRESS_PREFIX + "_testAccessors"; in testAccessors() local
122 LocalSocketAddress addr = new LocalSocketAddress(address); in testAccessors()
181 String address = ADDRESS_PREFIX + "_testAvailable"; in testAvailable() local
182 LocalServerSocket localServerSocket = new LocalServerSocket(address); in testAvailable()
186 LocalSocketAddress locSockAddr = new LocalSocketAddress(address); in testAvailable()
211 String address = ADDRESS_PREFIX + "_testFlush"; in testFlush() local
212 LocalServerSocket localServerSocket = new LocalServerSocket(address); in testFlush()
[all …]
DLocalServerSocketTest.java30 String address = "com.android.net.LocalServerSocketTest_testLocalServerSocket"; in testLocalServerSocket() local
31 LocalServerSocket localServerSocket = new LocalServerSocket(address); in testLocalServerSocket()
38 clientSocket.connect(new LocalSocketAddress(address)); in testLocalServerSocket()
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioStreamTest.java26 private void testRtpStream(InetAddress address) throws Exception { in testRtpStream() argument
27 AudioStream stream = new AudioStream(address); in testRtpStream()
28 assertEquals(stream.getLocalAddress(), address); in testRtpStream() local
33 stream.associate(address, 1000); in testRtpStream()
34 assertEquals(stream.getRemoteAddress(), address); in testRtpStream() local
/cts/hostsidetests/devicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/
DIpv4Packet.java55 byte[] address = new byte[4]; in Ipv4Packet()
57 stream.read(address, 0, address.length); in Ipv4Packet()
58 sourceAddress = (Inet4Address) Inet4Address.getByAddress(address); in Ipv4Packet()
60 stream.read(address, 0, address.length); in Ipv4Packet()
61 destinationAddress = (Inet4Address) Inet4Address.getByAddress(address); in Ipv4Packet()
DReflectorVpnService.java73 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
75 builder.addAddress(address, prefixLength); in start()
89 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
91 builder.addRoute(address, prefixLength); in start()
/cts/tests/aslr/src/
DAslrMallocTest.cpp72 void GetAddress(size_t allocSize, uintptr_t& address) in GetAddress() argument
105 ASSERT_TRUE(android::base::ParseUint(output.c_str(), &address)); in GetAddress()
121 uintptr_t address; in TestRandomization() local
122 GetAddress(size, address); in TestRandomization()
124 addresses.emplace(address); in TestRandomization()
/cts/tests/tests/telecom/src/android/telecom/cts/
DNumberDialingTest.java43 Uri address = Uri.fromParts("tel", "*1234#", null); in testEndInPound() local
60 startCallTo(address, account.getAccountHandle()); in testEndInPound()
64 assertEquals(address, res[0]); in testEndInPound()
DTestUtils.java96 PhoneAccountHandle handle, String label, String address) throws Exception { in registerSimPhoneAccount() argument
100 + handle.getId() + " " + PRIMARY_USER_SN + " " + label + " " + address); in registerSimPhoneAccount()
DConnectionTest.java144 final Uri address = Uri.fromParts("tel", "1234567", null); in testSetAndGetAddress() local
145 connection.setAddress(address, TelecomManager.PRESENTATION_UNKNOWN); in testSetAndGetAddress()
146 assertEquals(address, connection.getAddress()); in testSetAndGetAddress()
/cts/tests/tests/os/jni/
Dandroid_os_cts_NoExecutePermissionTest.cpp26 static jboolean isAddressExecutable(uintptr_t address) { in isAddressExecutable() argument
39 if ((scan == 3) && (start <= address) && (address < end)) { in isAddressExecutable()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyVpnService.java60 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
62 builder.addAddress(address, prefixLength); in start()
76 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
78 builder.addRoute(address, prefixLength); in start()
DVpnTest.java284 InetAddress address = InetAddress.getByName(to); in checkPing() local
293 if (address instanceof Inet6Address) { in checkPing()
305 Os.connect(s, address, port); in checkPing()
425 InetAddress address = InetAddress.getByName(to); in checkUdpEcho() local
426 if (address instanceof Inet6Address) { // http://b/18094870 in checkUdpEcho()
437 s.connect(address, 7); in checkUdpEcho()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSmsUsageMonitorShortCodeTest.java63 final String address; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
68 this.address = destAddress; in ShortCodeTest()
494 private boolean isCDMA112(String address) { in isCDMA112() argument
496 && "112".equals(address); in isCDMA112()
499 private static int expectedReturnCode(String address) { in expectedReturnCode() argument
500 return PhoneNumberUtils.isEmergencyNumber(address) ? in expectedReturnCode()
513 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor()
514 test.category, isCDMA112(test.address) ? CATEGORY_NOT_SHORT_CODE : in testSmsUsageMonitor()
515 monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java179 final String address = "http://example.com"; in checkNetworkStatus()
183 + "\n\tactiveNetworkInfo: " + networkInfo + "\n\tURL: " + address); in checkNetworkStatus()
187 final URL url = new URL(address); in checkNetworkStatus()
196 checkDetails = "HTTP response for " + address + ": " + response; in checkNetworkStatus()
199 checkDetails = "Exception getting " + address + ": " + e; in checkNetworkStatus()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDummyConnectionService.java49 final Uri address = in onCreateIncomingConnection() local
51 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()
/cts/tests/tests/security/src/android/security/cts/
DListeningPortsTest.java238 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument
243 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable()
245 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable()
260 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java100 for (LinkAddress address : lp.getLinkAddresses()) { in getIpAddresses()
101 addresses.add(address.getAddress()); in getIpAddresses()
109 for (InetAddress address : getIpAddresses(type)) { in hasIPv4()
110 if (address instanceof Inet4Address) { in hasIPv4()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DCallBlockingTest.java132 final Uri address = in onCreateIncomingConnection() local
134 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()
/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java99 InetAddress address, byte[] packet) throws ErrnoException, IOException { in sendPing() argument
104 int ret = Os.sendto(s, ByteBuffer.wrap(packet), 0, address, port); in sendPing()
/cts/tests/tests/media/src/android/media/cts/
DEnumDevicesTest.java108 String address = deviceInfo.getAddress(); in test_devicesInfoFields() local
109 assertNotNull(address); in test_devicesInfoFields()
/cts/tools/tradefed-host/etc/
Dold-cts-tradefed49 RDBG_FLAG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=${TF_DEBUG_PORT}
/cts/tools/cts-tradefed/etc/
Dcts-tradefed50 RDBG_FLAG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=${TF_DEBUG_PORT}

12