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

Commit d67f9a17 authored by Salvador Martinez's avatar Salvador Martinez
Browse files

Change visibility of some UsbBackend fields/methods

Some utility methods in UsbBackend were needed elsewhere so this CL
increases their visibility slightly rather than copying the code.

Test: Robotests still pass
Bug: 62271803
Change-Id: If8ac5494e306ac7f4f6d8eeef75f516308c78026
parent f5ebc6f7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -28,11 +28,11 @@ import android.support.annotation.VisibleForTesting;

public class UsbBackend {

    private static final int MODE_POWER_MASK  = 0x01;
    public static final int MODE_POWER_MASK  = 0x01;
    public static final int MODE_POWER_SINK   = 0x00;
    public static final int MODE_POWER_SOURCE = 0x01;

    private static final int MODE_DATA_MASK  = 0x03 << 1;
    public static final int MODE_DATA_MASK  = 0x03 << 1;
    public static final int MODE_DATA_NONE   = 0x00 << 1;
    public static final int MODE_DATA_MTP    = 0x01 << 1;
    public static final int MODE_DATA_PTP    = 0x02 << 1;
@@ -53,7 +53,7 @@ public class UsbBackend {
    }

    @VisibleForTesting
    UsbBackend(Context context, UserRestrictionUtil userRestrictionUtil) {
    public UsbBackend(Context context, UserRestrictionUtil userRestrictionUtil) {
        mContext = context;
        mUsbManager = context.getSystemService(UsbManager.class);