Loading Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,8 @@ java_defaults { "-Xep:NonAtomicVolatileUpdate:ERROR", "-Xep:NonCanonicalType:ERROR", "-Xep:NotJavadoc:ERROR", "-Xep:NullablePrimitive:ERROR", "-Xep:NullableVoid:ERROR", "-Xep:ObjectEqualsForPrimitives:ERROR", "-Xep:OperatorPrecedence:ERROR", "-Xep:ReferenceEquality:ERROR", Loading android/app/src/com/android/bluetooth/btservice/RemoteDevices.java +0 −3 Original line number Diff line number Diff line Loading @@ -42,8 +42,6 @@ import android.os.ParcelUuid; import android.os.SystemProperties; import android.util.Log; import androidx.annotation.NonNull; import com.android.bluetooth.BluetoothStatsLog; import com.android.bluetooth.R; import com.android.bluetooth.Utils; Loading Loading @@ -1321,7 +1319,6 @@ public class RemoteDevices { mAdapterService.aclStateChangeBroadcastCallback(connectionChangeConsumer); } @NonNull private void sendPairingCancelIntent(BluetoothDevice device) { Intent intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); Loading framework/api/system-current.txt +4 −4 Original line number Diff line number Diff line Loading @@ -1166,8 +1166,8 @@ package android.bluetooth { method @NonNull public byte[] getDeviceAddressWithType(); method @Nullable public byte[] getDeviceName(); method @Nullable public byte[] getLeAppearance(); method @NonNull public int getLeDeviceRole(); method @NonNull public int getLeFlags(); method public int getLeDeviceRole(); method public int getLeFlags(); method @Nullable public byte[] getLeTemporaryKey(); method @NonNull public byte[] getRandomizerHash(); method public void writeToParcel(@NonNull android.os.Parcel, int); Loading Loading @@ -1382,9 +1382,9 @@ package android.bluetooth.le { public static interface DistanceMeasurementSession.Callback { method public void onResult(@NonNull android.bluetooth.BluetoothDevice, @NonNull android.bluetooth.le.DistanceMeasurementResult); method public void onStartFail(@NonNull int); method public void onStartFail(int); method public void onStarted(@NonNull android.bluetooth.le.DistanceMeasurementSession); method public void onStopped(@NonNull android.bluetooth.le.DistanceMeasurementSession, @NonNull int); method public void onStopped(@NonNull android.bluetooth.le.DistanceMeasurementSession, int); } @Deprecated public final class ResultStorageDescriptor implements android.os.Parcelable { Loading framework/java/android/bluetooth/OobData.java +1 −3 Original line number Diff line number Diff line Loading @@ -750,7 +750,6 @@ public final class OobData implements Parcelable { * 55 of LMP Feature Mask Definitions. <b>0x05- 0x07 Reserved</b> * @hide */ @NonNull @SystemApi @LeFlag public int getLeFlags() { Loading @@ -766,7 +765,6 @@ public final class OobData implements Parcelable { * Preferred 0x04 - 0xFF Reserved * @hide */ @NonNull @SystemApi public @LeRole int getLeDeviceRole() { return mLeDeviceRole; Loading Loading @@ -849,7 +847,7 @@ public final class OobData implements Parcelable { } // For Parcelable public static final @android.annotation.NonNull Parcelable.Creator<OobData> CREATOR = public static final @NonNull Parcelable.Creator<OobData> CREATOR = new Parcelable.Creator<OobData>() { public OobData createFromParcel(Parcel in) { return new OobData(in); Loading framework/java/android/bluetooth/le/DistanceMeasurementSession.java +2 −2 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ public final class DistanceMeasurementSession { * @hide */ @SystemApi void onStartFail(@NonNull @Reason int reason); void onStartFail(@Reason int reason); /** * Invoked when a distance measurement session stopped. Loading @@ -186,7 +186,7 @@ public final class DistanceMeasurementSession { * @hide */ @SystemApi void onStopped(@NonNull DistanceMeasurementSession session, @NonNull @Reason int reason); void onStopped(@NonNull DistanceMeasurementSession session, @Reason int reason); /** * Invoked when get distance measurement result. Loading Loading
Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,8 @@ java_defaults { "-Xep:NonAtomicVolatileUpdate:ERROR", "-Xep:NonCanonicalType:ERROR", "-Xep:NotJavadoc:ERROR", "-Xep:NullablePrimitive:ERROR", "-Xep:NullableVoid:ERROR", "-Xep:ObjectEqualsForPrimitives:ERROR", "-Xep:OperatorPrecedence:ERROR", "-Xep:ReferenceEquality:ERROR", Loading
android/app/src/com/android/bluetooth/btservice/RemoteDevices.java +0 −3 Original line number Diff line number Diff line Loading @@ -42,8 +42,6 @@ import android.os.ParcelUuid; import android.os.SystemProperties; import android.util.Log; import androidx.annotation.NonNull; import com.android.bluetooth.BluetoothStatsLog; import com.android.bluetooth.R; import com.android.bluetooth.Utils; Loading Loading @@ -1321,7 +1319,6 @@ public class RemoteDevices { mAdapterService.aclStateChangeBroadcastCallback(connectionChangeConsumer); } @NonNull private void sendPairingCancelIntent(BluetoothDevice device) { Intent intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); Loading
framework/api/system-current.txt +4 −4 Original line number Diff line number Diff line Loading @@ -1166,8 +1166,8 @@ package android.bluetooth { method @NonNull public byte[] getDeviceAddressWithType(); method @Nullable public byte[] getDeviceName(); method @Nullable public byte[] getLeAppearance(); method @NonNull public int getLeDeviceRole(); method @NonNull public int getLeFlags(); method public int getLeDeviceRole(); method public int getLeFlags(); method @Nullable public byte[] getLeTemporaryKey(); method @NonNull public byte[] getRandomizerHash(); method public void writeToParcel(@NonNull android.os.Parcel, int); Loading Loading @@ -1382,9 +1382,9 @@ package android.bluetooth.le { public static interface DistanceMeasurementSession.Callback { method public void onResult(@NonNull android.bluetooth.BluetoothDevice, @NonNull android.bluetooth.le.DistanceMeasurementResult); method public void onStartFail(@NonNull int); method public void onStartFail(int); method public void onStarted(@NonNull android.bluetooth.le.DistanceMeasurementSession); method public void onStopped(@NonNull android.bluetooth.le.DistanceMeasurementSession, @NonNull int); method public void onStopped(@NonNull android.bluetooth.le.DistanceMeasurementSession, int); } @Deprecated public final class ResultStorageDescriptor implements android.os.Parcelable { Loading
framework/java/android/bluetooth/OobData.java +1 −3 Original line number Diff line number Diff line Loading @@ -750,7 +750,6 @@ public final class OobData implements Parcelable { * 55 of LMP Feature Mask Definitions. <b>0x05- 0x07 Reserved</b> * @hide */ @NonNull @SystemApi @LeFlag public int getLeFlags() { Loading @@ -766,7 +765,6 @@ public final class OobData implements Parcelable { * Preferred 0x04 - 0xFF Reserved * @hide */ @NonNull @SystemApi public @LeRole int getLeDeviceRole() { return mLeDeviceRole; Loading Loading @@ -849,7 +847,7 @@ public final class OobData implements Parcelable { } // For Parcelable public static final @android.annotation.NonNull Parcelable.Creator<OobData> CREATOR = public static final @NonNull Parcelable.Creator<OobData> CREATOR = new Parcelable.Creator<OobData>() { public OobData createFromParcel(Parcel in) { return new OobData(in); Loading
framework/java/android/bluetooth/le/DistanceMeasurementSession.java +2 −2 Original line number Diff line number Diff line Loading @@ -177,7 +177,7 @@ public final class DistanceMeasurementSession { * @hide */ @SystemApi void onStartFail(@NonNull @Reason int reason); void onStartFail(@Reason int reason); /** * Invoked when a distance measurement session stopped. Loading @@ -186,7 +186,7 @@ public final class DistanceMeasurementSession { * @hide */ @SystemApi void onStopped(@NonNull DistanceMeasurementSession session, @NonNull @Reason int reason); void onStopped(@NonNull DistanceMeasurementSession session, @Reason int reason); /** * Invoked when get distance measurement result. Loading