Home
last modified time | relevance | path

Searched refs:addressBytes (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmAddressT.java60 final byte[] addressBytes = inetAddress.getAddress(); in StructXfrmAddressT()
61 System.arraycopy(addressBytes, 0, address, 0, addressBytes.length); in StructXfrmAddressT()
66 final byte[] addressBytes; in getAddress()
68 addressBytes = this.address; in getAddress()
70 addressBytes = new byte[IPV4_ADDR_LEN]; in getAddress()
71 System.arraycopy(this.address, 0, addressBytes, 0, addressBytes.length); in getAddress()
77 return InetAddress.getByAddress(addressBytes); in getAddress()
81 "Illegal length of IP address " + addressBytes.length, e); in getAddress()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DInfraNetworkDevice.java118 final byte[] addressBytes = pio.prefix; in runSlaac()
119 addressBytes[addressBytes.length - 1] = (byte) (new Random()).nextInt(); in runSlaac()
120 addressBytes[addressBytes.length - 2] = (byte) (new Random()).nextInt(); in runSlaac()
121 return (Inet6Address) InetAddress.getByAddress(addressBytes); in runSlaac()
/packages/modules/Uwb/framework/tests/src/android/uwb/
DUwbTestUtils.java74 byte[] addressBytes = new byte[isShortAddress ? UwbAddress.SHORT_ADDRESS_BYTE_LENGTH : in getUwbAddress()
76 for (int i = 0; i < addressBytes.length; i++) { in getUwbAddress()
77 addressBytes[i] = (byte) getDoubleInRange(1, 255); in getUwbAddress()
79 return UwbAddress.fromBytes(addressBytes); in getUwbAddress()
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbTestUtils.java122 byte[] addressBytes = new byte[isShortAddress ? UwbAddress.SHORT_ADDRESS_BYTE_LENGTH : in getUwbAddress()
124 for (int i = 0; i < addressBytes.length; i++) { in getUwbAddress()
125 addressBytes[i] = (byte) getDoubleInRange(1, 255); in getUwbAddress()
127 return UwbAddress.fromBytes(addressBytes); in getUwbAddress()
DUwbAddressTest.java48 byte[] addressBytes = getByteArray(len); in runFromBytes()
49 UwbAddress address = UwbAddress.fromBytes(addressBytes); in runFromBytes()
51 assertEquals(addressBytes, address.toBytes()); in runFromBytes()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNdOptPref64.java120 byte[] addressBytes = new byte[16]; in StructNdOptPref64()
121 buf.get(addressBytes, 0, 12); in StructNdOptPref64()
124 addr = InetAddress.getByAddress(addressBytes); in StructNdOptPref64()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInet4AddressUtils.java46 byte[] addressBytes = { (byte) (0xff & (hostAddress >> 24)), in intToInet4AddressHTH()
52 return (Inet4Address) InetAddress.getByAddress(addressBytes); in intToInet4AddressHTH()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DUwbAddress.java47 private UwbAddress(AddressingMode mode, byte[] addressBytes) { in UwbAddress() argument
49 this.mAddressBytes = addressBytes; in UwbAddress()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java364 final byte[] addressBytes = pio.prefix; in runSlaac()
368 addressBytes[addressBytes.length - 1] = (byte) (new Random()).nextInt(); in runSlaac()
369 addressBytes[addressBytes.length - 2] = (byte) (new Random()).nextInt(); in runSlaac()
371 return (Inet6Address) InetAddress.getByAddress(addressBytes); in runSlaac()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java148 byte[] addressBytes = addressToReverseBytes(mLocalBluetoothAddress); in createBluetoothOobDataRecord()
149 if (addressBytes != null) { in createBluetoothOobDataRecord()
150 System.arraycopy(addressBytes, 0, payload, 2, 6); in createBluetoothOobDataRecord()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairGattServerTest.java529 byte[] addressBytes = Arrays.copyOfRange(response, 1, 7); in testProcessKeyBasedPairingRequestWithAntiSpoofKey_responseValid()
533 assertThat(addressBytes).isEqualTo(TEST_DEVICE_ADDRESS_BYTES); in testProcessKeyBasedPairingRequestWithAntiSpoofKey_responseValid()
560 byte[] addressBytes = Arrays.copyOfRange(response, 1, 7); in testProcessKeyBasedPairingRequestUsingAccountKey_responseValid()
564 assertThat(addressBytes).isEqualTo(TEST_DEVICE_ADDRESS_BYTES); in testProcessKeyBasedPairingRequestUsingAccountKey_responseValid()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java298 private static Inet6Address bytesToInet6Address(byte[] addressBytes) { in bytesToInet6Address() argument
300 return (Inet6Address) Inet6Address.getByAddress(addressBytes); in bytesToInet6Address()
/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java1766 byte[] addressBytes = (addr == null ? null : addr.getAddress()); in writeAddress()
1767 dest.writeByteArray(addressBytes); in writeAddress()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java1075 byte[] addressBytes = Utils.getBytesFromAddress(address); in onAudioDevicesAdded()
1076 BluetoothDevice device = mAdapterService.getDeviceFromByte(addressBytes); in onAudioDevicesAdded()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp1202 jbyte* addressBytes = env->GetByteArrayElements(address, NULL); in set_data() local
1203 if (addressBytes == NULL) { in set_data()
1208 memcpy(oob_data.address, addressBytes, len); in set_data()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java1913 byte[] addressBytes = Utils.getBytesFromAddress(address); in onAudioDevicesAdded()
1914 BluetoothDevice device = mAdapterService.getDeviceFromByte(addressBytes); in onAudioDevicesAdded()
1941 byte[] addressBytes = Utils.getBytesFromAddress(address); in onAudioDevicesRemoved()
1942 BluetoothDevice device = mAdapterService.getDeviceFromByte(addressBytes); in onAudioDevicesRemoved()
/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java648 byte[] addressBytes = Arrays.copyOfRange(array, pos, pos + 16); in IPv6AddresstoString()
649 InetAddress address = (Inet6Address) InetAddress.getByAddress(addressBytes); in IPv6AddresstoString()
DApfFilter.java751 byte[] addressBytes = Arrays.copyOfRange(array, pos, pos + 16); in IPv6AddresstoString()
752 InetAddress address = InetAddress.getByAddress(addressBytes); in IPv6AddresstoString()