/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...] |
/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/third_party/icu/source/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/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/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/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/webkit/WebCore/platform/graphics/chromium/ |
HarfbuzzSkia.h | 40 HB_Error harfbuzzSkiaGetTable(void* voidface, const HB_Tag, HB_Byte* buffer, HB_UInt* len);
|
/external/webkit/WebCore/platform/graphics/wx/ |
GlyphMapWx.cpp | 38 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 46 UChar lead = buffer[i * 2]; 47 UChar trail = buffer[i * 2 + 1]; 50 character = buffer[i];
|
/frameworks/base/cmds/bugreport/ |
bugreport.c | 25 char buffer[65536]; local 48 int length = read(s, buffer, sizeof(buffer)); 51 fwrite(buffer, 1, length, stdout);
|
/frameworks/base/core/java/android/text/method/ |
LinkMovementMethod.java | 37 public boolean onKeyDown(TextView widget, Spannable buffer, 43 if (action(CLICK, widget, buffer)) { 49 return super.onKeyDown(widget, buffer, keyCode, event); 53 protected boolean up(TextView widget, Spannable buffer) { 54 if (action(UP, widget, buffer)) { 58 return super.up(widget, buffer); 62 protected boolean down(TextView widget, Spannable buffer) { 63 if (action(DOWN, widget, buffer)) { 67 return super.down(widget, buffer); 71 protected boolean left(TextView widget, Spannable buffer) { [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
AssetTest.java | 37 byte[] buffer = new byte[10]; 41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 45 + " but found " + ((char) buffer[i]), 46 buffer[i], expectedString.charAt(curIndex)); 51 readCount = is.read(buffer, 0, buffer.length); 52 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 55 readCount = is.read(buffer, buffer.length, 0) [all...] |
/frameworks/base/libs/gui/ |
Sensor.cpp | 107 size_t write(void* buffer, size_t offset, const String8& value) { 108 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length()); 113 size_t write(void* buffer, size_t offset, float value) { 114 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value; 119 size_t write(void* buffer, size_t offset, int32_t value) { 120 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value; 124 status_t Sensor::flatten(void* buffer, size_t size, 131 offset += write(buffer, offset, int32_t(mName.length())); 132 offset += write(buffer, offset, mName); 133 offset += write(buffer, offset, int32_t(mVendor.length())) [all...] |
/frameworks/base/services/camera/libcameraservice/ |
FakeCamera.h | 43 void getNextFrameAsYuv420(uint8_t *buffer); 48 // TODO: remove the uint16_t buffer param everywhere since it is a field of 50 void getNextFrameAsRgb565(uint16_t *buffer); 52 void drawSquare(uint16_t *buffer, int x, int y, int size, int color, int shadow); 53 void drawCheckerboard(uint16_t *buffer, int size);
|
/libcore/luni/src/main/java/java/io/ |
StringBufferInputStream.java | 31 protected String buffer; field in class:StringBufferInputStream 57 buffer = str; 76 return pos < count ? buffer.charAt(pos++) & 0xFF : -1; 83 * @param buffer 100 public synchronized int read(byte[] buffer, int offset, int length) { 109 if (buffer == null) { 110 throw new NullPointerException("buffer == null"); 113 if (offset < 0 || offset > buffer.length) { 116 if (length < 0 || length > buffer.length - offset) { 126 buffer[offset + i] = (byte) this.buffer.charAt(pos + i) [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
FileLock.java | 198 StringBuilder buffer = new StringBuilder(64); // Guess length of string local 199 buffer.append("FileLock: [position="); 200 buffer.append(position); 201 buffer.append(", size="); 202 buffer.append(size); 203 buffer.append(", shared="); 204 buffer.append(Boolean.toString(shared)); 205 buffer.append("]"); 206 return buffer.toString();
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
AbstractHttpOutputStream.java | 35 protected final void checkBounds(byte[] buffer, int offset, int count) { 36 if (offset < 0|| offset > buffer.length || count < 0 || buffer.length - offset < count) { 38 "offset=" + offset + ", buffer.length=" + buffer.length + ", count=" + count);
|
/system/vold/ |
Devmapper.cpp | 39 char *buffer = (char *) malloc(1024 * 64); local 40 if (!buffer) { 44 memset(buffer, 0, (1024 * 64)); 49 free(buffer); 56 free(buffer); 61 struct dm_ioctl *io = (struct dm_ioctl *) buffer; 66 free(buffer); 72 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); 74 free(buffer); 107 free(buffer); 128 char *buffer = (char *) malloc(4096); local 162 char *buffer = (char *) malloc(4096); local 257 char *buffer = (char *) malloc(4096); local [all...] |
/frameworks/base/tools/aidl/ |
aidl_language_y.y | 44 IMPORT { g_callbacks->import(&($1.buffer)); } 45 | IMPORT imports { g_callbacks->import(&($1.buffer)); } 69 $2.buffer.lineno, $2.buffer.data); 84 b->parcelable_token = $1.buffer; 85 b->name = $2.buffer; 87 b->semicolon_token = $3.buffer; 92 g_currentFilename, $1.buffer.lineno); 97 g_currentFilename, $2.buffer.lineno, $2.buffer.data) [all...] |
/external/icu4c/samples/ustring/ |
ustring.cpp | 151 UChar buffer[32]; local 156 buffer[0]=0; /* empty, NUL-terminated string */ 157 u_strncat(buffer, text, 1); /* append just n=1 character ('A') */ 158 u_strcat(buffer, appendText); /* buffer=="Aabc" */ 159 length=u_strlen(buffer); /* length=4 */ 160 printUString("should be \"Aabc\": ", buffer, -1); 162 /* bitwise comparing buffer with text */ 163 compare=u_strcmp(buffer, text); 168 /* Build "A<sharp s>C" in the buffer... * 196 UChar buffer[32]; local 567 UChar buffer[200]; local [all...] |
/libcore/luni/src/main/java/javax/xml/parsers/ |
FilePathToURI.java | 64 StringBuilder buffer = new StringBuilder(len*3); local 65 buffer.append("file://"); 70 buffer.append('/'); 82 buffer.append('%'); 83 buffer.append(gAfterEscaping1[ch]); 84 buffer.append(gAfterEscaping2[ch]); 88 buffer.append((char)ch); 111 buffer.append('%'); 112 buffer.append(gHexChs[ch >> 4]); 113 buffer.append(gHexChs[ch & 0xf]) [all...] |
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
FilePathToURI.java | 64 StringBuilder buffer = new StringBuilder(len*3); local 65 buffer.append("file://"); 70 buffer.append('/'); 82 buffer.append('%'); 83 buffer.append(gAfterEscaping1[ch]); 84 buffer.append(gAfterEscaping2[ch]); 88 buffer.append((char)ch); 111 buffer.append('%'); 112 buffer.append(gHexChs[ch >> 4]); 113 buffer.append(gHexChs[ch & 0xf]) [all...] |