/external/ceres-solver/internal/ceres/ |
H A D | file.cc | 61 int num_bytes = ftell(file_descriptor); local 62 data->resize(num_bytes); 68 num_bytes, 70 if (num_read != num_bytes) { 72 << "expected bytes: " << num_bytes * sizeof((*data)[0])
|
/external/chromium_org/base/message_loop/ |
H A D | message_pump_glib.cc | 241 const int num_bytes = HANDLE_EINTR(read(wakeup_pipe_read_, msg, 2)); local 242 if (num_bytes < 1) { 245 DCHECK((num_bytes == 1 && msg[0] == '!') || 246 (num_bytes == 2 && msg[0] == '!' && msg[1] == '!'));
|
/external/chromium_org/base/ |
H A D | pickle.cc | 59 const char* PickleIterator::GetReadPointerAndAdvance(int num_bytes) { argument 60 if (num_bytes < 0 || 61 end_index_ - read_index_ < static_cast<size_t>(num_bytes)) { 66 Advance(num_bytes); 74 int64 num_bytes = static_cast<int64>(num_elements) * size_element; local 75 int num_bytes32 = static_cast<int>(num_bytes); 76 if (num_bytes != static_cast<int64>(num_bytes32))
|
H A D | rand_util_nacl.cc | 14 void GetRandomBytes(void* output, size_t num_bytes) { argument 16 while (num_bytes > 0) { 18 const int error = nacl_secure_random(output_ptr, num_bytes, &nread); 20 CHECK_LE(nread, num_bytes); 22 num_bytes -= nread;
|
/external/chromium_org/base/third_party/symbolize/ |
H A D | symbolize.cc | 144 ssize_t num_bytes = 0; local 145 while (num_bytes < count) { 147 NO_INTR(len = read(fd, buf0 + num_bytes, count - num_bytes)); 154 num_bytes += len; 156 SAFE_ASSERT(num_bytes <= count); 157 return num_bytes; 409 const ssize_t num_bytes = ReadPersistent(fd_, buf_, buf_len_); local 410 if (num_bytes <= 0) { // EOF or error. 413 eod_ = buf_ + num_bytes; 425 const ssize_t num_bytes = ReadPersistent(fd_, append_pos, local [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/ |
H A D | file_cache.cc | 74 bool FileCache::FreeDiskSpaceIfNeededFor(int64 num_bytes) { argument 78 if (HasEnoughSpaceFor(num_bytes, cache_file_directory_)) 82 DVLOG(1) << "Freeing up disk space for " << num_bytes; 117 return HasEnoughSpaceFor(num_bytes, cache_file_directory_); 549 bool FileCache::HasEnoughSpaceFor(int64 num_bytes, argument 559 return (free_space >= num_bytes);
|
/external/chromium_org/chrome/browser/extensions/api/dial/ |
H A D | dial_service_unittest.cc | 136 size_t num_bytes = dial_service_.send_buffer_->size(); local 138 dial_socket_->OnSocketWrite(num_bytes, num_bytes);
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | extension_storage_monitor_browsertest.cc | 143 int num_bytes) { 145 WriteBytes(extension, num_bytes, true); 150 int num_bytes) { 151 WriteBytes(extension, num_bytes, false); 177 int num_bytes, 189 // Instruct the app to write |num_bytes| of data. 190 launched_listener.Reply(base::IntToString(num_bytes)); 142 WriteBytesExpectingNotification(const Extension* extension, int num_bytes) argument 149 WriteBytesNotExpectingNotification(const Extension* extension, int num_bytes) argument 176 WriteBytes(const Extension* extension, int num_bytes, bool expected_notification) argument
|
/external/chromium_org/chrome/browser/net/ |
H A D | connection_tester.cc | 373 int num_bytes; local 374 if (request->Read(unused_buffer.get(), kReadBufferSize, &num_bytes)) { 375 OnReadCompleted(request, num_bytes);
|
/external/chromium_org/chrome/browser/sessions/ |
H A D | base_session_service.cc | 34 int num_bytes = str.size() * sizeof(char); local 35 if (*bytes_written + num_bytes < max_bytes) { 36 *bytes_written += num_bytes;
|
/external/chromium_org/chrome/test/logging/win/ |
H A D | mof_data_parser.h | 63 void Advance(size_t num_bytes) { argument 64 scan_ += num_bytes; 65 length_ -= num_bytes;
|
/external/chromium_org/cloud_print/service/ |
H A D | service_state.cc | 66 int num_bytes = 0; local 67 while (request->Read(buf.get(), kBufSize, &num_bytes)) { 68 data_.append(buf->data(), buf->data() + num_bytes);
|
/external/chromium_org/components/search_provider_logos/ |
H A D | logo_cache.cc | 23 const char kNumBytesKey[] = "num_bytes"; 140 int num_bytes, 150 dict.SetInteger(kNumBytesKey, num_bytes); 139 LogoMetadataToString(const LogoMetadata& metadata, int num_bytes, std::string* str) argument
|
H A D | logo_cache_unittest.cc | 45 base::RefCountedString* CreateExampleImage(size_t num_bytes) { argument 48 str.resize(num_bytes); 49 for (size_t i = 0; i < num_bytes; ++i)
|
/external/chromium_org/components/sessions/ |
H A D | serialized_navigation_entry.cc | 171 int num_bytes = str.size() * sizeof(char); local 172 if (*bytes_written + num_bytes < max_bytes) { 173 *bytes_written += num_bytes; 187 int num_bytes = str.size() * sizeof(base::char16); local 188 if (*bytes_written + num_bytes < max_bytes) { 189 *bytes_written += num_bytes;
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
H A D | pepper_udp_socket_message_filter.cc | 342 size_t num_bytes = data.size(); local 343 if (num_bytes == 0 || 344 num_bytes > static_cast<size_t>( 352 sendto_buffer_ = new net::IOBufferWithSize(num_bytes); 353 memcpy(sendto_buffer_->data(), data.data(), num_bytes);
|
/external/chromium_org/content/common/gpu/media/ |
H A D | video_decode_accelerator_unittest.cc | 1229 int num_bytes = base::WriteFile(filepath, local 1232 ASSERT_EQ(num_bytes, static_cast<int>(png.size()));
|
/external/chromium_org/content/renderer/media/ |
H A D | rtc_data_channel_handler.cc | 171 void RtcDataChannelHandler::RecordMessageSent(size_t num_bytes) { argument 186 num_bytes, 190 num_bytes,
|
/external/chromium_org/crypto/ |
H A D | rsa_private_key.cc | 175 int num_bytes, 177 PrependIntegerImpl(val, num_bytes, data, big_endian_); 181 int num_bytes, 187 tmp.assign(val, val + num_bytes); 195 while (start < (num_bytes - 1) && val[start] == 0x00) { 197 num_bytes--; 199 PrependBytes(val, start, num_bytes, data); 208 num_bytes++; 211 PrependTypeHeaderAndLength(kIntegerTag, num_bytes, data); 274 int num_bytes, 174 PrependInteger(uint8* val, int num_bytes, std::list<uint8>* data) argument 180 PrependIntegerImpl(uint8* val, int num_bytes, std::list<uint8>* data, bool big_endian) argument 272 PrependBytes(uint8* val, int start, int num_bytes, std::list<uint8>* data) argument 288 uint8 num_bytes = 0; local 306 PrependBitString(uint8* val, int num_bytes, std::list<uint8>* output) argument [all...] |
/external/chromium_org/device/serial/ |
H A D | data_receiver.cc | 24 void DispatchData(const void* data, uint32_t num_bytes); 39 void Done(uint32_t num_bytes); 202 uint32_t num_bytes = std::numeric_limits<uint32_t>::max(); local 204 handle_.get(), &data, &num_bytes, MOJO_READ_DATA_FLAG_NONE); 206 if (!CheckErrorNotInReadRange(num_bytes)) { 211 pending_receive_->DispatchData(data, num_bytes); 224 bool DataReceiver::CheckErrorNotInReadRange(uint32_t num_bytes) { argument 230 DCHECK_NE(num_bytes, 0u); 231 uint32_t potential_bytes_received = bytes_received_ + num_bytes; 274 uint32_t num_bytes) { 273 DispatchData(const void* data, uint32_t num_bytes) argument [all...] |
H A D | data_sender.cc | 21 // Invoked to report that |num_bytes| of data have been sent. Subtracts the 22 // number of bytes that were part of this send from |num_bytes|. Returns 25 bool ReportBytesSent(uint32_t* num_bytes); 27 // Invoked to report that |num_bytes| of data have been sent and then an 29 // part of this send from |num_bytes|. If this send was not completed before 32 uint32_t ReportBytesSentAndError(uint32_t* num_bytes, int32_t error); 43 // Invoked to update |bytes_acked_| and |num_bytes|. 44 void ReportBytesSentInternal(uint32_t* num_bytes); 228 bool DataSender::PendingSend::ReportBytesSent(uint32_t* num_bytes) { argument 229 ReportBytesSentInternal(num_bytes); 238 ReportBytesSentAndError(uint32_t* num_bytes, int32_t error) argument 270 ReportBytesSentInternal(uint32_t* num_bytes) argument [all...] |
H A D | data_sink_receiver.cc | 19 // Initializes this PendingFlush with |num_bytes|, the number of bytes to 21 void SetNumBytesToFlush(uint32_t num_bytes); 163 uint32_t num_bytes = std::numeric_limits<uint32_t>::max(); local 165 handle_.get(), &data, &num_bytes, MOJO_READ_DATA_FLAG_NONE); 170 buffer_in_use_ = new Buffer(this, static_cast<const char*>(data), num_bytes); 287 void DataSinkReceiver::PendingFlush::SetNumBytesToFlush(uint32_t num_bytes) { argument 290 bytes_to_flush_ = num_bytes; 296 uint32_t num_bytes = bytes_to_flush_; local 298 mojo::ReadDataRaw(handle, NULL, &num_bytes, MOJO_READ_DATA_FLAG_DISCARD); 301 DCHECK(num_bytes < [all...] |
H A D | data_source_sender.cc | 20 // Asynchronously fills |data| with up to |num_bytes| of data. Following this, 22 void GetData(void* data, uint32_t num_bytes); 133 uint32_t num_bytes = std::numeric_limits<uint32_t>::max(); local 135 handle_.get(), &data, &num_bytes, MOJO_WRITE_DATA_FLAG_NONE); 140 pending_send_->GetData(static_cast<char*>(data), num_bytes); local 184 void DataSourceSender::PendingSend::GetData(void* data, uint32_t num_bytes) { argument 188 new Buffer(sender_, this, static_cast<char*>(data), num_bytes)));
|
H A D | test_serial_io_handler.cc | 54 size_t num_bytes = 56 memcpy(pending_read_buffer(), buffer_.c_str(), num_bytes); local 57 buffer_ = buffer_.substr(num_bytes); 58 ReadCompleted(static_cast<uint32_t>(num_bytes), serial::RECEIVE_ERROR_NONE);
|
/external/chromium_org/extensions/browser/api/cast_channel/ |
H A D | cast_framer.cc | 113 scoped_ptr<CastMessage> MessageFramer::Ingest(size_t num_bytes, argument 125 CHECK_LE(num_bytes, BytesRequested()); 126 message_bytes_received_ += num_bytes;
|