Home
last modified time | relevance | path

Searched refs:read_line (Results 1 – 25 of 49) sorted by relevance

12

/external/rust/crates/futures/tests/
Dio_read_line.rs2 fn read_line() { in read_line() function
8 assert_eq!(block_on(buf.read_line(&mut v)).unwrap(), 2); in read_line()
13 assert_eq!(block_on(buf.read_line(&mut v)).unwrap(), 3); in read_line()
16 assert_eq!(block_on(buf.read_line(&mut v)).unwrap(), 1); in read_line()
19 assert_eq!(block_on(buf.read_line(&mut v)).unwrap(), 0); in read_line()
46 assert_eq!(run(buf.read_line(&mut v)).unwrap(), 2); in maybe_pending()
54 assert_eq!(run(buf.read_line(&mut v)).unwrap(), 3); in maybe_pending()
57 assert_eq!(run(buf.read_line(&mut v)).unwrap(), 1); in maybe_pending()
60 assert_eq!(run(buf.read_line(&mut v)).unwrap(), 0); in maybe_pending()
63 assert_eq!(run(buf.read_line(&mut v)).unwrap(), 0); in maybe_pending()
/external/rust/crates/tokio/tests/
Dio_read_line.rs11 async fn read_line() { in read_line() function
15 let n = assert_ok!(rd.read_line(&mut buf).await); in read_line()
19 let n = assert_ok!(rd.read_line(&mut buf).await); in read_line()
23 let n = assert_ok!(rd.read_line(&mut buf).await); in read_line()
27 let n = assert_ok!(rd.read_line(&mut buf).await); in read_line()
43 let bytes = read.read_line(&mut line).await.unwrap(); in read_line_not_all_ready()
48 let bytes = read.read_line(&mut line).await.unwrap(); in read_line_not_all_ready()
53 let bytes = read.read_line(&mut line).await.unwrap(); in read_line_not_all_ready()
58 let bytes = read.read_line(&mut line).await.unwrap(); in read_line_not_all_ready()
70 let err = read.read_line(&mut line).await.expect_err("Should fail"); in read_line_invalid_utf8()
[all …]
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/
Dmodify_srcu.awk90 function read_line() { function
184 read_line(); function
268 read_line(); function
281 read_line(); function
293 read_line(); function
320 read_line(); function
329 read_line(); function
333 read_line(); function
339 read_line(); function
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports_linux.py42 def read_line(filename): function
68 snr = read_line(sysfs_path+'/serial')
74 read_line(sysfs_path+'/idVendor'),
75 read_line(sysfs_path+'/idProduct'),
83 dev = int(read_line(os.path.join(sysfs_path, 'devnum')))
112 return read_line(sys_dev_path)
119 return read_line(product_name_file)
130 return read_line(sys_id_path)
/external/rust/crates/tokio/src/io/util/
Dasync_buf_read_ext.rs2 use crate::io::util::read_line::{read_line, ReadLine};
162 fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self>
166 read_line(self, buf)
Dmod.rs51 mod read_line;
/external/grpc-grpc/src/objective-c/
Dchange-comments.py41 def read_line(): function
102 write(read_line())
108 comment_block.append(read_line())
/external/rust/crates/nom/tests/
Dmultiline.rs18 pub fn read_line(input: &str) -> IResult<&str, &str> { in read_line() function
23 many0(read_line)(input) in read_lines()
/external/rust/crates/bytes/tests/
Dtest_reader.rs24 reader.read_line(&mut line).unwrap(); in buf_read()
27 reader.read_line(&mut line).unwrap(); in buf_read()
/external/chromium-trace/catapult/third_party/pyserial/
Dlinux-product_info.patch8 return read_line(sys_dev_path)
15 + return read_line(product_name_file)
/external/v4l2_codec2/tests/c2_e2e_test/jni/
Dcommon.cpp70 std::string read_line; in ReadLine() local
71 while (std::getline(file_, read_line)) { in ReadLine()
72 if (read_line.empty()) // be careful: an empty line might be read in ReadLine()
74 *line = read_line; in ReadLine()
/external/toybox/toys/pending/
Dmodprobe.c165 static int read_line(FILE *fl, char **li) in read_line() function
227 for (line = linecp = NULL; read_line(fc, &line) > 0; in config_action()
289 while (read_line(fe, &line) > 0) { in depmode_read_entry()
317 for (; read_line(fe, &line) > 0; free(line)) { in find_dep()
525 while (read_line(fs, &procline) > 0) { in modprobe_main()
/external/crosvm/integration_tests/tests/
Dfixture.rs277 from_guest_reader.read_line(&mut magic_line)?; in new()
297 self.from_guest_reader.read_line(&mut echo)?; in exec_in_guest()
304 self.from_guest_reader.read_line(&mut line)?; in exec_in_guest()
/external/rust/crates/futures-util/src/io/
Dmod.rs107 mod read_line; module
108 pub use self::read_line::ReadLine;
764 fn read_line<'a>(&'a mut self, buf: &'a mut String) -> ReadLine<'a, Self> in read_line() method
/external/rust/crates/rusqlite/src/blob/
Dmod.rs488 assert_eq!(4, reader.read_line(&mut line).unwrap()); in test_blob_in_bufreader()
492 assert_eq!(4, reader.read_line(&mut line).unwrap()); in test_blob_in_bufreader()
496 assert_eq!(2, reader.read_line(&mut line).unwrap()); in test_blob_in_bufreader()
/external/rust/crates/bstr/examples/
Dwords-std.rs14 while stdin.read_line(&mut line)? > 0 { in main()
Duppercase-std.rs10 while stdin.read_line(&mut line)? > 0 { in main()
Dlines-std.rs10 while stdin.read_line(&mut line)? > 0 { in main()
Dgraphemes-std.rs14 while stdin.read_line(&mut line)? > 0 { in main()
/external/llvm-project/lldb/tools/lldb-vscode/
DIOStream.h57 bool read_line(std::ofstream *log, std::string &line);
/external/llvm-project/llvm/test/Transforms/LoopRotate/
Dpreserve-mssa.ll26 ; CHECK-LABEL: @read_line(
27 define internal fastcc i32 @read_line(i8* nocapture %f) unnamed_addr {
/external/crosvm/integration_tests/guest_under_test/
Ddelegate.rs31 reader.read_line(&mut command)?; in listen()
/external/rust/crates/criterion/benches/benchmarks/
Dexternal_process.rs46 .read_line(&mut line) in python_fibonacci()
/external/adhd/sound_card_init/dsm/src/
Dvpd.rs38 reader.read_line(&mut line).map_err(io_err)?; in read_vpd_files()
/external/rust/crates/rayon/examples/
Dcpu_monitor.rs50 io::stdin().read_line(&mut input).unwrap(); in wait_for_user()

12