/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionInputBuffer.java | 56 private byte[] buffer; field in class:AbstractSessionInputBuffer 73 throw new IllegalArgumentException("Buffer size may not be negative or zero"); 79 this.buffer = new byte[buffersize]; 91 // compact the buffer if necessary 95 System.arraycopy(this.buffer, this.bufferpos, this.buffer, 0, len); 102 int len = this.buffer.length - off; 103 l = this.instream.read(this.buffer, off, len); 125 return this.buffer[this.bufferpos++] & 0xff; 143 System.arraycopy(this.buffer, this.bufferpos, b, off, chunk) [all...] |
/external/freetype/src/psaux/ |
psconv.c | 241 FT_Byte* buffer, 255 buffer[r++] = *p; 308 buffer[r++] = b; 314 buffer[r++] = b; 323 buffer[r++] = b; 336 FT_Byte* buffer, 376 buffer[w++] = (FT_Byte)pad; 382 buffer[w++] = (FT_Byte)( pad << 4 ); 408 *buffer = (FT_Byte)(*buffer + c) [all...] |
/external/libsepol/src/ |
genusers.c | 31 buffer, path, lineno); \ 38 char *buffer = NULL, *p, *q, oldc; local 51 if ((buffer = (char *)malloc(255 * sizeof(char))) == NULL) { 56 while(fgets(buffer, 255, fp) != NULL) { 59 while ((nread = getline(&buffer, &len, fp)) > 0) { 63 if (buffer[nread - 1] == '\n') 64 buffer[nread - 1] = 0; 65 p = buffer; 96 free(buffer); 106 free(buffer); [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 98 unsigned char *bpfBuffer; /* Packet filter buffer */ 99 int bpfLength = 0; /* Packet filter buffer length */ 100 int bpfSize = 0; /* Number of unread bytes in buffer */ 140 * hwaddr -- buffer for ehthernet address 175 char buffer[256]; local 176 sprintf(buffer, "interface %.16s has more than one ethernet address", ifname); 177 rp_fatal(buffer); 186 char buffer[256]; local 187 sprintf(buffer, "interface %.16s has no ethernet address", ifname); 188 rp_fatal(buffer); 302 char buffer[256]; local 329 char buffer[256]; local 348 char buffer[256]; local 366 char buffer[256]; local 390 char buffer[256]; local 463 char buffer[256]; local 469 char buffer[256]; local 483 char buffer[256]; local 850 char buffer[256]; local 859 char buffer[256]; local 924 char buffer[256]; local 933 char buffer[256]; local 959 char buffer[256]; local 1017 char buffer[256]; local 1023 char buffer[256]; local 1029 char buffer[256]; local 1038 char buffer[256]; local 1052 char buffer[256]; local [all...] |
/external/skia/tests/ |
StringTest.cpp | 17 #define VSNPRINTF(buffer, size, format, args) \ 18 vsnprintf_s(buffer, size, _TRUNCATE, format, args) 23 #define ARGS_TO_BUFFER(format, buffer, size) \ 27 VSNPRINTF(buffer, size, format, args); \ 31 static void printfAnalog(char* buffer, int size, const char format[], ...) { 32 ARGS_TO_BUFFER(format, buffer, size); 148 char buffer [40]; local 149 memset(buffer, 'a', 40); 150 REPORTER_ASSERT(reporter, buffer[18] == 'a'); 151 REPORTER_ASSERT(reporter, buffer[19] == 'a') [all...] |
/external/v8/preparser/ |
preparser-process.cc | 62 AsciiInputStream(const uint8_t* buffer, size_t length) 63 : buffer_(buffer), 103 bool ReadBuffer(FILE* source, void* buffer, size_t length) { 104 size_t actually_read = fread(buffer, 1, length, source); 109 bool WriteBuffer(FILE* dest, const void* buffer, size_t length) { 110 size_t actually_written = fwrite(buffer, 1, length, dest); 141 char* buffer = new char[length + 1]; local 144 buffer[i - 1] = character; 146 buffer[length] = '\0'; 147 message_ = buffer; 323 ScopedPointer<uint8_t> buffer; local [all...] |
/external/v8/src/ |
unicode-inl.h | 160 bool CharacterStream::EncodeAsciiCharacter(uchar c, byte* buffer, 163 buffer[offset] = c; 168 bool CharacterStream::EncodeNonAsciiCharacter(uchar c, byte* buffer, 174 IF_LITTLE(*reinterpret_cast<uchar*>(buffer + aligned) = (c << 8) | 0x80); 175 IF_BIG(*reinterpret_cast<uchar*>(buffer + aligned) = c | (1 << 31)); 177 buffer[offset] = 0x80; 178 IF_LITTLE(*reinterpret_cast<uchar*>(buffer + aligned) = c << 8); 179 IF_BIG(*reinterpret_cast<uchar*>(buffer + aligned) = c); 185 bool CharacterStream::EncodeCharacter(uchar c, byte* buffer, unsigned capacity, 188 return EncodeAsciiCharacter(c, buffer, capacity, offset) [all...] |
/external/webkit/Source/WebCore/platform/ |
LinkHash.cpp | 208 static ALWAYS_INLINE void visitedURLInline(const KURL& base, const AtomicString& attributeURL, Vector<UChar, 512>& buffer) 230 buffer.append(attributeURL.characters(), attributeURL.length()); 238 buffer.append(characters, length); 239 buffer.append('/'); 244 buffer.append(base.string().characters(), base.string().length()); 248 buffer.append(base.string().characters(), base.pathStart()); 251 buffer.append(base.string().characters(), base.pathEnd()); 254 buffer.append(base.string().characters(), base.pathAfterLastSlash()); 258 buffer.append(characters, length); 259 cleanPath(buffer); [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
ISO8601Converter.java | 311 StringBuffer buffer = new StringBuffer(); local 315 buffer.append(df.format(dateTime.getYear())); 318 return buffer.toString(); 323 buffer.append(df.format(dateTime.getMonth())); 326 return buffer.toString(); 330 buffer.append(df.format(dateTime.getDay())); 340 buffer.append('T'); 342 buffer.append(df.format(dateTime.getHour())); 343 buffer.append(':'); 344 buffer.append(df.format(dateTime.getMinute())) [all...] |
/frameworks/av/media/libstagefright/omx/ |
SoftOMXComponent.cpp | 186 OMX_BUFFERHEADERTYPE **buffer, 195 return me->useBuffer(buffer, portIndex, appPrivate, size, ptr); 201 OMX_BUFFERHEADERTYPE **buffer, 209 return me->allocateBuffer(buffer, portIndex, appPrivate, size); 216 OMX_BUFFERHEADERTYPE *buffer) { 221 return me->freeBuffer(portIndex, buffer); 227 OMX_BUFFERHEADERTYPE *buffer) { 232 return me->emptyThisBuffer(buffer); 238 OMX_BUFFERHEADERTYPE *buffer) { 243 return me->fillThisBuffer(buffer); [all...] |
/frameworks/base/core/java/android/os/ |
MemoryFile.java | 50 private static native int native_read(FileDescriptor fd, int address, byte[] buffer, 52 private static native void native_write(FileDescriptor fd, int address, byte[] buffer, 186 * @param buffer byte array to read bytes into. 188 * @param destOffset offset into the byte array buffer to read into. 193 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) 198 if (destOffset < 0 || destOffset > buffer.length || count < 0 199 || count > buffer.length - destOffset 204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); 211 * @param buffer byte array to write bytes from. 212 * @param srcOffset offset into the byte array buffer to write from [all...] |
/libcore/luni/src/main/java/java/util/regex/ |
Matcher.java | 101 * @param buffer 109 public Matcher appendReplacement(StringBuffer buffer, String replacement) { 110 buffer.append(input.substring(appendPos, start())); 111 appendEvaluated(buffer, replacement); 118 * Internal helper method to append a given string to a given string buffer. 122 * @param buffer 123 * the string buffer. 127 private void appendEvaluated(StringBuffer buffer, String s) { 138 buffer.append(group(c - '0')); 141 buffer.append(c) 302 StringBuffer buffer = new StringBuffer(input.length()); local 319 StringBuffer buffer = new StringBuffer(input.length()); local [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape-complex-indic.cc | 30 /* buffer var allocations */ 404 hb_buffer_t *buffer); 408 hb_buffer_t *buffer); 412 hb_buffer_t *buffer); 590 hb_buffer_t *buffer, 593 HB_BUFFER_ALLOCATE_VAR (buffer, indic_category); 594 HB_BUFFER_ALLOCATE_VAR (buffer, indic_position); 599 unsigned int count = buffer->len; 601 set_indic_properties (buffer->info[i]); 607 hb_buffer_t *buffer) [all...] |
hb-ot-layout-private.hh | 37 #include "hb-buffer-private.hh" 41 /* buffer var allocations, used during the GSUB/GPOS processing */ 46 /* buffer var allocations, used during the entire shaping process */ 184 static inline uint8_t allocate_lig_id (hb_buffer_t *buffer) { 185 uint8_t lig_id = buffer->next_serial () & 0x07; 187 lig_id = allocate_lig_id (buffer); /* in case of overflow */ 203 hb_buffer_t *buffer); 207 hb_buffer_t *buffer, 215 hb_buffer_t *buffer); 221 hb_buffer_t *buffer); [all...] |
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
VideoEditorAudioEncoder.cpp | 50 virtual status_t read(MediaBuffer **buffer, 52 virtual int32_t storeBuffer(MediaBuffer *buffer); 59 MediaBuffer* buffer; member in struct:android::VideoEditorAudioEncoderSource::MediaBufferChain 148 ALOGV("VideoEditorAudioEncoderSource::stop : %d buffer remained", i); 163 status_t VideoEditorAudioEncoderSource::read(MediaBuffer **buffer, 178 *buffer = NULL; 182 *buffer = mFirstBufferLink->buffer; 196 int32_t VideoEditorAudioEncoderSource::storeBuffer(MediaBuffer *buffer) { 202 newLink->buffer = buffer 465 MediaBuffer* buffer = NULL; local 504 MediaBuffer* buffer = NULL; local 610 MediaBuffer* buffer = NULL; local [all...] |
/system/core/adb/ |
file_sync_service.c | 101 if it does happen, let's not buffer overrun */ 151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) 190 if(readx(s, buffer, len)) 195 if(writex(fd, buffer, len)) { 227 static int handle_send_link(int s, char *path, char *buffer) 246 if(readx(s, buffer, len)) 249 ret = symlink(buffer, path); 252 ret = symlink(buffer, path); 276 static int do_send(int s, char *path, char *buffer) 304 ret = handle_send_link(s, path, buffer); 365 char *buffer = malloc(SYNC_DATA_MAX); local [all...] |
/external/flac/libFLAC/ |
bitreader.c | 84 * If the buffer is smaller than that, the decoder won't be able to read 139 brword *buffer; member in struct:FLAC__BitReader 141 unsigned words; /* # of completed words in buffer */ 142 unsigned bytes; /* # of bytes in incomplete word at buffer[words] */ 144 unsigned consumed_bits; /* ... + (#bits of head word) already consumed from the front of buffer */ 214 /* first shift the unconsumed buffer data toward the front as much as possible */ 218 memmove(br->buffer, br->buffer+start, FLAC__BYTES_PER_WORD * (end - start)); 229 return false; /* no space left, buffer is too small; see note for FLAC__BITREADER_DEFAULT_CAPACITY */ 230 target = ((FLAC__byte*)(br->buffer+br->words)) + br->bytes [all...] |
/external/icu4c/test/intltest/ |
uts46test.cpp | 149 char buffer[100]; local 150 TestCheckedArrayByteSink sink(buffer, LENGTHOF(buffer)); 181 buffer[0]!=0x61 || buffer[1]!=0x73 || buffer[2]!=0x73 || 196 0!=memcmp(ex, buffer, 11) || !sink.calledFlush 205 char buffer[400]; local 217 prettify(result).extract(0, 0x7fffffff, buffer, LENGTHOF(buffer)); 582 char buffer[400], buffer2[400]; local [all...] |
/dalvik/vm/compiler/ |
Dataflow.cpp | 824 char buffer[256]; local 830 buffer[0] = 0; 833 strcpy(buffer, "PHI"); 836 sprintf(buffer, "Opcode %#x", opcode); 840 strcpy(buffer, dexGetOpcodeName(opcode)); 845 strcat(buffer, note); 853 snprintf(buffer + strlen(buffer), 256, " v%d,", insn->vA); 857 snprintf(buffer + strlen(buffer), 256, " v%d, v%d," 924 char buffer[256]; local 1053 char buffer[256]; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/ |
GlyphPageTreeNode.cpp | 157 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 160 return pageToFill->fill(offset, length, buffer, bufferLength, fontData); 188 UChar buffer[GlyphPage::size * 2 + 2]; local 192 // Fill in a buffer with the entire "page" of characters that we want to look up glyphs for. 196 buffer[i] = start + i; 201 buffer[i] = zeroWidthSpace; 203 buffer[i] = zeroWidthSpace; 204 buffer[softHyphen] = zeroWidthSpace; 207 buffer[(int)'\n'] = ' '; 208 buffer[(int)'\t'] = ' ' [all...] |
/external/apache-http/src/org/apache/http/impl/client/ |
AbstractAuthenticationHandler.java | 77 CharArrayBuffer buffer; local 80 buffer = ((FormattedHeader) header).getBuffer(); 87 buffer = new CharArrayBuffer(s.length()); 88 buffer.append(s); 91 while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) { 95 while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) { 99 String s = buffer.substring(beginIndex, endIndex);
|
/external/elfutils/lib/ |
md5.c | 47 /* This array contains the bytes used to pad the buffer to the next 85 /* Process the remaining bytes in the internal buffer and the usual 105 memcpy (&ctx->buffer[bytes], fillbuf, pad); 107 /* Put the 64-bit file length in *bits* at the end of the buffer. */ 108 *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); 109 *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | 113 md5_process_block (ctx->buffer, bytes + pad + 8, ctx); 131 char buffer[BLOCKSIZE + 72]; local 141 computation function processes the whole buffer so that with the 149 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream) [all...] |
/external/javassist/src/main/javassist/bytecode/analysis/ |
Frame.java | 232 StringBuffer buffer = new StringBuffer(); local 234 buffer.append("locals = ["); 236 buffer.append(locals[i] == null ? "empty" : locals[i].toString()); 238 buffer.append(", "); 240 buffer.append("] stack = ["); 242 buffer.append(stack[i]); 244 buffer.append(", "); 246 buffer.append("]"); 248 return buffer.toString();
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
MapSerializer.java | 128 public void writeObject(ByteBuffer buffer, Object object) throws IOException { 132 buffer.putInt(length); 163 buffer.put( (byte) flags ); 167 Serializer.writeClass(buffer, keyClass); 171 Serializer.writeClass(buffer, valClass); 179 Serializer.writeClassAndObject(buffer, entry.getKey()); 181 keySerial.writeObject(buffer, entry.getKey()); 184 Serializer.writeClassAndObject(buffer, entry.getValue()); 186 valSerial.writeObject(buffer, entry.getValue());
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
Contact.java | 103 protected StringBuffer encodeBody(StringBuffer buffer) { 105 buffer.append('*'); 110 address.encode(buffer); 113 buffer.append('<'); 114 address.encode(buffer); 115 buffer.append('>'); 118 buffer.append(SEMICOLON); 119 parameters.encode(buffer); 123 return buffer;
|