/external/webkit/Source/JavaScriptCore/wtf/url/src/ |
URLEscape.h | 40 inline void appendURLEscapedCharacter(InChar ch, URLBuffer<OutChar>& buffer) 42 buffer.append('%'); 43 buffer.append(hexCharacterTable[ch >> 4]); 44 buffer.append(hexCharacterTable[ch & 0xf]);
|
/external/webkit/Source/WebCore/platform/mac/ |
KURLMac.mm | 41 Vector<char, 512> buffer(bytesLength + 6); // 5 for "file:", 1 for null character to end C string 42 char* bytes = &buffer[5]; 50 buffer[0] = 'f'; 51 buffer[1] = 'i'; 52 buffer[2] = 'l'; 53 buffer[3] = 'e'; 54 buffer[4] = ':'; 56 parse(buffer.data(), 0);
|
/external/webkit/Source/WebCore/platform/qt/ |
SharedBufferQt.cpp | 42 Vector<char> buffer(file.size()); 43 file.read(buffer.data(), buffer.size()); 44 return SharedBuffer::adoptVector(buffer);
|
/frameworks/base/core/java/android/hardware/ |
SerialPort.java | 85 * Reads data into the provided buffer. 86 * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is 89 * @param buffer to read into 92 public int read(ByteBuffer buffer) throws IOException { 93 if (buffer.isDirect()) { 94 return native_read_direct(buffer, buffer.remaining()); 95 } else if (buffer.hasArray()) { 96 return native_read_array(buffer.array(), buffer.remaining()) [all...] |
/frameworks/base/core/java/android/text/method/ |
ArrowKeyMovementMethod.java | 33 private static boolean isSelecting(Spannable buffer) { 34 return ((MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SHIFT_ON) == 1) || 35 (MetaKeyKeyListener.getMetaState(buffer, MetaKeyKeyListener.META_SELECTING) != 0)); 38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); 51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, 58 && MetaKeyKeyListener.getMetaState(buffer, 65 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event); 69 protected boolean left(TextView widget, Spannable buffer) { 71 if (isSelecting(buffer)) { [all...] |
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...] |
/build/tools/fs_config/ |
fs_config.c | 44 char buffer[1024]; local 46 while (fgets(buffer, 1023, stdin) != NULL) { 49 for (i = 0; i < 1024 && buffer[i]; ++i) { 50 switch (buffer[i]) { 52 buffer[i-is_dir] = '\0'; 66 fs_config(buffer, is_dir, &uid, &gid, &mode, &capabilities); 67 printf("%s %d %d %o\n", buffer, uid, gid, mode);
|
/external/harfbuzz/src/ |
harfbuzz-buffer-private.h | 32 #include "harfbuzz-buffer.h" 39 _hb_buffer_swap( HB_Buffer buffer ); 42 _hb_buffer_clear_output( HB_Buffer buffer ); 45 _hb_buffer_clear_positions( HB_Buffer buffer ); 48 _hb_buffer_add_output_glyphs( HB_Buffer buffer, 56 _hb_buffer_add_output_glyph ( HB_Buffer buffer, 62 _hb_buffer_copy_output_glyph ( HB_Buffer buffer ); 65 _hb_buffer_replace_output_glyph ( HB_Buffer buffer, 70 _hb_buffer_allocate_ligid( HB_Buffer buffer ); 75 #define IN_GLYPH( pos ) (buffer->in_string[(pos)].gindex [all...] |
/external/harfbuzz_ng/src/hb-old/ |
harfbuzz-buffer-private.h | 32 #include "harfbuzz-buffer.h" 39 _hb_buffer_swap( HB_Buffer buffer ); 42 _hb_buffer_clear_output( HB_Buffer buffer ); 45 _hb_buffer_clear_positions( HB_Buffer buffer ); 48 _hb_buffer_add_output_glyphs( HB_Buffer buffer, 56 _hb_buffer_add_output_glyph ( HB_Buffer buffer, 62 _hb_buffer_copy_output_glyph ( HB_Buffer buffer ); 65 _hb_buffer_replace_output_glyph ( HB_Buffer buffer, 70 _hb_buffer_allocate_ligid( HB_Buffer buffer ); 75 #define IN_GLYPH( pos ) (buffer->in_string[(pos)].gindex [all...] |
/external/srtp/crypto/rng/ |
prng.c | 82 v128_t buffer; local 107 /* copy state into buffer */ 108 v128_copy(&buffer, &x917_prng.state); 110 /* apply aes to buffer */ 111 aes_encrypt(&buffer, x917_prng.key); 114 *dest++ = buffer.v8[0]; 115 *dest++ = buffer.v8[1]; 116 *dest++ = buffer.v8[2]; 117 *dest++ = buffer.v8[3]; 118 *dest++ = buffer.v8[4] [all...] |
/system/core/libcutils/ |
buffer.h | 18 * Byte buffer utilities. 31 * Byte buffer of known size. Keeps track of how much data has been read 32 * into or written out of the buffer. 46 /** Actual # of bytes in the buffer. */ 49 /** Amount of memory allocated for this buffer. */ 51 } Buffer; 54 * Returns true if all data has been read into the buffer. 56 #define bufferReadComplete(buffer) (buffer->expected == buffer->size [all...] |
/external/harfbuzz_ng/src/ |
hb-fallback-shape.cc | 94 hb_buffer_t *buffer, 101 buffer->clear_positions (); 103 unsigned int count = buffer->len; 107 if (buffer->unicode->is_default_ignorable (buffer->info[i].codepoint)) { 108 buffer->info[i].codepoint = space; 109 buffer->pos[i].x_advance = 0; 110 buffer->pos[i].y_advance = 0; 113 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/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...] |
/frameworks/base/tests/CoreTests/android/core/ |
HttpHeaderTest.java | 54 CharArrayBuffer buffer = new CharArrayBuffer(64); local 56 buffer.append(CACHE_CONTROL_MAX_AGE); 57 h.parseHeader(buffer); 59 buffer.clear(); 60 buffer.append(LAST_MODIFIED); 61 h.parseHeader(buffer); 64 buffer.clear(); 65 buffer.append(CACHE_CONTROL_PRIVATE); 66 h.parseHeader(buffer); 86 CharArrayBuffer buffer = new CharArrayBuffer(64) local [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/util/ |
RingBuffer.java | 7 * Ring buffer (fixed size queue) implementation using a circular array (array 14 private T[] buffer; // queue elements field in class:RingBuffer 21 buffer = (T[]) new Object[capacity]; 33 if (count == buffer.length) { 34 throw new RuntimeException("Ring buffer overflow"); 36 buffer[indexIn] = item; 37 indexIn = (indexIn + 1) % buffer.length; // wrap-around 43 throw new RuntimeException("Ring buffer underflow"); 45 T item = buffer[indexOut]; 46 buffer[indexOut] = null; // to help with garbage collectio [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/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/webkit/Source/WebCore/platform/cf/ |
KURLCFNet.cpp | 44 Vector<char, 512> buffer(bytesLength + 6); // 5 for "file:", 1 for null character to end C string 45 char* bytes = &buffer[5]; 53 buffer[0] = 'f'; 54 buffer[1] = 'i'; 55 buffer[2] = 'l'; 56 buffer[3] = 'e'; 57 buffer[4] = ':'; 59 parse(buffer.data(), 0); 68 Vector<char, 512> buffer; local 69 copyToBuffer(buffer); [all...] |
/external/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...] |
/external/dropbear/ |
rsa.h | 29 #include "buffer.h" 47 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data, 50 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data, 53 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key); 54 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key); 55 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key); 56 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key);
|
/external/easymock/src/org/easymock/internal/ |
ErrorMessage.java | 44 public void appendTo(StringBuilder buffer, int matches) {
45 buffer.append("\n ").append(message).append(", actual: ");
48 buffer.append(getActualCount() + 1);
50 buffer.append(getActualCount());
51 buffer.append(" (+1)");
55 buffer.append(getActualCount());
|