Skip to main content
Version: 12 Dec 2024

NativeWindowNativeBindings

NameSpace: NativeWindow

Public Methods

void AHardwareBuffer_acquire

public void AHardwareBuffer_acquire(
AHardwareBuffer buffer
)

Parameters

TypeNameDescription
AHardwareBufferbuffer

int AHardwareBuffer_allocate

public int AHardwareBuffer_allocate(
ref AHardwareBuffer.Description description,
out AHardwareBuffer buffer
)

Parameters

TypeNameDescription
ref AHardwareBuffer.Descriptiondescription
out AHardwareBufferbuffer

void AHardwareBuffer_describe

public void AHardwareBuffer_describe(
AHardwareBuffer buffer,
out AHardwareBuffer.Description description
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
out AHardwareBuffer.Descriptiondescription

int AHardwareBuffer_isSupported

public int AHardwareBuffer_isSupported(
ref AHardwareBuffer.Description description
)

Parameters

TypeNameDescription
ref AHardwareBuffer.Descriptiondescription

unsafe int AHardwareBuffer_lock

public unsafe int AHardwareBuffer_lock(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fence,
ARect * rect,
out void * virtualAddress
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
AHardwareBuffer.Usageusage
intfence
ARect *rect
out void *virtualAddress

unsafe int AHardwareBuffer_lockAndGetInfo

public unsafe int AHardwareBuffer_lockAndGetInfo(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fence,
ARect * rect,
out void * outVirtualAddress,
out int outBytesPerPixel,
out int outBytesPerStride
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
AHardwareBuffer.Usageusage
intfence
ARect *rect
out void *outVirtualAddress
out intoutBytesPerPixel
out intoutBytesPerStride

unsafe int AHardwareBuffer_lockPlanes

public unsafe int AHardwareBuffer_lockPlanes(
AHardwareBuffer buffer,
AHardwareBuffer.Usage usage,
int fenceFd,
ARect * rect,
out AHardwareBuffer.Planes outPlanes
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
AHardwareBuffer.Usageusage
intfenceFd
ARect *rect
out AHardwareBuffer.PlanesoutPlanes

int AHardwareBuffer_recvHandleFromUnixSocket

public int AHardwareBuffer_recvHandleFromUnixSocket(
int socketFd,
out AHardwareBuffer buffer
)

Parameters

TypeNameDescription
intsocketFd
out AHardwareBufferbuffer

void AHardwareBuffer_release

public void AHardwareBuffer_release(
AHardwareBuffer buffer
)

Parameters

TypeNameDescription
AHardwareBufferbuffer

int AHardwareBuffer_sendHandleToUnixSocket

public int AHardwareBuffer_sendHandleToUnixSocket(
AHardwareBuffer buffer,
int socketFd
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
intsocketFd

unsafe int AHardwareBuffer_unlock

public unsafe int AHardwareBuffer_unlock(
AHardwareBuffer buffer,
int * fence
)

Parameters

TypeNameDescription
AHardwareBufferbuffer
int *fence

Public Attributes

kLibraryName


public const string kLibraryName = "libnativewindow";