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

Commit 3d5bbcd8 authored by William Escande's avatar William Escande
Browse files

AdapterService: Apply google-java-format

Bug: 311772251
Test: m . | format only
Flag: Exempt, mechanical formatting
Change-Id: I5b689187faad84e6fe3b2d14b9a315aaf15321fd
parent 9056c358
Loading
Loading
Loading
Loading
+55 −59
Original line number Diff line number Diff line
@@ -1113,9 +1113,7 @@ public class AdapterService extends Service {
                        + " receivers.");
        for (int i = 0; i < n; i++) {
            try {
                mRemoteCallbacks
                        .getBroadcastItem(i)
                        .onBluetoothStateChange(prevState, newState);
                mRemoteCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState, newState);
            } catch (RemoteException e) {
                Log.d(TAG, "updateAdapterState() - Callback #" + i + " failed (" + e + ")");
            }
@@ -1254,9 +1252,7 @@ public class AdapterService extends Service {
                    mBluetoothQualityReportReadyCallbacks
                            .getBroadcastItem(i)
                            .onBluetoothQualityReportReady(
                                    device,
                                    bluetoothQualityReport,
                                    BluetoothStatusCodes.SUCCESS);
                                    device, bluetoothQualityReport, BluetoothStatusCodes.SUCCESS);
                } catch (RemoteException e) {
                    Log.d(
                            TAG,
@@ -2526,15 +2522,15 @@ public class AdapterService extends Service {
            final int callingUid = Binder.getCallingUid();
            final long token = Binder.clearCallingIdentity();
            try {
                checkConnect =
                        CompatChanges.isChangeEnabled(ENFORCE_CONNECT, callingUid);
                checkConnect = CompatChanges.isChangeEnabled(ENFORCE_CONNECT, callingUid);
            } finally {
                Binder.restoreCallingIdentity(token);
            }
            if (service == null
                    || !callerIsSystemOrActiveOrManagedUser(
                            service, TAG, "getProfileConnectionState")
                    || (checkConnect && !Utils.checkConnectPermissionForDataDelivery(
                    || (checkConnect
                            && !Utils.checkConnectPermissionForDataDelivery(
                                    service, source, "AdapterService getProfileConnectionState"))) {
                return BluetoothProfile.STATE_DISCONNECTED;
            }