summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/OobData.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-08-24 21:25:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-24 21:25:49 +0000
commit94bbd4256d7261aa1d8ddf660e7856cde5afa49f (patch)
tree8299c300f3b4dbc2a5360c3319ac41bf1b389e55 /framework/java/android/bluetooth/OobData.java
parent931010f176faa894f06051c57290f7723dfbcd49 (diff)
parent9e045d26d0128826b40520f523307d8d16473779 (diff)
Merge changes from topic "bt-fix-checkstyle-errors"
* changes: Fix checkstyle errors (2/2) Fix checkstyle errors (1/2)
Diffstat (limited to 'framework/java/android/bluetooth/OobData.java')
-rw-r--r--framework/java/android/bluetooth/OobData.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/framework/java/android/bluetooth/OobData.java b/framework/java/android/bluetooth/OobData.java
index 9e87230c68..d632572869 100644
--- a/framework/java/android/bluetooth/OobData.java
+++ b/framework/java/android/bluetooth/OobData.java
@@ -19,8 +19,6 @@ package android.bluetooth;
import android.os.Parcel;
import android.os.Parcelable;
-import android.util.Log;
-
/**
* Out Of Band Data for Bluetooth device pairing.
*
@@ -30,13 +28,13 @@ import android.util.Log;
* @hide
*/
public class OobData implements Parcelable {
- private byte[] leBluetoothDeviceAddress;
- private byte[] securityManagerTk;
- private byte[] leSecureConnectionsConfirmation;
- private byte[] leSecureConnectionsRandom;
+ private byte[] mLeBluetoothDeviceAddress;
+ private byte[] mSecurityManagerTk;
+ private byte[] mLeSecureConnectionsConfirmation;
+ private byte[] mLeSecureConnectionsRandom;
public byte[] getLeBluetoothDeviceAddress() {
- return leBluetoothDeviceAddress;
+ return mLeBluetoothDeviceAddress;
}
/**
@@ -45,11 +43,11 @@ public class OobData implements Parcelable {
* a detailed description.
*/
public void setLeBluetoothDeviceAddress(byte[] leBluetoothDeviceAddress) {
- this.leBluetoothDeviceAddress = leBluetoothDeviceAddress;
+ mLeBluetoothDeviceAddress = leBluetoothDeviceAddress;
}
public byte[] getSecurityManagerTk() {
- return securityManagerTk;
+ return mSecurityManagerTk;
}
/**
@@ -58,48 +56,50 @@ public class OobData implements Parcelable {
* Part A 1.8 for a detailed description.
*/
public void setSecurityManagerTk(byte[] securityManagerTk) {
- this.securityManagerTk = securityManagerTk;
+ mSecurityManagerTk = securityManagerTk;
}
public byte[] getLeSecureConnectionsConfirmation() {
- return leSecureConnectionsConfirmation;
+ return mLeSecureConnectionsConfirmation;
}
public void setLeSecureConnectionsConfirmation(byte[] leSecureConnectionsConfirmation) {
- this.leSecureConnectionsConfirmation = leSecureConnectionsConfirmation;
+ mLeSecureConnectionsConfirmation = leSecureConnectionsConfirmation;
}
public byte[] getLeSecureConnectionsRandom() {
- return leSecureConnectionsRandom;
+ return mLeSecureConnectionsRandom;
}
public void setLeSecureConnectionsRandom(byte[] leSecureConnectionsRandom) {
- this.leSecureConnectionsRandom = leSecureConnectionsRandom;
+ mLeSecureConnectionsRandom = leSecureConnectionsRandom;
}
- public OobData() { }
+ public OobData() {
+ }
private OobData(Parcel in) {
- leBluetoothDeviceAddress = in.createByteArray();
- securityManagerTk = in.createByteArray();
- leSecureConnectionsConfirmation = in.createByteArray();
- leSecureConnectionsRandom = in.createByteArray();
+ mLeBluetoothDeviceAddress = in.createByteArray();
+ mSecurityManagerTk = in.createByteArray();
+ mLeSecureConnectionsConfirmation = in.createByteArray();
+ mLeSecureConnectionsRandom = in.createByteArray();
}
+ @Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel out, int flags) {
- out.writeByteArray(leBluetoothDeviceAddress);
- out.writeByteArray(securityManagerTk);
- out.writeByteArray(leSecureConnectionsConfirmation);
- out.writeByteArray(leSecureConnectionsRandom);
+ out.writeByteArray(mLeBluetoothDeviceAddress);
+ out.writeByteArray(mSecurityManagerTk);
+ out.writeByteArray(mLeSecureConnectionsConfirmation);
+ out.writeByteArray(mLeSecureConnectionsRandom);
}
- public static final Parcelable.Creator<OobData> CREATOR
- = new Parcelable.Creator<OobData>() {
+ public static final Parcelable.Creator<OobData> CREATOR =
+ new Parcelable.Creator<OobData>() {
public OobData createFromParcel(Parcel in) {
return new OobData(in);
}
@@ -108,4 +108,4 @@ public class OobData implements Parcelable {
return new OobData[size];
}
};
-} \ No newline at end of file
+}