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

Commit c4616503 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Badhri Jagan Sridharan
Browse files

Reformat code

Moving to Intellij coding format

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

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

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

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

            try {
                mProxy = IUsb.getService(sServiceName);