/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
dtmf_buffer_unittest.cc | 57 DtmfBuffer* buffer = new DtmfBuffer(sample_rate_hz); local 58 delete buffer; 97 DtmfBuffer buffer(sample_rate_hz); 98 EXPECT_EQ(DtmfBuffer::kOK, buffer.InsertEvent(event)); 99 EXPECT_EQ(1u, buffer.Length()); 100 EXPECT_FALSE(buffer.Empty()); 103 EXPECT_FALSE(buffer.GetEvent(timestamp - 10, &out_event)); 104 EXPECT_EQ(1u, buffer.Length()); 105 EXPECT_FALSE(buffer.Empty()); 107 EXPECT_TRUE(buffer.GetEvent(timestamp, &out_event)) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
TraceFileWriter.java | 85 byte[] buffer = readTraceData(mInputStream); 86 if (buffer == null) { 91 writeTraceData(buffer, mOutputStream); 96 updateTraceStats(buffer); 110 byte[] buffer = new byte[len]; 114 int read = dis.read(buffer, readLen, len - readLen); 125 return buffer; 129 private void writeTraceData(byte[] buffer, DataOutputStream stream) throws IOException { 130 stream.writeInt(buffer.length); 131 stream.write(buffer); [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
FsInfoSector.java | 145 buffer.position(0x00); 146 buffer.put((byte) 0x52); 147 buffer.put((byte) 0x52); 148 buffer.put((byte) 0x61); 149 buffer.put((byte) 0x41); 153 buffer.position(0x1e4); 154 buffer.put((byte) 0x72); 155 buffer.put((byte) 0x72); 156 buffer.put((byte) 0x41); 157 buffer.put((byte) 0x61) [all...] |
/external/chromium_org/third_party/libsrtp/srtp/crypto/test/ |
stat_driver.c | 70 uint8_t buffer[2500]; local 90 buffer[i] = 0; 93 printf("running stat_tests on all-null buffer, expecting failure\n"); 94 printf("monobit %d\n", stat_test_monobit(buffer)); 95 printf("poker %d\n", stat_test_poker(buffer)); 96 printf("runs %d\n", stat_test_runs(buffer)); 99 buffer[i] = rand(); 101 printf("monobit %d\n", stat_test_monobit(buffer)); 102 printf("poker %d\n", stat_test_poker(buffer)); 103 printf("runs %d\n", stat_test_runs(buffer)); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
vl_vertex_buffers.c | 49 /* create buffer */ 52 quad.buffer = pipe_buffer_create 61 if(!quad.buffer) 68 quad.buffer, 94 /* create buffer */ 97 pos.buffer = pipe_buffer_create 106 if(!pos.buffer) 113 pos.buffer, 208 vl_vb_init(struct vl_vertex_buffer *buffer, struct pipe_context *pipe, 213 assert(buffer); [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_vertex_buffers.c | 49 /* create buffer */ 52 quad.buffer = pipe_buffer_create 61 if(!quad.buffer) 68 quad.buffer, 94 /* create buffer */ 97 pos.buffer = pipe_buffer_create 106 if(!pos.buffer) 113 pos.buffer, 208 vl_vb_init(struct vl_vertex_buffer *buffer, struct pipe_context *pipe, 213 assert(buffer); [all...] |
/external/chromium_org/net/base/ |
address_tracker_linux_unittest.cc | 33 typedef std::vector<char> Buffer; 51 bool HandleAddressMessage(const Buffer& buf) { 52 Buffer writable_buf = buf; 62 bool HandleLinkMessage(const Buffer& buf) { 63 Buffer writable_buf = buf; 73 bool HandleTunnelMessage(const Buffer& buf) { 74 Buffer writable_buf = buf; 122 void AppendTo(Buffer* output) const { 145 Buffer buffer_; 156 Buffer* output) 208 Buffer buffer; local 241 Buffer buffer; local 276 Buffer buffer; local 299 Buffer buffer; local 334 Buffer buffer; local 377 Buffer buffer; local 405 Buffer buffer; local 447 Buffer buffer; local 479 Buffer buffer; local 533 Buffer buffer; local [all...] |
test_data_stream.cc | 13 // Fill |buffer| with |length| bytes of data from the stream. 14 void TestDataStream::GetBytes(char* buffer, int length) { 18 memcpy(buffer, buffer_ptr_, bytes_to_copy); 19 buffer += bytes_to_copy; 25 bool TestDataStream::VerifyBytes(const char *buffer, int length) { 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/third_party/skia/src/effects/ |
SkBitmapSource.cpp | 30 SkBitmapSource::SkBitmapSource(SkReadBuffer& buffer) : INHERITED(0, buffer) { 31 if (buffer.isVersionLT(SkReadBuffer::kNoMoreBitmapFlatten_Version)) { 32 fBitmap.legacyUnflatten(buffer); 34 buffer.readBitmap(&fBitmap); 36 buffer.readRect(&fSrcRect); 37 buffer.readRect(&fDstRect); 38 buffer.validate(buffer.isValid() && SkIsValidRect(fSrcRect) && SkIsValidRect(fDstRect)); 42 SkFlattenable* SkBitmapSource::CreateProc(SkReadBuffer& buffer) { [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
dynamic_pt_writing_utils.cpp | 39 BufferWithExtendableBuffer *const buffer, const int rootPos) { 41 if (!writePtNodeArraySizeAndAdvancePosition(buffer, 0 /* arraySize */, &writingPos)) { 44 return writeForwardLinkPositionAndAdvancePosition(buffer, NOT_A_DICT_POS /* forwardLinkPos */, 49 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos, 51 return writeDictOffset(buffer, forwardLinkPos, (*forwardLinkFieldPos), forwardLinkFieldPos); 55 BufferWithExtendableBuffer *const buffer, const size_t arraySize, 61 return buffer->writeUintAndAdvancePosition(arraySize, SMALL_PTNODE_ARRAY_SIZE_FIELD_SIZE, 66 return buffer->writeUintAndAdvancePosition(data, LARGE_PTNODE_ARRAY_SIZE_FIELD_SIZE, 77 BufferWithExtendableBuffer *const buffer, 79 return buffer->writeUintAndAdvancePosition(nodeFlags, NODE_FLAG_FIELD_SIZE, nodeFlagsFieldPos) [all...] |
/external/apache-http/src/org/apache/http/message/ |
BasicHeaderValueParser.java | 110 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 111 buffer.append(value); 113 return parser.parseElements(buffer, cursor); 118 public HeaderElement[] parseElements(final CharArrayBuffer buffer, 121 if (buffer == null) { 122 throw new IllegalArgumentException("Char array buffer may not be null"); 130 HeaderElement element = parseHeaderElement(buffer, cursor); 161 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 162 buffer.append(value); 164 return parser.parseHeaderElement(buffer, cursor) 226 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 296 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local [all...] |
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
rtcp_packet.cc | 60 void AssignUWord8(uint8_t* buffer, size_t* offset, uint8_t value) { 61 buffer[(*offset)++] = value; 63 void AssignUWord16(uint8_t* buffer, size_t* offset, uint16_t value) { 64 RtpUtility::AssignUWord16ToBuffer(buffer + *offset, value); 67 void AssignUWord24(uint8_t* buffer, size_t* offset, uint32_t value) { 68 RtpUtility::AssignUWord24ToBuffer(buffer + *offset, value); 71 void AssignUWord32(uint8_t* buffer, size_t* offset, uint32_t value) { 72 RtpUtility::AssignUWord32ToBuffer(buffer + *offset, value); 113 uint8_t* buffer, 117 AssignUWord8(buffer, pos, (kVersion << 6) + count_or_format) [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
buffer_manager_unittest.cc | 43 GLenum GetTarget(const Buffer* buffer) const { 44 return buffer->target(); 48 Buffer* buffer, GLsizeiptr size, GLenum usage, const GLvoid* data, 52 buffer, size, usage, data, error); 56 Buffer* buffer, GLintptr offset, GLsizeiptr size, 59 if (!buffer->CheckRange(offset, size)) { 64 } else if (!buffer->IsClientSideArray()) 195 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 217 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 243 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 279 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 318 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 357 scoped_refptr<Buffer> buffer = manager_->GetBuffer(kClientBufferId); local 377 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local 394 Buffer* buffer = manager_->GetBuffer(kClientBufferId); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_pipe_draw.c | 73 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { 74 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 76 pipe_resource_reference(&buffer->uploaded.buffer, NULL); 77 buffer->uploaded.start = ~0; 78 buffer->uploaded.end = 0; 86 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { 87 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 133 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 195 struct svga_buffer *buffer = svga_buffer(vb->buffer); local [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_draw.c | 73 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { 74 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 76 pipe_resource_reference(&buffer->uploaded.buffer, NULL); 77 buffer->uploaded.start = ~0; 78 buffer->uploaded.end = 0; 86 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { 87 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 133 struct svga_buffer *buffer = svga_buffer(vb->buffer); local 195 struct svga_buffer *buffer = svga_buffer(vb->buffer); local [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexAnnotationAttributeImpl.java | 29 private DexBuffer buffer; field in class:DexAnnotationAttributeImpl 34 public DexAnnotationAttributeImpl(DexBuffer buffer, 37 this.buffer = buffer; 46 nameIdx = buffer.readUleb128(); 47 value = new DexEncodedValueImpl(buffer, annotation, typeIds,
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Streams.java | 37 byte[] buffer = new byte[1024]; 40 while ((count = source.read(buffer)) != -1) { 41 out.write(buffer, 0, count); 50 char[] buffer = new char[1024]; local 53 while ((count = fileReader.read(buffer)) != -1) { 54 out.write(buffer, 0, count);
|
/external/apache-http/src/org/apache/http/impl/ |
DefaultHttpClientConnection.java | 81 StringBuffer buffer = new StringBuffer(); local 82 buffer.append("["); 84 buffer.append(getRemotePort()); 86 buffer.append("closed"); 88 buffer.append("]"); 89 return buffer.toString();
|
DefaultHttpServerConnection.java | 79 StringBuffer buffer = new StringBuffer(); local 80 buffer.append("["); 82 buffer.append(getRemotePort()); 84 buffer.append("closed"); 86 buffer.append("]"); 87 return buffer.toString();
|
/external/chromium_org/content/browser/device_sensors/ |
data_fetcher_shared_memory_mac.cc | 16 content::DeviceMotionHardwareBuffer* buffer) { 17 DCHECK(buffer); 23 buffer->seqlock.WriteBegin(); 24 buffer->data.accelerationIncludingGravityX = axis_value[0] * kMeanGravity; 25 buffer->data.hasAccelerationIncludingGravityX = true; 26 buffer->data.accelerationIncludingGravityY = axis_value[1] * kMeanGravity; 27 buffer->data.hasAccelerationIncludingGravityY = true; 28 buffer->data.accelerationIncludingGravityZ = axis_value[2] * kMeanGravity; 29 buffer->data.hasAccelerationIncludingGravityZ = true; 30 buffer->data.allAvailableSensorsAreActive = true [all...] |
/external/chromium_org/third_party/icu/source/common/ |
charstr.cpp | 25 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); 35 buffer[len=newLength]=0; 42 buffer[len++]=c; 43 buffer[len]=0; 60 if(s==(buffer.getAlias()+len)) { 62 if(sLength>=(buffer.getCapacity()-len)) { 66 buffer[len+=sLength]=0; 68 } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) & [all...] |
/external/chromium_org/third_party/skia/src/gpu/gl/debug/ |
GrFrameBufferObj.cpp | 12 void GrFrameBufferObj::setColor(GrFBBindableObj *buffer) { 14 // automatically break the binding of the old buffer 21 fColorBuffer = buffer; 31 void GrFrameBufferObj::setDepth(GrFBBindableObj *buffer) { 33 // automatically break the binding of the old buffer 40 fDepthBuffer = buffer; 50 void GrFrameBufferObj::setStencil(GrFBBindableObj *buffer) { 52 // automatically break the binding of the old buffer 59 fStencilBuffer = buffer;
|
/external/chromium_org/v8/test/cctest/ |
test-fuzz-arm64.cc | 43 Instruction buffer[kInstructionSize]; local 47 buffer->SetInstructionBits(instr); 48 decoder.Decode(buffer); 63 Instruction buffer[kInstructionSize]; local 68 buffer->SetInstructionBits(instr); 69 decoder.Decode(buffer);
|
/external/icu/icu4c/source/common/ |
charstr.cpp | 25 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); 35 buffer[len=newLength]=0; 42 buffer[len++]=c; 43 buffer[len]=0; 60 if(s==(buffer.getAlias()+len)) { 62 if(sLength>=(buffer.getCapacity()-len)) { 66 buffer[len+=sLength]=0; 68 } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) & [all...] |
/external/libpng/contrib/examples/ |
pngtopng.c | 38 png_bytep buffer; local 45 buffer = malloc(PNG_IMAGE_SIZE(image)); 47 if (buffer != NULL) 49 if (png_image_finish_read(&image, NULL/*background*/, buffer, 53 0/*convert_to_8bit*/, buffer, 0/*row_stride*/, 61 free(buffer);
|