/external/chromium_org/device/serial/ |
serial_connection.cc | 19 : io_handler_(io_handler) { 37 io_handler_->CancelRead(serial::RECEIVE_ERROR_DISCONNECTED); 38 io_handler_->CancelWrite(serial::SEND_ERROR_DISCONNECTED); 43 callback.Run(io_handler_->GetPortInfo()); 48 callback.Run(io_handler_->ConfigurePort(*options)); 49 io_handler_->CancelRead(device::serial::RECEIVE_ERROR_NONE); 55 callback.Run(io_handler_->SetControlSignals(*signals)); 60 callback.Run(io_handler_->GetControlSignals()); 64 callback.Run(io_handler_->Flush()); 68 io_handler_->CancelWrite(static_cast<serial::SendError>(error)) [all...] |
serial_connection_unittest.cc | 92 ASSERT_TRUE(io_handler_.get()); 143 io_handler_ = new TestSerialIoHandler; 144 return io_handler_; 192 scoped_refptr<TestSerialIoHandler> io_handler_; member in class:device::SerialConnectionTest 222 serial::ConnectionInfo* info = io_handler_->connection_info(); 233 serial::DeviceControlSignals* signals = io_handler_->device_control_signals(); 258 EXPECT_TRUE(io_handler_->dtr()); 259 EXPECT_TRUE(io_handler_->rts()); 263 ASSERT_EQ(0, io_handler_->flushes()); 269 EXPECT_EQ(1, io_handler_->flushes()) [all...] |
serial_connection_factory.cc | 55 scoped_refptr<SerialIoHandler> io_handler_; member in class:device::SerialConnectionFactory::ConnectTask 110 io_handler_ = factory_->io_handler_factory_.Run(); 111 io_handler_->Open( 117 DCHECK(io_handler_.get()); 123 if (!io_handler_->ConfigurePort(*options_)) 126 new SerialConnection(io_handler_, sink_.Pass(), source_.Pass()),
|
serial_service_unittest.cc | 70 scoped_refptr<SerialIoHandler> ReturnIoHandler() { return io_handler_; } 73 if (!io_handler_.get()) 74 io_handler_ = new TestSerialIoHandler; 105 scoped_refptr<TestSerialIoHandler> io_handler_; member in class:device::SerialServiceTest 137 io_handler_ = new FailToOpenIoHandler;
|
serial_connection.h | 45 scoped_refptr<SerialIoHandler> io_handler_; member in class:device::SerialConnection
|
/external/chromium_org/mojo/system/ |
raw_channel_win.cc | 175 // Passed to |io_handler_| during initialization. 178 RawChannelIOHandler* io_handler_; member in class:mojo::system::__anon13487::RawChannelWin 350 io_handler_(nullptr), 357 DCHECK(!io_handler_); 367 DCHECK(io_handler_); 368 DCHECK(!io_handler_->pending_read()); 375 BOOL result = ReadFile(io_handler_->handle(), 379 &io_handler_->read_context()->overlapped); 397 // completion port on success, instruct |io_handler_| to wait for the 405 io_handler_->OnPendingReadStarted() [all...] |
/external/chromium_org/extensions/renderer/api/serial/ |
serial_api_unittest.cc | 414 scoped_refptr<TestIoHandlerBase> io_handler_; member in class:extensions::SerialApiTest 418 if (!io_handler_.get()) 419 io_handler_ = new TestIoHandlerBase; 420 return io_handler_; 443 io_handler_ = new FailToConnectTestIoHandler; 448 io_handler_ = new FailToGetInfoTestIoHandler(0); 469 io_handler_ = new FailToGetInfoTestIoHandler(1); 478 io_handler_ = new GetControlSignalsTestIoHandler; 480 EXPECT_EQ(16u, io_handler_->num_calls()); 484 io_handler_ = new SetControlSignalsTestIoHandler [all...] |
/external/chromium_org/extensions/browser/api/serial/ |
serial_connection.cc | 205 io_handler_(device::SerialIoHandler::Create( 212 io_handler_->CancelRead(device::serial::RECEIVE_ERROR_DISCONNECTED); 213 io_handler_->CancelWrite(device::serial::SEND_ERROR_DISCONNECTED); 235 io_handler_->CancelRead(device::serial::RECEIVE_ERROR_NONE); 241 io_handler_->Open(port_, callback); 250 io_handler_->Read(scoped_ptr<device::WritableBuffer>(new ReceiveBuffer( 269 io_handler_->Write(scoped_ptr<device::ReadOnlyBuffer>(new SendBuffer( 293 bool success = io_handler_->ConfigurePort( 295 io_handler_->CancelRead(device::serial::RECEIVE_ERROR_NONE); 301 io_handler_ = handler [all...] |
serial_connection.h | 112 // Overrides |io_handler_| for testing. 143 // Receives read completion notification from the |io_handler_|. 146 // Receives write completion notification from the |io_handler_|. 191 scoped_refptr<device::SerialIoHandler> io_handler_; member in class:extensions::SerialConnection
|