diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-08-24 21:25:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-24 21:25:49 +0000 |
commit | 94bbd4256d7261aa1d8ddf660e7856cde5afa49f (patch) | |
tree | 8299c300f3b4dbc2a5360c3319ac41bf1b389e55 /framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java | |
parent | 931010f176faa894f06051c57290f7723dfbcd49 (diff) | |
parent | 9e045d26d0128826b40520f523307d8d16473779 (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/BluetoothAvrcpPlayerSettings.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java b/framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java index 927cb56665..3d3d80e2b4 100644 --- a/framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java +++ b/framework/java/android/bluetooth/BluetoothAvrcpPlayerSettings.java @@ -34,22 +34,22 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { /** * Equalizer setting. */ - public static final int SETTING_EQUALIZER = 0x01; + public static final int SETTING_EQUALIZER = 0x01; /** * Repeat setting. */ - public static final int SETTING_REPEAT = 0x02; + public static final int SETTING_REPEAT = 0x02; /** * Shuffle setting. */ - public static final int SETTING_SHUFFLE = 0x04; + public static final int SETTING_SHUFFLE = 0x04; /** * Scan mode setting. */ - public static final int SETTING_SCAN = 0x08; + public static final int SETTING_SCAN = 0x08; /** * Invalid state. @@ -82,16 +82,16 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { /** * All track repeat/shuffle. * - * Applies to {@link SETTING_REPEAT}, {@link SETTING_SHUFFLE} and {@link SETTING_SCAN}. + * Applies to {@link #SETTING_REPEAT}, {@link #SETTING_SHUFFLE} and {@link #SETTING_SCAN}. */ - public static final int STATE_ALL_TRACK = 0x03; + public static final int STATE_ALL_TRACK = 0x03; /** * Group repeat/shuffle. * - * Applies to {@link SETTING_REPEAT}, {@link SETTING_SHUFFLE} and {@link SETTING_SCAN}. + * Applies to {@link #SETTING_REPEAT}, {@link #SETTING_SHUFFLE} and {@link #SETTING_SCAN}. */ - public static final int STATE_GROUP = 0x04; + public static final int STATE_GROUP = 0x04; /** * List of supported settings ORed. @@ -103,10 +103,12 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { */ private Map<Integer, Integer> mSettingsValue = new HashMap<Integer, Integer>(); + @Override public int describeContents() { return 0; } + @Override public void writeToParcel(Parcel out, int flags) { out.writeInt(mSettings); out.writeInt(mSettingsValue.size()); @@ -116,8 +118,8 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { } } - public static final Parcelable.Creator<BluetoothAvrcpPlayerSettings> CREATOR - = new Parcelable.Creator<BluetoothAvrcpPlayerSettings>() { + public static final Parcelable.Creator<BluetoothAvrcpPlayerSettings> CREATOR = + new Parcelable.Creator<BluetoothAvrcpPlayerSettings>() { public BluetoothAvrcpPlayerSettings createFromParcel(Parcel in) { return new BluetoothAvrcpPlayerSettings(in); } @@ -157,6 +159,7 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { * Add a setting value. * * The setting must be part of possible settings in {@link getSettings()}. + * * @param setting setting config. * @param value value for the setting. * @throws IllegalStateException if the setting is not supported. @@ -173,6 +176,7 @@ public final class BluetoothAvrcpPlayerSettings implements Parcelable { * Get a setting value. * * The setting must be part of possible settings in {@link getSettings()}. + * * @param setting setting config. * @return value value for the setting. * @throws IllegalStateException if the setting is not supported. |