/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/ |
UTFCharsetDecoderTest.java | 53 ByteBuffer buffer = ByteBuffer.allocate(getByteBuffer().remaining() + 1); local 54 buffer.put((byte) 0xd8); 55 buffer.put(getByteBuffer()); 56 buffer.flip(); 57 return buffer; 65 return " buffer \u041c\u0430\u0441\u044e\u043b\u044f \u611b";
|
/libcore/luni/src/main/java/java/io/ |
PipedInputStream.java | 39 * The circular buffer through which data is passed. Data is read from the 41 * Data in the buffer is either sequential: <pre> 46 * ...or wrapped around the buffer's end: <pre> 51 * When the buffer is empty, {@code in == -1}. Reading when the buffer is 52 * empty will block until data is available. When the buffer is full, 53 * {@code in == out}. Writing when the buffer is full will block until free 56 protected byte[] buffer; field in class:PipedInputStream 59 * The index in {@code buffer} where the next byte will be written. 64 * The index in {@code buffer} where the next byte will be read [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-buffer-deserialize-json.hh | 2 #line 1 "hb-buffer-deserialize-json.rl" 35 #line 36 "hb-buffer-deserialize-json.hh.tmp" 438 #line 97 "hb-buffer-deserialize-json.rl" 442 _hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer, 451 (void) hb_buffer_get_glyph_positions (buffer, NULL); 455 if (p < pe && *p == (buffer->len ? ',' : '[')) 465 #line 466 "hb-buffer-deserialize-json.hh.tmp" 470 #line 471 "hb-buffer-deserialize-json.hh.tmp" 496 #line 38 "hb-buffer-deserialize-json.rl" 503 #line 43 "hb-buffer-deserialize-json.rl [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/ |
strutil.h | 56 // to identifiers in the protocol buffer language, not to natural-language 131 // identifiers used in the Protocol Buffer language, not to natural-language 240 // a dest buffer. This should be used for non performance critical 346 // All functions take the output buffer as an arg. 348 // which may not be the beginning of the input buffer. 351 // Suggested buffer size for FastToBuffer functions. Also works with 355 LIBPROTOBUF_EXPORT char* FastInt32ToBuffer(int32 i, char* buffer); 356 LIBPROTOBUF_EXPORT char* FastInt64ToBuffer(int64 i, char* buffer); 357 char* FastUInt32ToBuffer(uint32 i, char* buffer); // inline below 358 char* FastUInt64ToBuffer(uint64 i, char* buffer); // inline belo [all...] |
/external/harfbuzz_ng/src/ |
hb-buffer-deserialize-json.hh | 2 #line 1 "hb-buffer-deserialize-json.rl" 35 #line 36 "hb-buffer-deserialize-json.hh.tmp" 438 #line 97 "hb-buffer-deserialize-json.rl" 442 _hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer, 451 (void) hb_buffer_get_glyph_positions (buffer, NULL); 455 if (p < pe && *p == (buffer->len ? ',' : '[')) 465 #line 466 "hb-buffer-deserialize-json.hh.tmp" 470 #line 471 "hb-buffer-deserialize-json.hh.tmp" 496 #line 38 "hb-buffer-deserialize-json.rl" 503 #line 43 "hb-buffer-deserialize-json.rl [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
strutil.h | 56 // to identifiers in the protocol buffer language, not to natural-language 131 // identifiers used in the Protocol Buffer language, not to natural-language 230 // a dest buffer. This should be used for non performance critical 336 // All functions take the output buffer as an arg. 338 // which may not be the beginning of the input buffer. 341 // Suggested buffer size for FastToBuffer functions. Also works with 345 LIBPROTOBUF_EXPORT char* FastInt32ToBuffer(int32 i, char* buffer); 346 LIBPROTOBUF_EXPORT char* FastInt64ToBuffer(int64 i, char* buffer); 347 char* FastUInt32ToBuffer(uint32 i, char* buffer); // inline below 348 char* FastUInt64ToBuffer(uint64 i, char* buffer); // inline belo [all...] |
/external/chromium_org/content/browser/renderer_host/ |
clipboard_message_filter.h | 35 void OnGetSequenceNumber(const ui::Clipboard::Buffer buffer, 38 ui::Clipboard::Buffer buffer, 40 void OnClear(ui::Clipboard::Buffer buffer); 41 void OnReadAvailableTypes(ui::Clipboard::Buffer buffer, 44 void OnReadText(ui::Clipboard::Buffer buffer, string16* result) [all...] |
/external/chromium_org/content/renderer/media/ |
rtc_data_channel_handler.cc | 46 talk_base::Buffer buffer(utf8_buffer.c_str(), utf8_buffer.length()); 47 webrtc::DataBuffer data_buffer(buffer, false); 52 talk_base::Buffer buffer(data, length); 53 webrtc::DataBuffer data_buffer(buffer, true); 90 void RtcDataChannelHandler::OnMessage(const webrtc::DataBuffer& buffer) { 96 if (buffer.binary) { 97 webkit_client_->didReceiveRawData(buffer.data.data(), buffer.data.length()) [all...] |
/external/chromium_org/third_party/icu/source/common/ |
charstr.h | 41 CharString() : len(0) { buffer[0]=0; } 43 buffer[0]=0; 47 buffer[0]=0; 51 buffer[0]=0; 66 char operator[] (int32_t index) const { return buffer[index]; } 67 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); } 69 const char *data() const { return buffer.getAlias(); } 70 char *data() { return buffer.getAlias(); } 72 CharString &clear() { len=0; buffer[0]=0; return *this; } 84 * Returns a writable buffer for appending and writes the buffer's capacity t 111 MaybeStackArray<char, 40> buffer; member in class:CharString [all...] |
/external/icu4c/common/ |
charstr.h | 41 CharString() : len(0) { buffer[0]=0; } 43 buffer[0]=0; 47 buffer[0]=0; 51 buffer[0]=0; 66 char operator[](int32_t index) const { return buffer[index]; } 67 StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); } 69 const char *data() const { return buffer.getAlias(); } 70 char *data() { return buffer.getAlias(); } 72 CharString &clear() { len=0; buffer[0]=0; return *this; } 84 * Returns a writable buffer for appending and writes the buffer's capacity t 118 MaybeStackArray<char, 40> buffer; member in class:CharString [all...] |
/frameworks/base/core/jni/ |
android_os_UEventObserver.cpp | 44 static bool isMatch(const char* buffer, size_t length) { 50 // Consider all zero-delimited fields of the buffer. 51 const char* field = buffer; 52 const char* end = buffer + length + 1; 65 char buffer[1024]; local 68 int length = uevent_next_event(buffer, sizeof(buffer) - 1); 72 buffer[length] = '\0'; 74 ALOGV("Received uevent message: %s", buffer); 76 if (isMatch(buffer, length)) [all...] |
/frameworks/native/services/sensorservice/tests/ |
sensorservicetest.cpp | 32 ASensorEvent buffer[8]; local 36 while ((n = q->read(buffer, 8)) > 0) { 40 t = float(buffer[i].timestamp - oldTimeStamp) / s2ns(1); 42 t = float(buffer[i].timestamp - sStartTime) / s2ns(1); 44 oldTimeStamp = buffer[i].timestamp; 46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 48 buffer[i].timestamp, 49 buffer[i].data[0], buffer[i].data[1], buffer[i].data[2] [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldOutputStreamTest.java | 28 private byte[] buffer; field in class:OldOutputStreamTest.BasicOutputStream 32 buffer = new byte[BUFFER_SIZE]; 38 buffer[position] = (byte) (oneByte & 255); 41 throw new IOException("Internal buffer overflow."); 46 return buffer; 56 byte[] buffer; 65 buffer = bos.getBuffer(); 67 expected = (shortByteArray[i] == buffer[i]); 81 byte[] buffer; 90 buffer = bos.getBuffer() [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
HexDump.java | 73 StringBuffer buffer = new StringBuffer(74);
local 81 dump(buffer, display_offset).append(' ');
84 dump(buffer, data[k + j]);
86 buffer.append(" ");
88 buffer.append(' ');
92 buffer.append((char) data[k + j]);
94 buffer.append('.');
97 buffer.append(EOL);
98 stream.write(buffer.toString().getBytes());
100 buffer.setLength(0); [all...] |
/system/media/audio_utils/ |
echo_reference.c | 47 void *buffer; // main buffer member in struct:echo_reference 48 size_t buf_size; // main buffer size in frames 49 size_t frames_in; // number of frames in main buffer 50 void *wr_buf; // buffer for input conversions 51 size_t wr_buf_size; // size of conversion buffer in frames 52 size_t wr_frames_in; // number of frames in conversion buffer 54 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write()) 57 int32_t playback_delay; // playback buffer delay indicated by last write() 64 struct resampler_buffer_provider provider; // resampler buffer provide [all...] |
/external/chromium_org/remoting/base/ |
compound_buffer.cc | 15 : buffer(buffer_value), 36 void CompoundBuffer::Append(net::IOBuffer* buffer, 38 // A weak check that the |start| is within |buffer|. 39 DCHECK_GE(start, buffer->data()); 44 chunks_.push_back(DataChunk(buffer, start, size)); 48 void CompoundBuffer::Append(net::IOBuffer* buffer, int size) { 49 Append(buffer, buffer->data(), size); 52 void CompoundBuffer::Append(const CompoundBuffer& buffer) { 53 for (DataChunkList::const_iterator it = buffer.chunks_.begin() 82 net::IOBuffer* buffer = new net::IOBuffer(size); local 88 net::IOBuffer* buffer = new net::IOBuffer(size); local [all...] |
/external/chromium_org/third_party/icu/source/tools/pkgdata/ |
pkgtypes.c | 30 char buffer[1024]; local 35 uprv_strncpy(buffer, l->str, 1020); 36 buffer[1019]=0; 39 if(buffer[uprv_strlen(buffer)-1] == '"') { 40 buffer[uprv_strlen(buffer)-1] = '\0'; 42 if(buffer[0] == '"') { 43 uprv_strcpy(buffer, buffer+1) 75 char buffer[1024]; local [all...] |
/external/icu4c/tools/pkgdata/ |
pkgtypes.c | 30 char buffer[1024]; local 35 uprv_strncpy(buffer, l->str, 1020); 36 buffer[1019]=0; 39 if(buffer[uprv_strlen(buffer)-1] == '"') { 40 buffer[uprv_strlen(buffer)-1] = '\0'; 42 if(buffer[0] == '"') { 43 uprv_strcpy(buffer, buffer+1) 75 char buffer[1024]; local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/opentype/ |
OpenTypeVerticalData.cpp | 137 const CoverageTable* coverage(const SharedBuffer& buffer) const { return validateOffset<CoverageTable>(buffer, coverageOffset); } 152 bool getSubstitutions(HashMap<Glyph, Glyph>* map, const SharedBuffer& buffer) const 155 if (!isValidEnd(buffer, &subTableOffsets[countSubTable])) 160 const SubstitutionSubTable* substitution = validateOffset<SubstitutionSubTable>(buffer, subTableOffsets[i]); 163 const CoverageTable* coverage = substitution->coverage(buffer); 168 const SingleSubstitution2SubTable* singleSubstitution2 = validatePtr<SingleSubstitution2SubTable>(buffer, substitution); 172 if (!isValidEnd(buffer, &singleSubstitution2->substitute[countTo])) 176 const Coverage1Table* coverage1 = validatePtr<Coverage1Table>(buffer, coverage); 180 if (!isValidEnd(buffer, &coverage1->glyphArray[countFrom]) || countTo != countFrom 411 RefPtr<SharedBuffer> buffer = platformData.openTypeTable(OpenType::HheaTag); local 494 RefPtr<SharedBuffer> buffer = platformData.openTypeTable(OpenType::GSUBTag); local [all...] |
/external/apache-http/src/org/apache/http/client/utils/ |
URIUtils.java | 81 StringBuilder buffer = new StringBuilder(); local 84 buffer.append(scheme); 85 buffer.append("://"); 87 buffer.append(host); 89 buffer.append(':'); 90 buffer.append(port); 94 buffer.append('/'); 97 buffer.append(path); 100 buffer.append('?'); 101 buffer.append(query) [all...] |
/external/ppp/pppd/plugins/radius/ |
radrealms.c | 47 char buffer[512], *p; local 74 while ((fgets(buffer, sizeof(buffer), fd) != NULL)) { 77 if ((*buffer == '\n') || (*buffer == '#') || (*buffer == '\0')) 80 buffer[strlen(buffer)-1] = '\0'; 82 p = strtok(buffer, "\t "); 88 line, buffer); [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
LocalSocketTest.java | 74 byte[] buffer = new byte[16]; 77 countRead = ls.getInputStream().read(buffer, 1, 15); 80 assertEquals(2, buffer[1]); 81 assertEquals(3, buffer[2]); 82 assertEquals(4, buffer[3]); 83 assertEquals(5, buffer[4]); 87 ls.getInputStream().read(buffer, 1, 16); 94 ls.getOutputStream().write(buffer, 1, 16); 101 ls.getOutputStream().write(buffer, -1, 15); 108 ls.getOutputStream().write(buffer, 0, -1) [all...] |
/frameworks/base/media/jni/ |
android_media_ImageReader.cpp | 84 void returnLockedBuffer(CpuConsumer::LockedBuffer* buffer); 120 CpuConsumer::LockedBuffer *buffer = new CpuConsumer::LockedBuffer; local 121 mBuffers.push_back(buffer); 156 CpuConsumer::LockedBuffer* buffer = *it; local 158 return buffer; 161 void JNIImageReaderContext::returnLockedBuffer(CpuConsumer::LockedBuffer* buffer) { 162 mBuffers.push_back(buffer); 258 const CpuConsumer::LockedBuffer* buffer) 260 env->SetLongField(thiz, gSurfaceImageClassInfo.mLockedBuffer, reinterpret_cast<jlong>(buffer)); 292 static uint32_t Image_getJpegSize(CpuConsumer::LockedBuffer* buffer) 681 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, image); local 702 CpuConsumer::LockedBuffer* buffer = ctx->getLockedBuffer(); local 811 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local 834 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
StringBufferTest.java | 33 StringBuffer buffer = new StringBuffer("abcde"); local 35 buffer.setLength(-1); 41 assertEquals("abcde", buffer.toString()); 42 buffer.setLength(1); 43 buffer.append('f'); 44 assertEquals("af", buffer.toString()); 46 buffer = new StringBuffer("abcde"); 47 assertEquals("cde", buffer.substring(2)); 48 buffer.setLength(3); 49 buffer.append('f') 95 StringBuffer buffer = new StringBuffer(); local 124 StringBuffer buffer = new StringBuffer(25); local [all...] |
/external/chromium_org/third_party/libusb/src/libusb/os/ |
linux_netlink.c | 101 static const char *netlink_message_parse (const char *buffer, size_t len, const char *key) 106 for (offset = 0 ; offset < len && '\0' != buffer[offset] ; offset += strlen(buffer + offset) + 1) { 107 if (0 == strncmp(buffer + offset, key, keylen) && 108 '=' == buffer[offset + keylen]) { 109 return buffer + offset + keylen + 1; 117 static int linux_netlink_parse(char *buffer, size_t len, int *detached, const char **sys_name, 129 tmp = netlink_message_parse((const char *) buffer, len, "ACTION"); 140 tmp = netlink_message_parse(buffer, len, "SUBSYSTEM"); 146 tmp = netlink_message_parse(buffer, len, "BUSNUM") 187 unsigned char buffer[1024]; local [all...] |