Home
last modified time | relevance | path

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

123

/cts/tests/location/location_none/src/android/location/cts/none/
DAddressTest.java53 Address address = new Address(Locale.ITALY); in testAccessAdminArea() local
56 address.setAdminArea(adminArea); in testAccessAdminArea()
57 assertEquals(adminArea, address.getAdminArea()); in testAccessAdminArea()
59 address.setAdminArea(null); in testAccessAdminArea()
60 assertNull(address.getAdminArea()); in testAccessAdminArea()
65 Address address = new Address(Locale.JAPAN); in testAccessCountryCode() local
68 address.setCountryCode(countryCode); in testAccessCountryCode()
69 assertEquals(countryCode, address.getCountryCode()); in testAccessCountryCode()
71 address.setCountryCode(null); in testAccessCountryCode()
72 assertNull(address.getCountryCode()); in testAccessCountryCode()
[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/hostsidetests/hdmicec/src/android/hdmicec/cts/
DLogicalAddress.java41 private final int address; field in LogicalAddress
46 return Integer.toHexString(this.address); in toString()
51 deviceMap.put(device.address, device); in deviceMap.put() argument
60 return this.address; in getLogicalAddressAsInt()
87 public static LogicalAddress getLogicalAddress(int address) { in getLogicalAddress() argument
88 return (LogicalAddress) deviceMap.get(address); in getLogicalAddress()
91 private LogicalAddress(int address) { in LogicalAddress() argument
92 this.address = address; in LogicalAddress()
DBaseHdmiCecCtsTest.java48 private String address; field in BaseHdmiCecCtsTest.AddressType
51 return this.address; in getAddressType()
54 private AddressType(String address) { in AddressType() argument
55 this.address = address; in AddressType()
168 int address = Integer.decode(m.group("logicalAddress")); in getDumpsysLogicalAddresses() local
169 LogicalAddress logicalAddress = LogicalAddress.getLogicalAddress(address); in getDumpsysLogicalAddresses()
202 for (LogicalAddress address : logicalAddressList) { in getTargetLogicalAddress()
203 if (address.getDeviceType() == testDeviceType) { in getTargetLogicalAddress()
204 return address; in getTargetLogicalAddress()
216 int address = in getDumpsysActiveSourceLogicalAddress() local
[all …]
/cts/tests/tests/os/CompanionTestApp/src/android/os/cts/companiontestapp/
DDevicePresenceListener.kt23 override fun onDeviceAppeared(address: String) { in onDeviceAppeared()
24 toast("Device appeared: $address") in onDeviceAppeared()
27 override fun onDeviceDisappeared(address: String) { in onDeviceDisappeared()
28 toast("Device disappeared: $address") in onDeviceDisappeared()
DCompanionTestAppMainActivity.kt116 cdm.associations.forEach { address -> in <lambda>() method
117 toast("Disassociating $address") in <lambda>()
118 cdm.disassociate(address) in <lambda>()
126 cdm.associations.forEach { address -> in <lambda>() method
127 toast("startObservingDevicePresence $address") in <lambda>()
128 cdm.startObservingDevicePresence(address) in <lambda>()
/cts/tests/uwb/src/android/uwb/cts/
DUwbAddressTest.java49 UwbAddress address = UwbAddress.fromBytes(addressBytes); in runFromBytes() local
50 assertEquals(address.size(), len); in runFromBytes()
51 assertEquals(addressBytes, address.toBytes()); in runFromBytes()
74 UwbAddress address = UwbTestUtils.getUwbAddress(useShortAddress); in runParcel() local
75 address.writeToParcel(parcel, 0); in runParcel()
78 assertEquals(address, fromParcel); in runParcel()
DRangingMeasurementTest.java45 UwbAddress address = UwbTestUtils.getUwbAddress(false); in testBuilder() local
64 builder.setRemoteDeviceAddress(address); in testBuilder()
68 assertEquals(address, measurement.getRemoteDeviceAddress()); in testBuilder()
DUwbTestUtils.java66 public static RangingMeasurement getRangingMeasurement(UwbAddress address) { in getRangingMeasurement() argument
71 .setRemoteDeviceAddress(address != null ? address : getUwbAddress(false)) in getRangingMeasurement()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DDevicePresenceListener.java29 public void onDeviceAppeared(String address) { in onDeviceAppeared() argument
31 Toast.makeText(this, "Device appeared: " + address, in onDeviceAppeared()
36 public void onDeviceDisappeared(String address) { in onDeviceDisappeared() argument
38 Toast.makeText(this, "Device disappeared: " + address, in onDeviceDisappeared()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DOobDataTest.java54 byte[] address = new byte[] {0x12, 0x34, 0x56, 0x78, (byte) 0x8A, (byte) 0xBC, 0x0}; in testClassicBuilder()
58 new OobData.ClassicBuilder(null, length, address); in testClassicBuilder()
63 new OobData.ClassicBuilder(confirmationHash, null, address); in testClassicBuilder()
76 confirmationHash, length, address); in testClassicBuilder()
81 assertArrayEquals(address, defaultClassicOobData.getDeviceAddressWithType()); in testClassicBuilder()
124 byte[] address = new byte[] {0x12, 0x34, 0x56, 0x78, (byte) 0x8A, (byte) 0xBC, 0x0}; in testLEBuilder()
128 new OobData.LeBuilder(null, address, OobData.LE_DEVICE_ROLE_PERIPHERAL_ONLY); in testLEBuilder()
139 new OobData.LeBuilder(confirmationHash, address, -1); in testLEBuilder()
145 OobData.LeBuilder leBuilder = new OobData.LeBuilder(confirmationHash, address, in testLEBuilder()
150 assertArrayEquals(address, defaultLeOobData.getDeviceAddressWithType()); in testLEBuilder()
/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/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/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.java154 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
156 builder.addAddress(address, prefixLength); in start()
170 InetAddress address = InetAddress.getByName(prefixAndMask[0]); in start() local
172 builder.addRoute(address, prefixLength); in start()
/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.java235 private void addAndVerifyIncomingCall(PhoneAccountHandle handle, Uri address) in addAndVerifyIncomingCall() argument
237 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, handle, address); in addAndVerifyIncomingCall() local
244 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in addAndVerifyIncomingCall()
371 … private void placeAndVerifyOutgoingCall(PhoneAccountHandle handle, Uri address) throws Exception { in placeAndVerifyOutgoingCall() argument
373 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, handle, address); in placeAndVerifyOutgoingCall() local
380 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in placeAndVerifyOutgoingCall()
588 Uri address = Uri.fromParts("sip", "test" + ix + "@test.com", null); in testCallLimit() local
592 TestUtils.TEST_SELF_MANAGED_HANDLE_1, address); in testCallLimit() local
593 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(address); in testCallLimit()
622 Uri address = getTestNumber(); in testDisconnectSelfManagedCallForEmergency() local
[all …]
DTestUtils.java387 PhoneAccountHandle handle, String label, String address) throws Exception { in registerSimPhoneAccount() argument
392 + handle.getId() + " " + currentUserSerial + " " + label + " " + address); in registerSimPhoneAccount()
396 PhoneAccountHandle handle, String label, String address) throws Exception { in registerEmergencyPhoneAccount() argument
401 + handle.getId() + " " + currentUserSerial + " " + label + " " + address); in registerEmergencyPhoneAccount()
566 Uri address) { in addIncomingCall() argument
570 extras.putParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, address); in addIncomingCall()
584 public static BluetoothDevice makeBluetoothDevice(String address) { in makeBluetoothDevice() argument
587 p1.writeString(address); in makeBluetoothDevice()
604 Uri address) { in placeOutgoingCall() argument
608 telecomManager.placeCall(address, extras); in placeOutgoingCall()
[all …]
/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsExternalCallStateTest.java37 Uri address = Uri.fromParts("tel", "5551212", null); in parcelUnparcel() local
43 ImsExternalCallState testState = new ImsExternalCallState(callId, address, localAddress, in parcelUnparcel()
55 assertEquals(address, unparceledInfo.getAddress()); in parcelUnparcel()
/cts/hostsidetests/hdmicec/
Dcec_adapter.md93 [on] \{address\}
94 : power on the device with the given logical address.
96 [standby] \{address\}
97 : put the device with the given address in standby mode.
99 [la] \{logical address\}
100 : change the logical address of the CEC adapter.
105 [pa] \{physical address\}
106 : change the physical address of the CEC adapter.
145 : makes the specified physical address active.
148 : makes the specified logical address active.
[all …]
DREADME.md22 It is recommended that the playback device has an HDMI physical address of `1.0.0.0` while running
23 the tests. In case the DUT takes a physical address other than `1.0.0.0` and this is unavoidable,
24 the tests can be configured to expect a different physical address by appending these arguments to
29 Thus, for a device that is taking an address `3.0.0.0`, pass `12288` as the `cec-phy-addr` argument.
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0069/
Dpoc.c43 uint32_t address; member
117 uint64_t address, unsigned char *buffer, in perform_pa_read() argument
155 SET_VALUE(0x0497000000000000 | (address + sizeof(uint32_t) * ii)); in perform_pa_read()
240 switch (perform_pa_read(fd, ioctl_code, kernel_buffer.address, pa, buffer, in main()
268 if (kernel_buffer.address != 0) { in main()
/cts/tests/tests/hardware/src/android/hardware/hdmi/cts/
DHdmiSwitchClientTest.java72 final int address = 0x1000; in testGetPortInfo() local
77 new HdmiPortInfo(id, HdmiPortInfo.PORT_INPUT, address, cec, mhl, arc); in testGetPortInfo()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DTestConnectionService.java52 final Uri address = in onCreateIncomingConnection() local
54 connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); in onCreateIncomingConnection()

123