/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/ |
D | UsbBackend.java | 54 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/ |
D | UsbBackend.java | 54 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/ |
D | MtpClient.java | 52 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/ |
D | ClearDefaultsPreferenceController.java | 46 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/ |
D | MtpClient.java | 55 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/ |
D | AoapPhoneCompanionActivity.java | 47 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/ |
D | ClearDefaultsPreference.java | 51 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()
|
D | AppInfoBase.java | 76 protected IUsbManager mUsbManager; field in AppInfoBase 100 mUsbManager = IUsbManager.Stub.asInterface(b); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ClearDefaultsPreference.java | 51 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()
|
D | AppInfoBase.java | 76 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/ |
D | UsbDeviceHandlerResolver.java | 67 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()
|
D | UsbHostController.java | 67 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/ |
D | AppOpenByDefaultPreferenceController.java | 36 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/ |
D | AppOpenByDefaultPreferenceController.java | 36 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/ |
D | ClearDefaultsPreference.java | 36 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/ |
D | UsbAoapHostActivity.java | 45 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/ |
D | UsbBackendTest.java | 56 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()
|