HomeSort by relevance Sort by last modified time
    Searched refs:buffer (Results 151 - 175 of 13129) sorted by null

1 2 3 4 5 67 8 91011>>

  /system/core/libutils/include/utils/
Flattenable.h 41 static size_t align(void const*& buffer) {
43 uintptr_t b = uintptr_t(buffer);
44 buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1));
45 return size_t(uintptr_t(buffer) - b);
49 static size_t align(void*& buffer) {
50 return align<N>( const_cast<void const*&>(buffer) );
53 static void advance(void*& buffer, size_t& size, size_t offset) {
54 buffer = reinterpret_cast<void*>( uintptr_t(buffer) + offset )
196 memcpy(static_cast<T*>(this), buffer, sizeof(T)); local
    [all...]
  /device/google/contexthub/util/nanotool/
nanomessage.cpp 32 bool HardwareVersionInfo::Populate(const std::vector<uint8_t>& buffer) {
33 if (buffer.size() != sizeof(VersionInfo)) {
37 const uint8_t *data = buffer.data();
51 char buffer[1024]; local
52 snprintf(buffer, sizeof(buffer), format_string,
58 return std::string(buffer);
66 char buffer[128]; local
67 snprintf(buffer, sizeof(buffer), format_string
98 char buffer[128]; local
107 char buffer[32]; local
224 char buffer[1024]; local
    [all...]
  /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());
  /external/skia/src/utils/
SkBitmapSourceDeserializer.cpp 16 sk_sp<SkFlattenable> SkBitmapSourceDeserializer::CreateProc(SkReadBuffer& buffer) {
18 if (buffer.isVersionLT(SkReadBuffer::kBitmapSourceFilterQuality_Version)) {
21 filterQuality = (SkFilterQuality)buffer.readInt();
24 buffer.readRect(&src);
25 buffer.readRect(&dst);
26 sk_sp<SkImage> image = buffer.readBitmapAsImage();
  /external/syslinux/com32/hdt/
hdt-cli-cpu.c 77 static void show_flag(char *buffer, bool flag, char *flag_name, bool flush)
83 * Before adding the flag into the buffer, let's check that adding it
85 if ((((strlen(buffer) + strlen(flag_name)) > 66) && flag) || flush) {
87 buffer);
89 memset(buffer, 0, sizeof(buffer));
95 strcat(buffer, flag_name);
101 char buffer[81]; local
160 memset(buffer, 0, sizeof(buffer));
    [all...]
hdt-menu-dmi.c 34 char buffer[SUBMENULEN + 1]; local
41 snprintf(buffer, sizeof buffer, "Vendor : %s", dmi->system.manufacturer);
44 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
47 snprintf(buffer, sizeof buffer, "Product : %s", dmi->system.product_name);
50 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
53 snprintf(buffer, sizeof buffer, "Version : %s", dmi->system.version);
55 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0)
92 char buffer[SUBMENULEN + 1]; local
140 char buffer[SUBMENULEN + 1]; local
181 char buffer[SUBMENULEN + 1]; local
238 char buffer[SUBMENULEN + 1]; local
295 char buffer[SUBMENULEN + 1]; local
    [all...]
hdt-menu-pxe.c 35 char buffer[SUBMENULEN + 1]; local
50 snprintf(buffer, sizeof buffer, "PCI Vendor : %d", p->vendor_id);
52 add_item(buffer, infobar, OPT_INACTIVE, NULL, 0);
55 snprintf(buffer, sizeof buffer, "PCI Product : %d", p->vendor_id);
57 add_item(buffer, infobar, OPT_INACTIVE, NULL, 0);
60 snprintf(buffer, sizeof buffer, "PCI SubVendor : %d", p->subvendor_id);
63 add_item(buffer, infobar, OPT_INACTIVE, NULL, 0)
    [all...]
hdt-cli-pxe.c 43 char buffer[81]; local
44 memset(buffer, 0, sizeof(81));
61 snprintf(buffer, sizeof(buffer),
65 snprintf(buffer, sizeof(buffer),
68 more_printf("%s", buffer);
70 snprintf(buffer, sizeof(buffer), " Manufacturer : %s \n",
72 more_printf("%s", buffer);
    [all...]
hdt-menu-disk.c 82 char buffer[SUBMENULEN + 1]; local
87 memset(buffer, 0, sizeof buffer);
108 snprintf(buffer, sizeof buffer, "Size : %s", remove_spaces(size));
110 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
112 snprintf(buffer, sizeof buffer, "Type : %s", parttype);
114 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
117 snprintf(buffer, sizeof buffer, "Bootloader : %s", bootloader_name)
156 char buffer[MENULEN + 1]; local
238 char buffer[MENULEN + 1]; local
    [all...]
  /frameworks/wilhelm/tools/hashgen/
frag3.c 4 extern void MPH_to_MPH_string(unsigned MPH, char buffer[40]);
18 char buffer[40]; local
19 buffer[39] = 'x';
20 MPH_to_MPH_string(MPH, buffer);
21 assert('x' == buffer[39]);
22 printf(" %s", buffer);
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/
shortcut_list_reading_utils.cpp 34 ShortcutListReadingUtils::getFlagsAndForwardPointer(const ReadOnlyByteArrayView buffer,
36 return ByteArrayUtils::readUint8AndAdvancePosition(buffer.data(), pos);
40 const ReadOnlyByteArrayView buffer, int *const pos) {
42 return ByteArrayUtils::readUint16AndAdvancePosition(buffer.data(), pos)
46 /* static */ int ShortcutListReadingUtils::readShortcutTarget(const ReadOnlyByteArrayView buffer,
49 return ByteArrayUtils::readStringAndAdvancePosition(buffer.data(), maxLength,
  /frameworks/av/media/libstagefright/foundation/
MediaBufferGroup.cpp 64 MediaBuffer *buffer = new MediaBuffer(mem); local
65 buffer->getSharedControl()->clear();
66 add_buffer(buffer);
73 MediaBuffer *buffer = new MediaBuffer(buffer_size); local
74 if (buffer->data() == nullptr) {
75 delete buffer; // don't call release, it's not properly formed
79 add_buffer(buffer);
84 for (MediaBuffer *buffer : mBuffers) {
85 if (buffer->refcount() != 0) {
86 const int localRefcount = buffer->localRefcount()
146 MediaBuffer *buffer = nullptr; local
    [all...]
  /external/webrtc/webrtc/base/
bitbuffer_unittest.cc 21 BitBuffer buffer(bytes, 32);
23 EXPECT_EQ(total_bits, buffer.RemainingBitCount());
24 EXPECT_TRUE(buffer.ConsumeBits(3));
26 EXPECT_EQ(total_bits, buffer.RemainingBitCount());
27 EXPECT_TRUE(buffer.ConsumeBits(3));
29 EXPECT_EQ(total_bits, buffer.RemainingBitCount());
30 EXPECT_TRUE(buffer.ConsumeBits(15));
32 EXPECT_EQ(total_bits, buffer.RemainingBitCount());
33 EXPECT_TRUE(buffer.ConsumeBits(37));
35 EXPECT_EQ(total_bits, buffer.RemainingBitCount())
    [all...]
  /external/mesa3d/src/gallium/auxiliary/util/
u_draw.c 58 const struct pipe_vertex_buffer *buffer = local
64 if (!buffer->buffer) {
68 assert(buffer->buffer->height0 == 1);
69 assert(buffer->buffer->depth0 == 1);
70 buffer_size = buffer->buffer->width0;
78 if (buffer->buffer_offset >= buffer_size)
    [all...]
  /system/gatekeeper/
gatekeeper_messages.cpp 39 static inline void append_to_buffer(uint8_t **buffer, const SizedBuffer *to_append) {
40 memcpy(*buffer, &to_append->length, sizeof(to_append->length));
41 *buffer += sizeof(to_append->length);
43 memcpy(*buffer, to_append->buffer.get(), to_append->length);
44 *buffer += to_append->length;
48 static inline gatekeeper_error_t read_from_buffer(const uint8_t **buffer, const uint8_t *end,
50 if (*buffer + sizeof(target->length) > end) return ERROR_INVALID;
52 memcpy(&target->length, *buffer, sizeof(target->length));
53 *buffer += sizeof(target->length)
    [all...]
  /packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
byte_array_utils_test.cpp 28 const uint8_t buffer[] = { 0x20u, 0x21u, 0x00u, 0x01u, 0x00u }; local
31 EXPECT_EQ(0x6f, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos));
33 EXPECT_EQ(0x6b, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos));
34 // Expect the original code point from buffer[2] to buffer[4], 0x100
36 EXPECT_EQ(0x100, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos));
40 const uint8_t buffer[] = { 0x1u, 0x8Au, 0x0u, 0xAAu }; local
42 EXPECT_EQ(0x01u, ByteArrayUtils::readUint8(buffer, 0));
43 EXPECT_EQ(0x8Au, ByteArrayUtils::readUint8(buffer, 1));
44 EXPECT_EQ(0x0u, ByteArrayUtils::readUint8(buffer, 2))
60 uint8_t buffer[4]; local
74 const uint8_t buffer[] = { 0x10, 0xFF, 0x00u, 0x20u, 0x41u, 0x1Fu, 0x60 }; local
92 uint8_t buffer[10]; local
    [all...]
  /device/google/marlin/dataservices/datatop/src/
datatop_fileops.h 42 int dt_read_file(const char *file, char **buffer, int len);
43 void dt_free(char **buffer);
  /device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
recv.c 32 @param [in] buffer Address of a buffer to receive the data.
34 @param [in] length Length of the buffer in bytes.
38 @return This routine returns the number of valid bytes in the buffer,
46 void * buffer,
57 buffer,
send.c 31 @param [in] buffer Address of a buffer containing the data to send.
33 @param [in] length Length of the buffer in bytes.
45 CONST void * buffer,
53 return sendto ( s, buffer, length, flags, NULL, 0 );
  /external/clang/test/CodeGen/
2003-10-02-UnionLValueError.c 9 void format_message(char *buffer, union U *u) {
10 sprintf(buffer, u->s);
  /external/google-breakpad/src/common/tests/
file_utils.h 41 // Reads the content of a file at |path| into |buffer|. |buffer_size| specifies
42 // the size of |buffer| in bytes and returns the number of bytes read from the
44 bool ReadFile(const char* path, void* buffer, ssize_t* buffer_size);
46 // Writes |buffer_size| bytes of the content in |buffer| to a file at |path|.
48 bool WriteFile(const char* path, const void* buffer, size_t buffer_size);
  /external/icu/icu4c/source/common/
ustrfmt.c 19 * @param buffer UChar buffer to receive result
20 * @param capacity capacity of buffer
30 uprv_itou (UChar * buffer, int32_t capacity,
40 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7));
45 buffer[length++] = (UChar) 0x0030;/*zero padding */
47 /* null terminate the buffer */
49 buffer[length] = (UChar) 0x0000;
54 temp = buffer[(length-1) - j];
55 buffer[(length-1) - j] = buffer[j]
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
BitWriterBuffer.java 7 private ByteBuffer buffer; field in class:BitWriterBuffer
11 public BitWriterBuffer(ByteBuffer buffer) {
12 this.buffer = buffer;
13 this.initialPos = buffer.position();
22 int current = (buffer.get(initialPos + position / 8));
25 buffer.put(initialPos + position / 8, (byte) (current > 127 ? current - 256 : current));
32 buffer.position(initialPos + position / 8 + ((position % 8 > 0) ? 1 : 0));
  /external/nist-sip/java/gov/nist/javax/sip/header/
Route.java 90 protected StringBuffer encodeBody(StringBuffer buffer) {
93 buffer.append('<');
94 address.encode(buffer);
95 buffer.append('>');
97 address.encode(buffer);
100 buffer.append(SEMICOLON);
101 parameters.encode(buffer);
103 return buffer;
  /external/openssh/
bufec.c 19 /* Emulation wrappers for legacy OpenSSH buffer API atop sshbuf */
25 #include "buffer.h"
32 buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve,
37 if ((ret = sshbuf_put_ec(buffer, point, curve)) != 0) {
45 buffer_put_ecpoint(Buffer *buffer, const EC_GROUP *curve,
48 if (buffer_put_ecpoint_ret(buffer, curve, point) == -1)
49 fatal("%s: buffer error", __func__);
53 buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve
    [all...]

Completed in 1555 milliseconds

1 2 3 4 5 67 8 91011>>