Home
last modified time | relevance | path

Searched refs:bytes_available (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/android_webview/browser/net/
Dandroid_stream_reader_url_request_job_unittest.cc53 virtual bool BytesAvailable(int* bytes_available) const OVERRIDE { in BytesAvailable()
313 const int bytes_available = 128; in TEST_F() local
315 const int bytes_to_read = bytes_available - offset; in TEST_F()
321 .WillOnce(Return(bytes_available)); in TEST_F()
332 SetRange(req_.get(), offset, bytes_available); in TEST_F()
346 const int bytes_available = 128; in TEST_F() local
348 const int bytes_to_read = bytes_available - offset; in TEST_F()
356 .WillOnce(Return(bytes_available)); in TEST_F()
376 const int bytes_available = 128; in TEST_F() local
382 Return(bytes_available))); in TEST_F()
[all …]
Dinput_stream_reader_unittest.cc35 MOCK_CONST_METHOD1(BytesAvailable, bool(int* bytes_available));
/external/chromium_org/net/tools/flip_server/
Dring_buffer.cc55 int bytes_available = BytesFree(); in Write() local
56 if (bytes_available < bytes_to_write) { in Write()
57 bytes_to_write = bytes_available; in Write()
/external/chromium_org/android_webview/native/
Dinput_stream_impl.cc59 bool InputStreamImpl::BytesAvailable(int* bytes_available) const { in BytesAvailable()
64 *bytes_available = bytes; in BytesAvailable()
Dinput_stream_unittest.cc133 int bytes_available; in TEST_F() local
134 EXPECT_FALSE(input_stream->BytesAvailable(&bytes_available)); in TEST_F()
Dinput_stream_impl.h35 virtual bool BytesAvailable(int* bytes_available) const OVERRIDE;
/external/chromium_org/sdch/open-vcdiff/src/
Dvcencoder_test.cc342 const size_t bytes_available = strlen(kTarget) - chunk_start_index; in TestWithFixedChunkSize() local
343 if (this_chunk_size > bytes_available) { in TestWithFixedChunkSize()
344 this_chunk_size = bytes_available; in TestWithFixedChunkSize()
364 const size_t bytes_available = delta_size() - chunk_start_index; in TestWithFixedChunkSize() local
365 if (this_chunk_size > bytes_available) { in TestWithFixedChunkSize()
366 this_chunk_size = bytes_available; in TestWithFixedChunkSize()
439 const size_t bytes_available = strlen(kTarget) - chunk_start_index; in TestWithEncodedChunkVector() local
440 if (this_chunk_size > bytes_available) { in TestWithEncodedChunkVector()
441 this_chunk_size = bytes_available; in TestWithEncodedChunkVector()
/external/chromium_org/android_webview/browser/
Dinput_stream.h29 virtual bool BytesAvailable(int* bytes_available) const = 0;
/external/lldb/tools/debugserver/source/MacOSX/
DMachProcess.cpp1230 size_t bytes_available = m_stdout_data.size(); in GetAvailableSTDOUT() local
1231 if (bytes_available > 0) in GetAvailableSTDOUT()
1233 if (bytes_available > buf_size) in GetAvailableSTDOUT()
1237 bytes_available = buf_size; in GetAvailableSTDOUT()
1241 memcpy(buf, m_stdout_data.data(), bytes_available); in GetAvailableSTDOUT()
1245 return bytes_available; in GetAvailableSTDOUT()
1408 size_t bytes_available = m_profile_data.front().size(); in GetAsyncProfileData() local
1409 if (bytes_available > 0) in GetAsyncProfileData()
1411 if (bytes_available > buf_size) in GetAsyncProfileData()
1415 bytes_available = buf_size; in GetAsyncProfileData()
[all …]
/external/lldb/source/Target/
DProcess.cpp4415 size_t bytes_available = one_profile_data.size(); in GetAsyncProfileData() local
4416 if (bytes_available > 0) in GetAsyncProfileData()
4421 if (bytes_available > buf_size) in GetAsyncProfileData()
4425 bytes_available = buf_size; in GetAsyncProfileData()
4429 memcpy(buf, one_profile_data.c_str(), bytes_available); in GetAsyncProfileData()
4433 return bytes_available; in GetAsyncProfileData()
4445 size_t bytes_available = m_stdout_data.size(); in GetSTDOUT() local
4446 if (bytes_available > 0) in GetSTDOUT()
4451 if (bytes_available > buf_size) in GetSTDOUT()
4455 bytes_available = buf_size; in GetSTDOUT()
[all …]
DMemory.cpp251 const uint32_t bytes_available = pos->first - last_offset; in ReserveBlock() local
252 const uint32_t num_chunks = CalculateChunksNeededForSize (bytes_available); in ReserveBlock()
/external/lldb/source/Plugins/Process/MacOSX-Kernel/
DCommunicationKDP.cpp306 const size_t bytes_available = m_bytes.size(); in CheckForPacket() local
307 if (bytes_available >= 8) in CheckForPacket()
309 packet.SetData (&m_bytes[0], bytes_available, m_byte_order); in CheckForPacket()
362 if (length <= bytes_available) in CheckForPacket()
/external/lldb/source/Core/
DDataExtractor.cpp172 offset_t bytes_available = data.GetByteSize() - offset; in DataExtractor() local
173 if (length > bytes_available) in DataExtractor()
174 length = bytes_available; in DataExtractor()