summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothMasInstance.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/BluetoothMasInstance.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/BluetoothMasInstance.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothMasInstance.java31
1 files changed, 17 insertions, 14 deletions
diff --git a/framework/java/android/bluetooth/BluetoothMasInstance.java b/framework/java/android/bluetooth/BluetoothMasInstance.java
index 4459e2c44b..7a31328eaf 100644
--- a/framework/java/android/bluetooth/BluetoothMasInstance.java
+++ b/framework/java/android/bluetooth/BluetoothMasInstance.java
@@ -36,7 +36,7 @@ public final class BluetoothMasInstance implements Parcelable {
@Override
public boolean equals(Object o) {
if (o instanceof BluetoothMasInstance) {
- return mId == ((BluetoothMasInstance)o).mId;
+ return mId == ((BluetoothMasInstance) o).mId;
}
return false;
}
@@ -48,25 +48,28 @@ public final class BluetoothMasInstance implements Parcelable {
@Override
public String toString() {
- return Integer.toString(mId) + ":" + mName + ":" + mChannel + ":" +
- Integer.toHexString(mMsgTypes);
+ return Integer.toString(mId) + ":" + mName + ":" + mChannel + ":"
+ + Integer.toHexString(mMsgTypes);
}
+ @Override
public int describeContents() {
return 0;
}
public static final Parcelable.Creator<BluetoothMasInstance> CREATOR =
new Parcelable.Creator<BluetoothMasInstance>() {
- public BluetoothMasInstance createFromParcel(Parcel in) {
- return new BluetoothMasInstance(in.readInt(), in.readString(),
- in.readInt(), in.readInt());
- }
- public BluetoothMasInstance[] newArray(int size) {
- return new BluetoothMasInstance[size];
- }
- };
+ public BluetoothMasInstance createFromParcel(Parcel in) {
+ return new BluetoothMasInstance(in.readInt(), in.readString(),
+ in.readInt(), in.readInt());
+ }
+ public BluetoothMasInstance[] newArray(int size) {
+ return new BluetoothMasInstance[size];
+ }
+ };
+
+ @Override
public void writeToParcel(Parcel out, int flags) {
out.writeInt(mId);
out.writeString(mName);
@@ -75,10 +78,10 @@ public final class BluetoothMasInstance implements Parcelable {
}
public static final class MessageType {
- public static final int EMAIL = 0x01;
- public static final int SMS_GSM = 0x02;
+ public static final int EMAIL = 0x01;
+ public static final int SMS_GSM = 0x02;
public static final int SMS_CDMA = 0x04;
- public static final int MMS = 0x08;
+ public static final int MMS = 0x08;
}
public int getId() {