/third_party/skia/src/core/ |
H A D | SkPicture.cpp | 25 // Note: in the read/write buffer versions, we have a slightly different convention: 106 bool SkPicture::BufferIsSKP(SkReadBuffer* buffer, SkPictInfo* pInfo) { in BufferIsSKP() argument 109 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP() 113 info.setVersion(buffer->readUInt()); in BufferIsSKP() 114 buffer->readRect(&info.fCullRect); in BufferIsSKP() 125 SkReadBuffer* buffer) { in Forwardport() 134 playback.draw(r.beginRecording(info.fCullRect), nullptr/*no callback*/, buffer); in Forwardport() 197 sk_sp<SkPicture> SkPicturePriv::MakeFromBuffer(SkReadBuffer& buffer) { in MakeFromBuffer() argument 199 if (!SkPicture::BufferIsSKP(&buffer, &info)) { in MakeFromBuffer() 203 int32_t ssize = buffer in MakeFromBuffer() 123 Forwardport(const SkPictInfo& info, const SkPictureData* data, SkReadBuffer* buffer) Forwardport() argument 298 Flatten(const sk_sp<const SkPicture> picture, SkWriteBuffer& buffer) Flatten() argument [all...] |
H A D | SkCanvasPriv.cpp | 42 bool SkCanvasPriv::ReadLattice(SkReadBuffer& buffer, SkCanvas::Lattice* lattice) { in ReadLattice() argument 43 lattice->fXCount = buffer.readInt(); in ReadLattice() 44 lattice->fXDivs = buffer.skipT<int32_t>(lattice->fXCount); in ReadLattice() 45 lattice->fYCount = buffer.readInt(); in ReadLattice() 46 lattice->fYDivs = buffer.skipT<int32_t>(lattice->fYCount); in ReadLattice() 47 int flagCount = buffer.readInt(); in ReadLattice() 51 lattice->fRectTypes = buffer.skipT<SkCanvas::Lattice::RectType>(flagCount); in ReadLattice() 52 lattice->fColors = buffer.skipT<SkColor>(flagCount); in ReadLattice() 54 lattice->fBounds = buffer.skipT<SkIRect>(); in ReadLattice() 55 return buffer in ReadLattice() 58 WriteLattice(void* buffer, const SkCanvas::Lattice& lattice) WriteLattice() argument 82 WriteLattice(SkWriteBuffer& buffer, const SkCanvas::Lattice& lattice) WriteLattice() argument [all...] |
/third_party/curl/tests/server/ |
H A D | socksd.c | 192 char buffer[512]; in getconfig() local 194 while(fgets(buffer, sizeof(buffer), fp)) { in getconfig() 197 if(2 == sscanf(buffer, "%31s %259s", key, value)) { in getconfig() 245 static void loghex(unsigned char *buffer, ssize_t len) in loghex() argument 249 unsigned char *ptr = buffer; in loghex() 313 unsigned char *buffer, in socks4() 321 if(buffer[SOCKS4_CD] != 1) { in socks4() 322 logmsg("SOCKS4 CD is not 1: %d", buffer[SOCKS4_CD]); in socks4() 330 s4port = (unsigned short)((buffer[SOCKS4_DSTPOR in socks4() 312 socks4(curl_socket_t fd, unsigned char *buffer, ssize_t rc) socks4() argument 368 unsigned char buffer[2*256 + 16]; sockit() local 653 char buffer[512]; tunnel() local [all...] |
H A D | getpart.c | 107 static size_t line_length(const char *buffer, int bytestocheck) in line_length() argument 111 while(*buffer != '\n' && --bytestocheck) { in line_length() 113 buffer++; in line_length() 115 if(*buffer != '\n') { in line_length() 130 * Reads a complete line from a file into a dynamically allocated buffer. 132 * Calling function may call this multiple times with same 'buffer' 133 * and 'bufsize' pointers to avoid multiple buffer allocations. Buffer 135 * buffer before returning it. 137 * Calling function is responsible to free allocated buffer. 145 static int readline(char **buffer, size_ argument 317 char *buffer = NULL; getpart() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/android/ |
H A D | AHBFunctions.h | 21 void acquire(AHardwareBuffer *buffer) const { mAcquireFn(buffer); } in acquire() 22 void describe(const AHardwareBuffer *buffer, AHardwareBuffer_Desc *outDesc) const in describe() argument 24 mDescribeFn(buffer, outDesc); in describe() 26 void release(AHardwareBuffer *buffer) const { mReleaseFn(buffer); } in release() 31 using PFN_AHARDWAREBUFFER_acquire = void (*)(AHardwareBuffer *buffer); 32 using PFN_AHARDWAREBUFFER_describe = void (*)(const AHardwareBuffer *buffer, 34 using PFN_AHARDWAREBUFFER_release = void (*)(AHardwareBuffer *buffer);
|
/third_party/libuv/test/ |
H A D | test-platform-output.c | 28 char buffer[512]; in TEST_IMPL() local 46 err = uv_get_process_title(buffer, sizeof(buffer)); in TEST_IMPL() 48 printf("uv_get_process_title: %s\n", buffer); in TEST_IMPL() 50 size = sizeof(buffer); in TEST_IMPL() 51 err = uv_cwd(buffer, &size); in TEST_IMPL() 53 printf("uv_cwd: %s\n", buffer); in TEST_IMPL() 132 uv_ip4_name(&interfaces[i].address.address4, buffer, sizeof(buffer)); in TEST_IMPL() 134 uv_ip6_name(&interfaces[i].address.address6, buffer, sizeo in TEST_IMPL() [all...] |
/third_party/ltp/testcases/network/rpc/basic_tests/rpc01/ |
H A D | rpc1.c | 27 struct data buffer, *return_buffer; in main() local 106 buffer.address = host_address; in main() 107 buffer.request_id = getpid(); in main() 117 buffer.data_length = stat_buffer.st_size; in main() 118 if (buffer.data_length > 2187) { in main() 123 buffer.data = malloc(buffer.data_length); in main() 124 for (i = 0, p = buffer.data; i < buffer.data_length; i++, p++) in main() 129 (char *)&buffer, (xdrproc_ in main() 168 do_compare(int rpc_rc, char *msg, struct data *buffer, char *ret_data) do_compare() argument [all...] |
/third_party/skia/tests/ |
H A D | GrAHardwareBufferTest.cpp | 95 static void cleanup_resources(AHardwareBuffer* buffer) { in cleanup_resources() argument 96 if (buffer) { in cleanup_resources() 97 AHardwareBuffer_release(buffer); in cleanup_resources() 120 AHardwareBuffer* buffer = nullptr; in basic_draw_test_helper() local 135 if (int error = AHardwareBuffer_allocate(&hwbDesc, &buffer)) { in basic_draw_test_helper() 136 ERRORF(reporter, "Failed to allocated hardware buffer, error: %d", error); in basic_draw_test_helper() 137 cleanup_resources(buffer); in basic_draw_test_helper() 141 // Get actual desc for allocated buffer so we know the stride for uploading cpu data. in basic_draw_test_helper() 142 AHardwareBuffer_describe(buffer, &hwbDesc); in basic_draw_test_helper() 145 if (AHardwareBuffer_lock(buffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTE in basic_draw_test_helper() 230 AHardwareBuffer* buffer = nullptr; surface_draw_test_helper() local [all...] |
/third_party/skia/third_party/externals/freetype/src/psaux/ |
H A D | psstack.c | 67 /* allocate the stack buffer */ in FT_LOCAL_DEF() 68 if ( FT_QNEW_ARRAY( stack->buffer, stackSize ) ) in FT_LOCAL_DEF() 75 stack->top = stack->buffer; /* empty stack */ in FT_LOCAL_DEF() 88 /* free the buffer */ in cf2_stack_free() 89 FT_FREE( stack->buffer ); in cf2_stack_free() 100 return (CF2_UInt)( stack->top - stack->buffer ); in FT_LOCAL_DEF() 108 if ( stack->top == stack->buffer + stack->stackSize ) in cf2_stack_pushInt() 124 if ( stack->top == stack->buffer + stack->stackSize ) in cf2_stack_pushFixed() 140 if ( stack->top == stack->buffer ) in FT_LOCAL_DEF() 162 if ( stack->top == stack->buffer ) in FT_LOCAL_DEF() [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | Utf8Test.java | 106 ByteBuffer buffer = ByteBuffer.wrap(data); in assertIsValid() 110 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer.remaining())); in assertIsValid() 113 buffer = ByteBuffer.allocateDirect(data.length); in assertIsValid() 114 buffer.put(data); in assertIsValid() 115 buffer.flip(); in assertIsValid() 119 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer in assertIsValid() [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | norm2allmodes.h | 53 ReorderingBuffer buffer(impl, dest); 54 if(buffer.init(src.length(), errorCode)) { 55 normalize(sArray, sArray+src.length(), buffer, errorCode); 61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend() 94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend() 96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend() 108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 111 UChar buffer[4]; variable 113 const UChar *d=impl.getDecomposition(c, buffer, lengt 126 UChar buffer[30]; global() variable [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | norm2allmodes.h | 53 ReorderingBuffer buffer(impl, dest); 54 if(buffer.init(src.length(), errorCode)) { 55 normalize(sArray, sArray+src.length(), buffer, errorCode); 61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend() 94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend() 96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend() 108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 111 char16_t buffer[4]; variable 113 const char16_t *d=impl.getDecomposition(c, buffer, lengt 126 char16_t buffer[30]; global() variable [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | norm2allmodes.h | 53 ReorderingBuffer buffer(impl, dest); 54 if(buffer.init(src.length(), errorCode)) { 55 normalize(sArray, sArray+src.length(), buffer, errorCode); 61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend() 94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend() 96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend() 108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0; 111 UChar buffer[4]; variable 113 const UChar *d=impl.getDecomposition(c, buffer, lengt 126 UChar buffer[30]; global() variable [all...] |
/third_party/zlib/contrib/untgz/ |
H A D | untgz.c | 104 char buffer[BLOCKSIZE]; member 133 static char buffer[1024]; in TGZfname() local 136 strcpy(buffer,arcname); in TGZfname() 137 origlen = strlen(buffer); in TGZfname() 141 strcpy(buffer+origlen,TGZsuffix[i]); in TGZfname() 142 if (access(buffer,F_OK) == 0) in TGZfname() 143 return buffer; in TGZfname() 357 char *buffer = strdup(newdir); in makedir() local 359 int len = strlen(buffer); in makedir() 363 free(buffer); in makedir() 425 union tar_buffer buffer; tar() local [all...] |
/third_party/cJSON/tests/ |
H A D | print_value.c | 35 printbuffer buffer = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } }; in assert_print_value() local 37 buffer.buffer = printed; in assert_print_value() 38 buffer.length = sizeof(printed); in assert_print_value() 39 buffer.offset = 0; in assert_print_value() 40 buffer.noalloc = true; in assert_print_value() 41 buffer.hooks = global_hooks; in assert_print_value() 51 TEST_ASSERT_TRUE_MESSAGE(print_value(item, &buffer), "Failed to print value."); in assert_print_value() 52 TEST_ASSERT_EQUAL_STRING_MESSAGE(input, buffer.buffer, "Printe in assert_print_value() [all...] |
/third_party/musl/porting/linux/user/src/internal/ |
H A D | musl_log.c | 41 char buffer[PATH_MAX + 1];
in musl_log() local 42 int result = vsnprintf(buffer, PATH_MAX, fmt, ap);
in musl_log() 48 buffer[result] = '\n';
in musl_log() 49 buffer[result + 1] = '\0';
in musl_log() 51 g_dfxLogPtr(buffer, strlen(buffer));
in musl_log() 57 g_dfxLogPtr(buffer, strlen(buffer));
in musl_log() 72 g_dfxLogPtr(buffer, strlen(buffer));
in musl_log() [all...] |
/third_party/ltp/testcases/kernel/fs/mongo/ |
H A D | mongo_slinks.c | 28 char *buffer = NULL; in main() local 33 if ((buffer = malloc(size + 1)) == NULL) { in main() 64 // Increase size of buffer to readlink untile whole symlink body will be read. in main() 68 memset(buffer, 0, size + 1); in main() 69 num = readlink(new_path, buffer, size); in main() 72 free(buffer); in main() 76 if (buffer[num] != 0) { in main() 79 free(buffer); in main() 86 // Only part of symlink body was read. So we make a bigger buffer in main() 89 if ((buffer in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mprotect.c | 31 void *buffer = memalign(align, 8 * align); in mprotect_0100() local 32 int ret = mprotect(buffer, getpagesize(), PROT_READ); in mprotect_0100() 44 void *buffer = memalign(align, 8 * align); in mprotect_0200() local 45 int ret = mprotect(buffer, getpagesize(), PROT_WRITE); in mprotect_0200() 57 void *buffer = memalign(align, 8 * align); in mprotect_0300() local 58 int ret = mprotect(buffer, getpagesize(), PROT_EXEC); in mprotect_0300() 70 void *buffer = memalign(align, 8 * align); in mprotect_0400() local 71 int ret = mprotect(buffer, getpagesize(), PROT_NONE); in mprotect_0400() 83 void *buffer = memalign(align, 8 * align); in mprotect_0500() local 84 int ret = mprotect(buffer, getpagesiz in mprotect_0500() [all...] |
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
H A D | FullDuplexAnalyzer.cpp | 42 float buffer[2]; in onBothStreamsReady() local 45 buffer[0] = *outputFloat; in onBothStreamsReady() 47 buffer[1] = *inputFloat; in onBothStreamsReady() 49 mRecording->write(buffer, 1); in onBothStreamsReady() 52 buffer[0] = 0.0f; // gap in output in onBothStreamsReady() 54 buffer[1] = *inputFloat; in onBothStreamsReady() 56 mRecording->write(buffer, 1); in onBothStreamsReady() 58 buffer[1] = 0.0f; // gap in input in onBothStreamsReady() 60 buffer[0] = *outputFloat; in onBothStreamsReady() 62 mRecording->write(buffer, in onBothStreamsReady() [all...] |
/third_party/pcre2/pcre2/maint/ |
H A D | utf8.c | 80 buffer pointer to buffer for result - at least 6 bytes long 82 Returns: number of bytes placed in the buffer 87 ord2utf8(unsigned long int cvalue, unsigned char *buffer) in ord2utf8() argument 93 buffer += i; in ord2utf8() 96 *buffer-- = 0x80 | (cvalue & 0x3f); in ord2utf8() 99 *buffer = utf8_table2[i] | cvalue; in ord2utf8() 115 buffer a pointer to the byte vector 116 buffend a pointer to the end of the buffer 129 utf82ord(unsigned char *buffer, unsigne argument 215 unsigned char buffer[64]; main() local [all...] |
/third_party/icu/icu4c/source/io/ |
H A D | sscanf.cpp | 36 u_sscanf(const UChar *buffer, in u_sscanf() argument 44 converted = u_vsscanf(buffer, patternSpecification, ap); in u_sscanf() 51 u_sscanf_u(const UChar *buffer, in u_sscanf_u() argument 59 converted = u_vsscanf_u(buffer, patternSpecification, ap); in u_sscanf_u() 66 u_vsscanf(const UChar *buffer, in u_vsscanf() argument 88 converted = u_vsscanf_u(buffer, pattern, ap); in u_vsscanf() 99 u_vsscanf_u(const UChar *buffer, in u_vsscanf_u() argument 113 inStr.str.fBuffer = (UChar *)buffer; in u_vsscanf_u() 114 inStr.str.fPos = (UChar *)buffer; in u_vsscanf_u() 115 inStr.str.fLimit = buffer in u_vsscanf_u() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
H A D | buffer_backed_descriptor.cc | 25 BufferBackedDescriptor::BufferBackedDescriptor(Buffer* buffer, in BufferBackedDescriptor() argument 32 AddAmberBuffer(buffer); in BufferBackedDescriptor() 39 Buffer* buffer, in RecordCopyBufferDataToTransferResourceIfNeeded() 41 transfer_resource->UpdateMemoryWithRawData(*buffer->ValuePtr()); in RecordCopyBufferDataToTransferResourceIfNeeded() 42 // If the resource is read-only, keep the buffer data; Amber won't copy in RecordCopyBufferDataToTransferResourceIfNeeded() 44 // leave the buffer intact. in RecordCopyBufferDataToTransferResourceIfNeeded() 46 buffer->ValuePtr()->clear(); in RecordCopyBufferDataToTransferResourceIfNeeded() 64 Buffer* buffer) { in MoveTransferResourceToBufferOutput() 65 // No need to move read only resources to an output buffer. in MoveTransferResourceToBufferOutput() 77 if (!buffer in MoveTransferResourceToBufferOutput() 37 RecordCopyBufferDataToTransferResourceIfNeeded( CommandBuffer* command_buffer, Buffer* buffer, Resource* transfer_resource) RecordCopyBufferDataToTransferResourceIfNeeded() argument 62 MoveTransferResourceToBufferOutput( Resource* transfer_resource, Buffer* buffer) MoveTransferResourceToBufferOutput() argument [all...] |
/third_party/skia/third_party/externals/icu/source/io/ |
H A D | sscanf.cpp | 36 u_sscanf(const UChar *buffer, in u_sscanf() argument 44 converted = u_vsscanf(buffer, patternSpecification, ap); in u_sscanf() 51 u_sscanf_u(const UChar *buffer, in u_sscanf_u() argument 59 converted = u_vsscanf_u(buffer, patternSpecification, ap); in u_sscanf_u() 66 u_vsscanf(const UChar *buffer, in u_vsscanf() argument 88 converted = u_vsscanf_u(buffer, pattern, ap); in u_vsscanf() 99 u_vsscanf_u(const UChar *buffer, in u_vsscanf_u() argument 113 inStr.str.fBuffer = (UChar *)buffer; in u_vsscanf_u() 114 inStr.str.fPos = (UChar *)buffer; in u_vsscanf_u() 115 inStr.str.fLimit = buffer in u_vsscanf_u() [all...] |
/third_party/node/src/ |
H A D | node_report_utils.cc | 86 MaybeStackBuffer<char> buffer; in ReportPipeEndpoints() local 87 size_t buffer_size = buffer.capacity(); in ReportPipeEndpoints() 90 // First call to get required buffer size. in ReportPipeEndpoints() 91 rc = uv_pipe_getsockname(&handle->pipe, buffer.out(), &buffer_size); in ReportPipeEndpoints() 93 buffer.AllocateSufficientStorage(buffer_size); in ReportPipeEndpoints() 94 rc = uv_pipe_getsockname(&handle->pipe, buffer.out(), &buffer_size); in ReportPipeEndpoints() 97 buffer.SetLength(buffer_size); in ReportPipeEndpoints() 98 writer->json_keyvalue("localEndpoint", buffer.ToStringView()); in ReportPipeEndpoints() 103 // First call to get required buffer size. in ReportPipeEndpoints() 104 buffer_size = buffer in ReportPipeEndpoints() 120 MaybeStackBuffer<char> buffer; ReportPath() local [all...] |
/test/xts/device_attest_lite/test/tdd/gtest/src/ |
H A D | attest_tdd_mock_hal.c | 105 int32_t AttestReadAuthStatus(char* buffer, uint32_t bufferLen) in AttestReadAuthStatus() argument 107 int32_t ret = memcpy_s(buffer, bufferLen, ATTEST_MOCK_HAL_STATUS, ATTEST_MOCK_HAL_STATUS_LEN); in AttestReadAuthStatus() 118 int32_t AttestReadAuthResultCode(char* buffer, uint32_t bufferLen) in AttestReadAuthResultCode() argument 120 int32_t ret = memcpy_s(buffer, bufferLen, ATTEST_RESULT_CODE, ATTEST_RESULT_CODE_LEN); in AttestReadAuthResultCode() 129 int32_t AttestWriteNetworkConfig(const char* buffer, uint32_t bufferLen) in AttestWriteNetworkConfig() argument 131 (void)buffer; in AttestWriteNetworkConfig() 136 int32_t AttestReadNetworkConfig(char* buffer, uint32_t bufferLen) in AttestReadNetworkConfig() argument 138 if (buffer == NULL) { in AttestReadNetworkConfig() 145 ret = memcpy_s(buffer, bufferLen, in AttestReadNetworkConfig() 149 ret = memcpy_s(buffer, bufferLe in AttestReadNetworkConfig() 161 AttestReadDefaultNetworkConfig(char* buffer, uint32_t bufferLen) AttestReadDefaultNetworkConfig() argument [all...] |