/cts/tests/tests/location/src/android/location/cts/ |
D | AddressTest.java | 40 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/ |
D | Rfc822TokenTest.java | 38 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/ |
D | android_hardware_cts_SensorDirectReportTest.cpp | 43 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/ |
D | AudioStreamTest.java | 26 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/ |
D | LocalSocketTest.java | 43 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 …]
|
D | LocalServerSocketTest.java | 30 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/ |
D | android_debug_cts.cpp | 80 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/ |
D | AslrMallocTest.cpp | 69 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/ |
D | NumberDialingTest.java | 43 Uri address = Uri.fromParts("tel", "*1234#", null); in testEndInPound() local 60 startCallTo(address, account.getAccountHandle()); in testEndInPound() 64 assertEquals(address, res[0]); in testEndInPound()
|
D | SelfManagedConnectionServiceTest.java | 224 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()
|
D | TestUtils.java | 219 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()
|
D | ConnectionServiceTest.java | 195 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/ |
D | Ipv4Packet.java | 55 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()
|
D | ReflectorVpnService.java | 129 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/ |
D | android_os_cts_NoExecutePermissionTest.cpp | 26 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/ |
D | MyVpnService.java | 60 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()
|
D | VpnTest.java | 288 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/ |
D | MyBroadcastReceiver.java | 159 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/ |
D | DummyConnectionService.java | 52 final Uri address = in onCreateIncomingConnection() local 54 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ListeningPortsTest.java | 244 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/ |
D | SmsUsageMonitorShortCodeTest.java | 61 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/ |
D | ConnectivityManagerLegacyTest.java | 100 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/ |
D | CallBlockingTest.java | 132 final Uri address = in onCreateIncomingConnection() local 134 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
D | PingTest.java | 99 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/ |
D | EnumDevicesTest.java | 127 String address = deviceInfo.getAddress(); in test_devicesInfoFields() local 128 assertNotNull(address); in test_devicesInfoFields()
|