/cts/suite/audio_quality/test/ |
AudioSignalFactoryTest.cpp | 25 void testSignalBasic(android::sp<Buffer>& buffer, int maxPositive, 27 ASSERT_TRUE(buffer->getSize() == (unsigned int)(AudioHardware::E2BPS * 2 * samples)); 28 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); 44 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, local 46 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); 53 android::sp<Buffer> buffer = AudioSignalFactory::generateWhiteNoise(AudioHardware::E2BPS, local 55 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples) [all...] |
BufferTest.cpp | 22 #include "audio/Buffer.h" 41 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)); 42 ASSERT_TRUE(buffer.get() != NULL); 43 int16_t* data = (int16_t*)buffer->getData(); 50 ASSERT_TRUE(buffer->saveToFile(file)); 52 UniquePtr<Buffer> bufferRead(Buffer::loadFromFile(file)); 66 UniquePtr<Buffer> buffer(new Buffer(BUFFER_SIZE, BUFFER_SIZE, true)) [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexAnnotationImpl.java | 29 private DexBuffer buffer; field in class:DexAnnotationImpl 38 public DexAnnotationImpl(DexBuffer buffer, int offset, int[] typeIds, 40 this.buffer = buffer; 49 buffer.setPosition(offset); 50 visibility = Visibility.get(buffer.readUByte()); 51 encodedAnnotation = new DexEncodedAnnotationImpl(buffer, this, typeIds,
|
DexEncodedAnnotationImpl.java | 32 private final DexBuffer buffer; field in class:DexEncodedAnnotationImpl 39 public DexEncodedAnnotationImpl(DexBuffer buffer, DexAnnotation annotation, 41 this.buffer = buffer; 50 typeIdx = buffer.readUleb128(); 51 int size = buffer.readUleb128(); 54 values.add(new DexAnnotationAttributeImpl(buffer, annotation,
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
RFC2109Spec.java | 158 CharArrayBuffer buffer = new CharArrayBuffer(40 * cookies.size()); local 159 buffer.append(SM.COOKIE); 160 buffer.append(": "); 161 buffer.append("$Version="); 162 buffer.append(Integer.toString(version)); 164 buffer.append("; "); 166 formatCookieAsVer(buffer, cookie, version); 169 headers.add(new BufferedHeader(buffer)); 177 CharArrayBuffer buffer = new CharArrayBuffer(40); local 178 buffer.append("Cookie: ") [all...] |
/external/chromium_org/content/browser/renderer_host/media/ |
video_capture_buffer_pool.cc | 28 Buffer* buffer = new Buffer(); local 29 buffers_[buffer_id] = buffer; 30 if (!buffer->shared_memory.CreateAndMapAnonymous(GetMemorySize())) 43 Buffer* buffer = buffers_[buffer_id]; 45 buffer->shared_memory.ShareToProcess(process_handle, &remote_handle); 74 Buffer* buffer = buffers_[buffer_id] [all...] |
/external/chromium_org/content/renderer/ |
webclipboard_impl.h | 26 virtual uint64 sequenceNumber(Buffer buffer); 27 virtual bool isFormatAvailable(Format format, Buffer buffer); 29 Buffer buffer, bool* contains_filenames); 30 virtual WebKit::WebString readPlainText(Buffer buffer); 32 Buffer buffer, [all...] |
/external/chromium_org/net/quic/crypto/ |
null_encrypter.cc | 27 string buffer = associated_data.as_string(); local 28 plaintext.AppendToString(&buffer); 29 uint128 hash = QuicUtils::FNV1a_128_Hash(buffer.data(), buffer.length()); 40 uint8* buffer = new uint8[len]; local 41 Encrypt(StringPiece(), associated_data, plaintext, buffer); local 42 return new QuicData(reinterpret_cast<char*>(buffer), len, true);
|
/external/chromium_org/third_party/skia/src/core/ |
SkPathEffect.cpp | 44 void SkPairPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { 45 this->INHERITED::flatten(buffer); 46 buffer.writeFlattenable(fPE0); 47 buffer.writeFlattenable(fPE1); 50 SkPairPathEffect::SkPairPathEffect(SkFlattenableReadBuffer& buffer) { 51 fPE0 = buffer.readFlattenableT<SkPathEffect>(); 52 fPE1 = buffer.readFlattenableT<SkPathEffect>();
|
/external/dropbear/ |
buffer.c | 25 /* Buffer handling routines, designed to avoid overflows/using invalid data */ 29 #include "buffer.h" 31 /* Prevent integer overflows when incrementing buffer position/length. 40 /* Create (malloc) a new buffer of size */ 41 buffer* buf_new(unsigned int size) { 43 buffer* buf; 49 buf = (buffer*)m_malloc(sizeof(buffer)); 65 /* free the buffer's data and the buffer itself * [all...] |
/external/harfbuzz_ng/util/ |
shape-consumer.hh | 46 void consume_line (hb_buffer_t *buffer, 54 shaper.populate_buffer (buffer, text, text_len, text_before, text_after); 55 output.consume_text (buffer, text, text_len, shaper.utf8_clusters); 57 if (!shaper.shape (font, buffer)) { 59 hb_buffer_set_length (buffer, 0); 60 output.shape_failed (buffer, text, text_len, shaper.utf8_clusters); 64 output.consume_glyphs (buffer, text, text_len, shaper.utf8_clusters);
|
/external/lzma/CPP/Common/ |
Buffer.h | 1 // Common/Buffer.h
21 CBuffer(const CBuffer &buffer): _capacity(0), _items(0) { *this = buffer; }
44 CBuffer& operator=(const CBuffer &buffer)
47 if (buffer._capacity > 0)
49 SetCapacity(buffer._capacity);
50 memmove(_items, buffer._items, buffer._capacity * sizeof(T));
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
CallInfo.java | 67 protected StringBuffer encodeBody(StringBuffer buffer) { 68 buffer.append(LESS_THAN); 69 info.encode(buffer); 70 buffer.append(GREATER_THAN); 73 buffer.append(SEMICOLON); 74 parameters.encode(buffer); 77 return buffer;
|
/external/qemu/ |
compatfd.c | 46 struct qemu_signalfd_siginfo buffer; local 49 memset(&buffer, 0, sizeof(buffer)); 50 buffer.ssi_signo = sig; 52 while (offset < sizeof(buffer)) { 55 len = write(info->fd, (char *)&buffer + offset, 56 sizeof(buffer) - offset);
|
/external/qemu/distrib/sdl-1.2.15/src/video/ataricommon/ |
SDL_ataridevmouse.c | 120 unsigned char buffer[3]; local 128 while (read(handle, buffer, sizeof(buffer))==sizeof(buffer)) { 129 mouseb = buffer[0] & 7; 130 mousex += (char) buffer[1]; 131 mousey += (char) buffer[2];
|
/external/skia/src/core/ |
SkPathEffect.cpp | 44 void SkPairPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { 45 this->INHERITED::flatten(buffer); 46 buffer.writeFlattenable(fPE0); 47 buffer.writeFlattenable(fPE1); 50 SkPairPathEffect::SkPairPathEffect(SkFlattenableReadBuffer& buffer) { 51 fPE0 = buffer.readFlattenableT<SkPathEffect>(); 52 fPE1 = buffer.readFlattenableT<SkPathEffect>();
|
/external/webrtc/test/testsupport/ |
frame_reader_unittest.cc | 57 WebRtc_UWord8 buffer[3]; local 58 bool result = frame_reader_->ReadFrame(buffer); 60 ASSERT_EQ(kInputFileContents[0], buffer[0]); 61 ASSERT_EQ(kInputFileContents[1], buffer[1]); 62 ASSERT_EQ(kInputFileContents[2], buffer[2]); 66 WebRtc_UWord8 buffer[3]; local 68 ASSERT_FALSE(file_reader.ReadFrame(buffer));
|
/frameworks/base/core/java/android/net/dhcp/ |
DhcpRequestPacket.java | 60 void finishPacket(ByteBuffer buffer) { 67 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_REQUEST); 68 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); 69 addTlv(buffer, DHCP_REQUESTED_IP, mRequestedIp); 70 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 71 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, clientId); 72 addTlvEnd(buffer);
|
/frameworks/base/libs/hwui/ |
RenderBufferCache.h | 34 * Returns a buffer with the exact specified dimensions. If no suitable 35 * buffer can be found, a new one is created and returned. If creating a 36 * new buffer fails, NULL is returned. 38 * When a buffer is obtained from the cache, it is removed and the total 41 * The returned buffer is always allocated and bound 44 * @param format The desired render buffer format 45 * @param width The desired width of the buffer 46 * @param height The desired height of the buffer 51 * Adds the buffer to the cache. The buffer will not be added if there i [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
SSLSocketInputStream.java | 31 // The size of the internal data buffer. 36 // Internal buffer accumulating the received application data 37 private byte[] buffer = new byte[BUFFER_SIZE]; field in class:SSLSocketInputStream 39 // position of the next byte to read from the buffer 90 buffer = null; 94 * Reads one byte. If there is no data in the underlying buffer, 102 if (buffer == null) { 109 // If there is no data in the buffer 114 return buffer[pos++] & 0xFF; 143 // If the size of the buffer is greater than or equals t [all...] |
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
decoder.py | 31 """Code for decoding protocol buffer primitives. 36 Decode(buffer, pos, end, message, field_dict) 38 buffer: The string containing the encoded message. 41 less than len(buffer) if we're reading a sub-message. 45 buffer position. A decoder for a repeated field may proactively decode all of 112 def DecodeVarint(buffer, pos): 116 b = local_ord(buffer[pos]) 132 def DecodeVarint(buffer, pos): 136 b = local_ord(buffer[pos]) 160 def ReadTag(buffer, pos) [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
RFC1522Codec.java | 71 StringBuffer buffer = new StringBuffer(); local 72 buffer.append("=?"); 73 buffer.append(charset); 74 buffer.append('?'); 75 buffer.append(getEncoding()); 76 buffer.append('?'); 78 buffer.append(new String(rawdata, StringEncodings.US_ASCII)); 79 buffer.append("?="); 80 return buffer.toString();
|
/external/chromium_org/media/base/ |
bit_reader_unittest.cc | 15 uint8 buffer[] = {0x55, 0x99, 0x55, 0x99, 0x55, 0x99, 0x55, 0x99}; local 16 BitReader reader1(buffer, 6); // Initialize with 6 bytes only 30 BitReader reader2(buffer, 8); 39 uint8 buffer[] = {0x12}; local 40 BitReader reader1(buffer, sizeof(buffer)); 50 uint8 buffer[] = { 0x0a, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; local 51 BitReader reader1(buffer, sizeof(buffer));
|
/external/chromium_org/ppapi/shared_impl/ |
ppb_var_shared.cc | 81 ArrayBufferVar* buffer = ArrayBufferVar::FromPPVar(array); local 82 if (!buffer) 84 *byte_length = buffer->ByteLength(); 90 ArrayBufferVar* buffer = ArrayBufferVar::FromPPVar(array); local 91 if (!buffer) 93 return buffer->Map(); 98 ArrayBufferVar* buffer = ArrayBufferVar::FromPPVar(array); local 99 if (buffer) 100 buffer->Unmap();
|
/external/chromium_org/remoting/client/plugin/ |
pepper_view.cc | 36 explicit PepperDesktopFrame(const pp::ImageData& buffer); 39 const pp::ImageData& buffer() const { function in class:__anon12110::PepperDesktopFrame 47 PepperDesktopFrame::PepperDesktopFrame(const pp::ImageData& buffer) 48 : DesktopFrame(webrtc::DesktopSize(buffer.size().width(), 49 buffer.size().height()), 50 buffer.stride(), 51 reinterpret_cast<uint8_t*>(buffer.data()), 53 buffer_(buffer) {} 170 webrtc::DesktopFrame* buffer, 178 // We cannot use the data in the buffer if its dimensions don't match th 237 webrtc::DesktopFrame* buffer = new PepperDesktopFrame(buffer_data); local 250 webrtc::DesktopFrame* buffer = AllocateBuffer(); local [all...] |