/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 | 39 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/ |
D | InetAddressesTest.java | 84 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 …]
|
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/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 | 28 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/ |
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 | 146 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/ |
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 | TestUtils.java | 285 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()
|
D | SelfManagedConnectionServiceTest.java | 233 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()
|
D | ConnectionServiceTest.java | 224 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/ |
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/securitybulletin/src/android/security/cts/ |
D | SecurityTestCase.java | 160 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/ |
D | MyVpnService.java | 67 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()
|
D | VpnTest.java | 300 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/ |
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/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsUsageMonitorShortCodeTest.java | 52 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/ |
D | ThreadsTest.java | 68 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/ |
D | ListeningPortsTest.java | 142 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/ |
D | DummyConnectionService.java | 52 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/ |
D | ConnectivityManagerLegacyTest.java | 99 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/ |
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()
|