libgui/libui: Add and run clang-format

Change-Id: I34ad46b99904e48be1a273486a42e0dc7edea48f
This commit is contained in:
LuK1337 2022-09-21 18:11:50 +02:00
parent 039f81353b
commit 8c9cff232b
4 changed files with 11 additions and 6 deletions

1
libgui/.clang-format Symbolic link
View file

@ -0,0 +1 @@
../../../../build/soong/scripts/system-clang-format

View file

@ -14,17 +14,19 @@
limitations under the License.
*/
#include <stdint.h>
#include <gui/IGraphicBufferProducer.h>
#include <stdint.h>
using android::IBinder;
using android::IGraphicBufferProducer;
using android::sp;
extern "C" void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp, const sp<IBinder>& surfaceControlHandle);
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp,
const sp<IBinder>& surfaceControlHandle);
extern "C" void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb(
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp) {
_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(bufferProducer, controlledByApp, NULL);
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp) {
_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
bufferProducer, controlledByApp, NULL);
}

1
libui/.clang-format Symbolic link
View file

@ -0,0 +1 @@
../../../../build/soong/scripts/system-clang-format

View file

@ -17,9 +17,10 @@
#include <stdint.h>
extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(void* thisptr, uint32_t inUsage,
void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
void** vaddr, int32_t* outBytesPerPixel,
int32_t* outBytesPerStride);
extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(void* thisptr, uint32_t inUsage,
void** vaddr) {
void** vaddr) {
_ZN7android13GraphicBuffer4lockEjPPvPiS3_(thisptr, inUsage, vaddr, nullptr, nullptr);
}