Home
last modified time | relevance | path

Searched refs:intf (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java125 public boolean claimInterface(UsbInterface intf, boolean force) { in claimInterface() argument
126 return native_claim_interface(intf.getId(), force); in claimInterface()
134 public boolean releaseInterface(UsbInterface intf) { in releaseInterface() argument
135 return native_release_interface(intf.getId()); in releaseInterface()
144 public boolean setInterface(UsbInterface intf) { in setInterface() argument
145 return native_set_interface(intf.getId(), intf.getAlternateSetting()); in setInterface()
DUsbInterface.java175 … UsbInterface intf = new UsbInterface(id, alternateSetting, name, Class, subClass, protocol);
176 intf.setEndpoints(endpoints);
177 return intf;
DDeviceFilter.java193 UsbInterface intf = device.getInterface(i); in matches() local
194 if (matches(intf.getInterfaceClass(), intf.getInterfaceSubclass(), in matches()
195 intf.getInterfaceProtocol())) return true; in matches()
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c105 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/av/media/mtp/
DMtpDescriptors.cpp120 .intf = mtp_interface_desc,
127 .intf = mtp_interface_desc,
134 .intf = mtp_interface_desc,
144 .intf = ptp_interface_desc,
151 .intf = ptp_interface_desc,
158 .intf = ptp_interface_desc,
DMtpDescriptors.h42 struct usb_interface_descriptor intf; member
49 struct usb_interface_descriptor intf; member
/frameworks/base/libs/usb/tests/accessorytest/
Dusb.c111 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/
DMtpClient.java138 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/
DWifiP2pGroup.java245 public void setInterface(String intf) { in setInterface() argument
246 mInterface = intf; in setInterface()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java2574 private void startDhcpServer(String intf) { in startDhcpServer() argument
2577 ifcg = mNwService.getInterfaceConfig(intf); in startDhcpServer()
2581 mNwService.setInterfaceConfig(intf, ifcg); in startDhcpServer()
2590 mNwService.tetherInterface(intf); in startDhcpServer()
2593 loge("Error configuring interface " + intf + ", :" + e); in startDhcpServer()
2597 logd("Started Dhcp server on " + intf); in startDhcpServer()
2600 private void stopDhcpServer(String intf) { in stopDhcpServer() argument
2602 mNwService.untetherInterface(intf); in stopDhcpServer()
2605 if (temp.compareTo(intf) != 0) { in stopDhcpServer()