/external/chromium_org/net/base/ |
D | upload_file_element_reader_unittest.cc | 25 bytes_.assign(kData, kData + arraysize(kData) - 1); in SetUp() 32 static_cast<int>(bytes_.size()), in SetUp() 33 file_util::WriteFile(temp_file_path_, &bytes_[0], bytes_.size())); in SetUp() 44 EXPECT_EQ(bytes_.size(), reader_->GetContentLength()); in SetUp() 45 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp() 54 std::vector<char> bytes_; member in net::UploadFileElementReaderTest 61 const size_t kHalfSize = bytes_.size() / 2; in TEST_F() 62 ASSERT_EQ(bytes_.size(), kHalfSize * 2); in TEST_F() 70 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F() 71 EXPECT_EQ(std::vector<char>(bytes_.begin(), bytes_.begin() + kHalfSize), buf); in TEST_F() [all …]
|
D | upload_bytes_element_reader_unittest.cc | 20 bytes_.assign(kData, kData + arraysize(kData)); in SetUp() 21 reader_.reset(new UploadBytesElementReader(&bytes_[0], bytes_.size())); in SetUp() 23 EXPECT_EQ(bytes_.size(), reader_->GetContentLength()); in SetUp() 24 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp() 28 std::vector<char> bytes_; member in net::UploadBytesElementReaderTest 33 const size_t kHalfSize = bytes_.size() / 2; in TEST_F() 39 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F() 40 bytes_.resize(kHalfSize); // Resize to compare. in TEST_F() 41 EXPECT_EQ(bytes_, buf); in TEST_F() 45 std::vector<char> buf(bytes_.size()); in TEST_F() [all …]
|
D | upload_bytes_element_reader.h | 25 const char* bytes() const { return bytes_; } in bytes() 39 const char* const bytes_;
|
D | upload_bytes_element_reader.cc | 16 : bytes_(bytes), in UploadBytesElementReader() 58 memcpy(buf->data(), bytes_ + offset_, num_bytes_to_read); in Read()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | bytebuffer.cc | 45 bytes_ = new char[size_]; in ByteBuffer() 52 bytes_ = new char[size_]; in ByteBuffer() 53 memcpy(bytes_, bytes, end_); in ByteBuffer() 60 bytes_ = new char[size_]; in ByteBuffer() 61 memcpy(bytes_, bytes, end_); in ByteBuffer() 65 delete[] bytes_; in ~ByteBuffer() 128 val->append(bytes_ + start_, len); in ReadString() 138 memcpy(val, bytes_ + start_, len); in ReadBytes() 176 memcpy(bytes_ + end_, val, len); in WriteBytes() 186 memcpy(new_bytes, bytes_ + start_, len); in Resize() [all …]
|
D | bytebuffer.h | 45 const char* Data() const { return bytes_ + start_; } in Data() 70 char* bytes_;
|
/external/chromium_org/net/quic/congestion_control/ |
D | leaky_bucket.cc | 12 : bytes_(0), in LeakyBucket() 24 bytes_ += bytes; in Add() 30 (bytes_ * base::Time::kMicrosecondsPerSecond) / in TimeRemaining() 36 return bytes_; in BytesPending() 42 if (bytes_cleared >= bytes_) { in Update() 43 bytes_ = 0; in Update() 45 bytes_ -= bytes_cleared; in Update()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | bytebuffer.cc | 67 bytes_ = new char[size_]; in Construct() 71 memcpy(bytes_, bytes, end_); in Construct() 78 delete[] bytes_; in ~ByteBuffer() 146 val->append(bytes_ + start_, len); in ReadString() 156 memcpy(val, bytes_ + start_, len); in ReadBytes() 202 char* start = bytes_ + end_; in ReserveWriteBuffer() 211 memmove(bytes_, bytes_ + start_, len); in Resize() 216 memcpy(new_bytes, bytes_ + start_, len); in Resize() 217 delete [] bytes_; in Resize() 218 bytes_ = new_bytes; in Resize() [all …]
|
D | bytebuffer.h | 57 const char* Data() const { return bytes_ + start_; } in Data() 122 char* bytes_; variable
|
/external/icu4c/common/unicode/ |
D | bytestrie.h | 65 : ownedArray_(NULL), bytes_(static_cast<const uint8_t *>(trieBytes)), in BytesTrie() 66 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie() 81 : ownedArray_(NULL), bytes_(other.bytes_), in BytesTrie() 90 pos_=bytes_; in reset() 123 state.bytes=bytes_; in saveState() 140 if(bytes_==state.bytes && bytes_!=NULL) { in resetToState() 168 return nextImpl(bytes_, inByte); in first() 321 const uint8_t *bytes_; variable 353 bytes_(static_cast<const uint8_t *>(trieBytes)), in BytesTrie() 354 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie() [all …]
|
/external/chromium_org/sync/internal_api/public/base/ |
D | ordinal.h | 196 std::string bytes_; variable 231 : bytes_(bytes), in Ordinal() 232 is_valid_(IsValidOrdinalBytes(bytes_)) {} in Ordinal() 246 DCHECK_EQ(IsValidOrdinalBytes(bytes_), is_valid_); in IsValid() 264 base::EscapeBytesAsInvalidJSONString(bytes_, false /* put_in_quotes */); in ToDebugString() 275 return bytes_ < other.bytes_; in LessThan() 282 return bytes_ > other.bytes_; in GreaterThan() 289 return bytes_ == other.bytes_; in Equals() 310 const size_t length = bytes_.length(); in CreateBefore() 313 if (start == bytes_) { in CreateBefore() [all …]
|
/external/icu4c/common/ |
D | bytestrieiterator.cpp | 25 : bytes_(static_cast<const uint8_t *>(trieBytes)), in Iterator() 26 pos_(bytes_), initialPos_(bytes_), in Iterator() 47 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator() 113 pos=bytes_+stack_->elementAti(stackSize-2); in next() 184 stack_->addElement((int32_t)(skipDelta(pos)-bytes_), errorCode); in branchNext() 197 stack_->addElement((int32_t)(pos-bytes_), errorCode); in branchNext()
|
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
D | stun.cc | 372 : StunAttribute(type, length), bytes_(0) { in StunByteStringAttribute() 376 delete [] bytes_; in ~StunByteStringAttribute() 380 delete [] bytes_; in SetBytes() 381 bytes_ = bytes; in SetBytes() 396 ASSERT(bytes_ != NULL); in GetByte() 398 return static_cast<uint8>(bytes_[index]); in GetByte() 402 ASSERT(bytes_ != NULL); in SetByte() 404 bytes_[index] = value; in SetByte() 408 bytes_ = new char[length()]; in Read() 409 if (!buf->ReadBytes(bytes_, length())) in Read() [all …]
|
/external/chromium_org/webkit/common/ |
D | data_element.h | 36 const char* bytes() const { return bytes_ ? bytes_ : &buf_[0]; } in bytes() 57 bytes_ = bytes; in SetToSharedBytes() 88 const char* bytes_; // For TYPE_BYTES. variable
|
/external/chromium_org/mojo/system/ |
D | raw_channel_posix_unittest.cc | 146 ~TestMessageReaderAndChecker() { CHECK(bytes_.empty()); } in ~TestMessageReaderAndChecker() 159 bytes_.insert(bytes_.end(), buffer, buffer + read_size); in ReadAndCheckNextMessage() 162 if (bytes_.size() >= sizeof(MessageInTransit)) { in ReadAndCheckNextMessage() 164 reinterpret_cast<const MessageInTransit*>(bytes_.data()); in ReadAndCheckNextMessage() 175 if (bytes_.size() >= message->size_with_header_and_padding()) { in ReadAndCheckNextMessage() 182 bytes_.erase(bytes_.begin(), in ReadAndCheckNextMessage() 183 bytes_.begin() + in ReadAndCheckNextMessage() 204 std::vector<unsigned char> bytes_; member in mojo::system::__anona90558f40111::TestMessageReaderAndChecker
|
/external/chromium/net/base/ |
D | upload_data.cc | 38 bytes_.clear(); in SetToChunk() 39 bytes_.insert(bytes_.end(), bytes, bytes + bytes_len); in SetToChunk() 49 return static_cast<uint64>(bytes_.size()); in GetContentLength()
|
D | upload_data.h | 57 const std::vector<char>& bytes() const { return bytes_; } in bytes() 69 bytes_.assign(bytes, bytes + bytes_len); in SetToBytes() 126 std::vector<char> bytes_; variable
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | stun.cc | 707 : StunAttribute(type, 0), bytes_(NULL) { in StunByteStringAttribute() 712 : StunAttribute(type, 0), bytes_(NULL) { in StunByteStringAttribute() 719 : StunAttribute(type, 0), bytes_(NULL) { in StunByteStringAttribute() 724 : StunAttribute(type, length), bytes_(NULL) { in StunByteStringAttribute() 728 delete [] bytes_; in ~StunByteStringAttribute() 742 ASSERT(bytes_ != NULL); in GetByte() 744 return static_cast<uint8>(bytes_[index]); in GetByte() 748 ASSERT(bytes_ != NULL); in SetByte() 750 bytes_[index] = value; in SetByte() 754 bytes_ = new char[length()]; in Read() [all …]
|
/external/chromium_org/gin/ |
D | array_buffer.cc | 116 : bytes_(0), in ArrayBuffer() 123 bytes_ = private_->buffer(); in ArrayBuffer() 132 bytes_ = other.bytes_; in operator =()
|
D | array_buffer.h | 34 void* bytes() const { return bytes_; } in bytes() 41 void* bytes_; variable
|
/external/chromium_org/cc/resources/ |
D | prioritized_resource.cc | 21 bytes_(0), in PrioritizedResource() 28 bytes_ = Resource::MemorySizeBytes(size, format); in PrioritizedResource() 53 bytes_ = Resource::MemorySizeBytes(size, format); in SetDimensions() 115 bytes_ = bytes; in SetToSelfManagedMemoryPlaceholder()
|
D | prioritized_resource.h | 46 size_t bytes() const { return bytes_; } in bytes() 170 size_t bytes_; variable
|
/external/chromium_org/third_party/leveldatabase/src/doc/bench/ |
D | db_bench_tree_db.cc | 140 int64_t bytes_; member in leveldb::Benchmark 218 bytes_ = 0; in Start() 259 if (bytes_ > 0) { in Stop() 262 (bytes_ / 1048576.0) / (finish - start_)); in Stop() 295 bytes_(0), in Benchmark() 450 bytes_ += value_size + strlen(key); in Write() 464 bytes_ += ckey.size() + cvalue.size(); in ReadSequential()
|
D | db_bench_sqlite3.cc | 171 int64_t bytes_; member in leveldb::Benchmark 242 bytes_ = 0; in Start() 283 if (bytes_ > 0) { in Stop() 286 (bytes_ / 1048576.0) / (finish - start_)); in Stop() 320 bytes_(0), in Benchmark() 359 bytes_ = 0; in Run() 551 bytes_ += value_size + strlen(key); in Write() 657 bytes_ += sqlite3_column_bytes(pStmt, 1) + sqlite3_column_bytes(pStmt, 2); in ReadSequential()
|
/external/chromium_org/sandbox/win/src/ |
D | sandbox_nt_util.h | 157 : changed_(false), address_(NULL), bytes_(0), old_protect_(0) {} in AutoProtectMemory() 172 size_t bytes_; variable
|