/system/core/adb/ |
console.cpp | 57 static int adb_get_emulator_console_port(const char* serial) { 58 if (serial) { 59 // The user specified a serial number; is it an emulator? 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; 94 static int connect_to_console(const char* serial) { 95 int port = adb_get_emulator_console_port(serial); 110 int adb_send_emulator_command(int argc, const char** argv, const char* serial) { 111 int fd = connect_to_console(serial);
|
transport.cpp | 198 if (read_packet(fd, t->serial, &p)) { 199 D("%s: failed to read packet from transport socket on fd %d", t->serial, fd); 222 if (write_packet(t->transport_socket, t->serial, &p)) { 245 android::base::StringPrintf("<-%s", (t->serial != nullptr ? t->serial : "transport"))); 246 D("%s: starting read_transport thread on fd %d, SYNC online (%d)", t->serial, t->fd, 254 if (write_packet(t->fd, t->serial, &p)) { 256 D("%s: failed to write SYNC packet", t->serial); 260 D("%s: data pump started", t->serial); 268 D("%s: remote read failed for transport", t->serial); 989 const char* serial = t->serial; local [all...] |
adb_client.h | 43 void adb_set_transport(TransportType type, const char* _Nullable serial, TransportId transport_id); 44 void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial, 52 // exactly one emulator connected (or if you use -s <serial> with a <serial> 55 const char* _Nullable serial); 61 // Create a host command corresponding to selected transport type/serial.
|
/external/autotest/client/cros/i2c/ |
usb_to_i2c.py | 13 import serial 104 '''Connects to NXP via serial port. 106 @param device_path: The device path of serial port. 109 self.logger.info('Setup serial device... [%s]', device_path) 111 self.serial = serial.Serial(port=self.device_path, 113 bytesize=serial.EIGHTBITS, 114 parity=serial.PARITY_NONE, 115 stopbits=serial.STOPBITS_ONE [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/ |
2-1.c | 39 static int serial; variable 56 serial++; 82 serial = 0; 105 if (serial != 1 || (serial + normal_rt) != THREAD_NUM) {
|
/packages/apps/Camera2/src/com/android/camera/one/ |
AbstractOneCamera.java | 36 * Number of characters from the end of the device serial number used to 62 * devices serial number, and 'XXX' are milliseconds of the timestamp. 80 String serial = android.os.Build.SERIAL; local 81 if (serial != null) { 82 int length = serial.length(); 85 serialSubstring = serial.substring(length - DEBUG_FOLDER_SERIAL_LENGTH, length); 87 serialSubstring = serial;
|
/test/vts/utils/python/controllers/ |
fastboot.py | 51 >> fb = FastbootProxy(<serial>) 55 def __init__(self, serial=""): 56 self.serial = serial 57 if serial: 58 self.fastboot_str = "fastboot -s {}".format(serial)
|
customflasher.py | 28 serial: string containing devices serial. 33 >> fb = Proxy(<serial>) 37 def __init__(self, serial=None): 39 self.serial = serial
|
/tools/tradefederation/core/src/com/android/tradefed/command/remote/ |
DeviceTracker.java | 63 * Mark given device serial as freed and clear the command result if any. 66 * serial cannot be found 68 public ITestDevice freeDevice(String serial) { 69 mDeviceLastCommandMap.remove(serial); 70 return mAllocatedDeviceMap.remove(serial); 86 * Return a previously allocated device that matches given serial. 88 * @param serial 91 public ITestDevice getDeviceForSerial(String serial) { 92 return mAllocatedDeviceMap.get(serial);
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
miniterm.py | 3 # Very simple serial terminal 11 import sys, os, serial, threading 13 from serial.tools.list_ports import comports 17 EXITCHARCTER = serial.to_bytes([0x1d]) # GS/CTRL+] 18 MENUCHARACTER = serial.to_bytes([0x14]) # Menu: CTRL+T 62 'version': getattr(serial, 'VERSION', 'unknown version'), 84 LF = serial.to_bytes([10]) 85 CR = serial.to_bytes([13]) 86 CRLF = serial.to_bytes([13, 10]) 88 X00 = serial.to_bytes([0] [all...] |
/external/mesa3d/src/gallium/auxiliary/rbug/ |
rbug_connection.c | 64 * Also returns the serial for the message, serial is not touched for replys. 70 rbug_get_message(struct rbug_connection *c, uint32_t *serial) 107 else if (serial) 108 *serial = c->recv_serial++; 156 * Ups the send_serial and sets the serial argument if supplied. 158 int rbug_connection_send_finish(struct rbug_connection *c, uint32_t *serial) 162 else if (serial) 163 *serial = c->send_serial++;
|
rbug_connection.h | 39 struct rbug_header * rbug_get_message(struct rbug_connection *c, uint32_t *serial);
|
rbug_core.h | 66 uint32_t serial; member in struct:rbug_proto_ping_reply 72 uint32_t serial; member in struct:rbug_proto_error_reply 87 uint32_t serial, 91 uint32_t serial,
|
/external/chromium-trace/catapult/devil/devil/utils/ |
reset_usb.py | 40 def reset_android_usb(serial): 48 if device_serial == serial: 57 % (bus, device, serial)) 73 serial = lsusb.get_lsusb_serial(device_info) 74 if serial: 76 'Reset USB device (bus: %03d, device: %03d, serial: %s)', 77 bus, device, serial) 91 parser.add_argument('-s', '--serial') 98 if args.serial: 99 reset_android_usb(args.serial) [all...] |
/external/libmojo/third_party/catapult/devil/devil/utils/ |
reset_usb.py | 32 def reset_android_usb(serial): 40 if device_serial == serial: 48 'Unable to determine bus or device for device %s' % serial) 64 serial = lsusb.get_lsusb_serial(device_info) 65 if serial: 66 logging.info('Reset USB device (bus: %03d, device: %03d, serial: %s)', 67 bus, device, serial) 80 parser.add_argument('-s', '--serial') 87 if args.serial: 88 reset_android_usb(args.serial) [all...] |
/external/vulkan-validation-layers/demos/smoke/ |
ShellWayland.h | 55 static void handle_ping(void *data, wl_shell_surface *shell_surface, uint32_t serial); 59 static void pointer_handle_enter(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, 61 static void pointer_handle_leave(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface); 63 static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, uint32_t serial, uint32_t time, uint32_t button, 68 static void keyboard_handle_enter(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, 70 static void keyboard_handle_leave(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface); 71 static void keyboard_handle_key(void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t time, uint32_t key, 73 static void keyboard_handle_modifiers(void *data, wl_keyboard *keyboard, uint32_t serial, uint32_t mods_depressed,
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
AllocateDeviceOp.java | 28 private static final String SERIAL = "serial"; 31 AllocateDeviceOp(String serial) { 32 mDeviceSerial = serial; 43 return new AllocateDeviceOp(json.getString(SERIAL)); 53 j.put(SERIAL, mDeviceSerial);
|
FreeDeviceOp.java | 26 private static final String SERIAL = "serial"; 32 FreeDeviceOp(String serial) { 33 mDeviceSerial = serial; 44 return new FreeDeviceOp(json.getString(SERIAL)); 54 j.put(SERIAL, mDeviceSerial);
|
ExecCommandOp.java | 27 private static final String SERIAL = "serial"; 33 ExecCommandOp(String serial, String... commandArgs) { 34 mSerial = serial; 46 String serial = json.getString(SERIAL); local 52 return new ExecCommandOp(serial, commandArgs); 68 j.put(SERIAL, mSerial);
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
car_telecom_utils.py | 47 ad.serial, uri)) 51 log.info("We're still in call {}".format(ad.serial)) 75 log.info("Call ID: {} dev {}".format(call_id, ad.serial)) 106 call_id, state, ad.serial)) 127 ad.serial, call_id, call_state)) 131 state, ad.serial)) 149 ad.serial, call_id)) 152 log.info("We are not in-call {}".format(ad.serial)) 191 ad.serial, conf_id)) 195 log.info("We are not in-call {}".format(ad.serial)) [all...] |
/tools/test/connectivity/acts/framework/tests/ |
acts_android_device_test.py | 44 The serial number of each device will be integer 0 through num - 1. 52 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None) 63 return [ad.serial for ad in get_mock_ads(5)] 70 serial, 74 self.serial = serial 111 return "\t".join([str(self.serial), "device"]) 115 logging.log_path, "AndroidDevice%s" % self.serial, 117 (self.serial, 137 def __init__(self, serial) [all...] |
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
__init__.py | 3 # portable serial port access with python 14 from serial.serialcli import * 19 from serial.serialwin32 import * 21 from serial.serialposix import * 23 from serial.serialjava import * 29 'serial.urlhandler', 34 Get an instance of the Serial class, depending on port/url. The port is not 47 # check remove extra parameter to not confuse the Serial class 51 klass = Serial # 'native' implementation 68 klass = sys.modules[module_name].Serial [all...] |
/external/syslinux/gpxe/src/core/ |
serial_console.c | 2 #include <gpxe/serial.h> 7 * Serial console 14 /* Serial driver initialization should already be done, 15 * time to enable the serial console. */ 27 * Serial console initialisation function
|
/system/iot/attestation/at-factory-tool/ |
serialmapperlinux.py | 15 """This module provides the serial number to USB location map on Linux.""" 20 """Maps serial number to its USB physical location. 23 USB devices. Use the serial file's content to create the map. 47 serial_path = os.path.join(device_folder, 'serial') 50 serial = f.readline().rstrip('\n').lower() 51 serial_to_location_map[serial] = device_folder_name 55 def get_location(self, serial): 56 """Get the USB location according to the serial number. 59 serial: The serial number for the device [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/mmix/ |
err-ser-1.s | 5 % Make sure we correctly diagnose the serial-number operator. 9 Main TETRA &a<<8 { dg-error "serial number operator is not supported" "" } 10 TETRA 3+&a<<8 { dg-error "serial number operator is not supported" "" }
|