Searched refs:usbInterface (Results 1 - 2 of 2) sorted by relevance
/base/print/print_fwk/services/print_service/src/ |
H A D | print_usb_manager.cpp | 63 UsbInterface usbInterface = usbdevice.GetConfigs()[configIndex].GetInterfaces()[interfaceIndex]; in isPrintDevice() local 65 usbInterface.GetClass(), usbInterface.GetSubClass(), usbInterface.GetProtocol()); in isPrintDevice() 66 bool isSupportIpp = (usbInterface.GetClass() == USB_DEVICE_CLASS_PRINT && in isPrintDevice() 67 usbInterface.GetSubClass() == USB_DEVICE_SUBCLASS_PRINT && in isPrintDevice() 68 usbInterface.GetProtocol() == USB_DEVICE_PROTOCOL_PRINT); in isPrintDevice()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | usb_info.cpp | 102 static void CtoJSUsbInterface(const napi_env &env, napi_value &obj, const UsbInterface &usbInterface) in CtoJSUsbInterface() argument 105 NapiUtil::SetValueInt32(env, "id", usbInterface.GetId(), obj); in CtoJSUsbInterface() 106 NapiUtil::SetValueInt32(env, "protocol", usbInterface.GetProtocol(), obj); in CtoJSUsbInterface() 107 NapiUtil::SetValueInt32(env, "clazz", usbInterface.GetClass(), obj); in CtoJSUsbInterface() 108 NapiUtil::SetValueInt32(env, "subClass", usbInterface.GetSubClass(), obj); in CtoJSUsbInterface() 109 NapiUtil::SetValueInt32(env, "alternateSetting", usbInterface.GetAlternateSetting(), obj); in CtoJSUsbInterface() 110 NapiUtil::SetValueUtf8String(env, "name", usbInterface.GetName(), obj); in CtoJSUsbInterface() 114 for (int32_t i = 0; i < usbInterface.GetEndpointCount(); ++i) { in CtoJSUsbInterface() 115 auto usbEndpoint = usbInterface.GetEndpoint(i); in CtoJSUsbInterface() 140 UsbInterface usbInterface; in CtoJSUsbConfig() local [all...] |
Completed in 3 milliseconds