/external/skia/src/ports/ |
SkDebug_brew.cpp | 20 char buffer[kBufferSize + 1]; local 23 VSNPRINTF(buffer, kBufferSize, format, args); 25 DBGPRINTF(buffer);
|
SkDebug_stdio.cpp | 18 char buffer[kBufferSize + 1]; local 21 vsnprintf(buffer, kBufferSize, format, args); 23 fprintf(stderr, "%s", buffer);
|
/external/webkit/Source/WebCore/platform/graphics/freetype/ |
FontCustomPlatformDataFreeType.cpp | 38 FontCustomPlatformData::FontCustomPlatformData(FT_Face freeTypeFace, SharedBuffer* buffer) 44 buffer->ref(); // This is balanced by the buffer->deref() in releaseCustomFontData. 46 cairo_font_face_set_user_data(m_fontFace, &bufferKey, buffer, 67 FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer) 69 ASSERT_ARG(buffer, buffer); 72 if (isWOFF(buffer)) { 74 if (!convertWOFFToSfnt(buffer, sfnt)) 78 buffer = sfntBuffer.get() [all...] |
/frameworks/native/include/utils/ |
Flattenable.h | 29 * to a byte-buffer and an array of file descriptors. 41 // flattens the object into buffer. 46 virtual status_t flatten(void* buffer, size_t size, 49 // unflattens the object from buffer. 56 virtual status_t unflatten(void const* buffer, size_t size, 66 * to a byte-buffer. 82 // flattens the object into buffer. 83 inline status_t flatten(void* buffer) const; 85 // unflattens the object from buffer of given size. 86 inline status_t unflatten(void const* buffer, size_t size) [all...] |
/external/apache-http/src/org/apache/http/message/ |
BasicLineParser.java | 120 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 121 buffer.append(value); 123 return parser.parseProtocolVersion(buffer, cursor); 128 public ProtocolVersion parseProtocolVersion(final CharArrayBuffer buffer, 132 if (buffer == null) { 133 throw new IllegalArgumentException("Char array buffer may not be null"); 145 skipWhitespace(buffer, cursor); 153 buffer.substring(indexFrom, indexTo)); 159 ok = (buffer.charAt(i+j) == protoname.charAt(j)); 162 ok = (buffer.charAt(i+protolength) == '/') 285 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 385 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local 476 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local [all...] |
/external/openssh/ |
bufbn.c | 50 #include "buffer.h" 55 * Stores an BIGNUM in the buffer with a 2-byte msb first bit count, followed 59 buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) 76 /* Store the number of bits in the buffer in two bytes, msb first. */ 78 buffer_append(buffer, msg, 2); 80 buffer_append(buffer, buf, oi); 89 buffer_put_bignum(Buffer *buffer, const BIGNUM *value) 91 if (buffer_put_bignum_ret(buffer, value) == -1 [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
SHA1_MessageDigestImpl.java | 35 private int[] buffer; // buffer has the following structure: field in class:SHA1_MessageDigestImpl 42 private byte[] oneByte; // one byte buffer needed to use in engineUpdate(byte) 43 // having buffer as private field is just optimization 54 buffer = new int[BYTES_OFFSET +6]; 86 lastWord = (buffer[BYTES_OFFSET] + 3)>>2 ; // computing of # of full words by shifting 91 // - buffer[BYTES_OFFSET] == 0 - buffer frame is empty, 102 if ( buffer[BYTES_OFFSET] != 0 ) { 108 buffer[15] = 0; // last word in frame is set to "0 [all...] |
/external/apache-http/src/org/apache/http/util/ |
CharArrayBuffer.java | 47 private char[] buffer; field in class:CharArrayBuffer 53 throw new IllegalArgumentException("Buffer capacity may not be negative"); 55 this.buffer = new char[capacity]; 59 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)]; 60 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); 61 this.buffer = newbuffer; 76 if (newlen > this.buffer.length) { 79 System.arraycopy(b, off, this.buffer, this.len, len); 89 if (newlen > this.buffer.length) { 92 str.getChars(0, strlen, this.buffer, this.len) 172 public char[] buffer() { method in class:CharArrayBuffer [all...] |
/external/e2fsprogs/ext2ed/ |
blockbitmap_com.c | 43 char *ptr,buffer [80]; local 47 ptr=parse_word (command_line,buffer); /* Get the requested entry */ 52 ptr=parse_word (ptr,buffer); 54 entry_num=atol (buffer); 66 strcpy (buffer,"show");dispatch (buffer); /* dispatch a show command */ 79 char *ptr,buffer [80]; local 81 ptr=parse_word (command_line,buffer); 83 ptr=parse_word (ptr,buffer); 84 entry_offset=atol (buffer); 95 char *ptr,buffer [80]; local 119 char *ptr,buffer [80]; local 148 char *ptr,buffer [80]; local [all...] |
inodebitmap_com.c | 30 char *ptr,buffer [80]; local 32 ptr=parse_word (command_line,buffer); 36 ptr=parse_word (ptr,buffer); 38 entry_num=atol (buffer); 45 strcpy (buffer,"show");dispatch (buffer); 52 char *ptr,buffer [80]; local 54 ptr=parse_word (command_line,buffer); 56 ptr=parse_word (ptr,buffer); 57 entry_offset=atol (buffer); 68 char *ptr,buffer [80]; local 84 char *ptr,buffer [80]; local 110 char *ptr,buffer [80]; local [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
stringencode.cc | 63 size_t escape(char * buffer, size_t buflen, 66 ASSERT(NULL != buffer); // TODO: estimate output size 76 buffer[bufpos++] = escape; 78 buffer[bufpos++] = ch; 81 buffer[bufpos] = '\0'; 85 size_t unescape(char * buffer, size_t buflen, 88 ASSERT(NULL != buffer); // TODO: estimate output size 98 buffer[bufpos++] = ch; 100 buffer[bufpos] = '\0'; 104 size_t encode(char * buffer, size_t buflen [all...] |
/external/valgrind/main/none/tests/s390x/ |
srst.c | 2 char buffer[24] ="0123456789abcdefghijklmn"; variable 52 buf = srst3(&buffer[23], &buffer[23], '0', &cc); 56 buf = srst3(&buffer[23], &buffer[0], '0', &cc); 60 buf = srst3(&buffer[23], &buffer[0], 'a', &cc); 64 buf = srst3(&buffer[23], &buffer[0], 'm', &cc); 68 buf = srst3(&buffer[23], &buffer[0], 'n', &cc) [all...] |
/external/icu4c/tools/genrb/ |
rle.c | 39 appendEncodedByte(uint16_t* buffer, uint16_t* buffLimit, uint8_t value, uint8_t state[],UErrorCode* status) { 45 if(buffer < buffLimit){ 46 *buffer++ = c; 51 return buffer; 56 return buffer; 64 encodeRunByte(uint16_t* buffer,uint16_t* bufLimit, uint8_t value, int32_t length, uint8_t state[], UErrorCode* status) { 72 buffer = appendEncodedByte(buffer,bufLimit, ESCAPE_BYTE, state,status); 74 buffer = appendEncodedByte(buffer,bufLimit, value, state, status) [all...] |
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
ASCCharsetDecoderTest.java | 48 // ByteBuffer buffer = ByteBuffer.allocate(8); 49 // buffer.put((byte)-1); 50 // buffer.put(unibytes); 51 // buffer.flip(); 52 // return buffer; 58 ByteBuffer buffer = ByteBuffer.allocate(8); local 59 buffer.put((byte) -1); 60 buffer.put(getByteBuffer()); 61 buffer.flip(); 62 return buffer; [all...] |
GBCharsetDecoderTest.java | 53 ByteBuffer buffer = ByteBuffer.allocate(20); local 54 buffer.put(new byte[] { (byte) 0xd8 }); 55 buffer.put(getByteBuffer()); 56 buffer.flip(); 57 return buffer;
|
/external/chromium/chrome/browser/sync/util/ |
crypto_helpers_unittest.cc | 9 uint8 buffer[256]; local 10 for (unsigned int i = 0; i < arraysize(buffer); ++i) { 11 buffer[i] = i; 14 md5.AddData(buffer, arraysize(buffer));
|
/external/clang/test/SemaCXX/ |
array-bounds-ptr-arith.cpp | 27 char buffer[5]; // expected-note 2 {{declared here}} local 29 swallow(buffer + sizeof("Hello")-1); // expected-warning {{refers past the end of the array}} 30 swallow(buffer + (sizeof("Hello")-1)); // no-warning 31 if (n > 0 && n <= 6) swallow(buffer + 6 - n); // expected-warning {{refers past the end of the array}} 32 if (n > 0 && n <= 6) swallow(buffer + (6 - n)); // no-warning
|
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8ArrayBufferCustom.cpp | 49 // e.g. from the call to ArrayBufferView.buffer, this code is called 60 // -- create an empty buffer of n bytes 66 RefPtr<ArrayBuffer> buffer; local 68 buffer = ArrayBuffer::create(static_cast<unsigned>(length), 1); 69 if (!buffer.get()) 72 V8DOMWrapper::setDOMWrapper(args.Holder(), &info, buffer.get()); 73 return toV8(buffer.release(), args.Holder());
|
/external/webkit/Source/WebCore/platform/graphics/efl/ |
ImageEfl.cpp | 55 RefPtr<SharedBuffer> buffer = SharedBuffer::createWithContentsOfFile(makeString(DATA_DIR "/webkit-1.0/images/", name, ".png")); local 56 if (buffer) 57 return buffer.release(); 64 RefPtr<SharedBuffer> buffer = loadResourceSharedBuffer(name); local 65 img->setData(buffer.release(), true);
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
in_memory_wrapper_input.cpp | 22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : 23 _buffer(buffer), _pos(0), _size(size) { 29 size_t InMemoryWrapperInput::Read(uint8_t* buffer, size_t wanted) { 32 if (!buffer) { 40 buffer[found++] = _buffer[_pos++];
|
/system/bluetooth/brfpatch/ |
brfpatch.c | 77 static void process_line(FILE *file_out, char *buf, char *buffer) { 78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer); 83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); local 85 "Could not find opcode in: %s\n", buffer); 97 "Too much data: %s\n", buffer); 99 "Error parsing (%d): %s\n", __LINE__, buffer); 108 FAILIF(*buf != 'x', "Error parsing: %s\n", buffer); 120 "Error parsing (%d): %s\n", __LINE__, buffer); 126 "Error parsing (%d): %s\n", __LINE__, buffer); 132 "Error parsing (%d): %s\n", __LINE__, buffer); 177 char buffer[1024]; local [all...] |
/external/v8/test/cctest/ |
test-fast-dtoa.cc | 33 Vector<char> buffer(buffer_container, kBufferSize); 40 buffer, &length, &point); 42 CHECK_EQ("5", buffer.start()); 47 buffer, &length, &point); 49 CHECK_EQ("17976931348623157", buffer.start()); 53 buffer, &length, &point); 55 CHECK_EQ("4294967272", buffer.start()); 59 buffer, &length, &point); 61 CHECK_EQ("4185580496821357", buffer.start()); 65 buffer, &length, &point) [all...] |
/external/apache-http/src/org/apache/http/entity/ |
BufferedHttpEntity.java | 47 * buffer once and provided from there as often as required. 57 private final byte[] buffer; field in class:BufferedHttpEntity 62 this.buffer = EntityUtils.toByteArray(entity); 64 this.buffer = null; 69 if (this.buffer != null) { 70 return this.buffer.length; 77 if (this.buffer != null) { 78 return new ByteArrayInputStream(this.buffer); 90 return (buffer == null) && wrappedEntity.isChunked(); 107 if (this.buffer != null) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 29 for (ByteBuffer buffer : samples) { 31 if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() == nuSamples.get(lastIndex).array() && 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 34 ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffer.limit()).slice(); 38 buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && 39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { 42 oldBuffer.limit(buffer.limit() + oldBuffer.limit()); 44 buffer.rewind() [all...] |
/libcore/luni/src/main/java/libcore/io/ |
HeapBufferIterator.java | 28 private final byte[] buffer; field in class:HeapBufferIterator 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { 36 this.buffer = buffer; 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 56 byte result = buffer[offset + position]; 62 int result = Memory.peekInt(buffer, offset + position, order); 69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needsSwap); 74 short result = Memory.peekShort(buffer, offset + position, order); 80 * Returns a new iterator over {@code buffer}, starting at {@code offset} and continuing fo [all...] |