/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/ |
D | StructXfrmAddressT.java | 60 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/ |
D | InfraNetworkDevice.java | 118 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/ |
D | UwbTestUtils.java | 74 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/ |
D | UwbTestUtils.java | 122 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()
|
D | UwbAddressTest.java | 48 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/ |
D | StructNdOptPref64.java | 120 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/ |
D | Inet4AddressUtils.java | 46 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/ |
D | UwbAddress.java | 47 private UwbAddress(AddressingMode mode, byte[] addressBytes) { in UwbAddress() argument 49 this.mAddressBytes = addressBytes; in UwbAddress()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 364 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/ |
D | HandoverDataParser.java | 148 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/ |
D | FastPairGattServerTest.java | 529 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/ |
D | TunInterfaceController.java | 298 private static Inet6Address bytesToInet6Address(byte[] addressBytes) { in bytesToInet6Address() argument 300 return (Inet6Address) Inet6Address.getByAddress(addressBytes); in bytesToInet6Address()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | LinkProperties.java | 1766 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/ |
D | A2dpService.java | 1075 byte[] addressBytes = Utils.getBytesFromAddress(address); in onAudioDevicesAdded() 1076 BluetoothDevice device = mAdapterService.getDeviceFromByte(addressBytes); in onAudioDevicesAdded()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 1202 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/ |
D | LeAudioService.java | 1913 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/ |
D | LegacyApfFilter.java | 648 byte[] addressBytes = Arrays.copyOfRange(array, pos, pos + 16); in IPv6AddresstoString() 649 InetAddress address = (Inet6Address) InetAddress.getByAddress(addressBytes); in IPv6AddresstoString()
|
D | ApfFilter.java | 751 byte[] addressBytes = Arrays.copyOfRange(array, pos, pos + 16); in IPv6AddresstoString() 752 InetAddress address = InetAddress.getByAddress(addressBytes); in IPv6AddresstoString()
|