Home
last modified time | relevance | path

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

12345678910>>...44

/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/guava/src/com/google/common/io/
DLineReader.java39 private final Readable readable; field in LineReader
55 public LineReader(Readable readable) { in LineReader() argument
56 this.readable = checkNotNull(readable); in LineReader()
57 this.reader = (readable instanceof Reader) ? (Reader) readable : null; in LineReader()
78 : readable.read(cbuf); in readLine()
DCharStreams.java137 Readable readable, LineProcessor<T> processor) throws IOException { in readLines() argument
138 checkNotNull(readable); in readLines()
141 LineReader lineReader = new LineReader(readable); in readLines()
265 static Reader asReader(final Readable readable) { in asReader() argument
266 checkNotNull(readable); in asReader()
267 if (readable instanceof Reader) { in asReader()
268 return (Reader) readable; in asReader()
278 return readable.read(target); in asReader()
283 if (readable instanceof Closeable) { in asReader()
284 ((Closeable) readable).close(); in asReader()
DCharSink.java148 public long writeFrom(Readable readable) throws IOException { in writeFrom() argument
149 checkNotNull(readable); in writeFrom()
154 long written = CharStreams.copy(readable, out); in writeFrom()
/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/adhd/cras/src/server/
Dfloat_buffer.h86 unsigned int *readable) in float_buffer_read_pointer() argument
93 *readable = 0; in float_buffer_read_pointer()
98 *readable = MIN(*readable, b->buf->write_idx - offset); in float_buffer_read_pointer()
100 *readable = MIN(*readable, nread - offset); in float_buffer_read_pointer()
/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.py43 self.assertTrue(f.readable())
55 self.assertFalse(f.readable())
67 self.assertFalse(f.readable())
77 self.assertTrue(f.readable())
84 self.assertTrue(f.readable())
91 self.assertFalse(f.readable())
/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
519 c2 = Connection(fd2, readable=False)
561 c2 = PipeConnection(h2, readable=duplex)
939 return rebuild_connection, (ds, conn.readable, conn.writable)
940 def rebuild_connection(ds, readable, writable): argument
942 return Connection(sock.detach(), readable, writable)
946 access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) |
[all …]
/external/adhd/cras/src/common/
Dcras_util.c232 int readable; in wait_for_dev_input_access() local
238 readable = access(pathname, R_OK); in wait_for_dev_input_access()
247 if (readable == 0 || (readable == -1 && errno == ENOENT)) { in wait_for_dev_input_access()
251 if (readable != -1 || errno != EACCES) { in wait_for_dev_input_access()
/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/python/cpython3/Modules/_io/
Dfileio.c59 unsigned int readable : 1; member
181 self->readable = 0; in fileio_new()
308 self->readable = 1;
330 self->readable = self->writable = 1;
343 if (self->readable && self->writable)
345 else if (self->readable)
569 return PyBool_FromLong((long) self->readable);
630 if (!self->readable)
788 if (!self->readable)
1045 if (self->readable)
[all …]
Dwinconsoleio.c148 unsigned int readable : 1; member
234 self->readable = 0; in winconsoleio_new()
326 self->readable = 1; in _io__WindowsConsoleIO___init___impl()
392 if (self->readable && console_type != 'r') { in _io__WindowsConsoleIO___init___impl()
502 return PyBool_FromLong((long) self->readable); in _io__WindowsConsoleIO_readable_impl()
654 if (!self->readable) { in readinto()
919 if (!self->readable) in _io__WindowsConsoleIO_read_impl()
1038 if (self->readable) in winconsoleio_repr()
1106 return PyUnicode_FromString(self->readable ? "rb" : "wb"); in get_mode()
/external/python/cpython3/Lib/
Dpprint.py151 s, readable, recursive = self.format(object, {}, 0, 0)
152 return readable and not recursive
392 repr, readable, recursive = self.format(object, context.copy(),
394 if not readable:
505 readable = True
516 readable = readable and kreadable and vreadable
520 return "{%s}" % ", ".join(components), readable, recursive
540 readable = True
549 readable = False
553 return format % ", ".join(components), readable, recursive
D_compression.py17 if not self.readable():
25 if not self.readable():
36 def readable(self): member in DecompressReader
/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/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/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DDiskLruCache.java308 entry.readable = true; in readJournalLine()
413 if (!entry.readable) { in get()
508 if (success && !entry.readable) { in completeEdit()
539 if (entry.readable | success) { in completeEdit()
540 entry.readable = true; in completeEdit()
712 this.written = (entry.readable) ? null : new boolean[valueCount]; in Editor()
724 if (!entry.readable) { in newInputStream()
749 if (!entry.readable) { in getFile()
814 private boolean readable; field in DiskLruCache.Entry
/external/webrtc/webrtc/common_audio/
Dwav_header.cc183 bool ReadWavHeader(ReadableWav* readable, in ReadWavHeader() argument
190 if (readable->Read(&header, kWavHeaderSize - sizeof(header.data)) != in ReadWavHeader()
201 if (readable->Read(&ext_size, sizeof(ext_size)) != sizeof(ext_size)) in ReadWavHeader()
206 if (readable->Read(&header.data, sizeof(header.data)) != sizeof(header.data)) in ReadWavHeader()
/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/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DDiskLruCache.java340 entry.readable = true; in readJournalLine()
429 if (entry == null || !entry.readable) return null; in get()
523 if (success && !entry.readable) { in completeEdit()
554 if (entry.readable | success) { in completeEdit()
555 entry.readable = true; in completeEdit()
837 this.written = (entry.readable) ? null : new boolean[valueCount]; in Editor()
868 if (!entry.readable || entry.currentEditor != this) { in newSource()
894 if (!entry.readable) { in newSink()
967 private boolean readable;

12345678910>>...44