Home
last modified time | relevance | path

Searched refs:mUsbManager (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbBackend.java45 private UsbManager mUsbManager; field in UsbBackend
58 mUsbManager = context.getSystemService(UsbManager.class); in UsbBackend()
65 UsbPort[] ports = mUsbManager.getPorts(); in UsbBackend()
70 UsbPortStatus status = mUsbManager.getPortStatus(ports[i]); in UsbBackend()
91 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_MTP)) { in getUsbDataMode()
93 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_PTP)) { in getUsbDataMode()
95 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_MIDI)) { in getUsbDataMode()
104 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_MTP); in setUsbFunction()
105 mUsbManager.setUsbDataUnlocked(true); in setUsbFunction()
108 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_PTP); in setUsbFunction()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java52 private final UsbManager mUsbManager; field in MtpClient
166 mUsbManager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in MtpClient()
190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
191 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()
194 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()
255 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java55 private final UsbManager mUsbManager; field in MtpClient
169 mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE); in MtpClient()
192 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
193 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()
196 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()
282 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
/packages/apps/Settings/src/com/android/settings/applications/
DClearDefaultsPreference.java49 private IUsbManager mUsbManager; field in ClearDefaultsPreference
63 mUsbManager = IUsbManager.Stub.asInterface(b); in ClearDefaultsPreference()
94 if (mUsbManager != null) { in onBindViewHolder()
101 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()
122 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
DAppInfoBase.java68 protected IUsbManager mUsbManager; field in AppInfoBase
90 mUsbManager = IUsbManager.Stub.asInterface(b); in onCreate()
DInstalledAppDetails.java563 mLaunchPreference.setSummary(AppUtils.getLaunchByDefaultSummary(mAppEntry, mUsbManager, in refreshUi()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearDefaultsPreference.java35 private final IUsbManager mUsbManager; field in ClearDefaultsPreference
42 mUsbManager = IUsbManager.Stub.asInterface(usbBinder); in ClearDefaultsPreference()
52 mEntry, mUsbManager, mPackageManager, getContext())); in refresh()