diff options
author | Martin Brabham <optedoblivion@google.com> | 2021-03-16 21:14:40 -0700 |
---|---|---|
committer | Martin Brabham <optedoblivion@google.com> | 2021-03-20 15:13:24 -0700 |
commit | 045fe260e1677f7442fbecc66085acd1dd23ff7b (patch) | |
tree | 1f36daee836963e0de4e57bfea506d8460e772ef /core/api | |
parent | 55fe87b2f646adc09a600344bca6b89c0ea9c28e (diff) |
Add new @SystemApi for specifying AddressType and IRK
Bug: 178234318
Test: compiles and runs
Tag: #feature
Change-Id: Ib67e681af01260df98602003b2aca47963494c6f
Diffstat (limited to 'core/api')
-rw-r--r-- | core/api/current.txt | 2 | ||||
-rw-r--r-- | core/api/system-current.txt | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 8224a754ec69..10398e40d030 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -8689,6 +8689,8 @@ package android.bluetooth { field public static final String ACTION_NAME_CHANGED = "android.bluetooth.device.action.NAME_CHANGED"; field public static final String ACTION_PAIRING_REQUEST = "android.bluetooth.device.action.PAIRING_REQUEST"; field public static final String ACTION_UUID = "android.bluetooth.device.action.UUID"; + field public static final int ADDRESS_TYPE_PUBLIC = 0; // 0x0 + field public static final int ADDRESS_TYPE_RANDOM = 1; // 0x1 field public static final int BOND_BONDED = 12; // 0xc field public static final int BOND_BONDING = 11; // 0xb field public static final int BOND_NONE = 10; // 0xa diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 2b37fef55d56..ac4faacec6fe 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -1726,6 +1726,17 @@ package android.bluetooth.le { field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ResultStorageDescriptor> CREATOR; } + public final class ScanFilter implements android.os.Parcelable { + method public int getAddressType(); + method @Nullable public byte[] getIrk(); + } + + public static final class ScanFilter.Builder { + method @NonNull public android.bluetooth.le.ScanFilter.Builder setDeviceAddress(@NonNull String, int); + method @NonNull public android.bluetooth.le.ScanFilter.Builder setDeviceAddress(@NonNull String, int, @NonNull byte[]); + field public static final int LEN_IRK_OCTETS = 16; // 0x10 + } + public final class ScanSettings implements android.os.Parcelable { field public static final int SCAN_RESULT_TYPE_ABBREVIATED = 1; // 0x1 field public static final int SCAN_RESULT_TYPE_FULL = 0; // 0x0 |