Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be3185b4 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Update API docs to state that the IRK must be supplied in little endian

byte order

Tag: #feature
Bug: 233217148
Test: Manual (docs change)
Ignore-AOSP-First: Android T docs change
Change-Id: I5cab17003c22329744341235bb053cb55b4f7989
parent aaa3fcb7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -742,11 +742,11 @@ public final class ScanFilter implements Parcelable {
         * address can be validated using {@link BluetoothAdapter#checkBluetoothAddress}.
         * <p>
         * The IRK is used to resolve a static address from a private address. The IRK must be
         * provided in big endian byte order.
         * provided in little endian byte order.
         *
         * @param deviceAddress the remote device Bluetooth address for the filter
         * @param addressType indication of the type of address
         * @param irk non-null byte array representing the Identity Resolving Key
         * @param irk non-null little endian byte array representing the Identity Resolving Key
         *
         * @throws IllegalArgumentException If the {@code deviceAddress} is invalid
         * @throws IllegalArgumentException if the {@code irk} is invalid length
@@ -777,9 +777,8 @@ public final class ScanFilter implements Parcelable {
         * format of "01:02:03:AB:CD:EF". The device address can be validated using {@link
         * BluetoothAdapter#checkBluetoothAddress}.
         * @param addressType indication of the type of address
         * e.g. {@link BluetoothDevice#ADDRESS_TYPE_PUBLIC}
         * @param irk non-null byte array representing the Identity Resolving Address; nullable
         * internally.
         * @param irk non-null little endian byte array representing the Identity Resolving Key;
         *            nullable internally.
         *
         * @throws IllegalArgumentException if the {@code deviceAddress} is invalid
         * @throws IllegalArgumentException if the {@code addressType} is not PUBLIC or RANDOM