Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbBackend.java54 private UsbManager mUsbManager; field in UsbBackend
67 mUsbManager = context.getSystemService(UsbManager.class); in UsbBackend()
83 return mUsbManager.getCurrentFunctions(); in getCurrentFunctions()
87 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
91 return mUsbManager.getScreenUnlockedFunctions(); in getDefaultUsbFunctions()
95 mUsbManager.setScreenUnlockedFunctions(functions); in setDefaultUsbFunctions()
213 List<UsbPort> ports = mUsbManager.getPorts(); in updatePorts()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java54 private UsbManager mUsbManager; field in UsbBackend
67 mUsbManager = context.getSystemService(UsbManager.class); in UsbBackend()
83 return mUsbManager.getCurrentFunctions(); in getCurrentFunctions()
87 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
91 return mUsbManager.getScreenUnlockedFunctions(); in getDefaultUsbFunctions()
95 mUsbManager.setScreenUnlockedFunctions(functions); in setDefaultUsbFunctions()
213 List<UsbPort> ports = mUsbManager.getPorts(); in updatePorts()
/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/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DClearDefaultsPreferenceController.java46 private final IUsbManager mUsbManager; field in ClearDefaultsPreferenceController
53 mUsbManager = IUsbManager.Stub.asInterface(b); in ClearDefaultsPreferenceController()
66 || hasUsbDefaults(mUsbManager, getPackageName()); in updateState()
80 if (mUsbManager != null) { in handlePreferenceClicked()
87 mUsbManager.clearDefaults(getPackageName(), userId); in handlePreferenceClicked()
/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/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java47 private UsbManager mUsbManager; field in AoapPhoneCompanionActivity
66 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate()
122 if (!mUsbManager.hasPermission(accessory)) { in onAccessoryAttached()
128 mUsbManager.requestPermission(accessory, pendingIntent); in onAccessoryAttached()
131 mFd = mUsbManager.openAccessory(accessory); in onAccessoryAttached()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DClearDefaultsPreference.java51 private IUsbManager mUsbManager; field in ClearDefaultsPreference
65 mUsbManager = IUsbManager.Stub.asInterface(b); in ClearDefaultsPreference()
98 if (mUsbManager != null) { in onBindViewHolder()
105 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()
126 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
DAppInfoBase.java76 protected IUsbManager mUsbManager; field in AppInfoBase
100 mUsbManager = IUsbManager.Stub.asInterface(b); in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/
DClearDefaultsPreference.java51 private IUsbManager mUsbManager; field in ClearDefaultsPreference
65 mUsbManager = IUsbManager.Stub.asInterface(b); in ClearDefaultsPreference()
98 if (mUsbManager != null) { in onBindViewHolder()
105 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()
126 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
DAppInfoBase.java76 protected IUsbManager mUsbManager; field in AppInfoBase
100 mUsbManager = IUsbManager.Stub.asInterface(b); in onCreate()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java67 private final UsbManager mUsbManager; field in UsbDeviceHandlerResolver
77 mUsbManager = manager; in UsbDeviceHandlerResolver()
144 mUsbManager.grantPermission(device, activityInfo.applicationInfo.uid); in dispatch()
173 UsbDeviceConnection devConnection = UsbUtil.openConnection(mUsbManager, device); in doHandleResolveHandlers()
193 UsbDeviceConnection connection = UsbUtil.openConnection(mUsbManager, device); in requestAoapSwitch()
DUsbHostController.java67 private final UsbManager mUsbManager; field in UsbHostController
92 mUsbManager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in UsbHostController()
93 mUsbResolver = new UsbDeviceHandlerResolver(mUsbManager, mContext, this); in UsbHostController()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppOpenByDefaultPreferenceController.java36 private IUsbManager mUsbManager; field in AppOpenByDefaultPreferenceController
41 mUsbManager = IUsbManager.Stub.asInterface(ServiceManager.getService(Context.USB_SERVICE)); in AppOpenByDefaultPreferenceController()
63 mUsbManager, mPackageManager, mContext)); in updateState() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppOpenByDefaultPreferenceController.java36 private IUsbManager mUsbManager; field in AppOpenByDefaultPreferenceController
41 mUsbManager = IUsbManager.Stub.asInterface(ServiceManager.getService(Context.USB_SERVICE)); in AppOpenByDefaultPreferenceController()
63 mUsbManager, mPackageManager, mContext)); in updateState() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearDefaultsPreference.java36 private final IUsbManager mUsbManager; field in ClearDefaultsPreference
43 mUsbManager = IUsbManager.Stub.asInterface(usbBinder); in ClearDefaultsPreference()
53 mEntry, mUsbManager, mPackageManager, getContext())); in refresh()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DUsbAoapHostActivity.java45 private UsbManager mUsbManager; field in UsbAoapHostActivity
60 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate()
69 mUsbConnection = mUsbManager.openDevice(mUsbDevice); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbBackendTest.java56 private UsbManager mUsbManager; field in UsbBackendTest
71 when((Object) mContext.getSystemService(UsbManager.class)).thenReturn(mUsbManager); in setUp()
74 when(mUsbManager.getPorts()).thenReturn(Collections.singletonList(mUsbPort)); in setUp()