/external/python/cpython2/Lib/bsddb/ |
dbrecio.py | 3 File-like objects that read from or write to a bsddb record. 13 buf = f.read() # read until EOF 14 buf = f.read(n) # read up to n bytes 68 def read(self, n = -1): member in class:DBRecIO 155 text = open(file, 'r').read() 172 line2 = f.read(len(line)) 179 line2 = f.read() 182 print 'Read', len(list), 'more lines [all...] |
/external/python/cpython2/Lib/ |
multifile.py | 13 "read some lines from fp" 16 "read lines from fp until it returns an empty string" (A) 19 "read remaining lines from fp until it returns an empty string" 120 def read(self): # Note: no size argument -- read until EOF only! member in class:MultiFile
|
/external/python/cpython3/Lib/ |
_compression.py | 6 BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE # Compressed data read chunk size 68 data = self.read(len(byte_view)) 72 def read(self, size=-1): member in class:DecompressReader 84 self._fp.read(BUFFER_SIZE)) 97 rawblock = self._fp.read(BUFFER_SIZE) 129 while self.read(io.DEFAULT_BUFFER_SIZE): 141 # Read and discard data until we reach the desired position. 143 data = self.read(min(io.DEFAULT_BUFFER_SIZE, offset))
|
/external/python/cpython3/Lib/distutils/tests/ |
test_upload.py | 62 def read(self): member in class:FakeOpen
|
/external/skia/tests/ |
TestUtils.cpp | 26 bool read = srcContext->readPixels(ii, pixels.get(), 0, 0, 0); local 27 if (!read) {
|
/external/skqp/tests/ |
TestUtils.cpp | 26 bool read = srcContext->readPixels(ii, pixels.get(), 0, 0, 0); local 27 if (!read) {
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/transport/ |
AbsTransport.java | 45 * byte buffer to store read bytes into 49 * maximum number of bytes to read 50 * @return number of bytes read 54 public abstract int read(byte[] buffer, int offset, int length) throws IOException; method in class:AbsTransport 86 * Closes the connection to the terminal. Note that the resulting failure to read should call
|
/external/smali/util/src/main/java/org/jf/util/ |
RandomAccessFileInputStream.java | 48 @Override public int read() throws IOException { method in class:RandomAccessFileInputStream 51 return raf.read(); 54 @Override public int read(byte[] bytes) throws IOException { method in class:RandomAccessFileInputStream 56 int bytesRead = raf.read(bytes); 61 @Override public int read(byte[] bytes, int offset, int length) throws IOException { method in class:RandomAccessFileInputStream 63 int bytesRead = raf.read(bytes, offset, length);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
InputOutputExceptionTest.java | 49 public int read() throws IOException { method in class:InputOutputExceptionTest.BrokenInputStream 54 public int read(byte[] bytes, int i, int i1) throws IOException { method in class:InputOutputExceptionTest.BrokenInputStream
|
/external/syslinux/com32/lib/libpng/ |
pngrio.c | 26 /* Read the data from whatever input you are using. The default routine 30 * to read more then 64K on a 16 bit machine. 40 png_error(png_ptr, "Call to NULL read function"); 69 png_error(png_ptr, "Read Error"); 105 png_size_t read, remaining, err; local 110 read = MIN(NEAR_BUF_SIZE, remaining); 112 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) ) 115 err = fread(buf, (png_size_t)1, read, io_ptr); 117 png_memcpy(data, buf, read); /* copy far buffer to near buffer */ 118 if (err != read) [all...] |
/external/syslinux/gpxe/src/interface/efi/ |
efi_io.c | 74 * Read from device 78 * @ret data Value read 81 EFI_CPU_IO_PROTOCOL_IO_MEM read; local 85 read = ( IS_PORT_ADDRESS ( io_addr ) ? 86 cpu_io->Io.Read : cpu_io->Mem.Read ); 88 if ( ( efirc = read ( cpu_io, efi_width ( size ), 91 DBG ( "EFI I/O read at %p failed: %s\n", 123 * String read from device 128 * @v count Number of values to read 132 EFI_CPU_IO_PROTOCOL_IO_MEM read; local [all...] |
/external/tensorflow/tensorflow/contrib/slim/python/slim/data/ |
parallel_reader.py | 49 When you read from a ParallelReader, with its `read()` method, 52 The readers will read different files in parallel, asynchronously enqueueing 56 Because each reader can read from a different file, the examples in the 58 reading there is no guarantee that all the readers will read the same 105 def read(self, queue, name=None): member in class:ParallelReader 108 The multiple reader instances are all configured to `read()` from the 148 num_records: Number of records to read. 162 enqueue_ops.append(self._common_queue.enqueue(reader.read(queue))) 206 It uses a ParallelReader to read from multiple files in parallel usin [all...] |
/external/tensorflow/tensorflow/core/lib/io/ |
buffered_inputstream_test.cc | 166 string read; local 169 TF_ASSERT_OK(in.ReadNBytes(3, &read)); 170 EXPECT_EQ(read, "012"); 172 TF_ASSERT_OK(in.ReadNBytes(0, &read)); 173 EXPECT_EQ(read, ""); 175 TF_ASSERT_OK(in.ReadNBytes(4, &read)); 176 EXPECT_EQ(read, "3456"); 178 TF_ASSERT_OK(in.ReadNBytes(0, &read)); 179 EXPECT_EQ(read, ""); 181 EXPECT_TRUE(errors::IsOutOfRange(in.ReadNBytes(5, &read))); 203 string read; local 238 string read; local 273 string read; local 310 string read; local 340 string read; local 358 string read; local [all...] |
inputbuffer_test.cc | 159 string read; local 162 TF_CHECK_OK(in.ReadNBytes(3, &read)); 163 EXPECT_EQ(read, "012"); 165 TF_CHECK_OK(in.ReadNBytes(0, &read)); 166 EXPECT_EQ(read, ""); 168 TF_CHECK_OK(in.ReadNBytes(4, &read)); 169 EXPECT_EQ(read, "3456"); 171 TF_CHECK_OK(in.ReadNBytes(0, &read)); 172 EXPECT_EQ(read, ""); 174 EXPECT_TRUE(errors::IsOutOfRange(in.ReadNBytes(5, &read))); 189 char read[5]; local 231 string read; local 266 string read; local [all...] |
/external/tensorflow/tensorflow/core/util/ |
reporter_test.cc | 103 string read; local 104 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); 107 ASSERT_TRUE(benchmark_entries.ParseFromString(read));
|
/external/tensorflow/tensorflow/python/eager/ |
graph_callable.py | 52 _VariableCapturingScope and used only to read the variable values when calling 71 def read(self, want_gradients=True): member in class:_CapturedVariable
|
/external/v8/tools/ |
shell-utils.h | 56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); local 57 i += read;
|
/external/webrtc/webrtc/common_audio/ |
audio_ring_buffer.cc | 40 void AudioRingBuffer::Read(float* const* data, size_t channels, size_t frames) { 43 const size_t read = local 45 RTC_CHECK_EQ(read, frames);
|
/frameworks/av/media/img_utils/src/ |
FileInput.cpp | 48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { function in class:android::img_utils::FileInput 50 ALOGE("%s: Could not read file %s, file not open.", __FUNCTION__, mPath.string());
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
SHCircularBuffer.h | 50 inline T read() { function in class:SHCircularBuffer 59 ALOGW("Warning: SHCircularBuffer no data available to read. Default value returned");
|
/frameworks/av/media/libnbaio/ |
AudioBufferProviderSource.cpp | 49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) function in class:android::AudioBufferProviderSource
|
AudioStreamInSource.cpp | 75 ssize_t AudioStreamInSource::read(void *buffer, size_t count) function in class:android::AudioStreamInSource 81 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead);
|
PipeReader.cpp | 62 ssize_t PipeReader::read(void *buffer, size_t count) function in class:android::PipeReader 65 ssize_t actual = mFifoReader.read(buffer, count, NULL /*timeout*/, &lost); 94 mFramesRead += (size_t) flushed; // we consider flushed frames as read, but not lost frames
|
/frameworks/av/media/libstagefright/ |
MediaAdapter.cpp | 59 // While read() is still waiting, we should signal it to finish. 84 status_t MediaAdapter::read( function in class:android::MediaAdapter 88 ALOGV("Read before even started!"); 93 ALOGV("waiting @ read()"); 98 ALOGV("read interrupted after stop");
|
RemoteMediaSource.cpp | 52 status_t RemoteMediaSource::read( function in class:android::RemoteMediaSource 54 return mSource->read(buffer, reinterpret_cast<const MediaSource::ReadOptions*>(options));
|