/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 90 public boolean claimInterface(UsbInterface intf, boolean force) { in claimInterface() argument 91 return native_claim_interface(intf.getId(), force); in claimInterface() 99 public boolean releaseInterface(UsbInterface intf) { in releaseInterface() argument 100 return native_release_interface(intf.getId()); in releaseInterface() 109 public boolean setInterface(UsbInterface intf) { in setInterface() argument 110 return native_set_interface(intf.getId(), intf.getAlternateSetting()); in setInterface()
|
D | UsbInterface.java | 171 … UsbInterface intf = new UsbInterface(id, alternateSetting, name, Class, subClass, protocol); 172 intf.setEndpoints(endpoints); 173 return intf;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SoftApManager.java | 214 for (String intf : available) { in startTethering() 216 if (intf.matches(regex)) { in startTethering() 219 mNmService.getInterfaceConfig(intf); in startTethering() 226 mNmService.setInterfaceConfig(intf, ifcg); in startTethering() 229 Log.e(TAG, "Error configuring interface " + intf + ", :" + e); in startTethering() 233 if (mConnectivityManager.tether(intf) in startTethering() 235 Log.e(TAG, "Error tethering on " + intf); in startTethering() 238 mTetherInterfaceName = intf; in startTethering() 270 for (String intf : active) { in isWifiTethered() 272 if (intf.matches(regex)) { in isWifiTethered()
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
D | accessorychat.c | 105 struct usb_interface_descriptor *intf = NULL; in usb_device_added() local 113 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added() 115 intf = (struct usb_interface_descriptor *)desc; in usb_device_added() 124 if (!intf) { in usb_device_added() 133 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) { in usb_device_added()
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | usb.c | 111 struct usb_interface_descriptor *intf = NULL; in usb_device_added() local 117 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added() 119 intf = (struct usb_interface_descriptor *)desc; in usb_device_added() 128 if (!intf) { in usb_device_added() 137 if (usb_device_claim_interface(device, intf->bInterfaceNumber)) { in usb_device_added()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 138 UsbInterface intf = device.getInterface(i); in isCamera() local 139 if (intf.getInterfaceClass() == UsbConstants.USB_CLASS_STILL_IMAGE && in isCamera() 140 intf.getInterfaceSubclass() == 1 && in isCamera() 141 intf.getInterfaceProtocol() == 1) { in isCamera()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pGroup.java | 246 public void setInterface(String intf) { in setInterface() argument 247 mInterface = intf; in setInterface()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 2308 private void startDhcpServer(String intf) { in startDhcpServer() argument 2311 ifcg = mNwService.getInterfaceConfig(intf); in startDhcpServer() 2315 mNwService.setInterfaceConfig(intf, ifcg); in startDhcpServer() 2324 mNwService.tetherInterface(intf); in startDhcpServer() 2327 loge("Error configuring interface " + intf + ", :" + e); in startDhcpServer() 2331 logd("Started Dhcp server on " + intf); in startDhcpServer() 2334 private void stopDhcpServer(String intf) { in stopDhcpServer() argument 2336 mNwService.untetherInterface(intf); in stopDhcpServer() 2339 if (temp.compareTo(intf) != 0) { in stopDhcpServer()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 252 UsbInterface intf = device.getInterface(i); in matches() local 253 if (matches(intf.getInterfaceClass(), intf.getInterfaceSubclass(), in matches() 254 intf.getInterfaceProtocol())) return true; in matches()
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpClient.java | 257 Context context, StateMachine controller, String intf) { in makeDhcpClient() argument 258 DhcpClient client = new DhcpClient(context, controller, intf); in makeDhcpClient()
|
/frameworks/base/docs/html/guide/topics/connectivity/usb/ |
D | host.jd | 397 UsbInterface intf = device.getInterface(0); 398 UsbEndpoint endpoint = intf.getEndpoint(0); 400 connection.claimInterface(intf, forceClaim);
|