/aosp_15_r20/external/mesa3d/docs/ |
H A D | codingstyle.rst | 9 try following the format of existing, neighboring code. 11 ``clang-format`` 14 A growing number of drivers and components are adopting ``clang-format`` 17 You can re-format the code for the components that have opted-in to the 18 formatting enforcement (listed in ``.clang-format-include``) by simply 19 running ``ninja -C build/ clang-format``. 33 Add this to your ``.vimrc`` to automatically format any C & C++ file 34 (that has a .clang-format config) when you save it: 42 " Only format files that have a .clang-format in a parent folder 43 if !empty(findfile('.clang-format', '.;')) [all …]
|
/aosp_15_r20/external/webrtc/sdk/objc/unittests/ |
H A D | nalu_rewriter_xctest.mm | 30 // clang-format off 37 // clang-format on 50 // clang-format off 60 // clang-format on 117 // clang-format off 121 // clang-format on 132 // clang-format off 138 // clang-format on 159 std::unique_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]); 160 memset(buffer.get(), 0, buffer_size); [all …]
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/tests/ |
H A D | LayerTransactionTest.h | 20 #pragma clang diagnostic push 21 #pragma clang diagnostic ignored "-Wconversion" 22 #pragma clang diagnostic ignored "-Wextra" 62 PixelFormat format = PIXEL_FORMAT_RGBA_8888) { 64 createSurface(client, name, width, height, format, flags, parent, outTransformHint); 80 PixelFormat format, uint32_t flags, 84 auto layer = client->createSurface(String8(name), width, height, format, flags, 93 PixelFormat format = PIXEL_FORMAT_RGBA_8888) { 94 return createLayer(mClient, name, width, height, flags, parent, outTransformHint, format); 117 ANativeWindow_Buffer buffer = {}; in getBufferQueueLayerBuffer() local [all …]
|
/aosp_15_r20/external/mesa3d/src/amd/vulkan/radix_sort/shaders/ |
H A D | prefix.comp | 11 // clang-format off 16 // clang-format on 65 // clang-format off 70 // clang-format on 86 // Histogram buffer reference 88 layout(buffer_reference, std430) buffer buffer_rs_histograms 135 // clang-format off 138 // clang-format on 152 // Define buffer reference to read histograms 158 // NOTE(allanmac): The histogram buffer reference could be adjusted
|
H A D | fill.comp | 11 // clang-format off 14 // clang-format on 67 // clang-format off 71 // clang-format on 81 layout(buffer_reference, std430) buffer buffer_rs_indirect_info_fill 86 layout(buffer_reference, std430) buffer buffer_rs_dwords
|
H A D | init.comp | 11 // clang-format off 14 // clang-format on 55 // clang-format off 63 // clang-format on 73 layout(buffer_reference, std430) buffer buffer_rs_count 78 layout(buffer_reference, std430) buffer buffer_rs_indirect_info
|
/aosp_15_r20/external/protobuf/objectivec/ |
H A D | GPBCodedOutputStream.m | 1 // Protocol Buffers - Google's data interchange format 62 // Internal helper that writes the current buffer to the output. The 63 // buffer position is reset to its initial value when this returns. 66 // We're writing to a single buffer. 67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""]; 73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""]; 128 uint32_t fieldNumber, GPBWireFormat format) { 129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format)); 198 #pragma clang diagnostic push 199 #pragma clang diagnostic ignored "-Wdirect-ivar-access" [all …]
|
/aosp_15_r20/external/cronet/third_party/protobuf/objectivec/ |
H A D | GPBCodedOutputStream.m | 1 // Protocol Buffers - Google's data interchange format 62 // Internal helper that writes the current buffer to the output. The 63 // buffer position is reset to its initial value when this returns. 66 // We're writing to a single buffer. 67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""]; 73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""]; 128 uint32_t fieldNumber, GPBWireFormat format) { 129 GPBWriteRawVarint32(state, GPBWireFormatMakeTag(fieldNumber, format)); 198 #pragma clang diagnostic push 199 #pragma clang diagnostic ignored "-Wdirect-ivar-access" [all …]
|
/aosp_15_r20/frameworks/native/libs/ui/ |
H A D | Gralloc3.cpp | 25 #pragma clang diagnostic push 26 #pragma clang diagnostic ignored "-Wzero-length-array" 28 #pragma clang diagnostic pop 64 android::PixelFormat format, uint32_t layerCount, in sBufferDescriptorInfo() argument 70 outDescriptorInfo->format = static_cast<hardware::graphics::common::V1_2::PixelFormat>(format); in sBufferDescriptorInfo() 108 descriptorInfo->format != hardware::graphics::common::V1_2::PixelFormat::BLOB) { in validateBufferDescriptorInfo() 156 auto buffer = const_cast<native_handle_t*>(bufferHandle); in freeBuffer() local 157 auto ret = mMapper->freeBuffer(buffer); in freeBuffer() 160 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", buffer, error); in freeBuffer() 164 uint32_t height, android::PixelFormat format, in validateBufferSize() argument [all …]
|
H A D | Gralloc2.cpp | 25 #pragma clang diagnostic push 26 #pragma clang diagnostic ignored "-Wzero-length-array" 28 #pragma clang diagnostic pop 117 descriptorInfo->format != hardware::graphics::common::V1_1::PixelFormat::BLOB) { in validateBufferDescriptorInfo() 155 static_cast<hardware::graphics::common::V1_0::PixelFormat>(descriptorInfo->format), in createDescriptor() 182 auto buffer = const_cast<native_handle_t*>(bufferHandle); in freeBuffer() local 183 auto ret = mMapper->freeBuffer(buffer); in freeBuffer() 187 buffer, error); in freeBuffer() 191 uint32_t height, android::PixelFormat format, in validateBufferSize() argument 202 descriptorInfo.format = static_cast<hardware::graphics::common::V1_1::PixelFormat>(format); in validateBufferSize() [all …]
|
H A D | Gralloc4.cpp | 34 #pragma clang diagnostic push 35 #pragma clang diagnostic ignored "-Wzero-length-array" 37 #pragma clang diagnostic pop 131 descriptorInfo->format != hardware::graphics::common::V1_2::PixelFormat::BLOB && in validateBufferDescriptorInfo() 141 PixelFormat format, uint32_t layerCount, in sBufferDescriptorInfo() argument 148 outDescriptorInfo->format = static_cast<hardware::graphics::common::V1_2::PixelFormat>(format); in sBufferDescriptorInfo() 216 auto buffer = const_cast<native_handle_t*>(bufferHandle); in freeBuffer() local 217 auto ret = mMapper->freeBuffer(buffer); in freeBuffer() 220 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", buffer, error); in freeBuffer() 224 uint32_t height, PixelFormat format, in validateBufferSize() argument [all …]
|
/aosp_15_r20/frameworks/native/vulkan/libvulkan/ |
H A D | swapchain.cpp | 328 android::sp<ANativeWindowBuffer> buffer; member 395 window->cancelBuffer(window, image.buffer.get(), release_fence); in ReleaseSwapchainImage() 421 image.buffer.clear(); in ReleaseSwapchainImage() 529 PixelFormat GetNativePixelFormat(VkFormat format) { in GetNativePixelFormat() argument 531 switch (format) { in GetNativePixelFormat() 552 ALOGV("unsupported swapchain format %d", format); in GetNativePixelFormat() 558 DataSpace GetNativeDataspace(VkColorSpaceKHR colorspace, VkFormat format) { in GetNativeDataspace() argument 577 if (format == VK_FORMAT_R16G16B16A16_SFLOAT) { in GetNativeDataspace() 766 VkFormat format = VK_FORMAT_UNDEFINED; in GetPhysicalDeviceSurfaceFormatsKHR() local 770 format = VK_FORMAT_R8G8B8A8_UNORM; in GetPhysicalDeviceSurfaceFormatsKHR() [all …]
|
/aosp_15_r20/cts/tests/tests/graphics/jni/ |
H A D | android_graphics_cts_AImageDecoderTest.cpp | 67 auto testEmptyBuffer = [env, outDecoder](void* buffer, size_t length) { in testEmptyCreate() argument 70 int result = AImageDecoder_createFromBuffer(buffer, length, outDecoder); in testEmptyCreate() 102 #pragma clang diagnostic push in testNullDecoder() 103 #pragma clang diagnostic ignored "-Wnonnull" in testNullDecoder() 110 const void* buffer = AAsset_getBuffer(asset); in testNullDecoder() local 111 ASSERT_NE(buffer, nullptr); in testNullDecoder() 113 int result = AImageDecoder_createFromBuffer(buffer, AAsset_getLength(asset), nullptr); in testNullDecoder() 145 auto format = AImageDecoderHeaderInfo_getAndroidBitmapFormat(nullptr); in testNullDecoder() local 146 ASSERT_EQ(ANDROID_BITMAP_FORMAT_NONE, format); in testNullDecoder() 186 #pragma clang diagnostic pop in testNullDecoder() [all …]
|
/aosp_15_r20/hardware/interfaces/graphics/allocator/aidl/vts/ |
H A D | VtsHalGraphicsAllocatorAidl_TargetTest.cpp | 75 .format = static_cast<hardware::graphics::common::V1_2::PixelFormat>(info.format), in convert() 111 .format = static_cast<uint32_t>(mInfo.format), in describe() 121 AHardwareBuffer* buffer = nullptr; in createAHardwareBuffer() local 123 &desc, mRawHandle, AHARDWAREBUFFER_CREATE_FROM_HANDLE_METHOD_CLONE, &buffer); in createAHardwareBuffer() 125 return err ? nullptr : buffer; in createAHardwareBuffer() 187 #pragma clang diagnostic push in allocate() 188 #pragma clang diagnostic ignored "-Wdeprecated-declarations" in allocate() 190 #pragma clang diagnostic pop // deprecation in allocate() 271 void fillWithGpu(AHardwareBuffer* buffer, float red, float green, float blue, float alpha) { in fillWithGpu() argument 272 EGLClientBuffer clientBuffer = eglGetNativeClientBufferANDROID(buffer); in fillWithGpu() [all …]
|
/aosp_15_r20/external/curl/lib/ |
H A D | mprintf.c | 160 char *buffer; member 215 static int parsefmt(const char *format, in parsefmt() argument 221 char *fmt = (char *)format; in parsefmt() 671 const char *format, /* %-formatted string */ in formatf() argument 691 if(parsefmt(format, output, input, &ocount, &icount, ap_save)) in formatf() 1011 #pragma clang diagnostic push in formatf() 1012 #pragma clang diagnostic ignored "-Wformat-nonliteral" in formatf() 1022 #pragma clang diagnostic pop in formatf() 1058 *infop->buffer++ = (char)outc; /* store */ in addbyter() 1065 int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, in curl_mvsnprintf() argument [all …]
|
/aosp_15_r20/external/angle/src/common/ |
H A D | android_util.cpp | 30 # pragma clang diagnostic push 31 # pragma clang diagnostic ignored "-Wzero-length-array" 38 # pragma clang diagnostic pop 66 int format; member 199 aHardwareBufferDescription.format = androidFormat; in CreateEGLClientBufferFromAHardwareBuffer() 216 void GetANativeWindowBufferProperties(const ANativeWindowBuffer *buffer, in GetANativeWindowBufferProperties() argument 223 *width = buffer->width; in GetANativeWindowBufferProperties() 224 *height = buffer->height; in GetANativeWindowBufferProperties() 225 *depth = static_cast<int>(buffer->layerCount); in GetANativeWindowBufferProperties() 226 *height = buffer->height; in GetANativeWindowBufferProperties() [all …]
|
/aosp_15_r20/external/clang/docs/ |
H A D | ClangFormat.rst | 13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used 14 to format C/C++/Obj-C code. 18 $ clang-format -help 19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code. 27 USAGE: clang-format [options] [<file> ...] 31 Clang-format options: 33 -assume-filename=<string> - When reading from stdin, clang-format assumes this 37 clang-format from an editor integration 41 fallback in case clang-format is invoked with 42 -style=file, but can not find the .clang-format [all …]
|
/aosp_15_r20/external/webrtc/test/ |
H A D | mac_capturer.mm | 28 rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer = 29 rtc::make_ref_counted<webrtc::ObjCFrameBuffer>(frame.buffer); 31 .set_video_frame_buffer(buffer) 46 for (AVCaptureDeviceFormat *format in formats) { 47 CMVideoDimensions dimension = CMVideoFormatDescriptionGetDimensions(format.formatDescription); 51 selectedFormat = format; 77 AVCaptureDeviceFormat *format = SelectClosestFormat(device, width, height); 78 [capturer startCaptureWithDevice:device format:format fps:target_fps]; 89 #pragma clang diagnostic push 90 #pragma clang diagnostic ignored "-Wunused-variable" [all …]
|
/aosp_15_r20/external/webrtc/third_party/crc32c/src/ |
H A D | README.md | 6 New file format authors should consider 27 const std::uint8_t buffer[] = {0, 0, 0, 0}; 30 // Process a raw buffer. 31 result = crc32c::Crc32c(buffer, 4); 62 apm install autocomplete-clang build build-cmake clang-format language-cmake \ 63 linter linter-clang 67 `autocomplete-clang` and `linter-clang` with `you-complete-me`. This requires 71 apm install autocomplete-plus build build-cmake clang-format language-cmake \ 104 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \
|
/aosp_15_r20/external/angle/src/libANGLE/renderer/metal/ |
H A D | IOSurfaceSurfaceMtl.mm | 44 // clang-format off 46 // or B8G8R8X8_UNORM based on the IOSurface's pixel format. 58 // clang-format on 78 EGLClientBuffer buffer, 80 : OffscreenSurfaceMtl(display, state, attribs), mIOSurface((__bridge IOSurfaceRef)(buffer)) 96 // The actual angle::Format depends on the IOSurface's format. 124 EGLint buffer) 132 return OffscreenSurfaceMtl::bindTexImage(context, texture, buffer); 135 egl::Error IOSurfaceSurfaceMtl::releaseTexImage(const gl::Context *context, EGLint buffer) 137 egl::Error re = OffscreenSurfaceMtl::releaseTexImage(context, buffer); [all …]
|
/aosp_15_r20/external/pytorch/aten/src/ATen/native/vulkan/glsl/ |
H A D | unary_op.glsl | 2 // clang-format off 7 // clang-format on 9 layout(std430) buffer; 11 // clang-format off 25 // clang-format on 35 // clang-format off 42 // clang-format on
|
H A D | binary_op_scalar.glsl | 2 // clang-format off 7 // clang-format on 9 layout(std430) buffer; 11 // clang-format off 29 // clang-format on 46 // clang-format off 53 // clang-format on
|
H A D | image2d_to_nchw.glsl | 2 // clang-format off 4 // clang-format on 6 layout(std430) buffer; 16 layout(set = 0, binding = 1) buffer PRECISION restrict writeonly Buffer { 26 // calculate buffer offsets
|
/aosp_15_r20/frameworks/native/vulkan/nulldrv/ |
H A D | null_driver.cpp | 116 #pragma clang diagnostic push 117 #pragma clang diagnostic ignored "-Wmissing-variable-declarations" 130 #pragma clang diagnostic pop 533 #pragma clang diagnostic push in GetPhysicalDeviceProperties2KHR() 534 #pragma clang diagnostic ignored "-Wold-style-cast" in GetPhysicalDeviceProperties2KHR() 539 #pragma clang diagnostic pop in GetPhysicalDeviceProperties2KHR() 843 Buffer* buffer = static_cast<Buffer*>(allocator->pfnAllocation( in DEFINE_OBJECT_HANDLE_CONVERSION() local 846 if (!buffer) in DEFINE_OBJECT_HANDLE_CONVERSION() 848 buffer->size = create_info->size; in DEFINE_OBJECT_HANDLE_CONVERSION() 849 *buffer_handle = GetHandleToBuffer(buffer); in DEFINE_OBJECT_HANDLE_CONVERSION() [all …]
|
/aosp_15_r20/external/angle/src/libANGLE/renderer/vulkan/mac/ |
H A D | IOSurfaceSurfaceVkMac.mm | 39 // clang-format off 50 // clang-format on 68 EGLClientBuffer buffer, 74 mIOSurface = reinterpret_cast<IOSurfaceRef>(buffer); 118 const vk::Format &format = 121 // Swiftshader will use the raw pointer to the buffer referenced by the IOSurfaceRef 122 ANGLE_TRY(mColorAttachment.initialize(displayVk, mWidth, mHeight, format, samples, 159 EGLint buffer) 180 const vk::Format &format = 188 reinterpret_cast<uint8_t *>(source), format, vk::ImageAccess::Renderable, [all …]
|