/external/webkit/WebCore/platform/text/qt/ |
TextBoundariesQt.cpp | 43 int findNextWordFromIndex(UChar const* buffer, int len, int position, bool forward) 45 QString str(reinterpret_cast<QChar const*>(buffer), len); 51 if (QChar(buffer[pos-1]).isLetterOrNumber()) 59 if (QChar(buffer[pos]).isLetterOrNumber()) 67 void findWordBoundary(UChar const* buffer, int len, int position, int* start, int* end) 69 QString str(reinterpret_cast<QChar const*>(buffer), len);
|
/frameworks/base/media/libstagefright/rtsp/ |
ARTPSource.cpp | 82 void ARTPSource::processRTPPacket(const sp<ABuffer> &buffer) { 83 if (queuePacket(buffer) 117 bool ARTPSource::queuePacket(const sp<ABuffer> &buffer) { 118 uint32_t seqNum = (uint32_t)buffer->int32Data(); 121 sp<AMessage> meta = buffer->meta(); 131 mQueue.push_back(buffer); 166 buffer->setInt32Data(seqNum); 174 LOGW("Discarding duplicate buffer"); 178 mQueue.insert(it, buffer); 195 void ARTPSource::addFIR(const sp<ABuffer> &buffer) { [all...] |
VideoSource.h | 58 MediaBuffer **buffer, const MediaSource::ReadOptions *options) { 65 status_t err = mGroup.acquire_buffer(buffer); 71 memset((*buffer)->data(), x, mSize); 72 (*buffer)->set_range(0, mSize); 73 (*buffer)->meta_data()->clear(); 74 (*buffer)->meta_data()->setInt64( 78 // printf("VideoSource::read - returning buffer\n"); 79 // LOG(INFO)("VideoSource::read - returning buffer");
|
/frameworks/base/services/audioflinger/ |
AudioHardwareStub.cpp | 102 char buffer[SIZE]; local 105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false"); 106 result.append(buffer); 128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) 143 char buffer[SIZE]; local 145 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); 146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 147 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize()); 148 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); 149 snprintf(buffer, SIZE, "\tformat: %d\n", format()) 185 char buffer[SIZE]; local [all...] |
AudioHardwareGeneric.cpp | 167 char buffer[SIZE]; local 170 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); 171 result.append(buffer); 231 ssize_t AudioStreamOutGeneric::write(const void* buffer, size_t bytes) 234 return ssize_t(::write(mFd, buffer, bytes)); 246 char buffer[SIZE]; local 248 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n"); 249 result.append(buffer); 250 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 251 result.append(buffer); 354 char buffer[SIZE]; local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
ReasonFlags.java | 83 public void dumpValue(StringBuffer buffer, String prefix) { 84 buffer.append(prefix); 85 buffer.append("ReasonFlags [\n"); 88 buffer.append(prefix).append(" ") 92 buffer.append(prefix); 93 buffer.append("]\n");
|
Certificate.java | 116 StringBuffer buffer = new StringBuffer(); local 117 buffer.append("X.509 Certificate:\n[\n"); 118 tbsCertificate.dumpValue(buffer); 119 buffer.append("\n Algorithm: ["); 120 signatureAlgorithm.dumpValue(buffer); 121 buffer.append(']'); 122 buffer.append("\n Signature Value:\n"); 123 buffer.append(Array.toString(signatureValue, "")); 124 buffer.append(']'); 125 return buffer.toString() [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
ClassTest2.java | 60 byte[] buffer = new byte[20]; 61 int length = stream.read(buffer); 62 String s = new String(buffer, 0, length); 83 byte[] buffer = new byte[20]; 84 int length = stream.read(buffer); 85 String s = new String(buffer, 0, length);
|
/cts/tools/dex-tools/src/dex/reader/ |
DexMethodImpl.java | 39 private DexBuffer buffer; field in class:DexMethodImpl 54 public DexMethodImpl(DexBuffer buffer, DexClass declaringClass, 59 this.buffer = buffer; 76 buffer.setPosition(parameterAnnotation.annotationsOff); 77 int numberOfParameters = buffer.readUInt(); 79 parameterIdToIndex.put(i, buffer.readUInt()); 87 buffer.setPosition(methodAnnotation.annotationsOff); 88 final int size = buffer.readUInt(); 90 annotations.add(new DexAnnotationImpl(buffer.createCopy() [all...] |
/external/apache-http/src/org/apache/http/impl/cookie/ |
BrowserCompatSpec.java | 130 CharArrayBuffer buffer; local 133 buffer = ((FormattedHeader) header).getBuffer(); 136 buffer.length()); 142 buffer = new CharArrayBuffer(s.length()); 143 buffer.append(s); 144 cursor = new ParserCursor(0, buffer.length()); 146 elems = new HeaderElement[] { parser.parseHeader(buffer, cursor) }; 160 CharArrayBuffer buffer = new CharArrayBuffer(20 * cookies.size()); local 161 buffer.append(SM.COOKIE); 162 buffer.append(": ") [all...] |
NetscapeDraftSpec.java | 128 CharArrayBuffer buffer; local 131 buffer = ((FormattedHeader) header).getBuffer(); 134 buffer.length()); 140 buffer = new CharArrayBuffer(s.length()); 141 buffer.append(s); 142 cursor = new ParserCursor(0, buffer.length()); 144 return parse(new HeaderElement[] { parser.parseHeader(buffer, cursor) }, origin); 154 CharArrayBuffer buffer = new CharArrayBuffer(20 * cookies.size()); local 155 buffer.append(SM.COOKIE); 156 buffer.append(": ") [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
GZIPInputStream.java | 27 * its buffer. 69 * underlying stream. Set the internal buffer size to {@code size}. 74 * the internal read buffer size. 134 private long getLong(byte[] buffer, int off) { 136 l |= (buffer[off] & 0xFF); 137 l |= (buffer[off + 1] & 0xFF) << 8; 138 l |= (buffer[off + 2] & 0xFF) << 16; 139 l |= ((long) (buffer[off + 3] & 0xFF)) << 24; 143 private int getShort(byte[] buffer, int off) { 144 return (buffer[off] & 0xFF) | ((buffer[off + 1] & 0xFF) << 8) [all...] |
/system/netd/ |
logwrapper.c | 31 char buffer[4096]; local 36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) { 41 if (buffer[b] == '\r') { 42 buffer[b] = '\0'; 43 } else if (buffer[b] == '\n') { 44 buffer[b] = '\0'; 46 LOG(LOG_INFO, tag, "%s", &buffer[a]); 51 if (a == 0 && b == sizeof(buffer) - 1) { 52 // buffer is full, flus [all...] |
/system/vold/ |
logwrapper.c | 31 char buffer[4096]; local 36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) { 41 if (buffer[b] == '\r') { 42 buffer[b] = '\0'; 43 } else if (buffer[b] == '\n') { 44 buffer[b] = '\0'; 46 LOG(LOG_INFO, tag, "%s", &buffer[a]); 51 if (a == 0 && b == sizeof(buffer) - 1) { 52 // buffer is full, flus [all...] |
/external/bluetooth/glib/gio/xdgmime/ |
xdgmimecache.c | 83 char *buffer; member in struct:_XdgMimeCache 104 munmap (cache->buffer, cache->size); 118 char *buffer = NULL; local 129 buffer = (char *) mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); 131 if (buffer == MAP_FAILED) 135 if (GET_UINT16 (buffer, 0) != MAJOR_VERSION || 136 GET_UINT16 (buffer, 2) != MINOR_VERSION) 138 munmap (buffer, st.st_size); 145 cache->buffer = buffer; [all...] |
/external/chromium/base/third_party/xdg_mime/ |
xdgmimecache.c | 85 char *buffer; member in struct:_XdgMimeCache 106 munmap (cache->buffer, cache->size); 120 char *buffer = NULL; local 131 buffer = (char *) mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); 133 if (buffer == MAP_FAILED) 137 if (GET_UINT16 (buffer, 0) != MAJOR_VERSION || 138 GET_UINT16 (buffer, 2) != MINOR_VERSION) 140 munmap (buffer, st.st_size); 147 cache->buffer = buffer; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
SDL_fbelo.c | 134 int eloGetPacket(unsigned char* buffer, int* buffer_p, int* checksum, int fd) { 143 (char *) (buffer + *buffer_p), 155 if ((*buffer_p == 0) && (buffer[0] != ELO_START_BYTE)) { 156 SDL_memcpy(&buffer[0], &buffer[1], num_bytes-1); 160 *checksum = *checksum + buffer[*buffer_p]; 169 ok = (*checksum == buffer[ELO_PACKET_SIZE-1]); 330 const char *buffer = NULL; local 336 buffer = SDL_getenv("SDL_ELO_MIN_X"); 337 if(buffer) { 422 unsigned char buffer[ELO_PACKET_SIZE]; local [all...] |
/external/v8/test/cctest/ |
test-assembler-x64.cc | 58 // a buffer and executing them. These tests do not initialize the 85 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 88 CHECK(buffer); 89 Assembler assm(buffer, static_cast<int>(actual_size)); 99 int result = FUNCTION_CAST<F2>(buffer)(3, 2); 106 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 109 CHECK(buffer); 110 Assembler assm(buffer, static_cast<int>(actual_size)); 130 int result = FUNCTION_CAST<F2>(buffer)(3, 2); 137 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize local 158 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 185 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 218 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local 246 byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize, local [all...] |
/device/htc/common/updater/ |
firmware.c | 77 char* buffer = malloc(block_size); local 78 if (buffer == NULL) { 90 if (mtd_read_data(ctx, buffer, block_size) != block_size) { 96 if (strncmp(buffer, "MSM-RADIO-UPDATE", 16) != 0) { 101 unsigned image_offset = *(unsigned*)(buffer+24); 102 unsigned image_length = *(unsigned*)(buffer+28); 118 ssize_t read = mtd_read_data(ctx, buffer, to_read); 125 fwrite(buffer, 1, read, f); 127 SHA_update(&sha_ctx, buffer, read); 133 free(buffer); [all...] |
/external/icu4c/io/ |
ustream.cpp | 44 char buffer[200]; local 53 char *s, *sLimit = buffer + (sizeof(buffer) - 1); 56 s = buffer; 61 if(s > buffer) { 62 stream << buffer; local 83 char buffer[16]; local 133 buffer[idx++] = ch; 135 stream.putback(buffer[--idx]); 158 buffer[idx++] = ch [all...] |
/external/qemu/ |
json-parser.c | 104 static void wchar_to_utf8(uint16_t wchar, char *buffer, size_t buffer_length) 109 buffer[0] = wchar & 0x7F; 110 buffer[1] = 0; 114 buffer[0] = 0xC0 | ((wchar >> 6) & 0x1F); 115 buffer[1] = 0x80 | (wchar & 0x3F); 116 buffer[2] = 0; 120 buffer[0] = 0xE0 | ((wchar >> 12) & 0x0F); 121 buffer[1] = 0x80 | ((wchar >> 6) & 0x3F); 122 buffer[2] = 0x80 | (wchar & 0x3F); 123 buffer[3] = 0 [all...] |
/external/skia/src/effects/ |
SkBlurMaskFilter.cpp | 102 SkFlattenable* SkBlurMaskFilterImpl::CreateProc(SkFlattenableReadBuffer& buffer) 104 return SkNEW_ARGS(SkBlurMaskFilterImpl, (buffer)); 112 SkBlurMaskFilterImpl::SkBlurMaskFilterImpl(SkFlattenableReadBuffer& buffer) : SkMaskFilter(buffer) 114 fRadius = buffer.readScalar(); 115 fBlurStyle = (SkBlurMaskFilter::BlurStyle)buffer.readS32(); 120 void SkBlurMaskFilterImpl::flatten(SkFlattenableWriteBuffer& buffer) 122 this->INHERITED::flatten(buffer); 123 buffer.writeScalar(fRadius); 124 buffer.write32(fBlurStyle) [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
MemoryHandler.java | 25 * buffer. 28 * the internal buffer and doesn't perform any formatting or any other process. 29 * When the buffer is full, the earliest buffered records will be discarded. 34 * buffer will be cleared. 51 * <li>java.util.logging.MemoryHandler.size specifies the buffer size in number 66 // buffer size 75 // buffer 76 private LogRecord[] buffer; field in class:MemoryHandler 78 // current position in buffer 133 buffer = new LogRecord[size] [all...] |
/libcore/luni/src/test/java/tests/api/java/io/ |
OutputStreamTest.java | 59 private byte[] buffer; field in class:OutputStreamTest.BasicOutputStream 63 buffer = new byte[BUFFER_SIZE]; 69 buffer[position] = (byte) (oneByte & 255); 72 throw new IOException("Internal buffer overflow."); 77 return buffer; 93 byte[] buffer; 102 buffer = bos.getBuffer(); 104 expected = (shortByteArray[i] == buffer[i]); 124 byte[] buffer; 133 buffer = bos.getBuffer() [all...] |
/external/v8/src/ |
debug-agent.cc | 222 char c = '\0'; // One character receive buffer. 234 // Add character to header buffer. 241 if (header_buffer_position == 2) { // Receive buffer contains CRLF. 289 char* buffer = NewArray<char>(content_length + 1); local 290 received = ReceiveAll(conn, buffer, content_length); 295 buffer[content_length] = '\0'; 297 return SmartPointer<char>(buffer); 304 char buffer[kBufferSize]; // Sending buffer. local 309 len = OS::SNPrintF(Vector<char>(buffer, kBufferSize) 350 char buffer[kBufferSize]; \/\/ Sending buffer both for header and body. local [all...] |