diff options
| author | Jakub Pawlowski <jpawlowski@google.com> | 2016-08-11 22:32:22 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-08-11 22:32:23 +0000 |
| commit | 5671277d2a84cdc4e99eb37b318ae921d4f22cdb (patch) | |
| tree | f8bfcf1bff6d60c1f52a1b3f9ca41768f6f32c33 /core/java/android | |
| parent | d0197ac3402e5d85324db4230407115ddec8011a (diff) | |
| parent | 747711ce9b8d12d2454cbe3369741b8ab2979aa1 (diff) | |
Merge "Add LE Secure Connection data parsing (1/4)"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/bluetooth/OobData.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/OobData.java b/core/java/android/bluetooth/OobData.java index 01f72efb22ac..53ca97417a62 100644 --- a/core/java/android/bluetooth/OobData.java +++ b/core/java/android/bluetooth/OobData.java @@ -26,6 +26,8 @@ import android.util.Log; */ public class OobData implements Parcelable { private byte[] securityManagerTk; + private byte[] leSecureConnectionsConfirmation; + private byte[] leSecureConnectionsRandom; public byte[] getSecurityManagerTk() { return securityManagerTk; @@ -35,10 +37,28 @@ public class OobData implements Parcelable { this.securityManagerTk = securityManagerTk; } + public byte[] getLeSecureConnectionsConfirmation() { + return leSecureConnectionsConfirmation; + } + + public void setLeSecureConnectionsConfirmation(byte[] leSecureConnectionsConfirmation) { + this.leSecureConnectionsConfirmation = leSecureConnectionsConfirmation; + } + + public byte[] getLeSecureConnectionsRandom() { + return leSecureConnectionsRandom; + } + + public void setLeSecureConnectionsRandom(byte[] leSecureConnectionsRandom) { + this.leSecureConnectionsRandom = leSecureConnectionsRandom; + } + public OobData() { } private OobData(Parcel in) { securityManagerTk = in.createByteArray(); + leSecureConnectionsConfirmation = in.createByteArray(); + leSecureConnectionsRandom = in.createByteArray(); } public int describeContents() { @@ -48,6 +68,8 @@ public class OobData implements Parcelable { @Override public void writeToParcel(Parcel out, int flags) { out.writeByteArray(securityManagerTk); + out.writeByteArray(leSecureConnectionsConfirmation); + out.writeByteArray(leSecureConnectionsRandom); } public static final Parcelable.Creator<OobData> CREATOR |
