Merge "Add LE Secure Connection data parsing (1/4)"

This commit is contained in:
Jakub Pawlowski
2016-08-11 22:32:22 +00:00
committed by Gerrit Code Review
3 changed files with 30 additions and 0 deletions

View File

@@ -6999,7 +6999,11 @@ package android.bluetooth {
public class OobData implements android.os.Parcelable {
ctor public OobData();
method public int describeContents();
method public byte[] getLeSecureConnectionsConfirmation();
method public byte[] getLeSecureConnectionsRandom();
method public byte[] getSecurityManagerTk();
method public void setLeSecureConnectionsConfirmation(byte[]);
method public void setLeSecureConnectionsRandom(byte[]);
method public void setSecurityManagerTk(byte[]);
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.bluetooth.OobData> CREATOR;

View File

@@ -7220,7 +7220,11 @@ package android.bluetooth {
public class OobData implements android.os.Parcelable {
ctor public OobData();
method public int describeContents();
method public byte[] getLeSecureConnectionsConfirmation();
method public byte[] getLeSecureConnectionsRandom();
method public byte[] getSecurityManagerTk();
method public void setLeSecureConnectionsConfirmation(byte[]);
method public void setLeSecureConnectionsRandom(byte[]);
method public void setSecurityManagerTk(byte[]);
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.bluetooth.OobData> CREATOR;

View File

@@ -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