/frameworks/base/core/java/com/android/internal/util/ |
MemInfoReader.java | 30 private boolean matchText(byte[] buffer, int index, String text) { 32 if ((index+N) >= buffer.length) { 36 if (buffer[index+i] != text.charAt(i)) { 43 private long extractMemValue(byte[] buffer, int index) { 44 while (index < buffer.length && buffer[index] != '\n') { 45 if (buffer[index] >= '0' && buffer[index] <= '9') { 48 while (index < buffer.length && buffer[index] >= '0 [all...] |
/frameworks/compile/libbcc/bcinfo/Wrap/ |
file_wrapper_output.cpp | 38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { 39 if (!buffer) { 44 return buffer_size == fwrite(buffer, 1, buffer_size, _file);
|
/system/core/include/sysutils/ |
NetlinkEvent.h | 41 bool decode(char *buffer, int size, int format = NetlinkListener::NETLINK_FORMAT_ASCII); 50 bool parseBinaryNetlinkMessage(char *buffer, int size); 51 bool parseAsciiNetlinkMessage(char *buffer, int size);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
RawResourceTest.java | 44 final byte[] buffer = new byte[10]; 48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 52 + " but found " + ((char) buffer[i]), 53 buffer[i], expectedString.charAt(curIndex)); 58 readCount = is.read(buffer, 0, buffer.length); 59 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 62 readCount = is.read(buffer, buffer.length, 0) [all...] |
/dalvik/dx/src/com/android/dx/io/ |
MethodId.java | 22 private final DexBuffer buffer; field in class:MethodId 27 public MethodId(DexBuffer buffer, int declaringClassIndex, int protoIndex, int nameIndex) { 28 this.buffer = buffer; 63 if (buffer == null) { 66 return buffer.typeNames().get(declaringClassIndex) 67 + "." + buffer.strings().get(nameIndex) 68 + buffer.readTypeList(buffer.protoIds().get(protoIndex).getParametersOffset());
|
/external/apache-http/src/org/apache/http/cookie/ |
CookieOrigin.java | 95 StringBuilder buffer = new StringBuilder(); local 96 buffer.append('['); 98 buffer.append("(secure)"); 100 buffer.append(this.host); 101 buffer.append(':'); 102 buffer.append(Integer.toString(this.port)); 103 buffer.append(this.path); 104 buffer.append(']'); 105 return buffer.toString();
|
/external/apache-http/src/org/apache/http/impl/conn/ |
Wire.java | 55 StringBuilder buffer = new StringBuilder(); local 59 buffer.append("[\\r]"); 61 buffer.append("[\\n]\""); 62 buffer.insert(0, "\""); 63 buffer.insert(0, header); 64 log.debug(buffer.toString()); 65 buffer.setLength(0); 67 buffer.append("[0x"); 68 buffer.append(Integer.toHexString(ch)); 69 buffer.append("]") [all...] |
/external/apache-http/src/org/apache/http/message/ |
HeaderValueFormatter.java | 47 * All formatting methods accept an optional buffer argument. 48 * If a buffer is passed in, the formatted element will be appended 49 * and the modified buffer is returned. If no buffer is passed in, 50 * a new buffer will be created and filled with the formatted element. 51 * In both cases, the caller is allowed to modify the returned buffer. 65 * @param buffer the buffer to append to, or 66 * <code>null</code> to create a new buffer 71 * @return a buffer with the formatted header elements [all...] |
HeaderValueParser.java | 83 * @param buffer buffer holding the header value to parse 85 * the bounds within the buffer for the parsing operation 92 CharArrayBuffer buffer, 100 * @param buffer buffer holding the element to parse 102 * the bounds within the buffer for the parsing operation 109 CharArrayBuffer buffer, 186 * @param buffer buffer holding the name-value list to pars [all...] |
LineFormatter.java | 54 * a buffer can be passed as argument to all formatting methods. 55 * The implementation may or may not actually use that buffer for formatting. 56 * If it is used, the buffer will first be cleared by the 58 * The argument buffer can always be re-used after the call. The buffer 59 * returned as the result, if it is different from the argument buffer, 79 * <code>buffer</code> arguments. 80 * It does <i>not</i> clear the argument buffer, but appends instead. 81 * The returned buffer can always be modified by the caller. 85 * @param buffer a buffer to which to append, or <code>null</code [all...] |
/external/chromium/net/websockets/ |
websocket_frame_handler.cc | 24 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(length); local 25 memcpy(buffer->data(), data, length); 26 pending_buffers_.push_back(buffer); 37 scoped_refptr<IOBufferWithSize> buffer = pending_buffers_.front(); 43 ParseWebSocketFrame(buffer->data(), buffer->size(), &frame_info); 51 original_current_buffer_size_ = buffer->size(); 52 buffer_size = buffer->size(); 55 current_buffer_ = buffer; 74 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(buffer_size) local [all...] |
/external/easymock/src/org/easymock/internal/matchers/ |
Same.java | 37 public void appendTo(StringBuffer buffer) {
38 buffer.append("same(");
39 ArgumentToString.appendArgument(expected, buffer);
40 buffer.append(")");
|
/external/harfbuzz/contrib/ |
harfbuzz-freetype.h | 7 HB_Byte *buffer, HB_UInt *len);
|
/external/icu4c/tools/genrb/ |
rbutil.c | 66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) 83 buffer[length++]= digits[digit]; 88 buffer[length++] = '0';/*zero padding */ 93 buffer[length++]='-'; 96 /* null terminate the buffer */ 98 buffer[length] = 0x0000; 106 temp = buffer[(length-1) - j]; 107 buffer[(length-1) - j] = buffer[j]; 108 buffer[j] = temp [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/output/ |
OutputBufferProvider.java | 20 * Simple Provider interface for the output buffer. 25 * Returns a clean Appendable buffer ready to use while rendering. 30 * Tells the provider that this buffer is free to be reused. 32 * @param buffer the Appendable object handed out by {@link #get} 34 void release(Appendable buffer);
|
/external/jsilver/src/com/google/streamhtmlparser/util/ |
JavascriptTokenBuffer.java | 24 * Implements a circular (ring) buffer of characters with specialized 34 * the buffer. Changing the API would mean changing the test 40 * <li> The buffer size is fixed. There is currently no need to 47 * Size of the ring buffer used to lookup the last token in the javascript 50 * an empty ring buffer slot. 54 /** Storage implementing the circular buffer. */ 55 private final char[] buffer; field in class:JavascriptTokenBuffer 57 /** Index of the first item in our circular buffer. */ 60 /** Index of the last item in our circular buffer. */ 64 * Constructs an empty javascript token buffer. The size is fixed [all...] |
/external/mdnsresponder/mDNSShared/ |
dnssd_ipc.c | 35 static char buffer[1024]; local 37 memset(buffer, 0, sizeof(buffer)); 43 buffer, 44 sizeof(buffer), 49 while ((n > 0) && isspace(((unsigned char *) buffer)[n - 1])) 50 buffer[--n] = '\0'; 52 return buffer; 111 int get_string(const char **ptr, const char *const end, char *buffer, int buflen) 115 *buffer = 0 [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
UUIDConverter.java | 30 byte[] buffer = new byte[16]; 33 buffer[i] = (byte) (msb >>> 8 * (7 - i)); 36 buffer[i] = (byte) (lsb >>> 8 * (7 - i)); 39 return buffer;
|
/external/openssl/crypto/rc4/ |
rc4s.cpp | 39 unsigned char buffer[1024]; local 59 RC4(&ctx,numm,buffer,buffer); 61 RC4(&ctx,numm,buffer,buffer); 64 RC4(&ctx,num,buffer,buffer); 66 RC4(&ctx,num,buffer,buffer);
|
/external/skia/legacy/include/effects/ |
SkBlurImageFilter.h | 20 static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) { 21 return SkNEW_ARGS(SkBlurImageFilter, (buffer)); 27 explicit SkBlurImageFilter(SkFlattenableReadBuffer& buffer); 31 virtual void flatten(SkFlattenableWriteBuffer& buffer) SK_OVERRIDE;
|
SkTransparentShader.h | 35 SkTransparentShader(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 37 static SkFlattenable* Create(SkFlattenableReadBuffer& buffer) { 38 return SkNEW_ARGS(SkTransparentShader, (buffer));
|
/external/v8/src/ |
dtoa.cc | 57 Vector<char> buffer, int* sign, int* length, int* point) { 69 buffer[0] = '0'; 70 buffer[1] = '\0'; 77 buffer[0] = '\0'; 85 fast_worked = FastDtoa(v, FAST_DTOA_SHORTEST, 0, buffer, length, point); 88 fast_worked = FastFixedDtoa(v, requested_digits, buffer, length, point); 92 buffer, length, point); 102 BignumDtoa(v, bignum_mode, requested_digits, buffer, length, point); 103 buffer[*length] = '\0';
|
fixed-dtoa.h | 36 // The buffer must be big enough to hold the result plus one terminating null 41 // Example: FastFixedDtoa(0.001, 5, ...) is allowed to return buffer = "1", and 44 // FastFixedDtoa(0.15, 2, ...) thus returns buffer = "2", decimal_point = 0. 45 // The returned buffer may contain digits that would be truncated from the 51 Vector<char> buffer, int* length, int* decimal_point);
|
/external/webkit/Source/WebCore/bindings/js/ |
JSArrayBufferCustom.cpp | 44 RefPtr<ArrayBuffer> buffer; local 46 buffer = ArrayBuffer::create(static_cast<unsigned>(length), 1); 47 if (!buffer.get()) 49 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), buffer.get())));
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
ImageBufferDataAndroid.h | 36 SkCanvas* imageBufferCanvas(const ImageBuffer* buffer);
|