Searched refs:serial (Results 1 - 25 of 298) sorted by relevance

1234567891011>>

/external/chromium_org/tools/telemetry/third_party/pyserial/serial/urlhandler/
H A Dprotocol_rfc2217.py11 from serial.rfc2217 import Serial
H A Dprotocol_hwgrep.py14 import serial namespace
15 import serial.tools.list_ports namespace
17 class Serial(serial.Serial):
23 serial.Serial.setPort(self, self.fromURL(value))
25 serial.Serial.setPort(self, value)
31 for port, desc, hwid in serial.tools.list_ports.grep(url):
34 raise serial.SerialException('no ports found matching regexp %r' % (url,))
37 port = property(serial.Serial.getPort, setPort, doc="Port setting")
/external/smack/src/org/xbill/DNS/
H A DSerial.java6 * Helper functions for doing serial arithmetic. These should be used when
7 * setting/checking SOA serial numbers. SOA serial number arithmetic is
22 * Compares two numbers using serial arithmetic. The numbers are assumed
45 * Increments a serial number. The number is assumed to be a 32 bit unsigned
48 * @param serial The serial number
49 * @return The incremented serial number
50 * @throws IllegalArgumentException serial is out of range
53 increment(long serial) { argument
[all...]
/external/chromium_org/extensions/browser/api/serial/
H A Dserial_connection.cc5 #include "extensions/browser/api/serial/serial_connection.h"
12 #include "extensions/common/api/serial.h"
20 core_api::serial::SendError ConvertSendErrorFromMojo(
21 device::serial::SendError input) {
23 case device::serial::SEND_ERROR_NONE:
24 return core_api::serial::SEND_ERROR_NONE;
25 case device::serial::SEND_ERROR_DISCONNECTED:
26 return core_api::serial::SEND_ERROR_DISCONNECTED;
27 case device::serial::SEND_ERROR_PENDING:
28 return core_api::serial
[all...]
H A Dserial_api.cc5 #include "extensions/browser/api/serial/serial_api.h"
12 #include "device/serial/serial_device_enumerator.h"
13 #include "extensions/browser/api/serial/serial_connection.h"
14 #include "extensions/browser/api/serial/serial_event_dispatcher.h"
15 #include "extensions/common/api/serial.h"
34 const serial::DataBits kDefaultDataBits = serial::DATA_BITS_EIGHT;
35 const serial::ParityBit kDefaultParityBit = serial::PARITY_BIT_NO;
36 const serial
[all...]
H A Dserial_connection.h14 #include "device/serial/serial_io_handler.h"
17 #include "extensions/common/api/serial.h"
24 // Encapsulates an open serial port.
37 void(const std::string& data, core_api::serial::ReceiveError error)>
44 void(int bytes_sent, core_api::serial::SendError error)>
93 bool Configure(const core_api::serial::ConnectionOptions& options);
98 bool GetInfo(core_api::serial::ConnectionInfo* info) const;
104 core_api::serial::DeviceControlSignals* control_signals) const;
110 const core_api::serial::HostControlSignals& control_signals);
144 void OnAsyncReadComplete(int bytes_read, device::serial
[all...]
/external/chromium_org/extensions/renderer/api/serial/
H A Dserial_api_unittest.cc5 #include "device/serial/serial_device_enumerator.h"
6 #include "device/serial/serial_service_impl.h"
7 #include "device/serial/test_serial_io_handler.h"
11 // A test launcher for tests for the serial API defined in
21 virtual mojo::Array<device::serial::DeviceInfoPtr> GetDevices() OVERRIDE {
22 mojo::Array<device::serial::DeviceInfoPtr> result(3);
23 result[0] = device::serial::DeviceInfo::New();
30 result[1] = device::serial::DeviceInfo::New();
35 result[2] = device::serial::DeviceInfo::New();
48 device::serial
[all...]
/external/chromium_org/device/serial/
H A Dserial_connection_factory.cc5 #include "device/serial/serial_connection_factory.h"
9 #include "device/serial/serial_connection.h"
10 #include "device/serial/serial_io_handler.h"
15 void FillDefaultConnectionOptions(serial::ConnectionOptions* options) {
18 if (options->data_bits == serial::DATA_BITS_NONE)
19 options->data_bits = serial::DATA_BITS_EIGHT;
20 if (options->stop_bits == serial::STOP_BITS_NONE)
21 options->stop_bits = serial::STOP_BITS_ONE;
22 if (options->parity_bit == serial::PARITY_BIT_NONE)
23 options->parity_bit = serial
[all...]
H A Dserial_device_enumerator_win.cc5 #include "device/serial/serial_device_enumerator_win.h"
29 mojo::Array<serial::DeviceInfoPtr> SerialDeviceEnumeratorWin::GetDevices() {
32 mojo::Array<serial::DeviceInfoPtr> devices(0);
34 serial::DeviceInfoPtr info(serial::DeviceInfo::New());
H A Dserial_connection_unittest.cc11 #include "device/serial/data_receiver.h"
12 #include "device/serial/data_sender.h"
13 #include "device/serial/data_stream.mojom.h"
14 #include "device/serial/serial.mojom.h"
15 #include "device/serial/serial_connection.h"
16 #include "device/serial/serial_service_impl.h"
17 #include "device/serial/test_serial_io_handler.h"
27 virtual mojo::Array<serial::DeviceInfoPtr> GetDevices() OVERRIDE {
28 mojo::Array<serial
[all...]
H A Dserial_io_handler_posix.cc5 #include "device/serial/serial_io_handler_posix.h"
13 #include <linux/serial.h>
98 struct serial_struct serial; local
99 if (ioctl(file, TIOCGSERIAL, &serial) < 0) {
102 serial.flags = (serial.flags & ~ASYNC_SPD_MASK) | ASYNC_SPD_CUST;
103 serial.custom_divisor = serial.baud_base / bitrate;
104 if (serial.custom_divisor < 1) {
105 serial
[all...]
H A Dserial_io_handler_win.cc7 #include "device/serial/serial_io_handler_win.h"
41 int DataBitsEnumToConstant(serial::DataBits data_bits) {
43 case serial::DATA_BITS_SEVEN:
45 case serial::DATA_BITS_EIGHT:
51 int ParityBitEnumToConstant(serial::ParityBit parity_bit) {
53 case serial::PARITY_BIT_EVEN:
55 case serial::PARITY_BIT_ODD:
57 case serial::PARITY_BIT_NO:
63 int StopBitsEnumToConstant(serial::StopBits stop_bits) {
65 case serial
[all...]
H A Dserial_service_impl.h10 #include "device/serial/data_stream.mojom.h"
11 #include "device/serial/serial.mojom.h"
12 #include "device/serial/serial_connection_factory.h"
13 #include "device/serial/serial_device_enumerator.h"
18 class SerialServiceImpl : public mojo::InterfaceImpl<serial::SerialService> {
27 mojo::InterfaceRequest<serial::SerialService> request);
31 mojo::InterfaceRequest<serial::SerialService> request);
35 void(mojo::Array<serial::DeviceInfoPtr>)>& callback) OVERRIDE;
38 serial
[all...]
H A Dtest_serial_io_handler.h11 #include "device/serial/serial.mojom.h"
12 #include "device/serial/serial_io_handler.h"
25 virtual bool ConfigurePort(const serial::ConnectionOptions& options) OVERRIDE;
30 virtual serial::DeviceControlSignalsPtr GetControlSignals() const OVERRIDE;
31 virtual serial::ConnectionInfoPtr GetPortInfo() const OVERRIDE;
34 const serial::HostControlSignals& signals) OVERRIDE;
36 serial::ConnectionInfo* connection_info() { return &info_; }
37 serial::DeviceControlSignals* device_control_signals() {
54 serial
[all...]
H A Dserial_io_handler.h13 #include "device/serial/buffer.h"
14 #include "device/serial/serial.mojom.h"
18 // Provides a simplified interface for performing asynchronous I/O on serial
52 void CancelRead(serial::ReceiveError reason);
55 void CancelWrite(serial::SendError reason);
63 virtual serial::DeviceControlSignalsPtr GetControlSignals() const = 0;
69 const serial::HostControlSignals& control_signals) = 0;
73 virtual bool ConfigurePort(const serial::ConnectionOptions& options) = 0;
78 virtual serial
[all...]
H A Dserial_connection.cc5 #include "device/serial/serial_connection.h"
8 #include "device/serial/buffer.h"
9 #include "device/serial/data_sink_receiver.h"
10 #include "device/serial/data_source_sender.h"
11 #include "device/serial/serial_io_handler.h"
17 mojo::InterfaceRequest<serial::DataSink> sink,
18 mojo::InterfaceRequest<serial::DataSource> source)
37 io_handler_->CancelRead(serial::RECEIVE_ERROR_DISCONNECTED);
38 io_handler_->CancelWrite(serial::SEND_ERROR_DISCONNECTED);
42 const mojo::Callback<void(serial
[all...]
H A Dtest_serial_io_handler.cc5 #include "device/serial/test_serial_io_handler.h"
10 #include "device/serial/serial.mojom.h"
34 const serial::ConnectionOptions& options) {
37 if (options.data_bits != serial::DATA_BITS_NONE)
39 if (options.parity_bit != serial::PARITY_BIT_NONE)
41 if (options.stop_bits != serial::STOP_BITS_NONE)
58 ReadCompleted(static_cast<uint32_t>(num_bytes), serial::RECEIVE_ERROR_NONE);
73 WriteCompleted(pending_write_buffer_len(), serial::SEND_ERROR_NONE);
82 serial
[all...]
H A Dserial_connection.h10 #include "device/serial/serial.mojom.h"
21 class SerialConnection : public mojo::InterfaceImpl<serial::Connection> {
24 mojo::InterfaceRequest<serial::DataSink> sink,
25 mojo::InterfaceRequest<serial::DataSource> source);
28 // mojo::InterfaceImpl<serial::Connection> overrides.
30 const mojo::Callback<void(serial::ConnectionInfoPtr)>& callback) OVERRIDE;
31 virtual void SetOptions(serial::ConnectionOptionsPtr options,
34 serial::HostControlSignalsPtr signals,
37 void(serial
[all...]
H A Dserial_connection_factory.h13 #include "device/serial/data_stream.mojom.h"
14 #include "device/serial/serial.mojom.h"
32 serial::ConnectionOptionsPtr options,
33 mojo::InterfaceRequest<serial::Connection> connection_request,
34 mojo::InterfaceRequest<serial::DataSink> sink,
35 mojo::InterfaceRequest<serial::DataSource> source);
H A Dserial_device_enumerator.h9 #include "device/serial/serial.mojom.h"
14 // Discovers and enumerates serial devices available to the host.
22 virtual mojo::Array<serial::DeviceInfoPtr> GetDevices() = 0;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
H A DIssuerSerial.java19 ASN1Integer serial; field in class:IssuerSerial
54 serial = ASN1Integer.getInstance(seq.getObjectAt(1));
64 BigInteger serial)
66 this(new GeneralNames(new GeneralName(issuer)), new ASN1Integer(serial));
71 BigInteger serial)
73 this(issuer, new ASN1Integer(serial));
78 ASN1Integer serial)
81 this.serial = serial;
91 return serial;
62 IssuerSerial( X500Name issuer, BigInteger serial) argument
69 IssuerSerial( GeneralNames issuer, BigInteger serial) argument
76 IssuerSerial( GeneralNames issuer, ASN1Integer serial) argument
[all...]
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/tools/
H A Dminiterm.py3 # Very simple serial terminal
11 import sys, os, serial, threading namespace
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
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_debug_refcnt.c47 /* TODO: maybe move this serial machinery to a stand-alone module and expose it? */
70 unsigned serial; local
84 serial = (unsigned)(uintptr_t)util_hash_table_get(serials_hash, p);
85 if(!serial)
90 serial = ++serials_last;
91 if(!serial)
97 util_hash_table_set(serials_hash, p, (void*)(uintptr_t)serial);
101 *pserial = serial;
150 unsigned serial; local
151 boolean existing = debug_serial((void*)p, &serial);
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_debug_refcnt.c47 /* TODO: maybe move this serial machinery to a stand-alone module and expose it? */
70 unsigned serial; local
84 serial = (unsigned)(uintptr_t)util_hash_table_get(serials_hash, p);
85 if(!serial)
90 serial = ++serials_last;
91 if(!serial)
97 util_hash_table_set(serials_hash, p, (void*)(uintptr_t)serial);
101 *pserial = serial;
150 unsigned serial; local
151 boolean existing = debug_serial((void*)p, &serial);
[all...]
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/
H A D__init__.py3 # 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',

Completed in 411 milliseconds

1234567891011>>