Package: android.hardware.tests.foo@1.0

IFoo

interface IFoo

Properties

Gumble

typedef Fumble Gumble

ThreeFloats

typedef float[3] ThreeFloats

FiveFloats

typedef float[5] FiveFloats

ThreeQuuxes

typedef Quux[3] ThreeQuuxes

ThreeStrings

typedef string[3] ThreeStrings

FiveStrings

typedef string[5] FiveStrings

Mask

typedef bitfield Mask

multidimArrayOne

typedef int32_t[5][6][7] multidimArrayOne

multidimArrayTwo

typedef multidimArrayOne[8][9][10] multidimArrayTwo

multidimArrayThree

typedef multidimArrayTwo[2][3][4] multidimArrayThree

InnerTestStructTypedef

typedef InnerTestStruct InnerTestStructTypedef

InnerTestEnumTypedef

typedef InnerTestEnum InnerTestEnumTypedef

SomeBaseEnum

enum SomeBaseEnum: uint8_t
Details
Members
bar = 66

SomeEnum

enum SomeEnum: SomeBaseEnum
Details
Members
quux = 33
goober = 192
blah = goober

BitField

enum BitField: uint8_t
Details
Members
V0 = 1 << 0
V1 = 1 << 1
V2 = 1 << 2
V3 = 1 << 3
VALL = V0 | V1 | V2 | V3

Discriminator

enum Discriminator: uint8_t
Details
Members
BOOL
INT

InnerTestEnum

enum InnerTestEnum: int32_t
Details
Members
VALUE = 0

Fumble

struct Fumble {Outer data}
Details
Members
data

Goober

struct Goober {int32_t q; string name; string address; double numbers; Fumble fumble; Gumble gumble}
Details
Members
q
name
address
numbers
fumble
gumble

Quux

struct Quux {string first; string last}
Details
Members
first
last

MultiDimensional

struct MultiDimensional {ThreeQuuxes quuxMatrix}
Details
Members
quuxMatrix

StringMatrix3x5

struct StringMatrix3x5 {FiveStrings s}
Details
Members
s

StringMatrix5x3

struct StringMatrix5x3 {ThreeStrings s}
Details
Members
s

MyStruct

struct MyStruct {SomeStruct innerStruct; FloatArray myFloatArray}
Details
Members
innerStruct
myFloatArray

MyHandle

struct MyHandle {handle h; int32_t guard}
Details
Members
h
guard

MyMask

struct MyMask {bitfield value}
Details
Members
value

Everything

struct Everything {union U u; int8_t number; handle h; fmq_sync descSync; fmq_unsync descUnsync; memory mem; pointer p; string s; vec vs; string multidimArray; string sArray; Quux anotherStruct; bitfield bf}
Details
Members
u
number
h
descSync
descUnsync
mem
p
s
vs
multidimArray
sArray
anotherStruct
bf

ContainsUnion

struct ContainsUnion {Discriminator discriminator; Union value}
Details
Members
discriminator
value

InnerTestStruct

struct InnerTestStruct {}
Details

S1

struct S1 {struct InnerTestStruct }; InnerTestStructTypedef foo}
Details
Members
}
foo

S2

struct S2 {enum InnerTestEnum; InnerTestEnumTypedef foo}
Details
Members
InnerTestEnum
foo

Union

union Union {bool boolValue; int64_t intValue}
Details
Members
boolValue
intValue

Methods

convertToBoolIfSmall

convertToBoolIfSmall (Discriminator d, vec<Union> u)
generates (vec<ContainsUnion> c)

If d is INT, converts all values to bools which are small enough(0 or 1). If d is BOOL, should leave all values as BOOLs.

Details
Parameters
d
discriminator for all values in u
u
values to be expanded
Generates
c
must have same length as u unless there is an error in which case it will be empty.