| /external/libmojo/mojo/common/ |
| data_pipe_utils.cc | 18 const void* buffer; local 21 source.get(), &buffer, &num_bytes, MOJO_READ_DATA_FLAG_NONE); 23 size_t bytes_written = write_bytes.Run(buffer, num_bytes); 49 std::string* result, const void* buffer, uint32_t num_bytes) { 50 result->append(static_cast<const char*>(buffer), num_bytes); 70 void* buffer = nullptr; local 73 BeginWriteDataRaw(destination.get(), &buffer, &buffer_num_bytes, 76 char* char_buffer = static_cast<char*>(buffer);
|
| /external/libmojo/mojo/public/c/system/tests/ |
| core_unittest_pure_c.c | 47 char buffer[200] = {0}; local 91 num_bytes = (uint32_t)sizeof(buffer); 92 EXPECT_EQ(MOJO_RESULT_OK, MojoReadMessage(handle1, buffer, &num_bytes, NULL, 95 EXPECT_EQ(0, memcmp(buffer, kHello, sizeof(kHello)));
|
| /external/libmojo/mojo/public/cpp/bindings/lib/ |
| serialization.h | 13 #include "mojo/public/cpp/bindings/lib/buffer.h" 42 // The serialization logic requires that the buffer is 8-byte aligned. If the 43 // result buffer is not properly aligned, we have to do an extra copy. In 53 Buffer buffer; local 54 buffer.Initialize(result_buffer, size); 56 Serialize<MojomType>(*input, &buffer, &data, &context);
|
| /external/libmojo/mojo/public/cpp/system/ |
| buffer.cc | 5 #include "mojo/public/cpp/system/buffer.h" 41 void* buffer = nullptr; local 42 MojoMapBuffer(value(), offset, size, &buffer, MOJO_MAP_BUFFER_FLAG_NONE); local 43 return ScopedSharedBufferMapping(buffer);
|
| /external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
| Message.java | 37 * @param buffer The buffer containing the bytes to send. This must be a direct buffer. 40 public Message(ByteBuffer buffer, List<? extends Handle> handles) { 41 assert buffer.isDirect(); 42 mBuffer = buffer;
|
| /external/libusb/libusb/ |
| sync.c | 77 * \param data a suitably-sized data buffer for either input or output 79 * \param wLength the length field for the setup packet. The data buffer should 99 unsigned char *buffer; local 110 buffer = (unsigned char*) malloc(LIBUSB_CONTROL_SETUP_SIZE + wLength); 111 if (!buffer) { 116 libusb_fill_control_setup(buffer, bmRequestType, bRequest, wValue, wIndex, 119 memcpy(buffer + LIBUSB_CONTROL_SETUP_SIZE, data, wLength); 121 libusb_fill_control_transfer(transfer, dev_handle, buffer, 167 unsigned char endpoint, unsigned char *buffer, int length, 181 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length [all...] |
| /external/libvncserver/common/ |
| md5.h | 91 char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32)))); member in struct:md5_ctx 105 starting at BUFFER. 107 extern void __md5_process_block (const void *buffer, size_t len, 112 starting at BUFFER. 114 extern void __md5_process_bytes (const void *buffer, size_t len, 117 /* Process the remaining bytes in the buffer and put result from CTX 141 /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The 145 extern void *__md5_buffer (const char *buffer, size_t len,
|
| /external/libvncserver/examples/ |
| fontsel.c | 17 char buffer[1024]; local 24 strcpy(buffer,FONTDIR); 25 strcat(buffer,fontlist[index]); 26 curFont = rfbLoadConsoleFont(buffer);
|
| rotatetemplate.c | 6 OUT_T* buffer = (OUT_T*)screen->frameBuffer; local 12 newBuffer[FUNC(i, j)] = buffer[i + j * w]; 14 memcpy(buffer, newBuffer, w * h * sizeof(OUT_T));
|
| /external/libvpx/libvpx/ |
| video_reader.c | 24 uint8_t *buffer; member in struct:VpxVideoReaderStruct 58 free(reader->buffer); 64 return !ivf_read_frame(reader->file, &reader->buffer, &reader->frame_size, 72 return reader->buffer;
|
| webmdec.h | 24 uint8_t *buffer; member in struct:WebmInputContext 43 // Reads a WebM Video Frame. Memory for the buffer is created, owned and managed 44 // by this function. For the first call, |buffer| should be NULL and 49 // buffer - pointer where the frame data will be filled. 50 // buffer_size - pointer to buffer size. 55 int webm_read_frame(struct WebmInputContext *webm_ctx, uint8_t **buffer,
|
| /external/libvpx/libvpx/vp8/encoder/ |
| boolhuff.h | 33 unsigned char *buffer; member in struct:__anon26146 38 extern void vp8_start_encode(BOOL_CODER *bc, unsigned char *buffer, 97 while (x >= 0 && br->buffer[x] == 0xff) { 98 br->buffer[x] = (unsigned char)0; 102 br->buffer[x] += 1; 105 validate_buffer(br->buffer + br->pos, 1, br->buffer_end, br->error); 106 br->buffer[br->pos++] = (lowvalue >> (24 - offset));
|
| /external/libvpx/libvpx/vpx_dsp/ |
| bitwriter.h | 27 uint8_t *buffer; member in struct:vpx_writer 30 void vpx_start_encode(vpx_writer *bc, uint8_t *buffer); 60 while (x >= 0 && br->buffer[x] == 0xff) { 61 br->buffer[x] = 0; 65 br->buffer[x] += 1; 68 br->buffer[br->pos++] = (lowvalue >> (24 - offset));
|
| /external/libxcam/xcore/ |
| xcam_common.cpp | 94 char buffer[XCAM_MAX_STR_SIZE] = {0}; local 98 vsnprintf (buffer, XCAM_MAX_STR_SIZE, format, va_list); 104 fwrite (buffer, sizeof (buffer[0]), strlen (buffer), p_file); 107 printf ("%s", buffer); 110 printf ("%s", buffer);
|
| /external/linux-kselftest/tools/testing/selftests/android/ion/ |
| ionutils.h | 25 unsigned char *buffer; member in struct:ion_buffer_info 29 /* This is used to fill the data into the mapped buffer */ 30 void write_buffer(void *buffer, unsigned long len); 32 /* This is used to read the data from the exported buffer */ 33 void read_buffer(void *buffer, unsigned long len); 35 /* This is used to create an ION buffer FD for the kernel buffer 36 * So you can export this same buffer to others in the form of FD 41 * So we point to same buffer without making a copy. Hence zero-copy.
|
| /external/linux-kselftest/tools/testing/selftests/powerpc/cache_shape/ |
| cache_shape.c | 57 static char buffer[4096]; local 61 FAIL_IF(read_auxv(buffer, sizeof(buffer))); 65 p = find_auxv_entry(AT_L1I_CACHESIZE, buffer); 71 p = find_auxv_entry(AT_L1I_CACHEGEOMETRY, buffer); 77 p = find_auxv_entry(AT_L1D_CACHESIZE, buffer); 83 p = find_auxv_entry(AT_L1D_CACHEGEOMETRY, buffer); 89 p = find_auxv_entry(AT_L2_CACHESIZE, buffer); 95 p = find_auxv_entry(AT_L2_CACHEGEOMETRY, buffer); 101 p = find_auxv_entry(AT_L3_CACHESIZE, buffer); [all...] |
| /external/llvm/include/llvm/Support/ |
| MD5.h | 44 uint8_t buffer[64]; member in class:llvm::MD5
|
| /external/llvm/unittests/ADT/ |
| ImmutableSetTest.cpp | 19 static char buffer[10]; member in class:__anon28274::ImmutableSetTest 25 MyIter() : counter(0), ptr(buffer) { 26 for (unsigned i=0; i<sizeof(buffer);++i) buffer[i]='\0'; 34 char ImmutableSetTest::buffer[10]; member in class:__anon28274::ImmutableSetTest 149 ASSERT_STREQ("aeiou", buffer); 161 ASSERT_STREQ("bcdfgh", buffer); 166 ASSERT_STREQ("bcd", buffer); 171 ASSERT_STREQ("", buffer);
|
| /external/ltp/testcases/kernel/device-drivers/uaccess/ |
| ltp_uaccess.c | 65 char *str, ch, buffer[str_size]; local 73 if (copy_from_user(buffer, str, str_size)) 75 test_result = strncmp(test_str, buffer, str_size) ? 1 : 0;
|
| /external/ltp/testcases/kernel/fs/doio/ |
| dataascii.c | 45 int dataasciigen(char *listofchars, char *buffer, int bsize, int offset) 54 chr = buffer; 73 int dataasciichk(char *listofchars, char *buffer, int bsize, 83 chr = buffer; 117 char *buffer; local 121 buffer = malloc(size); 122 if (buffer == NULL) { 127 dataasciigen(NULL, buffer, size, 0); 128 printf("dataasciigen(NULL, buffer, %d, 0)\n", size); 130 ret = dataasciichk(NULL, buffer, size, 0, &errmsg) [all...] |
| 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...] |
| /external/ltp/testcases/kernel/security/tomoyo/ |
| tomoyo_accept_test.c | 66 static char buffer[1024]; local 67 memset(buffer, 0, sizeof(buffer)); 68 snprintf(buffer, sizeof(buffer) - 1, "/tmp/file:a=%d:t=%d:c=%d:m=%d", 70 fprintf(exception_fp, "deny_rewrite %s\n", buffer); 74 fprintf(domain_fp, "delete %d %s\n", i, buffer); 78 unlink(buffer); 80 close(open(buffer, O_CREAT, 0644)); 82 fd = open(buffer, flags, 0644) [all...] |
| /external/ltp/testcases/kernel/syscalls/getcwd/ |
| getcwd02.c | 36 static char buffer[PATH_MAX]; variable 42 {buffer, sizeof(buffer)},
|
| /external/ltp/testcases/kernel/syscalls/gethostbyname_r/ |
| gethostbyname_r01.c | 34 char buffer[1024]; member in struct:__anon28540 37 "buffer", 72 char name[sizeof(temp.buffer)]; 80 len = sizeof(temp.buffer) - 16 - 2 * sizeof(char *) - 1; 84 retval = gethostbyname_r(name, &resbuf, temp.buffer, 85 sizeof(temp.buffer), &result, &herrno);
|
| /external/ltp/testcases/kernel/syscalls/keyctl/ |
| keyctl02.c | 54 char buffer[4] = { 0 }; local 56 keyctl(KEYCTL_READ, key, buffer, 4);
|