/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/mojo/system/ |
message_pipe_unittest.cc | 22 // - with buffer size 0 (and null buffer) -- should get size 23 // - with too-small buffer -- should get size 33 int32_t buffer[2]; local 34 const uint32_t kBufferSize = static_cast<uint32_t>(sizeof(buffer)); 38 buffer[0] = 123; 39 buffer[1] = 456; 43 buffer, &buffer_size, 47 EXPECT_EQ(123, buffer[0]); 48 EXPECT_EQ(456, buffer[1]) 212 int32_t buffer[1]; local 243 int32_t buffer[2]; local 362 int32_t buffer[1]; local 441 int32_t buffer[1]; local [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-fallback-shape.cc | 94 hb_buffer_t *buffer, 112 buffer->clear_positions (); 114 unsigned int count = buffer->len; 118 if (has_space && buffer->unicode->is_default_ignorable (buffer->info[i].codepoint)) { 119 buffer->info[i].codepoint = space; 120 buffer->pos[i].x_advance = 0; 121 buffer->pos[i].y_advance = 0; 124 font->get_glyph (buffer->info[i].codepoint, 0, &buffer->info[i].codepoint) [all...] |
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/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/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 | 57 * The buffer containing the entire header line. 59 private final CharArrayBuffer buffer; field in class:BufferedHeader 62 * The beginning of the header value in the buffer 68 * Creates a new header from a buffer. 72 * @param buffer the buffer containing the header to represent 76 public BufferedHeader(final CharArrayBuffer buffer) 80 if (buffer == null) { 82 ("Char array buffer may not be null"); 84 int colon = buffer.indexOf(':') [all...] |
ParserCursor.java | 91 CharArrayBuffer buffer = new CharArrayBuffer(16); local 92 buffer.append('['); 93 buffer.append(Integer.toString(this.lowerBound)); 94 buffer.append('>'); 95 buffer.append(Integer.toString(this.pos)); 96 buffer.append('>'); 97 buffer.append(Integer.toString(this.upperBound)); 98 buffer.append(']'); 99 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...] |
/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...] |
/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/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 352 AudioBufferQueue buffer; local 430 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/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);
|
/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/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);
|
/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...] |