Home
last modified time | relevance | path

Searched refs:readable (Results 1 – 25 of 1110) sorted by relevance

12345678910>>...45

/external/adhd/cras/src/tests/
Dfloat_buffer_unittest.cc11 unsigned int readable = 10; in TEST() local
19 float_buffer_read_pointer(b, 0, &readable); in TEST()
20 EXPECT_EQ(8, readable); in TEST()
23 readable = 10; in TEST()
24 float_buffer_read_pointer(b, 3, &readable); in TEST()
25 EXPECT_EQ(5, readable); in TEST()
36 readable = 10; in TEST()
38 float_buffer_read_pointer(b, 0, &readable); in TEST()
39 EXPECT_EQ(4, readable); in TEST()
41 readable = 10; in TEST()
[all …]
/external/libchrome/mojo/public/cpp/system/tests/
Dhandle_signal_tracker_unittest.cc45 EXPECT_FALSE(tracker.last_known_state().readable()); in TEST_F()
56 EXPECT_TRUE(tracker.last_known_state().readable()); in TEST_F()
63 EXPECT_FALSE(tracker.last_known_state().readable()); in TEST_F()
68 EXPECT_TRUE(tracker.last_known_state().readable()); in TEST_F()
74 EXPECT_FALSE(tracker.last_known_state().readable()); in TEST_F()
83 EXPECT_FALSE(readable_tracker.last_known_state().readable()); in TEST_F()
89 EXPECT_TRUE(readable_tracker.last_known_state().readable()); in TEST_F()
108 EXPECT_FALSE(readable_tracker.last_known_state().readable()); in TEST_F()
112 EXPECT_TRUE(peer_closed_tracker.last_known_state().readable()); in TEST_F()
Dwait_unittest.cc97 EXPECT_TRUE(hss.readable() && hss.writable() && !hss.peer_closed()); in TEST_F()
109 EXPECT_TRUE(hss.readable() && hss.peer_closed() && !hss.writable()); in TEST_F()
120 EXPECT_TRUE(hss.peer_closed() && !hss.readable() && !hss.writable()); in TEST_F()
140 EXPECT_TRUE(hss.readable() && hss.writable() && !hss.peer_closed()); in TEST_F()
160 EXPECT_TRUE(!hss.readable() && !hss.writable() && hss.peer_closed()); in TEST_F()
204 EXPECT_TRUE(!hss[0].readable() && hss[0].writable() && !hss[0].peer_closed()); in TEST_F()
207 EXPECT_TRUE(hss[1].readable() && hss[1].writable() && !hss[1].peer_closed()); in TEST_F()
224 EXPECT_TRUE(!hss[0].readable() && !hss[0].writable() && hss[0].peer_closed()); in TEST_F()
270 EXPECT_TRUE(!hss[0].readable() && hss[0].writable() && !hss[0].peer_closed()); in TEST_F()
273 EXPECT_TRUE(hss[1].readable() && hss[1].writable() && !hss[1].peer_closed()); in TEST_F()
[all …]
Dhandle_signals_state_unittest.cc21 EXPECT_FALSE(empty_signals.readable()); in TEST_F()
35 EXPECT_TRUE(all_signals.readable()); in TEST_F()
/external/guava/android/guava/src/com/google/common/io/
DLineReader.java41 private final Readable readable; field in LineReader
56 public LineReader(Readable readable) { in LineReader() argument
57 this.readable = checkNotNull(readable); in LineReader()
58 this.reader = (readable instanceof Reader) ? (Reader) readable : null; in LineReader()
76 int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf); in readLine()
DCharStreams.java217 public static <T> T readLines(Readable readable, LineProcessor<T> processor) throws IOException { in readLines() argument
218 checkNotNull(readable); in readLines()
221 LineReader lineReader = new LineReader(readable); in readLines()
239 public static long exhaust(Readable readable) throws IOException { in exhaust() argument
243 while ((read = readable.read(buf)) != -1) { in exhaust()
DCharSink.java149 public long writeFrom(Readable readable) throws IOException { in writeFrom() argument
150 checkNotNull(readable); in writeFrom()
155 long written = CharStreams.copy(readable, out); in writeFrom()
/external/guava/guava/src/com/google/common/io/
DLineReader.java41 private final Readable readable; field in LineReader
56 public LineReader(Readable readable) { in LineReader() argument
57 this.readable = checkNotNull(readable); in LineReader()
58 this.reader = (readable instanceof Reader) ? (Reader) readable : null; in LineReader()
76 int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf); in readLine()
DCharStreams.java217 public static <T> T readLines(Readable readable, LineProcessor<T> processor) throws IOException { in readLines() argument
218 checkNotNull(readable); in readLines()
221 LineReader lineReader = new LineReader(readable); in readLines()
239 public static long exhaust(Readable readable) throws IOException { in exhaust() argument
243 while ((read = readable.read(buf)) != -1) { in exhaust()
DCharSink.java175 public long writeFrom(Readable readable) throws IOException { in writeFrom() argument
176 checkNotNull(readable); in writeFrom()
181 long written = CharStreams.copy(readable, out); in writeFrom()
/external/adhd/cras/src/server/
Dfloat_buffer.h85 unsigned int *readable) in float_buffer_read_pointer() argument
92 *readable = 0; in float_buffer_read_pointer()
97 *readable = MIN(*readable, b->buf->write_idx - offset); in float_buffer_read_pointer()
99 *readable = MIN(*readable, nread - offset); in float_buffer_read_pointer()
/external/python/cpython2/Lib/multiprocessing/
Dreduction.py167 return rebuild_connection, (rh, conn.readable, conn.writable)
169 def rebuild_connection(reduced_handle, readable, writable): argument
172 handle, readable=readable, writable=writable
207 return rebuild_pipe_connection, (rh, conn.readable, conn.writable)
209 def rebuild_pipe_connection(reduced_handle, readable, writable): argument
212 handle, readable=readable, writable=writable
/external/python/cpython2/Lib/
Dpprint.py129 s, readable, recursive = self.format(object, {}, 0, 0)
130 return readable and not recursive
225 repr, readable, recursive = self.format(object, context.copy(),
227 if not readable:
274 readable = True
284 readable = readable and kreadable and vreadable
288 return "{%s}" % _commajoin(components), readable, recursive
308 readable = True
317 readable = False
321 return format % _commajoin(components), readable, recursive
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DAbstractLZ77CompressorInputStream.java252 final int readable = Math.min(len, available()); in readFromBuffer() local
253 if (readable > 0) { in readFromBuffer()
254 System.arraycopy(buf, readIndex, b, off, readable); in readFromBuffer()
255 readIndex += readable; in readFromBuffer()
260 size += readable; in readFromBuffer()
261 return readable; in readFromBuffer()
/external/python/cpython3/Lib/test/
Dtest_winconsoleio.py41 self.assertTrue(f.readable())
53 self.assertFalse(f.readable())
65 self.assertFalse(f.readable())
75 self.assertTrue(f.readable())
82 self.assertTrue(f.readable())
89 self.assertFalse(f.readable())
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/introspector/
DMethodProperty.java34 private final boolean readable; field in MethodProperty
42 this.readable = property.getReadMethod() != null; in MethodProperty()
69 return readable; in isReadable()
/external/adhd/cras/src/common/
Dbyte_buffer.h71 size_t readable) in buf_adjust_readable() argument
73 buf->level = MIN(readable, buf->used_size); in buf_adjust_readable()
94 unsigned int *readable) in buf_read_pointer_size() argument
96 *readable = buf_readable(buf); in buf_read_pointer_size()
Dcras_util.c236 int readable; in wait_for_dev_input_access() local
242 readable = access(pathname, R_OK); in wait_for_dev_input_access()
251 if (readable == 0 || (readable == -1 && errno == ENOENT)) { in wait_for_dev_input_access()
255 if (readable != -1 || errno != EACCES) { in wait_for_dev_input_access()
/external/python/cpython3/Modules/_io/
Dfileio.c61 unsigned int readable : 1; member
183 self->readable = 0; in fileio_new()
310 self->readable = 1;
332 self->readable = self->writable = 1;
345 if (self->readable && self->writable)
347 else if (self->readable)
575 return PyBool_FromLong((long) self->readable);
636 if (!self->readable)
794 if (!self->readable)
1056 if (self->readable)
[all …]
/external/python/cpython3/Lib/multiprocessing/
Dconnection.py117 def __init__(self, handle, readable=True, writable=True): argument
121 if not readable and not writable:
125 self._readable = readable
159 def readable(self): member in _ConnectionBase
529 c2 = Connection(fd2, readable=False)
571 c2 = PipeConnection(h2, readable=duplex)
949 return rebuild_connection, (ds, conn.readable, conn.writable)
950 def rebuild_connection(ds, readable, writable): argument
952 return Connection(sock.detach(), readable, writable)
956 access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) |
[all …]
/external/python/cpython2/Modules/_io/
Dfileio.c51 unsigned int readable : 1; member
129 self->readable = 0; in fileio_new()
309 self->readable = 1; in fileio_init()
331 self->readable = self->writable = 1; in fileio_init()
344 if (self->readable && self->writable) in fileio_init()
346 else if (self->readable) in fileio_init()
471 return PyBool_FromLong((long) self->readable); in fileio_readable()
508 if (!self->readable) in fileio_readinto()
661 if (!self->readable) in fileio_read()
939 if (self->readable) in mode_string()
[all …]
/external/python/cpython3/Lib/
Dpprint.py160 s, readable, recursive = self.format(object, {}, 0, 0)
161 return readable and not recursive
404 repr, readable, recursive = self.format(object, context.copy(),
406 if not readable:
517 readable = True
530 readable = readable and kreadable and vreadable
534 return "{%s}" % ", ".join(components), readable, recursive
554 readable = True
563 readable = False
567 return format % ", ".join(components), readable, recursive
/external/autotest/client/site_tests/platform_Nvram/
Dcontrol8 PURPOSE = "Verify /dev/nvram exists and is readable."
10 Fail if /dev/nvram does not exist or not readable.
/external/ppp/pppd/plugins/rp-pppoe/
Ddiscovery.c347 fd_set readable; in waitForPADO() local
375 FD_ZERO(&readable); in waitForPADO()
376 FD_SET(conn->discoverySocket, &readable); in waitForPADO()
379 r = select(conn->discoverySocket+1, &readable, NULL, NULL, &tv); in waitForPADO()
540 fd_set readable; in waitForPADS() local
560 FD_ZERO(&readable); in waitForPADS()
561 FD_SET(conn->discoverySocket, &readable); in waitForPADS()
564 r = select(conn->discoverySocket+1, &readable, NULL, NULL, &tv); in waitForPADS()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c21 uint64_t readable:1; member
422 if (!pml4e[index[3]].readable) { in nested_pg_map()
427 pml4e[index[3]].readable = true; in nested_pg_map()
434 if (!pdpe[index[2]].readable) { in nested_pg_map()
439 pdpe[index[2]].readable = true; in nested_pg_map()
446 if (!pde[index[1]].readable) { in nested_pg_map()
451 pde[index[1]].readable = true; in nested_pg_map()
460 pte[index[0]].readable = true; in nested_pg_map()

12345678910>>...45