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

Commit eb26052f authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan
Browse files

format cleanup(intellij)

Change-Id: Idfa4cc769ec6726be86086879541476d9ed1d12e
parent 07303288
Loading
Loading
Loading
Loading
+72 −57
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ public class UsbDeviceManager {
        public AdbSettingsObserver() {
            super(null);
        }

        @Override
        public void onChange(boolean selfChange) {
            boolean enable = (Settings.Global.getInt(mContentResolver,
@@ -262,7 +263,8 @@ public class UsbDeviceManager {
            mNotificationManager.createNotificationChannel(
                    new NotificationChannel(ADB_NOTIFICATION_CHANNEL_ID_TV,
                            mContext.getString(
                            com.android.internal.R.string.adb_debugging_notification_channel_tv),
                                    com.android.internal.R.string
                                            .adb_debugging_notification_channel_tv),
                            NotificationManager.IMPORTANCE_HIGH));
        }

@@ -529,8 +531,10 @@ public class UsbDeviceManager {
         */
        private void setEnabledFunctions(String functions, boolean forceRestart,
                boolean usbDataUnlocked) {
            if (DEBUG) Slog.d(TAG, "setEnabledFunctions functions=" + functions + ", "
            if (DEBUG) {
                Slog.d(TAG, "setEnabledFunctions functions=" + functions + ", "
                        + "forceRestart=" + forceRestart);
            }

            if (usbDataUnlocked != mUsbDataUnlocked) {
                mUsbDataUnlocked = usbDataUnlocked;
@@ -697,7 +701,8 @@ public class UsbDeviceManager {
            intent.putExtra(UsbManager.USB_CONNECTED, mConnected);
            intent.putExtra(UsbManager.USB_HOST_CONNECTED, mHostConnected);
            intent.putExtra(UsbManager.USB_CONFIGURED, mConfigured);
            intent.putExtra(UsbManager.USB_DATA_UNLOCKED, isUsbTransferAllowed() && mUsbDataUnlocked);
            intent.putExtra(UsbManager.USB_DATA_UNLOCKED,
                    isUsbTransferAllowed() && mUsbDataUnlocked);
            intent.putExtra(UsbManager.USB_CONFIG_CHANGED, configChanged);

            if (mCurrentFunctions != null) {
@@ -885,7 +890,9 @@ public class UsbDeviceManager {

        private void updateUsbNotification() {
            if (mNotificationManager == null || !mUseUsbNotification
                    || ("0".equals(SystemProperties.get("persist.charging.notify")))) return;
                    || ("0".equals(SystemProperties.get("persist.charging.notify")))) {
                return;
            }
            int id = 0;
            Resources r = mContext.getResources();
            if (mConnected) {
@@ -943,7 +950,8 @@ public class UsbDeviceManager {
                                    .setTicker(title)
                                    .setDefaults(0)  // please be quiet
                                    .setColor(mContext.getColor(
                                    com.android.internal.R.color.system_notification_accent_color))
                                            com.android.internal.R.color
                                                    .system_notification_accent_color))
                                    .setContentTitle(title)
                                    .setContentText(message)
                                    .setContentIntent(pi)
@@ -982,7 +990,8 @@ public class UsbDeviceManager {
                                    .setTicker(title)
                                    .setDefaults(0)  // please be quiet
                                    .setColor(mContext.getColor(
                                    com.android.internal.R.color.system_notification_accent_color))
                                            com.android.internal.R.color
                                                    .system_notification_accent_color))
                                    .setContentTitle(title)
                                    .setContentText(message)
                                    .setContentIntent(pi)
@@ -1038,7 +1047,8 @@ public class UsbDeviceManager {
    }

    /* opens the currently attached USB accessory */
    public ParcelFileDescriptor openAccessory(UsbAccessory accessory, UsbUserSettingsManager settings) {
    public ParcelFileDescriptor openAccessory(UsbAccessory accessory,
            UsbUserSettingsManager settings) {
        UsbAccessory currentAccessory = mHandler.getCurrentAccessory();
        if (currentAccessory == null) {
            throw new IllegalArgumentException("no accessory attached");
@@ -1058,8 +1068,10 @@ public class UsbDeviceManager {
    }

    public void setCurrentFunctions(String functions, boolean usbDataUnlocked) {
        if (DEBUG) Slog.d(TAG, "setCurrentFunctions(" + functions + ", " +
        if (DEBUG) {
            Slog.d(TAG, "setCurrentFunctions(" + functions + ", " +
                    usbDataUnlocked + ")");
        }
        mHandler.sendMessage(MSG_SET_CURRENT_FUNCTIONS, functions, usbDataUnlocked);
    }

@@ -1134,7 +1146,10 @@ public class UsbDeviceManager {
    }

    private native String[] nativeGetAccessoryStrings();

    private native ParcelFileDescriptor nativeOpenAccessory();

    private native boolean nativeIsStartRequested();

    private native int nativeGetAudioMode();
}