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

Commit 76316580 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Android (Google) Code Review
Browse files

Merge "Reformat code"

parents f26f346a c4616503
Loading
Loading
Loading
Loading
+57 −51
Original line number Original line Diff line number Diff line
@@ -273,7 +273,8 @@ public class UsbPortManager {
                        } catch (RemoteException e) {
                        } catch (RemoteException e) {
                            logAndPrintException(pw, "Failed to set the USB port power role: "
                            logAndPrintException(pw, "Failed to set the USB port power role: "
                                            + "portId=" + portId
                                            + "portId=" + portId
                                    + ", newPowerRole=" + UsbPort.powerRoleToString(newRole.role),
                                            + ", newPowerRole=" + UsbPort.powerRoleToString
                                            (newRole.role),
                                    e);
                                    e);
                            return;
                            return;
                        }
                        }
@@ -287,7 +288,8 @@ public class UsbPortManager {
                        } catch (RemoteException e) {
                        } catch (RemoteException e) {
                            logAndPrintException(pw, "Failed to set the USB port data role: "
                            logAndPrintException(pw, "Failed to set the USB port data role: "
                                            + "portId=" + portId
                                            + "portId=" + portId
                                    + ", newDataRole=" + UsbPort.dataRoleToString(newRole.role),
                                            + ", newDataRole=" + UsbPort.dataRoleToString(newRole
                                            .role),
                                    e);
                                    e);
                            return;
                            return;
                        }
                        }
@@ -425,7 +427,9 @@ public class UsbPortManager {
        }
        }


        public void notifyPortStatusChange(ArrayList<PortStatus> currentPortStatus, int retval) {
        public void notifyPortStatusChange(ArrayList<PortStatus> currentPortStatus, int retval) {
            if (!portManager.mSystemReady) return;
            if (!portManager.mSystemReady) {
                return;
            }


            if (retval != Status.SUCCESS) {
            if (retval != Status.SUCCESS) {
                logAndPrint(Log.ERROR, pw, "port status enquiry failed");
                logAndPrint(Log.ERROR, pw, "port status enquiry failed");
@@ -490,7 +494,9 @@ public class UsbPortManager {


    private void connectToProxy(IndentingPrintWriter pw) {
    private void connectToProxy(IndentingPrintWriter pw) {
        synchronized (mLock) {
        synchronized (mLock) {
            if (mProxy != null) return;
            if (mProxy != null) {
                return;
            }


            try {
            try {
                mProxy = IUsb.getService(sServiceName);
                mProxy = IUsb.getService(sServiceName);