/external/clang/test/Misc/ |
backend-stack-frame-diagnostics.cpp | 30 char buffer[80]; local 31 doIt(buffer); 41 char buffer[80]; local 42 doIt(buffer); 56 char buffer[80]; local 57 doIt(buffer); 66 char buffer[80]; 67 doIt(buffer); 75 char buffer[80]; 76 doIt(buffer); [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
dynamic_pt_writing_utils.h | 33 static bool writeEmptyDictionary(BufferWithExtendableBuffer *const buffer, const int rootPos); 36 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos, 39 static bool writePtNodeArraySizeAndAdvancePosition(BufferWithExtendableBuffer *const buffer, 42 static bool writeFlags(BufferWithExtendableBuffer *const buffer, 46 return writeFlagsAndAdvancePosition(buffer, nodeFlags, &writingPos); 49 static bool writeFlagsAndAdvancePosition(BufferWithExtendableBuffer *const buffer, 53 static bool writeParentPosOffsetAndAdvancePosition(BufferWithExtendableBuffer *const buffer, 56 static bool writeCodePointsAndAdvancePosition(BufferWithExtendableBuffer *const buffer, 59 static bool writeChildrenPositionAndAdvancePosition(BufferWithExtendableBuffer *const buffer, 75 static bool writeDictOffset(BufferWithExtendableBuffer *const buffer, const int targetPos [all...] |
/packages/services/Telephony/common/src/com/android/services/telephony/common/ |
AudioMode.java | 37 StringBuffer buffer = new StringBuffer(); local 39 listAppend(buffer, "EARPIECE"); 42 listAppend(buffer, "BLUETOOTH"); 45 listAppend(buffer, "WIRED_HEADSET"); 48 listAppend(buffer, "SPEAKER"); 51 return buffer.toString(); 54 private static void listAppend(StringBuffer buffer, String str) { 55 if (buffer.length() > 0) { 56 buffer.append(", "); 58 buffer.append(str) [all...] |
/external/chromium_org/media/base/ |
audio_buffer_queue_unittest.cc | 53 AudioBufferQueue buffer; local 54 EXPECT_EQ(0, buffer.frames()); 55 buffer.Append( 57 EXPECT_EQ(8, buffer.frames()); 58 buffer.Clear(); 59 EXPECT_EQ(0, buffer.frames()); 60 buffer.Append( 62 EXPECT_EQ(8, buffer.frames()); 67 AudioBufferQueue buffer; local 68 buffer.Append 88 AudioBufferQueue buffer; local 132 AudioBufferQueue buffer; local 154 AudioBufferQueue buffer; local 190 AudioBufferQueue buffer; local 206 AudioBufferQueue buffer; local 227 AudioBufferQueue buffer; local 252 AudioBufferQueue buffer; local 272 AudioBufferQueue buffer; local 292 AudioBufferQueue buffer; local 315 AudioBufferQueue buffer; local [all...] |
decoder_buffer_queue.cc | 21 void DecoderBufferQueue::Push(const scoped_refptr<DecoderBuffer>& buffer) { 22 CHECK(!buffer->end_of_stream()); 24 queue_.push_back(buffer); 28 data_size_ += base::checked_cast<size_t, int>(buffer->data_size()); 32 if (buffer->timestamp() == kNoTimestamp()) { 33 DVLOG(1) << "Buffer has no timestamp"; 38 earliest_valid_timestamp_ = buffer->timestamp(); 41 if (buffer->timestamp() < earliest_valid_timestamp_) { 44 << buffer->timestamp().InMicroseconds() 50 earliest_valid_timestamp_ = buffer->timestamp() 55 scoped_refptr<DecoderBuffer> buffer = queue_.front(); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/ |
native_wayland_drm_bufmgr_helper.c | 17 struct wl_drm_buffer *buffer) 24 switch (buffer->format) { 43 templ.width0 = buffer->buffer.width; 44 templ.height0 = buffer->buffer.height; 50 wsh.stride = buffer->stride[0]; 52 buffer->driver_buffer = 58 struct wl_drm_buffer *buffer) 60 struct pipe_resource *resource = buffer->driver_buffer 77 struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer; local [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
native_wayland_drm_bufmgr_helper.c | 17 struct wl_drm_buffer *buffer) 24 switch (buffer->format) { 43 templ.width0 = buffer->buffer.width; 44 templ.height0 = buffer->buffer.height; 50 wsh.stride = buffer->stride[0]; 52 buffer->driver_buffer = 58 struct wl_drm_buffer *buffer) 60 struct pipe_resource *resource = buffer->driver_buffer 77 struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer; local [all...] |
/external/pcre/dist/ |
pcre_ord2utf8.c | 61 buffer pointer to buffer for result - at least 6 pcre_uchars long 63 Returns: number of characters placed in the buffer 68 PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) 76 buffer += i; 79 *buffer-- = 0x80 | (cvalue & 0x3f); 82 *buffer = PRIV(utf8_table2)[i] | cvalue; 88 (void)(buffer); /* called when SUPPORT_UTF is not defined. */
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-buffer.h | 102 hb_buffer_reference (hb_buffer_t *buffer); 105 hb_buffer_destroy (hb_buffer_t *buffer); 108 hb_buffer_set_user_data (hb_buffer_t *buffer, 115 hb_buffer_get_user_data (hb_buffer_t *buffer, 126 hb_buffer_set_content_type (hb_buffer_t *buffer, 130 hb_buffer_get_content_type (hb_buffer_t *buffer); 134 hb_buffer_set_unicode_funcs (hb_buffer_t *buffer, 138 hb_buffer_get_unicode_funcs (hb_buffer_t *buffer); 141 hb_buffer_set_direction (hb_buffer_t *buffer, 145 hb_buffer_get_direction (hb_buffer_t *buffer); [all...] |
/external/harfbuzz_ng/src/ |
hb-buffer.h | 102 hb_buffer_reference (hb_buffer_t *buffer); 105 hb_buffer_destroy (hb_buffer_t *buffer); 108 hb_buffer_set_user_data (hb_buffer_t *buffer, 115 hb_buffer_get_user_data (hb_buffer_t *buffer, 126 hb_buffer_set_content_type (hb_buffer_t *buffer, 130 hb_buffer_get_content_type (hb_buffer_t *buffer); 134 hb_buffer_set_unicode_funcs (hb_buffer_t *buffer, 138 hb_buffer_get_unicode_funcs (hb_buffer_t *buffer); 141 hb_buffer_set_direction (hb_buffer_t *buffer, 145 hb_buffer_get_direction (hb_buffer_t *buffer); [all...] |
/external/apache-http/src/org/apache/http/message/ |
BufferedHeader.java | 62 * The buffer containing the entire header line. 64 private final CharArrayBuffer buffer; field in class:BufferedHeader 67 * The beginning of the header value in the buffer 73 * Creates a new header from a buffer. 77 * @param buffer the buffer containing the header to represent 81 public BufferedHeader(final CharArrayBuffer buffer) 85 if (buffer == null) { 87 ("Char array buffer may not be null"); 89 int colon = buffer.indexOf(':') [all...] |
ParserCursor.java | 96 CharArrayBuffer buffer = new CharArrayBuffer(16); local 97 buffer.append('['); 98 buffer.append(Integer.toString(this.lowerBound)); 99 buffer.append('>'); 100 buffer.append(Integer.toString(this.pos)); 101 buffer.append('>'); 102 buffer.append(Integer.toString(this.upperBound)); 103 buffer.append(']'); 104 return buffer.toString();
|
/external/stlport/test/eh/ |
test_algobase.cpp | 43 void operator()( TestClass* buffer ) const 45 EH_STD::uninitialized_copy((TestClass*)stuff, (TestClass*)end_of_stuff, buffer ); 46 EH_ASSERT( EH_STD::equal( (TestClass*)stuff, (TestClass*)end_of_stuff, buffer ) ); 47 stl_destroy( buffer, buffer+kBufferSize ); 61 void operator()( TestClass* buffer ) const 63 TestClass* buf_end = buffer + kBufferSize; 64 EH_STD::uninitialized_fill( buffer, buf_end, testValue ); 66 EH_ASSERT( buffer[i] == testValue ); 67 stl_destroy( buffer, buf_end ) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGPathByteStreamBuilder.cpp | 29 // Helper class that coalesces writes to a SVGPathByteStream to a local buffer. 79 CoalescingBuffer buffer(m_byteStream); 80 buffer.writeSegmentType(mode == RelativeCoordinates ? PathSegMoveToRel : PathSegMoveToAbs); 81 buffer.writeFloatPoint(targetPoint); 86 CoalescingBuffer buffer(m_byteStream); 87 buffer.writeSegmentType(mode == RelativeCoordinates ? PathSegLineToRel : PathSegLineToAbs); 88 buffer.writeFloatPoint(targetPoint); 93 CoalescingBuffer buffer(m_byteStream); 94 buffer.writeSegmentType(mode == RelativeCoordinates ? PathSegLineToHorizontalRel : PathSegLineToHorizontalAbs); 95 buffer.writeFloat(x) [all...] |
/system/core/logcat/tests/ |
logcat_test.cpp | 52 char buffer[5120]; local 57 while (fgets(buffer, sizeof(buffer), fp)) { 58 if (!strncmp(begin, buffer, sizeof(begin) - 1)) { 59 while (char *cp = strrchr(buffer, '\n')) { 62 log_id_t id = android_name_to_log_id(buffer + sizeof(begin) - 1); 82 char buffer[5120]; local 86 while (fgets(buffer, sizeof(buffer), fp)) { 87 if ((buffer[0] == '[') && (buffer[1] == ' ' 106 char buffer[5120]; local 130 char buffer[5120]; local 154 char buffer[5120]; local 176 char buffer[5120]; local 249 char buffer[5120]; local 281 char buffer[5120]; local 370 char buffer[5120]; local 439 char buffer[5120]; local 502 char buffer[5120]; local 548 char buffer[5120]; local 609 char buffer[5120]; local 638 char buffer[5120]; local [all...] |
/frameworks/base/core/java/android/text/method/ |
ScrollingMovementMethod.java | 25 * A movement method that interprets movement keys by scrolling the text buffer. 29 protected boolean left(TextView widget, Spannable buffer) { 30 return scrollLeft(widget, buffer, 1); 34 protected boolean right(TextView widget, Spannable buffer) { 35 return scrollRight(widget, buffer, 1); 39 protected boolean up(TextView widget, Spannable buffer) { 40 return scrollUp(widget, buffer, 1); 44 protected boolean down(TextView widget, Spannable buffer) { 45 return scrollDown(widget, buffer, 1); 49 protected boolean pageUp(TextView widget, Spannable buffer) { [all...] |
/external/chromium_org/remoting/base/ |
typed_buffer_unittest.cc | 19 // Check that the default constructor does not allocate the buffer. 21 TypedBuffer<Data> buffer; local 22 EXPECT_FALSE(buffer.get()); 23 EXPECT_FALSE(buffer); 24 EXPECT_EQ(buffer.length(), 0u); 27 // Check that allocating zero-size structure does not allocate the buffer. 29 TypedBuffer<Data> buffer(0); 30 EXPECT_FALSE(buffer.get()); 31 EXPECT_FALSE(buffer); 32 EXPECT_EQ(buffer.length(), 0u) [all...] |
/external/protobuf/src/google/protobuf/io/ |
printer_unittest.cc | 50 // where particular writes cross a buffer boundary and cases where they do 54 char buffer[8192]; local 56 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); 62 char buffer[8192]; local 65 ArrayOutputStream output(buffer, sizeof(buffer), block_size); 77 buffer[output.ByteCount()] = '\0'; 82 buffer); 87 char buffer[8192] local 115 char buffer[8192]; local 151 char buffer[8192]; local 172 char buffer[8192]; local 225 char buffer[8192]; local 237 char buffer[16]; local [all...] |
/external/skia/src/core/ |
SkImageInfo.cpp | 20 void SkImageInfo::unflatten(SkReadBuffer& buffer) { 21 fWidth = buffer.read32(); 22 fHeight = buffer.read32(); 24 uint32_t packed = buffer.read32(); 28 buffer.validate(alpha_type_is_valid(fAlphaType) && 32 void SkImageInfo::flatten(SkWriteBuffer& buffer) const { 33 buffer.write32(fWidth); 34 buffer.write32(fHeight); 39 buffer.write32(packed);
|
/frameworks/av/media/libnbaio/ |
SourceAudioBufferProvider.cpp | 48 status_t SourceAudioBufferProvider::getNextBuffer(Buffer *buffer, int64_t pts) 50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0); 54 if (mRemaining < buffer->frameCount) { 55 buffer->frameCount = mRemaining; 57 buffer->raw = (char *) mAllocated + (mOffset * mFrameSize); 58 mGetCount = buffer->frameCount; 62 if (buffer->frameCount > mSize) { 64 mAllocated = malloc(buffer->frameCount * mFrameSize) [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
HttpHeaderTest.java | 50 CharArrayBuffer buffer = new CharArrayBuffer(64); local 52 buffer.append(CACHE_CONTROL_MAX_AGE); 53 h.parseHeader(buffer); 55 buffer.clear(); 56 buffer.append(LAST_MODIFIED); 57 h.parseHeader(buffer); 60 buffer.clear(); 61 buffer.append(CACHE_CONTROL_PRIVATE); 62 h.parseHeader(buffer);
|
/packages/inputmethods/LatinIME/native/jni/tests/suggest/policyimpl/dictionary/utils/ |
buffer_with_extendable_buffer_test.cpp | 27 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); 31 EXPECT_TRUE(buffer.writeUint(data_1, 1 /* size */, pos)); 32 EXPECT_EQ(data_1, buffer.readUint(1, pos)); 36 EXPECT_TRUE(buffer.writeUint(data_2, 2 /* size */, pos)); 37 EXPECT_EQ(data_2, buffer.readUint(2, pos)); 41 EXPECT_TRUE(buffer.writeUint(data_3, 3 /* size */, pos)); 42 EXPECT_EQ(data_3, buffer.readUint(3, pos)); 46 EXPECT_TRUE(buffer.writeUint(data_4, 4 /* size */, pos)); 47 EXPECT_EQ(data_4, buffer.readUint(4, pos)); 51 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
SIPHeader.java | 98 StringBuffer buffer = new StringBuffer(encodedHdr); local 99 while (buffer.length() > 0 && buffer.charAt(0) != ':') { 100 buffer.deleteCharAt(0); 102 if (buffer.length() > 0) 103 buffer.deleteCharAt(0); 104 return buffer.toString().trim(); 121 public StringBuffer encode(StringBuffer buffer) { 122 buffer.append(this.headerName).append(COLON).append(SP); 123 this.encodeBody(buffer); [all...] |
/external/chromium_org/v8/test/cctest/ |
test-dtoa.cc | 61 Vector<char> buffer(buffer_container, kBufferSize); 66 DoubleToAscii(0.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); 67 CHECK_EQ("0", buffer.start()); 70 DoubleToAscii(0.0, DTOA_FIXED, 2, buffer, &sign, &length, &point); 72 CHECK_EQ("0", buffer.start()); 75 DoubleToAscii(0.0, DTOA_PRECISION, 3, buffer, &sign, &length, &point); 77 CHECK_EQ("0", buffer.start()); 80 DoubleToAscii(1.0, DTOA_SHORTEST, 0, buffer, &sign, &length, &point); 81 CHECK_EQ("1", buffer.start()); 84 DoubleToAscii(1.0, DTOA_FIXED, 3, buffer, &sign, &length, &point) [all...] |
test-bignum.cc | 52 char buffer[kBufferSize]; local 56 CHECK(bignum.ToHexString(buffer, kBufferSize)); 57 CHECK_EQ("0", buffer); 59 CHECK(bignum.ToHexString(buffer, kBufferSize)); 60 CHECK_EQ("A", buffer); 62 CHECK(bignum.ToHexString(buffer, kBufferSize)); 63 CHECK_EQ("20", buffer); 67 CHECK(bignum.ToHexString(buffer, kBufferSize)); 68 CHECK_EQ("0", buffer); 70 CHECK(bignum.ToHexString(buffer, kBufferSize)) 121 char buffer[kBufferSize]; local 159 char buffer[kBufferSize]; local 258 char buffer[kBufferSize]; local 348 char buffer[kBufferSize]; local 448 char buffer[kBufferSize]; local 549 char buffer[kBufferSize]; local 650 char buffer[kBufferSize]; local 980 char buffer[kBufferSize]; local 1361 char buffer[kBufferSize]; local 1392 char buffer[kBufferSize]; local [all...] |