Lines Matching refs:device
40 * UsbService manages all USB related state, including both host and device support.
41 * Host related events and calls are delegated to UsbHostManager, and device related
131 /* Opens the specified USB device (host mode) */
141 /* returns the currently attached USB accessory (device mode) */
151 /* opens the currently attached USB accessory (device mode) */
162 public void setDevicePackage(UsbDevice device, String packageName, int userId) {
164 getSettingsForUser(userId).setDevicePackage(device, packageName);
174 public boolean hasDevicePermission(UsbDevice device) {
176 return getSettingsForUser(userId).hasPermission(device);
186 public void requestDevicePermission(UsbDevice device, String packageName, PendingIntent pi) {
188 getSettingsForUser(userId).requestPermission(device, packageName, pi);
199 public void grantDevicePermission(UsbDevice device, int uid) {
202 getSettingsForUser(userId).grantDevicePermission(device, uid);
230 throw new IllegalStateException("USB device mode not supported");
240 throw new IllegalStateException("USB device mode not supported");