Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/chrome/common/extensions/docs/server2/
Dmock_file_system_test.py37 self.assertFalse(*fs.CheckAndReset(read_count=1))
41 self.assertTrue(*fs.CheckAndReset(read_count=1))
44 self.assertFalse(*fs.CheckAndReset(read_count=1))
48 self.assertFalse(*fs.CheckAndReset(read_count=2))
54 self.assertTrue(*fs.CheckAndReset(read_count=2, read_resolve_count=2))
55 self.assertFalse(*fs.CheckAndReset(read_count=2, read_resolve_count=2))
59 self.assertTrue(*fs.CheckAndReset(read_count=1, read_resolve_count=1))
61 self.assertTrue(*fs.CheckAndReset(read_count=1))
76 *fs.CheckAndReset(read_count=1, read_resolve_count=1, stat_count=2))
Dcompiled_file_system_test.py167 self.assertTrue(*mock_fs.CheckAndReset(stat_count=1, read_count=1))
177 read_count=2,
183 self.assertTrue(*mock_fs.CheckAndReset(read_count=1, read_resolve_count=2))
190 read_count=1,
198 read_count=2,
201 self.assertTrue(*mock_fs.CheckAndReset(read_count=2, read_resolve_count=3))
Dcaching_file_system_test.py90 self.assertTrue(*mock_fs.CheckAndReset(read_count=1))
109 self.assertTrue(*mock_fs.CheckAndReset(read_count=1, stat_count=1))
121 self.assertTrue(*mock_fs.CheckAndReset(read_count=2))
136 self.assertTrue(*mock_fs.CheckAndReset(read_count=3))
155 self.assertTrue(*mock_fs.CheckAndReset(read_count=1))
Dmock_file_system.py106 def CheckAndReset(self, stat_count=0, read_count=0, read_resolve_count=0): argument
112 ('read_count', read_count, self._read_count),
Dsidenav_data_source_test.py140 read_count=1, stat_count=1, read_resolve_count=1))
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc91 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
92 if (b->size() < (size_t)(offset + read_count)) { in Read()
93 b->resize((size_t)(offset + read_count)); in Read()
95 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
96 position_ += read_count; in Read()
97 return read_count; in Read()
Dfile_input_stream.cc97 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
98 if (b->size() < (size_t)(offset + read_count)) { in Read()
99 b->resize((size_t)(offset + read_count)); in Read()
101 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/external/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc89 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
90 if (b->size() < (size_t)(offset + read_count)) { in Read()
91 b->resize((size_t)(offset + read_count)); in Read()
93 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
94 position_ += read_count; in Read()
95 return read_count; in Read()
Dfile_input_stream.cc95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
96 if (b->size() < (size_t)(offset + read_count)) { in Read()
97 b->resize((size_t)(offset + read_count)); in Read()
99 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/external/chromium_org/chrome/browser/sessions/
Dsession_backend.cc93 int read_count; in Read() local
95 read_count = file_->ReadAtCurrentPos(reinterpret_cast<char*>(&header), in Read()
97 if (read_count != sizeof(header) || header.signature != kFileSignature || in Read()
174 int read_count = file_->ReadAtCurrentPos(&(buffer_[available_count_]), in FillBuffer() local
176 if (read_count < 0) { in FillBuffer()
180 if (read_count == 0) in FillBuffer()
182 available_count_ += read_count; in FillBuffer()
/external/webrtc/src/modules/audio_processing/test/
Dprocess_test.cc494 size_t read_count = 0; in void_main() local
697 read_count = fread(&event, sizeof(event), 1, event_file); in void_main()
698 if (read_count != 1) { in void_main()
743 read_count = fread(far_frame._payloadData, in void_main()
749 if (read_count != size) { in void_main()
752 EXPECT_EQ(0, fseek(near_file, read_count * sizeof(int16_t), in void_main()
757 ASSERT_EQ(size, read_count); in void_main()
784 read_count = fread(near_frame._payloadData, in void_main()
789 near_read_bytes += read_count * sizeof(int16_t); in void_main()
796 if (read_count != size) { in void_main()
[all …]
/external/opencv/otherlibs/highgui/
Dcvcap_socket.cpp247 long read_count, total_read = 0; in grabFrame() local
250 read_count = read(sockd, &readBuf[total_read], readBufSize); in grabFrame()
251 if (read_count <= 0 || errno != 0) in grabFrame()
258 total_read += read_count; in grabFrame()
/external/chromium_org/chrome/browser/extensions/api/declarative/
Drules_registry_with_cache_unittest.cc281 int read_count = store->read_count(); in TEST_F() local
286 EXPECT_EQ(read_count, store->read_count()); in TEST_F()
287 read_count = store->read_count(); in TEST_F()
292 EXPECT_EQ(read_count + 1, store->read_count()); in TEST_F()
/external/chromium_org/third_party/webrtc/modules/audio_processing/test/
Dprocess_test.cc543 size_t read_count = 0; in void_main() local
814 read_count = fread(&event, sizeof(event), 1, event_file); in void_main()
815 if (read_count != 1) { in void_main()
862 read_count = fread(far_frame.data_, in void_main()
868 if (read_count != size) { in void_main()
871 EXPECT_EQ(0, fseek(near_file, read_count * sizeof(int16_t), in void_main()
876 ASSERT_EQ(size, read_count); in void_main()
903 read_count = fread(near_frame.data_, in void_main()
908 near_read_bytes += read_count * sizeof(int16_t); in void_main()
915 if (read_count != size) { in void_main()
[all …]
/external/chromium_org/third_party/webrtc/modules/audio_processing/utility/
Dring_buffer.c134 const size_t read_count = GetBufferReadRegions(self, in WebRtc_ReadBuffer() local
157 WebRtc_MoveReadPtr(self, (int) read_count); in WebRtc_ReadBuffer()
159 return read_count; in WebRtc_ReadBuffer()
/external/libpng/contrib/libtests/
Dpngimage.c351 size_t read_count; /* count of bytes read from current */ member
378 buffer->read_count = 0; in buffer_start_read()
730 size_t read_count = bp->read_count; in buffer_read() local
737 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
745 else if (read_count >= sizeof last->buffer) in buffer_read()
749 read_count = 0; in buffer_read()
761 avail = (sizeof last->buffer) - read_count; in buffer_read()
765 memcpy(data, last->buffer + read_count, avail); in buffer_read()
766 read_count += avail; in buffer_read()
771 bp->read_count = read_count; in buffer_read()
/external/chromium_org/content/test/
Dweburl_loader_mock_factory.cc184 int read_count = base::ReadFile(file_path, buffer.get(), size); in ReadFile() local
185 if (read_count == -1) in ReadFile()
187 DCHECK(read_count == size); in ReadFile()
/external/webrtc/src/modules/audio_processing/utility/
Dring_buffer.c148 const size_t read_count = GetBufferReadRegions(self, in WebRtc_ReadBuffer() local
166 WebRtc_MoveReadPtr(handle, (int) read_count); in WebRtc_ReadBuffer()
168 return read_count; in WebRtc_ReadBuffer()
/external/qemu/audio/
Dwinaudio.c349 int read_count; member
367 if (s->read_count < NUM_IN_BUFFERS) in winaudio_in_buffer_done()
368 s->read_count += 1; in winaudio_in_buffer_done()
497 s->read_count = 0; in winaudio_in_init()
525 has_buffer = (s->read_count > 0); in winaudio_in_run()
565 if (--s->read_count == 0) { in winaudio_in_run()
/external/linux-tools-perf/perf-3.12.0/tools/perf/
Dbuiltin-lock.c103 int read_count; member
426 seq->read_count = 1; in report_lock_acquire_event()
432 seq->read_count++; in report_lock_acquire_event()
613 seq->read_count--; in report_lock_release_event()
614 BUG_ON(seq->read_count < 0); in report_lock_release_event()
615 if (!seq->read_count) { in report_lock_release_event()
/external/libpng/contrib/tools/
Dpngfix.c877 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member
1043 file->read_count = 0; in file_init()
1245 ++(file->read_count); in read_byte()
1640 chunk->file->read_count = 8; in setpos()
2976 file->read_count = 8; in sync_stream()
3032 file->read_count -= 8; in sync_stream()
3134 file->read_count -= 8; in read_chunk()
3197 if (file->read_count < 8) in read_callback()
3199 assert(file->read_count == 0); in read_callback()
3204 if (file->read_count == 4) in read_callback()
[all …]
/external/chromium_org/extensions/browser/value_store/
Dtesting_value_store.h27 int read_count() { return read_count_; } in read_count() function
/external/chromium_org/third_party/freetype/src/pshinter/
Dpshglob.c141 FT_UInt read_count, in psh_blues_set_zones_0() argument
153 for ( ; read_count > 1; read_count -= 2 ) in psh_blues_set_zones_0()
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/pshinter/
Dpshglob.c141 FT_UInt read_count, in psh_blues_set_zones_0() argument
153 for ( ; read_count > 1; read_count -= 2 ) in psh_blues_set_zones_0()
/external/freetype/src/pshinter/
Dpshglob.c141 FT_UInt read_count, in psh_blues_set_zones_0() argument
153 for ( ; read_count > 1; read_count -= 2 ) in psh_blues_set_zones_0()

12