/external/adhd/cras/src/tests/ |
D | float_buffer_unittest.cc | 11 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/ |
D | handle_signal_tracker_unittest.cc | 45 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()
|
D | wait_unittest.cc | 97 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 …]
|
D | handle_signals_state_unittest.cc | 21 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/ |
D | LineReader.java | 41 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()
|
D | CharStreams.java | 217 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()
|
D | CharSink.java | 149 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/ |
D | LineReader.java | 41 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()
|
D | CharStreams.java | 217 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()
|
D | CharSink.java | 175 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/ |
D | float_buffer.h | 85 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/ |
D | reduction.py | 167 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/ |
D | pprint.py | 129 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/ |
D | AbstractLZ77CompressorInputStream.java | 252 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/ |
D | test_winconsoleio.py | 41 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/ |
D | MethodProperty.java | 34 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/ |
D | byte_buffer.h | 71 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()
|
D | cras_util.c | 236 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/ |
D | fileio.c | 61 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/ |
D | connection.py | 117 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/ |
D | fileio.c | 51 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/ |
D | pprint.py | 160 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/ |
D | control | 8 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/ |
D | discovery.c | 347 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/ |
D | vmx.c | 21 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()
|