Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f489b99 authored by Patty's avatar Patty
Browse files

Remove @NonNull from boolean parameters and init the name with

empty string

Tag: #refactor
Bug: 218682004
Test: atest BluetoothInstrumentationTests
Change-Id: I3d1ad7ee00977219647cb3d989b3ea8584cdf298
parent 773ebd5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -186,10 +186,10 @@ package android.bluetooth {
  public static final class BluetoothHapPresetInfo.Builder {
    ctor public BluetoothHapPresetInfo.Builder();
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo build();
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setAvailable(@NonNull boolean);
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setAvailable(boolean);
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setIndex(int);
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setName(@NonNull String);
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setWritable(@NonNull boolean);
    method @NonNull public android.bluetooth.BluetoothHapPresetInfo.Builder setWritable(boolean);
  }

  public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile {
+3 −3
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import android.os.Parcelable;
@SystemApi
public final class BluetoothHapPresetInfo implements Parcelable {
    private int mPresetIndex;
    private String mPresetName;
    private String mPresetName = "";
    private boolean mIsWritable;
    private boolean mIsAvailable;

@@ -165,7 +165,7 @@ public final class BluetoothHapPresetInfo implements Parcelable {
         * @param isWritable whether preset is writable
         * @return the same Builder instance
         */
        public @NonNull Builder setWritable(@NonNull boolean isWritable) {
        public @NonNull Builder setWritable(boolean isWritable) {
            mIsWritable = isWritable;
            return this;
        }
@@ -176,7 +176,7 @@ public final class BluetoothHapPresetInfo implements Parcelable {
         * @param isAvailable whether preset is currently available to select
         * @return the same Builder instance
         */
        public @NonNull Builder setAvailable(@NonNull boolean isAvailable) {
        public @NonNull Builder setAvailable(boolean isAvailable) {
            mIsAvailable = isAvailable;
            return this;
        }