Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 41) 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.java38 final String address = "jdoe@example.net"; in testConstructor() local
40 Rfc822Token rfc822Token1 = new Rfc822Token(name, address, comment); in testConstructor()
42 assertEquals(address, rfc822Token1.getAddress()); in testConstructor()
45 Rfc822Token rfc822Token2 = new Rfc822Token(null, address, comment); in testConstructor()
47 assertEquals(address, rfc822Token2.getAddress()); in testConstructor()
55 Rfc822Token rfc822Token4 = new Rfc822Token(name, address, null); in testConstructor()
57 assertEquals(address, rfc822Token4.getAddress()); in testConstructor()
64 final String address = "jdoe@example.net"; in testAccessName() local
66 Rfc822Token rfc822Token = new Rfc822Token(name, address, comment); in testAccessName()
96 final String address = "jdoe@example.net"; in testAccessComment() local
[all …]
/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.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/tests/tests/net/src/android/net/cts/
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/tests/debug/libdebugtest/
Dandroid_debug_cts.cpp80 for (long *address : addresses) { in processVmReadv() local
82 iovec remote = { address, sizeof *address }; in processVmReadv()
84 address); in processVmReadv()
88 assert_or_exit(destination == *address); in processVmReadv()
/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()
DSelfManagedConnectionServiceTest.java224 private void addAndVerifyIncomingCall(PhoneAccountHandle handle, Uri address) in addAndVerifyIncomingCall() argument
226 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, handle, address); in addAndVerifyIncomingCall() local
233 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in addAndVerifyIncomingCall()
293 … private void placeAndVerifyOutgoingCall(PhoneAccountHandle handle, Uri address) throws Exception { in placeAndVerifyOutgoingCall() argument
295 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, handle, address); in placeAndVerifyOutgoingCall() local
302 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in placeAndVerifyOutgoingCall()
480 Uri address = Uri.fromParts("sip", "test" + ix + "@test.com", null); in testCallLimit() local
483 TestUtils.TEST_SELF_MANAGED_HANDLE_1, address); in testCallLimit() local
484 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in testCallLimit()
DTestUtils.java219 PhoneAccountHandle handle, String label, String address) throws Exception { in registerSimPhoneAccount() argument
223 + handle.getId() + " " + PRIMARY_USER_SN + " " + label + " " + address); in registerSimPhoneAccount()
328 Uri address) { in addIncomingCall() argument
332 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, address); in addIncomingCall()
346 public static BluetoothDevice makeBluetoothDevice(String address) { in makeBluetoothDevice() argument
349 p1.writeString(address); in makeBluetoothDevice()
366 Uri address) { in placeOutgoingCall() argument
370 telecomManager.placeCall(address, extras); in placeOutgoingCall()
385 public static SelfManagedConnection waitForAndGetConnection(Uri address) { in waitForAndGetConnection() argument
397 .filter(connection -> address.equals(connection.getAddress())) in waitForAndGetConnection()
DConnectionServiceTest.java195 PhoneAccountHandle pah, Uri address) { in addIncomingSelfManagedCall() argument
197 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, pah, address); in addIncomingSelfManagedCall() local
204 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in addIncomingSelfManagedCall()
/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.java129 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
131 builder.addAddress(address, prefixLength); in start()
145 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
147 builder.addRoute(address, prefixLength); in start()
/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.java288 InetAddress address = InetAddress.getByName(to); in checkPing() local
297 if (address instanceof Inet6Address) { in checkPing()
309 Os.connect(s, address, port); in checkPing()
429 InetAddress address = InetAddress.getByName(to); in checkUdpEcho() local
430 if (address instanceof Inet6Address) { // http://b/18094870 in checkUdpEcho()
441 s.connect(address, 7); in checkUdpEcho()
/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/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/tests/security/src/android/security/cts/
DListeningPortsTest.java244 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument
249 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable()
251 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable()
266 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSmsUsageMonitorShortCodeTest.java61 final String address; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
66 this.address = destAddress; in ShortCodeTest()
491 private static int expectedReturnCode(String address) { in expectedReturnCode() argument
492 return PhoneNumberUtils.isEmergencyNumber(address) ? in expectedReturnCode()
505 assertEquals("country: " + test.countryIso + " number: " + test.address, in testSmsUsageMonitor()
506 test.category, monitor.checkDestination(test.address, test.countryIso)); in testSmsUsageMonitor()
/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.java127 String address = deviceInfo.getAddress(); in test_devicesInfoFields() local
128 assertNotNull(address); in test_devicesInfoFields()

12