Documentation ¶
Index ¶
- func AdjustRefCount(handle, addVal, Type int32) error
- func CloseDisplay(d *Display) error
- func CloseLayer(layerId uint64) error
- func CreateManagedLayer(display *Display, flags uint32, aruid nxtypes.ARUID) (uint64, error)
- func DestroyManagedLayer(layerId uint64) error
- func Finalize()
- func GetDisplayVsyncEvent(d *Display) error
- func GetObject(iface ipc.Object, command int) (ipc.Object, error)
- func IadsSetLayerScalingMode(scalingMode ScalingMode, layerId uint64) error
- func Init() (err error)
- func TransactParcel(handle int32, transaction, flags uint32, rqParcel []byte, rsParcel []byte) error
- type Binder
- type Display
- type FlatBinderObject
- type IGBP
- type Parcel
- func (p *Parcel) FinalizeWriting() ([]byte, int)
- func (p *Parcel) ReadBinder() (*Binder, error)
- func (p *Parcel) ReadInPlace(length int) []byte
- func (p *Parcel) ReadString() string
- func (p *Parcel) ReadU32() uint32
- func (p *Parcel) Remaining() int
- func (p *Parcel) WriteInPlace(data []byte)
- func (p *Parcel) WriteInPlaceU16(data []uint16)
- func (p *Parcel) WriteInPlaceU32(data []uint32)
- func (p *Parcel) WriteInterfaceToken(token string)
- func (p *Parcel) WriteRemaining() int
- func (p *Parcel) WriteString16(data string)
- func (p *Parcel) WriteU32(v uint32)
- type ScalingMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustRefCount ¶
func CloseDisplay ¶
func CloseLayer ¶
func CreateManagedLayer ¶
func DestroyManagedLayer ¶
func GetDisplayVsyncEvent ¶
func IadsSetLayerScalingMode ¶
func IadsSetLayerScalingMode(scalingMode ScalingMode, layerId uint64) error
Types ¶
type Binder ¶
type Binder struct {
Handle int32
}
Binder Represents a remote interface
func (*Binder) AdjustRefCount ¶
type FlatBinderObject ¶
type FlatBinderObject struct { Type uint32 Flags uint32 Content uint64 // union of void *binder and int32 Handle Cookie uint64 }
FlatBinderObject Binder object as included in a Parcel
func (*FlatBinderObject) GetBinder ¶
func (fb *FlatBinderObject) GetBinder() uintptr
func (*FlatBinderObject) GetHandle ¶
func (fb *FlatBinderObject) GetHandle() int32
type IGBP ¶
type IGBP struct {
IgbpBinder Binder // IGraphicBufferProducer
}
IGBP IGraphicBufferProducer object https://android.googlesource.com/platform/frameworks/native/+/f7a6758/include/gui/IGraphicBufferProducer.h#51
type Parcel ¶
type Parcel struct { Contents struct { DataSize uint32 DataOffset uint32 ObjectsSize uint32 ObjectsOffset uint32 Payload [0x200]byte } ReadHead int WriteHead int WritingFinalized bool }
Parcel Represents a parcel
Bounds checking is the caller's responsibility. Objects aren't currently supported very well.
func BinderTransactParcel ¶
func ParcelLoad ¶
func (*Parcel) FinalizeWriting ¶
func (*Parcel) ReadBinder ¶
func (*Parcel) ReadInPlace ¶
func (*Parcel) ReadString ¶
func (*Parcel) WriteInPlace ¶
func (*Parcel) WriteInPlaceU16 ¶
func (*Parcel) WriteInPlaceU32 ¶
func (*Parcel) WriteInterfaceToken ¶
func (*Parcel) WriteRemaining ¶
func (*Parcel) WriteString16 ¶
type ScalingMode ¶
type ScalingMode uint32
const ( ScalingMode_None ScalingMode = 0x0 ScalingMode_FitToLayer ScalingMode = 0x2 ScalingMode_PreserveAspectRatio ScalingMode = 0x4 ScalingModeDefault = ScalingMode_FitToLayer )
Click to show internal directories.
Click to hide internal directories.