Searched defs:buffer (Results 251 - 275 of 3822) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/chrome/common/importer/
H A Dfirefox_importer_utils_win.cc51 wchar_t buffer[MAX_PATH]; local
52 DWORD buffer_length = sizeof(buffer);
55 LONG result = reg_key.ReadValue(kCurrentVersion, buffer,
60 registry_path += L"\\" + base::string16(buffer) + L"\\Main";
61 buffer_length = sizeof(buffer);
64 result = reg_key_directory.ReadValue(L"Install Directory", buffer,
67 return (result != ERROR_SUCCESS) ? base::FilePath() : base::FilePath(buffer);
/external/chromium_org/chromecast/media/cma/base/
H A Ddecoder_buffer_adapter.cc13 const scoped_refptr< ::media::DecoderBuffer>& buffer)
14 : buffer_(buffer) {
12 DecoderBufferAdapter( const scoped_refptr< ::media::DecoderBuffer>& buffer) argument
/external/chromium_org/chromecast/media/cma/ipc_streamer/
H A Dcoded_frame_provider_host.cc77 scoped_refptr<DecoderBufferBase> buffer = local
80 buffer, audio_config_, video_config_);
/external/chromium_org/cloud_print/common/win/
H A Dcloud_print_utils.cc31 LPCWSTR buffer = NULL; local
34 int count = ::LoadString(module, id, reinterpret_cast<LPWSTR>(&buffer), 0);
35 if (!buffer)
37 return base::string16(buffer, buffer + count);
41 LPWSTR buffer = NULL; local
44 0, hr, 0, reinterpret_cast<LPWSTR>(&buffer), 0, NULL);
45 base::string16 result(buffer);
46 ::LocalFree(buffer);
/external/chromium_org/components/pairing/
H A Dmessage_buffer.cc22 void MessageBuffer::ReadBytes(char* buffer, int size) { argument
32 memcpy(&buffer[offset], &io_buffer->data()[buffer_offset_], copy_size);
/external/chromium_org/content/browser/device_sensors/
H A Ddata_fetcher_shared_memory_default.cc12 static bool SetMotionBuffer(content::DeviceMotionHardwareBuffer* buffer, argument
14 if (!buffer)
16 buffer->seqlock.WriteBegin();
17 buffer->data.allAvailableSensorsAreActive = enabled;
18 buffer->seqlock.WriteEnd();
23 content::DeviceOrientationHardwareBuffer* buffer, bool enabled) {
24 if (!buffer)
26 buffer->seqlock.WriteBegin();
27 buffer->data.allAvailableSensorsAreActive = enabled;
28 buffer
22 SetOrientationBuffer( content::DeviceOrientationHardwareBuffer* buffer, bool enabled) argument
32 SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) argument
53 Start(ConsumerType consumer_type, void* buffer) argument
[all...]
/external/chromium_org/content/child/webcrypto/nss/
H A Daes_cbc_nss.cc28 std::vector<uint8_t>* buffer) {
72 // TODO(eroman): Refine the output buffer size. It can be computed exactly for
74 buffer->resize(output_max_len.ValueOrDie());
76 unsigned char* buffer_data = vector_as_array(buffer);
82 buffer->size(),
97 buffer->resize(final_output_chunk_len + output_len);
108 std::vector<uint8_t>* buffer) const OVERRIDE {
109 return AesCbcEncryptDecrypt(ENCRYPT, algorithm, key, data, buffer);
115 std::vector<uint8_t>* buffer) const OVERRIDE {
116 return AesCbcEncryptDecrypt(DECRYPT, algorithm, key, data, buffer);
24 AesCbcEncryptDecrypt(EncryptOrDecrypt mode, const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument
[all...]
H A Dutil_nss.cc27 // Creates a SECItem for the data in |buffer|. This does NOT make a copy, so
28 // |buffer| should outlive the SECItem.
29 SECItem MakeSECItemForBuffer(const CryptoData& buffer) { argument
33 const_cast<unsigned char*>(buffer.bytes()), buffer.byte_length()};
/external/chromium_org/content/child/webcrypto/openssl/
H A Daes_gcm_openssl.cc41 std::vector<uint8_t>* buffer) {
58 buffer);
68 std::vector<uint8_t>* buffer) const OVERRIDE {
69 return AesGcmEncryptDecrypt(ENCRYPT, algorithm, key, data, buffer);
75 std::vector<uint8_t>* buffer) const OVERRIDE {
76 return AesGcmEncryptDecrypt(DECRYPT, algorithm, key, data, buffer);
37 AesGcmEncryptDecrypt(EncryptOrDecrypt mode, const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument
H A Daes_kw_openssl.cc40 std::vector<uint8_t>* buffer) {
61 buffer);
74 std::vector<uint8_t>* buffer) const OVERRIDE {
75 return AesKwEncryptDecrypt(ENCRYPT, algorithm, key, data, buffer);
81 std::vector<uint8_t>* buffer) const OVERRIDE {
82 return AesKwEncryptDecrypt(DECRYPT, algorithm, key, data, buffer);
36 AesKwEncryptDecrypt(EncryptOrDecrypt mode, const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument
/external/chromium_org/extensions/renderer/api/serial/
H A Ddata_receiver_unittest.cc52 void ReadyToSend(scoped_ptr<device::WritableBuffer> buffer) { argument
71 DCHECK(buffer->GetSize() >= static_cast<uint32_t>(data.size()));
72 memcpy(buffer->GetData(), data.c_str(), data.size());
74 buffer->DoneWithError(data.size(), error);
76 buffer->Done(data.size());
/external/chromium_org/gin/
H A Disolate_holder.cc27 bool GenerateEntropy(unsigned char* buffer, size_t amount) { argument
28 base::RandBytes(buffer, amount);
/external/chromium_org/gpu/command_buffer/common/
H A Dcommand_buffer_shared_test.cc41 void WriteToState(int32 *buffer, argument
49 // Ensure that the producer doesn't update the buffer until after the
51 EXPECT_EQ(buffer[i], 0);
58 scoped_ptr<int32[]> buffer; local
59 buffer.reset(new int32[kSize]);
62 memset(buffer.get(), 0, kSize * sizeof(int32));
66 FROM_HERE, base::Bind(&WriteToState, buffer.get(),
79 buffer[state.get_offset - 1] = 1;
/external/chromium_org/media/audio/
H A Daudio_power_monitor.cc33 void AudioPowerMonitor::Scan(const AudioBus& buffer, int num_frames) { argument
34 DCHECK_LE(num_frames, buffer.frames());
35 const int num_channels = buffer.channels();
41 // each channel in |buffer|.
45 average_power_, buffer.channel(i), num_frames, sample_weight_);
46 // If data in audio buffer is garbage, ignore its effect on the result.
/external/chromium_org/media/base/
H A Dbit_reader_unittest.cc22 uint8 buffer[] = {0x55, 0x99, 0x55, 0x99, 0x55, 0x99, 0x55, 0x99}; local
23 BitReader reader1(buffer, 6); // Initialize with 6 bytes only
37 BitReader reader2(buffer, 8);
46 uint8 buffer[] = {0x12}; local
47 BitReader reader1(buffer, sizeof(buffer));
57 uint8 buffer[] = { 0x0a, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; local
58 BitReader reader1(buffer, sizeof(buffer));
75 uint8 buffer[25 local
123 uint8 buffer[] = { 0x0a, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; local
[all...]
H A Ddata_buffer.cc18 DataBuffer::DataBuffer(scoped_ptr<uint8[]> buffer, int buffer_size) argument
19 : data_(buffer.Pass()),
H A Ddecoder_buffer_queue.cc21 void DecoderBufferQueue::Push(const scoped_refptr<DecoderBuffer>& buffer) { argument
22 CHECK(!buffer->end_of_stream());
24 queue_.push_back(buffer);
28 data_size_ += base::checked_cast<size_t, int>(buffer->data_size());
32 if (buffer->timestamp() == kNoTimestamp()) {
38 earliest_valid_timestamp_ = buffer->timestamp();
41 if (buffer->timestamp() < earliest_valid_timestamp_) {
44 << buffer->timestamp().InMicroseconds()
50 earliest_valid_timestamp_ = buffer->timestamp();
51 in_order_queue_.push_back(buffer);
55 scoped_refptr<DecoderBuffer> buffer = queue_.front(); local
[all...]
/external/chromium_org/media/filters/
H A Dblocking_url_protocol_unittest.cc48 uint8 buffer[32]; local
49 EXPECT_EQ(32, url_protocol_.Read(32, buffer));
54 EXPECT_EQ(32, url_protocol_.Read(32, buffer));
62 EXPECT_EQ(32, url_protocol_.Read(32, buffer));
66 EXPECT_EQ(16, url_protocol_.Read(32, buffer));
70 EXPECT_EQ(0, url_protocol_.Read(32, buffer));
78 uint8 buffer[32]; local
80 EXPECT_EQ(AVERROR(EIO), url_protocol_.Read(32, buffer));
/external/chromium_org/media/formats/mpeg/
H A Dmpeg1_audio_stream_parser_unittest.cc64 scoped_refptr<DecoderBuffer> buffer = ReadTestDataFile("sfx.mp3"); local
65 const uint8_t* buffer_ptr = buffer->data();
/external/chromium_org/media/mojo/services/
H A Dmojo_demuxer_stream_impl.cc34 const scoped_refptr<media::DecoderBuffer>& buffer) {
45 mojo::MediaDecoderBuffer::From(buffer));
31 OnBufferReady( const BufferReadyCB& callback, media::DemuxerStream::Status status, const scoped_refptr<media::DecoderBuffer>& buffer) argument
/external/chromium_org/mojo/public/c/system/tests/
H A Dcore_unittest_pure_c.c47 char buffer[200] = {0}; local
79 num_bytes = (uint32_t)sizeof(buffer);
82 buffer,
88 EXPECT_EQ(0, memcmp(buffer, kHello, sizeof(kHello)));
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Dmessage_builder.h23 Buffer* buffer() { return &buf_; } function in class:mojo::internal::MessageBuilder
25 // Call Finish when done making allocations in |buffer()|. Upon return,
26 // |message| will contain the message data, and |buffer()| will no longer be
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
H A DMessage.java37 * @param buffer The buffer containing the bytes to send. This must be a direct buffer.
40 public Message(ByteBuffer buffer, List<? extends Handle> handles) { argument
41 assert buffer.isDirect();
42 mBuffer = buffer;
/external/chromium_org/net/base/
H A Dtest_data_stream.cc13 // Fill |buffer| with |length| bytes of data from the stream.
14 void TestDataStream::GetBytes(char* buffer, int length) { argument
18 memcpy(buffer, buffer_ptr_, bytes_to_copy);
19 buffer += bytes_to_copy;
25 bool TestDataStream::VerifyBytes(const char *buffer, int length) { argument
29 if (memcmp(buffer, buffer_ptr_, bytes_to_compare))
33 buffer += bytes_to_compare;
45 // index and fill the buffer.
58 // Consume data from the spill buffer.
/external/chromium_org/net/disk_cache/blockfile/
H A Dmapped_file.h33 void* buffer() const { function in class:disk_cache::MappedFile
60 void* buffer_; // Address of the memory mapped buffer.
63 void* snapshot_; // Copy of the buffer taken when it was last flushed.

Completed in 478 milliseconds

<<11121314151617181920>>