Loading framework/java/android/bluetooth/OobData.java +16 −0 Original line number Diff line number Diff line Loading @@ -30,10 +30,24 @@ import android.util.Log; * @hide */ public class OobData implements Parcelable { private byte[] leBluetoothDeviceAddress; private byte[] securityManagerTk; private byte[] leSecureConnectionsConfirmation; private byte[] leSecureConnectionsRandom; public byte[] getLeBluetoothDeviceAddress() { return leBluetoothDeviceAddress; } /** * Sets the LE Bluetooth Device Address value to be used during LE pairing. * The value shall be 7 bytes. Please see Bluetooth CSSv6, Part A 1.16 for * a detailed description. */ public void setLeBluetoothDeviceAddress(byte[] leBluetoothDeviceAddress) { this.leBluetoothDeviceAddress = leBluetoothDeviceAddress; } public byte[] getSecurityManagerTk() { return securityManagerTk; } Loading Loading @@ -66,6 +80,7 @@ public class OobData implements Parcelable { public OobData() { } private OobData(Parcel in) { leBluetoothDeviceAddress = in.createByteArray(); securityManagerTk = in.createByteArray(); leSecureConnectionsConfirmation = in.createByteArray(); leSecureConnectionsRandom = in.createByteArray(); Loading @@ -77,6 +92,7 @@ public class OobData implements Parcelable { @Override public void writeToParcel(Parcel out, int flags) { out.writeByteArray(leBluetoothDeviceAddress); out.writeByteArray(securityManagerTk); out.writeByteArray(leSecureConnectionsConfirmation); out.writeByteArray(leSecureConnectionsRandom); Loading Loading
framework/java/android/bluetooth/OobData.java +16 −0 Original line number Diff line number Diff line Loading @@ -30,10 +30,24 @@ import android.util.Log; * @hide */ public class OobData implements Parcelable { private byte[] leBluetoothDeviceAddress; private byte[] securityManagerTk; private byte[] leSecureConnectionsConfirmation; private byte[] leSecureConnectionsRandom; public byte[] getLeBluetoothDeviceAddress() { return leBluetoothDeviceAddress; } /** * Sets the LE Bluetooth Device Address value to be used during LE pairing. * The value shall be 7 bytes. Please see Bluetooth CSSv6, Part A 1.16 for * a detailed description. */ public void setLeBluetoothDeviceAddress(byte[] leBluetoothDeviceAddress) { this.leBluetoothDeviceAddress = leBluetoothDeviceAddress; } public byte[] getSecurityManagerTk() { return securityManagerTk; } Loading Loading @@ -66,6 +80,7 @@ public class OobData implements Parcelable { public OobData() { } private OobData(Parcel in) { leBluetoothDeviceAddress = in.createByteArray(); securityManagerTk = in.createByteArray(); leSecureConnectionsConfirmation = in.createByteArray(); leSecureConnectionsRandom = in.createByteArray(); Loading @@ -77,6 +92,7 @@ public class OobData implements Parcelable { @Override public void writeToParcel(Parcel out, int flags) { out.writeByteArray(leBluetoothDeviceAddress); out.writeByteArray(securityManagerTk); out.writeByteArray(leSecureConnectionsConfirmation); out.writeByteArray(leSecureConnectionsRandom); Loading