Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 44) 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.java39 final String address = "jdoe@example.net"; in testConstructor() local
41 Rfc822Token rfc822Token1 = new Rfc822Token(name, address, comment); in testConstructor()
43 assertEquals(address, rfc822Token1.getAddress()); in testConstructor()
46 Rfc822Token rfc822Token2 = new Rfc822Token(null, address, comment); in testConstructor()
48 assertEquals(address, rfc822Token2.getAddress()); in testConstructor()
56 Rfc822Token rfc822Token4 = new Rfc822Token(name, address, null); in testConstructor()
58 assertEquals(address, rfc822Token4.getAddress()); in testConstructor()
65 final String address = "jdoe@example.net"; in testAccessName() local
67 Rfc822Token rfc822Token = new Rfc822Token(name, address, comment); in testAccessName()
97 final String address = "jdoe@example.net"; in testAccessComment() local
[all …]
/cts/tests/tests/net/src/android/net/cts/
DInetAddressesTest.java84 public void parseNumericAddress(String address, String expectedString) { in parseNumericAddress() argument
85 InetAddress inetAddress = InetAddresses.parseNumericAddress(address); in parseNumericAddress()
91 public void test_parseNonNumericAddress(String address) { in test_parseNonNumericAddress() argument
93 InetAddress inetAddress = InetAddresses.parseNumericAddress(address); in test_parseNonNumericAddress()
95 "Address %s is not numeric but was parsed as %s", address, inetAddress)); in test_parseNonNumericAddress()
97 assertThat(e.getMessage()).contains(address); in test_parseNonNumericAddress()
113 public void test_isNumericAddress(String address, String unused) { in test_isNumericAddress() argument
114 assertTrue("expected '" + address + "' to be treated as numeric", in test_isNumericAddress()
115 InetAddresses.isNumericAddress(address)); in test_isNumericAddress()
120 public void test_isNotNumericAddress(String address) { in test_isNotNumericAddress() argument
[all …]
DLocalSocketTest.java43 String address = ADDRESS_PREFIX + "_testLocalConnections"; in testLocalConnections() local
45 LocalServerSocket localServerSocket = new LocalServerSocket(address); in testLocalConnections()
49 LocalSocketAddress locSockAddr = new LocalSocketAddress(address); in testLocalConnections()
139 String address = ADDRESS_PREFIX + "_testAccessors"; in testAccessors() local
141 LocalSocketAddress addr = new LocalSocketAddress(address); in testAccessors()
201 String address = ADDRESS_PREFIX + "_testSetSoTimeout_readTimeout"; in testSetSoTimeout_readTimeout() local
203 try (LocalSocketPair socketPair = LocalSocketPair.createConnectedSocketPair(address)) { in testSetSoTimeout_readTimeout()
231 String address = ADDRESS_PREFIX + "_testSetSoTimeout_writeTimeout"; in testSetSoTimeout_writeTimeout() local
233 try (LocalSocketPair socketPair = LocalSocketPair.createConnectedSocketPair(address)) { in testSetSoTimeout_writeTimeout()
266 String address = ADDRESS_PREFIX + "_testAvailable"; in testAvailable() local
[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/sensor/jni/
Dandroid_hardware_cts_SensorDirectReportTest.cpp43 void *address; in readHardwareBuffer() local
47 fence, nullptr, &address) == 0) { in readHardwareBuffer()
48 if (address != nullptr) { in readHardwareBuffer()
50 reinterpret_cast<const jbyte *>(address) + srcOffset); in readHardwareBuffer()
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioStreamTest.java28 private void testRtpStream(InetAddress address) throws Exception { in testRtpStream() argument
29 AudioStream stream = new AudioStream(address); in testRtpStream()
30 assertEquals(stream.getLocalAddress(), address); in testRtpStream() local
35 stream.associate(address, 1000); in testRtpStream()
36 assertEquals(stream.getRemoteAddress(), address); in testRtpStream() local
/cts/apps/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.java146 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
148 builder.addAddress(address, prefixLength); in start()
162 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
164 builder.addRoute(address, prefixLength); in start()
/cts/tests/aslr/src/
DAslrMallocTest.cpp69 void GetAddress(size_t allocSize, uintptr_t& address) in GetAddress() argument
102 ASSERT_TRUE(android::base::ParseUint(output.c_str(), &address)); in GetAddress()
118 uintptr_t address; in TestRandomization() local
119 GetAddress(size, address); in TestRandomization()
121 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.java285 PhoneAccountHandle handle, String label, String address) throws Exception { in registerSimPhoneAccount() argument
290 + handle.getId() + " " + currentUserSerial + " " + label + " " + address); in registerSimPhoneAccount()
408 Uri address) { in addIncomingCall() argument
412 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, address); in addIncomingCall()
426 public static BluetoothDevice makeBluetoothDevice(String address) { in makeBluetoothDevice() argument
429 p1.writeString(address); in makeBluetoothDevice()
446 Uri address) { in placeOutgoingCall() argument
450 telecomManager.placeCall(address, extras); in placeOutgoingCall()
465 public static SelfManagedConnection waitForAndGetConnection(Uri address) { in waitForAndGetConnection() argument
477 .filter(connection -> address.equals(connection.getAddress())) in waitForAndGetConnection()
DSelfManagedConnectionServiceTest.java233 private void addAndVerifyIncomingCall(PhoneAccountHandle handle, Uri address) in addAndVerifyIncomingCall() argument
235 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, handle, address); in addAndVerifyIncomingCall() local
242 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in addAndVerifyIncomingCall()
369 … private void placeAndVerifyOutgoingCall(PhoneAccountHandle handle, Uri address) throws Exception { in placeAndVerifyOutgoingCall() argument
371 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, handle, address); in placeAndVerifyOutgoingCall() local
378 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in placeAndVerifyOutgoingCall()
585 Uri address = Uri.fromParts("sip", "test" + ix + "@test.com", null); in testCallLimit() local
590 TestUtils.TEST_SELF_MANAGED_HANDLE_1, address); in testCallLimit() local
591 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in testCallLimit()
DConnectionServiceTest.java224 PhoneAccountHandle pah, Uri address) { in addIncomingSelfManagedCall() argument
226 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, pah, address); in addIncomingSelfManagedCall() local
233 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in addIncomingSelfManagedCall()
/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/securitybulletin/src/android/security/cts/
DSecurityTestCase.java160 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX); in isKptr() local
164 return address.compareTo(new BigInteger("C0000000", RADIX_HEX)) >= 0; in isKptr()
167 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX); in isKptr() local
172 return address.compareTo(new BigInteger("ff80000000000000", RADIX_HEX)) >= 0; in isKptr()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyVpnService.java67 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
69 builder.addAddress(address, prefixLength); in start()
83 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
85 builder.addRoute(address, prefixLength); in start()
DVpnTest.java300 InetAddress address = InetAddress.getByName(to); in checkPing() local
309 if (address instanceof Inet6Address) { in checkPing()
321 Os.connect(s, address, port); in checkPing()
458 InetAddress address = InetAddress.getByName(to); in checkUdpEcho() local
459 if (address instanceof Inet6Address) { // http://b/18094870 in checkUdpEcho()
470 s.connect(address, 7); in checkUdpEcho()
648 InetAddress address = InetAddress.getByName("localhost"); in testGetConnectionOwnerUidSecurity() local
651 s.connect(address, 7); in testGetConnectionOwnerUidSecurity()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java159 final String address = "http://example.com"; in checkNetworkStatus() local
163 + "\n\tactiveNetworkInfo: " + networkInfo + "\n\tURL: " + address); in checkNetworkStatus()
167 final URL url = new URL(address); in checkNetworkStatus()
176 checkDetails = "HTTP response for " + address + ": " + response; in checkNetworkStatus()
179 checkDetails = "Exception getting " + address + ": " + e; in checkNetworkStatus()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsUsageMonitorShortCodeTest.java52 final String address; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
57 this.address = destAddress; in ShortCodeTest()
481 private static int expectedReturnCode(String address) { in expectedReturnCode() argument
482 return PhoneNumberUtils.isEmergencyNumber(address) ? in expectedReturnCode()
499 && PhoneNumberUtils.isEmergencyNumber(test.address, test.countryIso)) { in testSmsShortCodeDestination()
502 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsShortCodeDestination()
504 test.address, test.countryIso)); in testSmsShortCodeDestination()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DThreadsTest.java68 private Uri saveToTelephony(long threadId, String address, String body) { in saveToTelephony() argument
71 contentValues.put(Telephony.Sms.ADDRESS, address); in saveToTelephony()
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java142 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument
147 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable()
149 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable()
164 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDummyConnectionService.java52 final Uri address = in onCreateIncomingConnection() local
54 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java99 for (LinkAddress address : lp.getLinkAddresses()) { in getIpAddresses()
100 addresses.add(address.getAddress()); in getIpAddresses()
108 for (InetAddress address : getIpAddresses(type)) { in hasIPv4()
109 if (address instanceof Inet4Address) { in hasIPv4()
/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()

12