HomeSort by relevance Sort by last modified time
    Searched refs:buffer (Results 226 - 250 of 13688) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/sfntly/cpp/src/sfntly/port/
output_stream.h 32 virtual void Write(ByteVector* buffer) = 0;
38 virtual void Write(ByteVector* buffer, int32_t offset, int32_t length) = 0;
40 // Note: Caller is responsible for the boundary of buffer.
41 virtual void Write(byte_t* buffer, int32_t offset, int32_t length) = 0;
  /external/swiftshader/src/Reactor/
LLVMRoutine.cpp 27 buffer = memory;
34 deallocateExecutable(buffer, bufferSize);
44 return functionSize - static_cast<int>((uintptr_t)entry - (uintptr_t)buffer);
  /frameworks/av/services/audiopolicy/common/managerdefinitions/src/
AudioSourceDescriptor.cpp 35 char buffer[SIZE]; local
38 snprintf(buffer, SIZE, "mStream: %d\n", audio_attributes_to_stream_type(&mAttributes));
39 result.append(buffer);
40 snprintf(buffer, SIZE, "mDevice:\n");
41 result.append(buffer);
51 char buffer[SIZE]; local
53 snprintf(buffer, SIZE, "\nAudio sources dump:\n");
54 write(fd, buffer, strlen(buffer));
56 snprintf(buffer, SIZE, "- Source %d dump:\n", keyAt(i))
    [all...]
VolumeCurve.cpp 74 char buffer[SIZE]; local
76 snprintf(buffer, SIZE, " {");
77 result.append(buffer);
79 snprintf(buffer, SIZE, "(%3d, %5d)",
81 result.append(buffer);
90 char buffer[SIZE]; local
94 snprintf(buffer, SIZE, "%s %02d %02d ",
96 result.append(buffer);
98 snprintf(buffer, SIZE, "%04x : %02d, ", mIndexCur.keyAt(i), mIndexCur.valueAt(i));
99 result.append(buffer);
121 char buffer[SIZE]; local
    [all...]
  /frameworks/base/libs/protoutil/tests/
EncodedBuffer_test.cpp 21 EncodedBuffer buffer; local
23 buffer.writeRawVarint64(val);
24 EXPECT_EQ(val, buffer.begin().readRawVarint());
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
ProtocolPortTupleTest.java 39 * Helper function for generating a buffer with test data.
47 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) local
49 buffer.put((byte) protocol);
50 buffer.putShort((short) port);
51 buffer.put((byte) status);
52 buffer.position(0);
53 return buffer;
57 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer.
67 * Verify that BufferUnderflowException will be thrown when parsing a buffer without
74 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1) local
88 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); local
    [all...]
  /packages/apps/Test/connectivity/sl4n/rapidjson/example/simpledom/
simpledom.cpp 22 StringBuffer buffer; local
23 Writer<StringBuffer> writer(buffer);
27 std::cout << buffer.GetString() << std::endl;
  /system/chre/apps/wifi_offload/
