Package: android.hardware.tests.expression@1.0

IExpression

interface IExpression

Properties

UInt64LiteralTypeGuessing

enum UInt64LiteralTypeGuessing: uint64_t
Details
Members
noSuffixDec1 = 0
noSuffixDec2 = 1
noSuffixDec3 = -1
noSuffixDec4 = ~0
noSuffixDec5 = 2147483647
noSuffixDec6 = -2147483648
noSuffixDec7 = 2147483648
noSuffixDec8 = -2147483649
noSuffixDec9 = ~ ( -1 )
noSuffixHex1 = 0x7fffffff
noSuffixHex2 = 0x80000000
noSuffixHex3 = 0xffffffff
longHex1 = 0xffffffffl
longHex2 = 0Xfffffffff
longHex3 = 0x7fffffffffffffff
longHex4 = 0x8000000000000000
longHex5 = 0xFFFFFFFFFFFFFFFF

SuffixedLiteralTypeGuessing

enum SuffixedLiteralTypeGuessing: int32_t
Details
Members
decInt32_1 = ( ~ ( -1 ) ) == 0
decInt32_2 = - ( 1 << 31 ) == ( 1 << 31 )
decInt64_1 = ( ~ ( -1l ) ) == 0
decInt64_2 = ( ~4294967295 ) != 0
decInt64_3 = ( ~4294967295l ) != 0
decInt64_4 = - ( 1l << 63 ) == ( 1l << 63 )
hexInt32_1 = -0x7fffffff < 0
hexUInt32_1 = -0x80000000 > 0
hexUInt32_2 = ~0xFFFFFFFF == 0
hexInt64_1 = -0x7FFFFFFFFFFFFFFF < 0
hexUInt64_1 = -0x8000000000000000 > 0

Int64LiteralTypeGuessing

enum Int64LiteralTypeGuessing: int64_t
Details
Members
noSuffixDec11 = 1 + 0x7fffffff
noSuffixDec12 = 0x80000000 - 1

Int32BitShifting

enum Int32BitShifting: int32_t
Details
Members
int32BitShift1 = 1 << 31

UInt32BitShifting

enum UInt32BitShifting: uint32_t
Details
Members
uint32BitShift1 = 1 << 31

Int64BitShifting

enum Int64BitShifting: int64_t
Details
Members
int64BitShift1 = 1l << 63

UInt64BitShifting

enum UInt64BitShifting: uint64_t
Details
Members
uint64BitShift1 = 1l << 63

Precedence

enum Precedence: int32_t
Details
Members
literal = 4
neg = -4
literalL = -4L
hex = 0xffffffff
hexLong = 0xffffffffl
hexLong2 = 0xfffffffff
simpleArithmetic = 4 + 1
simpleArithmetic2 = 2 + 3 - 4
simpleArithmetic3 = 2 - 3 + 4
simpleBoolExpr = 1 == 4
simpleLogical = 1 && 1
simpleLogical2 = 1 || 1 && 0
simpleComp = 1 < 2
boolExpr1 = ! ( ( 3 != 4 || ( 2 < 3 <= 3 > 4 ) ) >= 0 )
boolExpr = 1 == 7 && ! ( ( 3 != 4 || ( 2 < 3 <= 3 > 4 ) ) >= 0 )
simpleBitShift = 1 << 2
simpleBitShift2 = 4 >> 1
simpleBitShiftNeg = 4 << -1
simpleArithmeticRightShift = 1 << 31 >> 31
simpleBitExpr = 1 | 16 >> 2
simpleBitExpr2 = 0x0f ^ 0x33 & 0x99
bitExpr = ~42 & ( 1 << 3 | 16 >> 2 ) ^ 7
arithmeticExpr = 2 + 3 - 4 * -7 / ( 10 % 3 )
messyExpr = 2 + ( -3&4 / 7 )
paranExpr = ( ( ( ( ( 1 + 1 ) ) ) ) )
ternary = 1?2 : 3
ternary2 = 1&&2?3 : 4
complicatedTernary2 = 1 - 1 && 2 + 3 || 5 ? 7 * 8 : -3

OperatorSanityCheck

enum OperatorSanityCheck: int32_t
Details
Members
plus = ( 1 + 2 ) == 3
minus = ( 8 - 9 ) == -1
product = ( 9 * 9 ) == 81
division = ( 29 / 3 ) == 9
mod = ( 29 % 3 ) == 2
bit_or = ( 0xC0010000 | 0xF00D ) == ( 0xC001F00D )
bit_or2 = ( 10 | 6 ) == 14
bit_and = ( 10 & 6 ) == 2
bit_xor = ( 10 ^ 6 ) == 12
lt1 = 6 < 10
lt2 = ( 10 < 10 ) == 0
gt1 = ( 6 > 10 ) == 0
gt2 = ( 10 > 10 ) == 0
gte1 = 19 >= 10
gte2 = 10 >= 10
lte1 = 5 <= 10
lte2 = ( 19 <= 10 ) == 0
ne1 = 19 != 10
ne2 = ( 10 != 10 ) == 0
lshift = ( 22 << 1 ) == 44
rshift = ( 11 >> 1 ) == 5
logor1 = ( 1 || 0 ) == 1
logor2 = ( 1 || 1 ) == 1
logor3 = ( 0 || 0 ) == 0
logor4 = ( 0 || 1 ) == 1
logand1 = ( 1 && 0 ) == 0
logand2 = ( 1 && 1 ) == 1
logand3 = ( 0 && 0 ) == 0
logand4 = ( 0 && 1 ) == 0

Grayscale

enum Grayscale: int8_t
Details
Members
WHITE = 126
GRAY
DARK_GRAY
BLACK

Color

enum Color: Grayscale
Details
Members
RED
RUBY = 0
GREEN
BLUE = 5
CYAN
ORANGE
ROSE = WHITE

Foo1

enum Foo1: int8_t
Details

Foo2

enum Foo2: Foo1
Details

Foo3

enum Foo3: Foo2
Details
Members
BAR1
BAR2 = 10

Foo4

enum Foo4: Foo3
Details
Members
BAR3
BAR4 = BAR2 + BAR3

Number

enum Number: uint8_t
Details
Members
MAX = 255
MAX_PLUS_1
MAX_PLUS_2

Constants

enum Constants: int32_t
Details
Members
CONST_FOO
CONST_BAR = 70
MAX_ARRAY_SIZE = 20
MAX_ARRAY_SIZE2
MAX_ARRAY_SIZE3 = MAX_ARRAY_SIZE + MAX_ARRAY_SIZE
MY_INT32_MAX_MINUS_1 = 0x7FFFFFFE
MY_INT32_MAX
MY_INT32_MIN
MY_INT32_MIN_PLUS_1