blob: 0e49b0f09671e4de66ee00982d64ce63923f309c [file] [log] [blame]
version 1.0;
package android.hardware.tests;
@hal_type("LIGHT")
interface IExpression {
const SIMPLE_EXPRESSION = 4;
const BOOLEAN_EXPRESSION = 1 == 7 && !((3 != 4 || (2 < 3 <= 3 > 4)) >= 0);
const BITWISE_EXPRESSION = ~42 & (1 << 3 | 16 >> 2) ^ 7;
const ARITHMETIC_EXPRESSION = 2 + 3 - 4 * -7 / (6 % 3);
const MESSY_EXPRESSION = 2 + (-3&4 / 7);
struct expressionist_t {
uint8_t[1 << 10] buffer;
vec<vec<uint8_t> > expmap;
};
@param(name = "mask", normal = 1 << 5)
setExpression(expressionist_t state, int32_t mask) generates (int32_t ret);
};