/external/libchrome/sandbox/win/src/ |
internal_types.h | 33 CountedBuffer(void* buffer, uint32_t size) : size_(size), buffer_(buffer) {} 38 return buffer_; 43 void* buffer_; member in class:sandbox::CountedBuffer 51 buffer_.vp = buffer; 55 buffer_.vp = NULL; 56 buffer_.i32 = i32; 60 return buffer_.i32; 64 return buffer_.vp; 71 } buffer_; member in class:sandbox::IPCInt
|
/system/core/libmemunreachable/ |
LineBuffer.cpp | 26 LineBuffer::LineBuffer(int fd, char* buffer, size_t buffer_len) : fd_(fd), buffer_(buffer), buffer_len_(buffer_len) { 32 char* newline = reinterpret_cast<char*>(memchr(buffer_ + start_, '\n', bytes_)); 35 *line = buffer_ + start_; 36 start_ = newline - buffer_ + 1; 44 memmove(buffer_, buffer_ + start_, bytes_); 47 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer_ + bytes_, buffer_len_ - bytes_ - 1)); 51 buffer_[bytes_] = '\0'; 52 *line = buffer_ + start_;
|
/system/extras/memory_replay/ |
LineBuffer.cpp | 23 LineBuffer::LineBuffer(int fd, char* buffer, size_t buffer_len) : fd_(fd), buffer_(buffer), buffer_len_(buffer_len) { 29 char* newline = reinterpret_cast<char*>(memchr(buffer_ + start_, '\n', bytes_)); 32 *line = buffer_ + start_; 33 start_ = newline - buffer_ + 1; 41 memmove(buffer_, buffer_ + start_, bytes_); 44 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer_ + bytes_, buffer_len_ - bytes_ - 1)); 48 buffer_[bytes_] = '\0'; 49 *line = buffer_ + start_;
|
/external/v8/src/regexp/ |
regexp-macro-assembler-irregexp-inl.h | 19 DCHECK(pc_ <= buffer_.length()); 20 if (pc_ + 3 >= buffer_.length()) { 23 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; 29 DCHECK(pc_ <= buffer_.length()); 30 if (pc_ + 1 >= buffer_.length()) { 33 *reinterpret_cast<uint16_t*>(buffer_.start() + pc_) = word; 39 DCHECK(pc_ <= buffer_.length()); 40 if (pc_ == buffer_.length()) { 43 *reinterpret_cast<unsigned char*>(buffer_.start() + pc_) = word; 49 DCHECK(pc_ <= buffer_.length()) [all...] |
/external/bsdiff/ |
memory_file.cc | 13 buffer_.reserve(size); 26 buffer_.insert(buffer_.end(), data, data + count); 36 if (!WriteAll(file_, buffer_.data(), buffer_.size())) 38 // Prevent writing |buffer_| to |file_| again if Close() is called more than 40 buffer_.clear(); 45 *size = buffer_.size();
|
/external/vixl/src/vixl/ |
code-buffer.cc | 35 buffer_ = reinterpret_cast<byte*>(malloc(capacity_)); 36 VIXL_CHECK(buffer_ != NULL); 39 VIXL_ASSERT(IsWordAligned(buffer_)); 41 cursor_ = buffer_; 47 : buffer_(reinterpret_cast<byte*>(buffer)), 52 VIXL_ASSERT(buffer_ != NULL); 59 free(buffer_); 90 memset(buffer_, 0, capacity_); 93 cursor_ = buffer_; 102 buffer_ = static_cast<byte*>(realloc(buffer_, new_capacity)) [all...] |
code-buffer.h | 44 ptrdiff_t cursor_offset = cursor_ - buffer_; 55 VIXL_ASSERT((offset >= 0) && (offset <= (cursor_ - buffer_))); 56 return reinterpret_cast<T>(buffer_ + offset); 60 VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_))); 61 return (buffer_ + capacity_) - cursor_; 97 byte* buffer_; member in class:vixl::CodeBuffer
|
/system/core/adb/ |
shell_service.h | 76 const char* data() const { return buffer_ + kHeaderSize; } 77 char* data() { return buffer_ + kHeaderSize; } 92 int id() const { return buffer_[0]; } 116 char buffer_[kBufferSize]; member in class:ShellProtocol 121 char* buffer_end_ = buffer_ + sizeof(buffer_);
|
shell_service_protocol.cpp | 26 buffer_[0] = kIdInvalid; 35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { 40 memcpy(&packet_length, &buffer_[1], sizeof(packet_length)); 57 buffer_[0] = id; 59 memcpy(&buffer_[1], &typed_length, sizeof(typed_length)); 61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length);
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_format_vp8_test_helper.cc | 22 buffer_(NULL), 35 delete [] buffer_; 50 buffer_ = new uint8_t[buffer_size_]; 79 EXPECT_TRUE(packetizer->NextPacket(buffer_, &send_bytes, &last)); 130 EXPECT_BIT_EQ(buffer_[0], 6, 0); // Check reserved bit. 136 EXPECT_BIT_X_EQ(buffer_[0], 1); 142 EXPECT_BIT_X_EQ(buffer_[0], 0); 145 EXPECT_BIT_N_EQ(buffer_[0], hdr_info_->nonReference ? 1 : 0); 146 EXPECT_BIT_S_EQ(buffer_[0], frag_start ? 1 : 0); 152 EXPECT_EQ(buffer_[0] & 0x0F, buffer_[payload_start_]) [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
filereadstream.h | 37 FileReadStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferSize_(bufferSize), bufferLast_(0), current_(buffer_), readCount_(0), count_(0), eof_(false) {
45 size_t Tell() const { return count_ + static_cast<size_t>(current_ - buffer_); }
64 readCount_ = fread(buffer_, 1, bufferSize_, fp_);
65 bufferLast_ = buffer_ + readCount_ - 1;
66 current_ = buffer_;
69 buffer_[readCount_] = '\0';
77 Ch *buffer_;
member in class:FileReadStream
|
filewritestream.h | 31 FileWriteStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferEnd_(buffer + bufferSize), current_(buffer_) {
59 if (current_ != buffer_) {
60 size_t result = fwrite(buffer_, 1, static_cast<size_t>(current_ - buffer_), fp_);
61 if (result < static_cast<size_t>(current_ - buffer_)) {
65 current_ = buffer_;
82 char *buffer_;
member in class:FileWriteStream
|
/external/drm_hwcomposer/ |
drmframebuffer.h | 38 return buffer_ != NULL; 42 return buffer_; 57 if (buffer_->getWidth() == w && buffer_->getHeight() == h) 68 buffer_ = new GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, 84 buffer_.clear(); 102 sp<GraphicBuffer> buffer_; member in struct:android::DrmFramebuffer
|
/external/protobuf/src/google/protobuf/io/ |
coded_stream_unittest.cc | 135 static uint8 buffer_[kBufferSize]; member in class:google::protobuf::io::__anon23306::CodedStreamTest 138 uint8 CodedStreamTest::buffer_[CodedStreamTest::kBufferSize]; member in class:google::protobuf::io::__anon23306::CodedStreamTest 186 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 187 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); 201 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 202 ArrayInputStream input(buffer_, sizeof(buffer_), kBlockSizes_case); 247 buffer_[0] = '\0'; 248 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size) 1348 char buffer_[1024]; member in class:google::protobuf::io::__anon23306::ReallyBigInputStream [all...] |
/external/v8/src/extensions/ |
gc-extension.h | 18 BuildSource(buffer_, sizeof(buffer_), fun_name)) {} 30 char buffer_[50]; member in class:v8::internal::GCExtension
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
packet_buffer.cc | 50 DeleteAllPackets(&buffer_); 54 return buffer_.empty(); 68 if (buffer_.size() >= max_number_of_packets_) { 79 buffer_.rbegin(), buffer_.rend(), 85 if (rit != buffer_.rend() && 96 if (it != buffer_.end() && 100 it = buffer_.erase(it); 102 buffer_.insert(it, packet); // Insert the packet at that position. 154 *next_timestamp = buffer_.front()->header.timestamp [all...] |
dtmf_buffer.cc | 33 buffer_.clear(); 107 DtmfList::iterator it = buffer_.begin(); 108 while (it != buffer_.end()) { 115 buffer_.push_back(event); 117 buffer_.sort(CompareEvents); 122 DtmfList::iterator it = buffer_.begin(); 123 while (it != buffer_.end()) { 136 if (next != buffer_.end()) { 159 buffer_.erase(it); 175 it = buffer_.erase(it) [all...] |
/external/webrtc/webrtc/modules/audio_processing/vad/ |
vad_circular_buffer.cc | 19 : buffer_(new double[buffer_size]), 43 return buffer_[0]; 45 return buffer_[index_]; 63 sum_ -= buffer_[index_]; 66 buffer_[index_] = value; 83 *value = buffer_[index]; 92 sum_ -= buffer_[index]; 93 buffer_[index] = value;
|
/system/core/debuggerd/test/ |
BacktraceMock.h | 61 size_t bytes_available = buffer_.size() - offset; 76 memcpy(buffer, buffer_.data() + offset, bytes); 84 buffer_.resize(bytes); 85 memcpy(buffer_.data(), buffer, bytes); 92 if (bytes > buffer_.size()) { 100 std::vector<uint8_t> buffer_; member in class:BacktraceMock
|
/external/webrtc/webrtc/test/gl/ |
gl_renderer.cc | 21 : is_init_(false), buffer_(NULL), width_(0), height_(0) {} 37 delete[] buffer_; 38 buffer_ = NULL; 61 delete[] buffer_; 62 buffer_ = new uint8_t[buffer_size_]; 63 assert(buffer_ != NULL); 64 memset(buffer_, 0, buffer_size_); 69 GL_UNSIGNED_INT_8_8_8_8, static_cast<GLvoid*>(buffer_)); 81 webrtc::ConvertFromI420(frame, kBGRA, 0, buffer_); 86 GL_UNSIGNED_INT_8_8_8_8, buffer_); [all...] |
/system/keymaster/ |
serializable.cpp | 76 memcpy(new_buffer, buffer_.get() + read_position_, available_read()); 77 memset_s(buffer_.get(), 0, buffer_size_); 78 buffer_.reset(new_buffer); 88 buffer_.reset(new (std::nothrow) uint8_t[size]); 89 if (!buffer_.get()) 101 buffer_.reset(new (std::nothrow) uint8_t[data_len]); 102 if (!buffer_.get()) 105 memcpy(buffer_.get(), data, data_len); 125 memcpy(buffer_.get() + write_position_, src, write_length); 133 memcpy(dest, buffer_.get() + read_position_, read_length) [all...] |
/external/webrtc/webrtc/common_video/ |
i420_buffer_pool.cc | 22 : buffer_(buffer) {} 27 int width() const override { return buffer_->width(); } 28 int height() const override { return buffer_->height(); } 30 return buffer_->data(type); 33 // Make the HasOneRef() check here instead of in |buffer_|, because the pool 34 // also has a reference to |buffer_|. 36 return const_cast<uint8_t*>(buffer_->data(type)); 39 return buffer_->stride(type); 49 rtc::scoped_refptr<webrtc::I420Buffer> buffer_; member in class:__anon27689::PooledI420Buffer
|
/external/v8/src/ |
signature.h | 44 buffer_(zone->NewArray<T>( 52 buffer_[rcursor_++] = val; 56 buffer_[return_count_ + pcursor_++] = val; 61 return new (zone_) Signature<T>(return_count_, parameter_count_, buffer_); 68 T* buffer_;
|
/external/webrtc/webrtc/base/ |
transformadapter.cc | 44 if ((state_ == ST_PROCESSING) && (len_ < sizeof(buffer_))) { 47 buffer_ + len_, 48 sizeof(buffer_) - len_, 66 StreamResult result = transform_->Transform(buffer_, &in_len, 86 memmove(buffer_, buffer_ + in_len, len_); 112 if (len_ < sizeof(buffer_)) { 115 size_t out_len = sizeof(buffer_) - len_; 117 buffer_ + len_, &out_len, 138 StreamResult result = StreamAdapterInterface::Write(buffer_ + pos [all...] |
/external/sfntly/cpp/src/sfntly/port/ |
memory_input_stream.cc | 29 : buffer_(NULL), 55 if (!buffer_) { 67 byte_t value = buffer_[position_++]; 77 if (!buffer_) { 93 memcpy(&((*b)[offset]), buffer_ + position_, read_count); 103 if (!buffer_) { 127 if (!buffer_) { 142 buffer_ = buffer;
|