/cts/apps/CameraITS/tools/ |
rotation_rig.py | 36 def cmd_send(vid, pid, cmd_str): 40 vid: str; vendor ID 44 hw_list = hw.Device(ROT_RIG_DEVICE, vid, pid, '1', '0') 57 print 'Port %s:%s is not open' % (vid, pid) 61 def set_relay_channel_state(vid, pid, channel, relay_state): 65 vid: str; vendor ID 73 cmd_send(vid, pid, RELAY_SET_CMD + channel + '.' + relay_state + '\r\n') 81 expected rotator string is vid:pid:ch. 82 vid:pid can be found through lsusb on the host. 90 vid = '0x' + rotator_ids[0 [all...] |
/external/toybox/toys/other/ |
lsusb.c | 22 int busnum = 0, devnum = 0, pid = 0, vid = 0; local 35 || sscanf(toybuf, "PRODUCT=%x/%x/", &pid, &vid)) count++; 38 printf("Bus %03d Device %03d: ID %04x:%04x\n", busnum, devnum, pid, vid);
|
/external/webrtc/talk/media/devices/ |
win32deviceinfo.cc | 33 // Both PID and VID are 4 characters. 35 const char vid[] = "vid_"; // Also contains '\0'. local 36 const size_t vid_location = device.id.find(vid); 38 vid_location + sizeof(vid) - 1 + id_size > device.id.size()) { 47 std::string id_vendor = device.id.substr(vid_location + sizeof(vid) - 1,
|
/external/iproute2/bridge/ |
vlan.c | 20 fprintf(stderr, "Usage: bridge vlan { add | del } vid VLAN_ID dev DEV [ pvid] [ untagged ]\n"); 34 short vid = -1; local 52 } else if (strcmp(*argv, "vid") == 0) { 59 vid = atoi(*argv); 63 vid = atoi(*argv); 81 if (d == NULL || vid == -1) { 92 if (vid >= 4096) { 93 fprintf(stderr, "Invalid VLAN ID \"%hu\"\n", vid); 98 if (vid_end == -1 || vid_end >= 4096 || vid >= vid_end) { 100 vid, vid_end) [all...] |
/external/wpa_supplicant_8/src/ap/ |
vlan_util.h | 16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
|
vlan_ioctl.c | 55 Add a vlan interface with VLAN ID 'vid' and tagged interface 62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) 67 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d)", 68 if_name, vid); 88 vid); 93 if_request.u.VID == vid) { 111 if_request.u.VID = vid;
|
vlan_util.c | 17 * Add a vlan interface with name 'vlan_if_name', VLAN ID 'vid' and 24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) 31 wpa_printf(MSG_DEBUG, "VLAN: vlan_add(if_name=%s, vid=%d, " 32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); 97 err = rtnl_link_vlan_set_id(rlink, vid); 108 vlan_if_name, vid, if_name, if_idx,
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/ |
UsbDeviceSettings.java | 36 UsbDeviceSettings(String serialNumber, int vid, int pid) { 40 mVid = vid; 82 return "UsbDeviceSettings{serial=" + getSerialNumber() + ", vid=" + mVid + "pid=" + mPid 121 public static UsbDeviceSettings constructSettings(String serialNumber, int vid, int pid, 123 UsbDeviceSettings settings = new UsbDeviceSettings(serialNumber, vid, pid);
|
UsbSettingsStorage.java | 38 private static final String COLUMN_VID = "vid"; 54 public UsbDeviceSettings getSettings(String serialNumber, int vid, int pid) { 60 new String[]{serialNumber, Integer.toString(vid), Integer.toString(pid)}, 66 + " vid: " + vid + " pid: " + pid + " returned " 71 + " vid: " + vid + " pid: " + pid); 97 public void deleteSettings(String serialNumber, int vid, int pid) { 103 new String[]{serialNumber, Integer.toString(vid), Integer.toString(pid)}); 106 + " vid: " + vid + " pid: " + pid) [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_vs_exec.c | 131 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID]; local 132 assert(vid < ARRAY_SIZE(machine->SystemValue)); 133 machine->SystemValue[vid].xyzw[0].i[j] = i + j; 137 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_BASEVERTEX]; local 138 assert(vid < ARRAY_SIZE(machine->SystemValue)); 139 machine->SystemValue[vid].xyzw[0].i[j] = 0; 143 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID_NOBASE]; local 144 assert(vid < ARRAY_SIZE(machine->SystemValue)); 145 machine->SystemValue[vid].xyzw[0].i[j] = i + j;
|
/frameworks/native/opengl/tests/swapinterval/ |
swapinterval.cpp | 64 EGLint r,g,b,a, vid; local 69 eglGetConfigAttrib(dpy, config, EGL_NATIVE_VISUAL_ID, &vid); 75 EGLUtils::strerror(err), config, r,g,b,a, vid); 80 config, r,g,b,a, vid);
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
UsbDeviceSettings.java | 35 UsbDeviceSettings(String serialNumber, int vid, int pid) { 37 mVid = vid; 87 return "UsbDeviceSettings{serial=" + mSerialNumber + ", vid=" + mVid + ", pid=" + mPid 132 public static UsbDeviceSettings constructSettings(String serialNumber, int vid, int pid, 134 UsbDeviceSettings settings = new UsbDeviceSettings(serialNumber, vid, pid);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
AoapInterface.java | 129 final int vid = device.getVendorId(); local 131 return vid == USB_ACCESSORY_VENDOR_ID
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
AoapInterface.java | 124 final int vid = device.getVendorId(); local 126 return vid == USB_ACCESSORY_VENDOR_ID
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
AoapInterface.java | 129 final int vid = device.getVendorId(); local 131 return vid == USB_ACCESSORY_VENDOR_ID
|
/toolchain/binutils/binutils-2.25/binutils/ |
windmc.h | 55 rc_uint_type vid; member in struct:mc_node_lang 68 rc_uint_type vid; member in struct:mc_node
|
windmc.c | 301 mc_add_node_lang (mc_node *root, const mc_keyword *lang, rc_uint_type vid) 310 ret->vid = vid; 322 if (h->vid > vid) 324 if (h->vid == vid) 325 fatal ("double defined message id %ld.\n", (long) vid); 370 write_header_define (FILE *fp, const unichar *sym_name, rc_uint_type vid, const unichar *typecast, mc_node_lang *nl) 380 fprintf (fp, "//\n// MessageId: 0x%lu\n//\n", (unsigned long) vid); [all...] |
/external/autotest/server/site_tests/kernel_ExternalUsbPeripheralsDetectionTest/ |
kernel_ExternalUsbPeripheralsDetectionTest.py | 135 for vid in vendor_id_dict_control_file.keys(): 136 peripheral = vendor_id_dict_control_file[vid] 137 if vid not in vendor_ids.keys(): 143 self.host.run('ls -1 %s' % vendor_ids[vid], 152 driver_path = os.path.join(vendor_ids[vid],
|
/external/ipsec-tools/src/racoon/ |
vendorid.c | 149 vchar_t vid; local 157 "unable to get memory for VID hash\n"); 165 vid.v = (char *) all_vendor_ids[i].string; 166 vid.l = strlen(vid.v); 168 all_vendor_ids[i].hash = eay_md5_one(&vid); 188 vchar_t vid, *new; local 206 * of the VID that could be free'd after use. 220 vchar_t vid, *vidhash; local
|
nattraversal.c | 82 * check if the given vid is NAT-T. 85 natt_vendorid (int vid) 89 vid == VENDORID_NATT_00 || 92 vid == VENDORID_NATT_01 || 95 vid == VENDORID_NATT_02 || 96 vid == VENDORID_NATT_02_N || 99 vid == VENDORID_NATT_03 || 102 vid == VENDORID_NATT_04 || 105 vid == VENDORID_NATT_05 || 108 vid == VENDORID_NATT_06 | [all...] |
/external/libusb/examples/ |
fxload.c | 68 fprintf(stderr, "\nUsage: fxload [-v] [-V] [-t type] [-d vid:pid] [-p bus,addr] [-s loader] -i firmware\n"); 72 fprintf(stderr, " -d <vid:pid> -- Target device, as an USB VID:PID\n"); 94 unsigned vid = 0, pid = 0; local 105 if (sscanf(device_id, "%x:%x" , &vid, &pid) != 2 ) { 106 fputs ("please specify VID & PID as \"vid:pid\" in hexadecimal format\n", stderr); 204 if ((desc.idVendor == known_device[j].vid) 208 // vid:pid was specified and we have a match 209 ((type == NULL) && (device_id != NULL) && (vid == desc.idVendor) && (pid == desc.idProduct)) | [all...] |
/external/autotest/server/site_tests/enterprise_CFM_SiSFwUpdater/ |
enterprise_CFM_SiSFwUpdater.py | 51 self.vid = self._SIS_VID 91 self.host, self.board, self.vid, self.pid) 94 'vid:pid {}:{}'.format(self.vid, self.pid))
|
/frameworks/base/cmds/hid/jni/ |
com_android_commands_hid_Device.h | 40 static Device* open(int32_t id, const char* name, int32_t vid, int32_t pid,
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
Device.java | 47 private static native long nativeOpenDevice(String name, int id, int vid, int pid, 52 public Device(int id, String name, int vid, int pid, byte[] descriptor, byte[] report) { 59 args.argi2 = vid; 64 args.arg1 = id + ":" + vid + ":" + pid;
|
/external/autotest/client/common_lib/cros/ |
power_cycle_usb_util.py | 75 def power_cycle_usb_vidpid(dut, board, vid, pid): 77 Power cycle a usb port on DUT via peripharel's VID and PID. 79 When only the VID and PID of the peripharel is known, a search is needed 80 to decide which port it connects to by its VID and PID and look up the gpio 86 @param vid: Vendor ID of the peripharel device. 89 @raise KeyError if the target device wasn't found by given VID and PID. 93 bus_idx, port_idx = get_port_number_from_vidpid(dut, vid, pid) 95 raise KeyError('Couldn\'t find target device, {}:{}.'.format(vid, pid)) 106 def get_port_number_from_vidpid(dut, vid, pid): 114 @param vid: Vendor ID of the peripharel device [all...] |