flatbuffers_serialization.cc 23 size_t Serialize(const wifi_offload::ScanStats &stats, uint8_t *buffer,
25 return Serialize(stats, buffer, buffer_len, "ScanStats");
28 bool Deserialize(const uint8_t *buffer, size_t buffer_len,
30 return Deserialize<wifi_offload::ScanStats>(buffer, buffer_len, stats,
34 size_t Serialize(const wifi_offload::ScanConfig &config, uint8_t *buffer,
36 return Serialize(config, buffer, buffer_len, "ScanConfig");
39 bool Deserialize(const uint8_t *buffer, size_t buffer_len,
41 return Deserialize<wifi_offload::ScanConfig>(buffer, buffer_len, config,
46 uint8_t *buffer, size_t buffer_len) {
49 return Serialize(msg, buffer, buffer_len, "ScanResults")
    [all...]
  /external/apache-http/src/org/apache/http/message/
BasicLineParser.java 125 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local
126 buffer.append(value);
128 return parser.parseProtocolVersion(buffer, cursor);
133 public ProtocolVersion parseProtocolVersion(final CharArrayBuffer buffer,
137 if (buffer == null) {
138 throw new IllegalArgumentException("Char array buffer may not be null");
150 skipWhitespace(buffer, cursor);
158 buffer.substring(indexFrom, indexTo));
164 ok = (buffer.charAt(i+j) == protoname.charAt(j));
167 ok = (buffer.charAt(i+protolength) == '/')
290 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local
390 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local
481 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); local
    [all...]
  /libcore/ojluni/src/main/java/sun/security/util/
DerInputStream.java 67 DerInputBuffer buffer; field in class:DerInputStream
73 * Create a DER input stream from a data buffer. The buffer is not
74 * copied, it is shared. Accordingly, the buffer should be treated
77 * @param data the buffer from which to create the string (CONSUMED)
84 * Create a DER input stream from part of a data buffer.
85 * The buffer is not copied, it is shared. Accordingly, the
86 * buffer should be treated as read-only.
88 * @param data the buffer from which to create the string (CONSUMED)
91 * @param len how long a chunk of the buffer to use
    [all...]
  /external/harfbuzz_ng/src/
hb-buffer.h 115 * @direction: the #hb_direction_t of the buffer, see hb_buffer_set_direction().
116 * @script: the #hb_script_t of the buffer, see hb_buffer_set_script().
117 * @language: the #hb_language_t of the buffer, see hb_buffer_set_language().
163 hb_buffer_reference (hb_buffer_t *buffer);
166 hb_buffer_destroy (hb_buffer_t *buffer);
169 hb_buffer_set_user_data (hb_buffer_t *buffer,
176 hb_buffer_get_user_data (hb_buffer_t *buffer,
182 * @HB_BUFFER_CONTENT_TYPE_INVALID: Initial value for new buffer.
183 * @HB_BUFFER_CONTENT_TYPE_UNICODE: The buffer contains input characters (before shaping).
184 * @HB_BUFFER_CONTENT_TYPE_GLYPHS: The buffer contains output glyphs (after shaping)
    [all...]
  /external/apache-http/src/org/apache/http/util/
CharArrayBuffer.java 52 private char[] buffer; field in class:CharArrayBuffer
58 throw new IllegalArgumentException("Buffer capacity may not be negative");
60 this.buffer = new char[capacity];
64 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)];
65 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len);
66 this.buffer = newbuffer;
81 if (newlen > this.buffer.length) {
84 System.arraycopy(b, off, this.buffer, this.len, len);
94 if (newlen > this.buffer.length) {
97 str.getChars(0, strlen, this.buffer, this.len)
177 public char[] buffer() { method in class:CharArrayBuffer
    [all...]
  /external/e2fsprogs/ext2ed/
blockbitmap_com.c 44 char *ptr,buffer [80]; local
48 ptr=parse_word (command_line,buffer); /* Get the requested entry */
53 ptr=parse_word (ptr,buffer);
55 entry_num=atol (buffer);
67 strcpy (buffer,"show");dispatch (buffer); /* dispatch a show command */
80 char *ptr,buffer [80]; local
82 ptr=parse_word (command_line,buffer);
84 ptr=parse_word (ptr,buffer);
85 entry_offset=atol (buffer);
96 char *ptr,buffer [80]; local
120 char *ptr,buffer [80]; local
149 char *ptr,buffer [80]; local
    [all...]
inodebitmap_com.c 31 char *ptr,buffer [80]; local
33 ptr=parse_word (command_line,buffer);
37 ptr=parse_word (ptr,buffer);
39 entry_num=atol (buffer);
46 strcpy (buffer,"show");dispatch (buffer);
53 char *ptr,buffer [80]; local
55 ptr=parse_word (command_line,buffer);
57 ptr=parse_word (ptr,buffer);
58 entry_offset=atol (buffer);
69 char *ptr,buffer [80]; local
85 char *ptr,buffer [80]; local
111 char *ptr,buffer [80]; local
    [all...]
  /external/ltp/testcases/kernel/fs/doio/
databin.c 44 void databingen(int mode, char *buffer, int bsize, int offset)
51 memset(buffer, 0x55, bsize);
55 memset(buffer, 0xf0, bsize);
60 buffer[ind] = ((offset + ind) % 8 & 0177);
65 memset(buffer, 0xff, bsize);
69 memset(buffer, 0x0, bsize);
74 buffer[ind] = (rand() & 0177) | 0100;
80 * >= 0 : error at byte offset into the file, offset+buffer[0-(bsize-1)]
83 int databinchk(int mode, char *buffer, int bsize, int offset, char **errmsg)
90 chr = (unsigned char *)buffer;
153 unsigned char *buffer; local
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/marshal/impl/
MarshalQueryablePrimitive.java 64 public T unmarshal(ByteBuffer buffer) {
65 return mClass.cast(unmarshalObject(buffer));
74 public void marshal(T value, ByteBuffer buffer) {
78 marshalPrimitive(val, buffer);
82 marshalPrimitive(val, buffer);
86 marshalPrimitive(val, buffer);
89 marshalPrimitive((Rational) value, buffer);
93 marshalPrimitive(val, buffer);
97 marshalPrimitive(val, buffer);
104 private void marshalPrimitive(int value, ByteBuffer buffer) {
    [all...]
  /frameworks/native/libs/gui/
BufferItem.cpp 120 static void writeAligned(void*& buffer, size_t& size, T value) {
121 size -= FlattenableUtils::align<alignof(T)>(buffer);
122 FlattenableUtils::write(buffer, size, value);
126 void*& buffer, size_t& size, int*& fds, size_t& count) const {
134 uint32_t& flags = *static_cast<uint32_t*>(buffer);
137 FlattenableUtils::advance(buffer, size, sizeof(uint32_t));
141 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
143 size -= FlattenableUtils::align<4>(buffer);
147 status_t err = mFence->flatten(buffer, size, fds, count);
149 size -= FlattenableUtils::align<4>(buffer);
    [all...]
  /external/syslinux/com32/hdt/
hdt-menu-summary.c 34 char buffer[SUBMENULEN + 1]; local
37 snprintf(buffer, sizeof(buffer), " Summary (%d CPU) ", hardware->physical_cpu_count);
38 menu->menu = add_menu(buffer, -1);
43 snprintf(buffer, sizeof buffer, "CPU Vendor : %s", hardware->cpu.vendor);
46 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
49 snprintf(buffer, sizeof buffer, "CPU Model : %s", hardware->cpu.model);
52 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0)
    [all...]
  /external/webrtc/webrtc/base/
stringencode.cc 26 size_t escape(char * buffer, size_t buflen,
29 RTC_DCHECK(buffer); // TODO(grunell): estimate output size
39 buffer[bufpos++] = escape;
41 buffer[bufpos++] = ch;
44 buffer[bufpos] = '\0';
48 size_t unescape(char * buffer, size_t buflen,
51 RTC_DCHECK(buffer); // TODO(grunell): estimate output size
61 buffer[bufpos++] = ch;
63 buffer[bufpos] = '\0';
67 size_t encode(char * buffer, size_t buflen
480 char* buffer = STACK_ARRAY(char, kBufferSize); local
542 char* buffer = STACK_ARRAY(char, maxlen + 1); local
551 char * buffer = STACK_ARRAY(char, maxlen); local
    [all...]
  /external/valgrind/none/tests/s390x/
srst.c 2 char buffer[24] ="0123456789abcdefghijklmn"; variable
52 buf = srst3(&buffer[23], &buffer[23], '0', &cc);
56 buf = srst3(&buffer[23], &buffer[0], '0', &cc);
60 buf = srst3(&buffer[23], &buffer[0], 'a', &cc);
64 buf = srst3(&buffer[23], &buffer[0], 'm', &cc);
68 buf = srst3(&buffer[23], &buffer[0], 'n', &cc)
    [all...]
  /system/core/logcat/tests/
logcat_benchmark.cpp 46 void init(const char* buffer) {
48 if (buffer != NULL) {
49 ok = sscanf(buffer, "%d-%d %d:%d:%d.%d ", &month, &day, &hour,
54 explicit timestamp(const char* buffer) {
55 init(buffer);
78 char buffer[5120]; local
83 while (fgets(buffer, sizeof(buffer), fp)) {
84 if (!strncmp(begin, buffer, sizeof(begin) - 1)) {
89 last_buffer = strdup(buffer);
    [all...]
  /device/google/contexthub/util/stm32_flash/
stm32_bl.c 45 uint8_t buffer[sizeof(uint8_t)+1]; local
47 buffer[0] = len-1;
49 return handle->write_data(handle, buffer, sizeof(uint8_t));
54 uint8_t buffer[sizeof(uint16_t)+1]; local
56 buffer[0] = (cnt >> 8) & 0xFF;
57 buffer[1] = (cnt ) & 0xFF;
59 return handle->write_data(handle, buffer, sizeof(uint16_t));
64 uint8_t buffer[sizeof(uint32_t)+1]; local
66 buffer[0] = (addr >> 24) & 0xFF;
67 buffer[1] = (addr >> 16) & 0xFF
77 uint8_t buffer[sizeof(uint8_t)+256+sizeof(uint8_t)]; local
103 uint8_t buffer[sizeof(uint16_t)+sizeof(uint16_t)+1]; local
    [all...]
  /external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/html/
HTMLElementTest.java 27 private StringWriter buffer; field in class:HTMLElementTest
33 buffer = new StringWriter();
34 root = new HTMLElement(buffer, "root") {
47 buffer.toString());
56 buffer.toString());
63 assertEquals("<root><title/></root>", buffer.toString());
70 assertEquals("<root><h1/></root>", buffer.toString());
77 assertEquals("<root><p/></root>", buffer.toString());
84 assertEquals("<root><span/></root>", buffer.toString());
91 assertEquals("<root><span class=\"abc\"/></root>", buffer.toString())
    [all...]
  /external/icu/icu4c/source/tools/genrb/
rle.c 41 appendEncodedByte(uint16_t* buffer, uint16_t* buffLimit, uint8_t value, uint8_t state[],UErrorCode* status) {
47 if(buffer < buffLimit){
48 *buffer++ = c;
53 return buffer;
58 return buffer;
66 encodeRunByte(uint16_t* buffer,uint16_t* bufLimit, uint8_t value, int32_t length, uint8_t state[], UErrorCode* status) {
74 buffer = appendEncodedByte(buffer,bufLimit, ESCAPE_BYTE, state,status);
76 buffer = appendEncodedByte(buffer,bufLimit, value, state, status)
    [all...]
  /external/clang/test/SemaCXX/
array-bounds-ptr-arith.cpp 27 char buffer[5]; // expected-note 2 {{declared here}} local
29 swallow(buffer + sizeof("Hello")-1); // expected-warning {{refers past the end of the array}}
30 swallow(buffer + (sizeof("Hello")-1)); // no-warning
31 if (n > 0 && n <= 6) swallow(buffer + 6 - n); // expected-warning {{refers past the end of the array}}
32 if (n > 0 && n <= 6) swallow(buffer + (6 - n)); // no-warning

Completed in 2064 milliseconds

1 2 3 4 5 6 7 8 91011>>