mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add tests for .equals and toString
Test: hidl_test Test: hidl_test_java Bug: 32834072 Bug: 33459772 Change-Id: Ic1a87529fe5f8c12f7bfbdc2fa668e66922e075f
This commit is contained in:
@@ -21,6 +21,14 @@ import IBazCallback;
|
||||
|
||||
interface IBaz extends IBase {
|
||||
|
||||
enum BitField : uint8_t {
|
||||
V0 = 1 << 0,
|
||||
V1 = 1 << 1,
|
||||
V2 = 1 << 2,
|
||||
V3 = 1 << 3,
|
||||
VALL = V0 | V1 | V2 | V3,
|
||||
};
|
||||
|
||||
enum SomeOtherEnum : uint8_t {
|
||||
bar = 66
|
||||
};
|
||||
@@ -45,6 +53,21 @@ interface IBaz extends IBase {
|
||||
vec<T> matrices;
|
||||
};
|
||||
|
||||
struct Quux {
|
||||
string first;
|
||||
string last;
|
||||
};
|
||||
struct Everything {
|
||||
int8_t number;
|
||||
int32_t anotherNumber;
|
||||
string s;
|
||||
vec<string> vs;
|
||||
string[2][2] multidimArray;
|
||||
string[3] sArray;
|
||||
Quux anotherStruct;
|
||||
bitfield<BitField> bf;
|
||||
};
|
||||
|
||||
@Fragile @NoReally(very="yes", array={"a","b","c"})
|
||||
oneway doThis(float param);
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ interface IFoo {
|
||||
V1 = 1 << 1,
|
||||
V2 = 1 << 2,
|
||||
V3 = 1 << 3,
|
||||
VALL = V0 | V1 | V2 | V3,
|
||||
};
|
||||
|
||||
struct Fumble {
|
||||
|
||||
Reference in New Issue
Block a user