mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
HIDL test: update for java bitfields in lists
Bug: 141187928 Test: HIDL's run_all_host_tests.sh Change-Id: Ib282ed03b85c798b724ed4c44ac2d59ea8dbf420
This commit is contained in:
committed by
Steven Moreland
parent
29d90d1455
commit
c861055316
@@ -29,6 +29,11 @@ interface IBaz extends IBase {
|
||||
VALL = V0 | V1 | V2 | V3,
|
||||
};
|
||||
|
||||
struct BitFieldTester {
|
||||
bitfield<BitField> scalar;
|
||||
vec<bitfield<BitField>> vector;
|
||||
};
|
||||
|
||||
enum SomeOtherEnum : uint8_t {
|
||||
bar = 66
|
||||
};
|
||||
@@ -108,6 +113,7 @@ interface IBaz extends IBase {
|
||||
|
||||
haveSomeStrings(string[3] array) generates (string[2] result);
|
||||
haveAStringVec(vec<string> vector) generates (vec<string> result);
|
||||
repeatBitfieldVec(vec<bitfield<BitField>> vector) generates (vec<bitfield<BitField>> result);
|
||||
|
||||
returnABunchOfStrings() generates (string a, string b, string c);
|
||||
|
||||
|
||||
@@ -364,6 +364,12 @@ Return<void> Baz::haveAStringVec(const hidl_vec<hidl_string>& vector,
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> Baz::repeatBitfieldVec(const hidl_vec<uint8_t>& vector,
|
||||
repeatBitfieldVec_cb _hidl_cb) {
|
||||
_hidl_cb(vector);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> Baz::returnABunchOfStrings(returnABunchOfStrings_cb _hidl_cb) {
|
||||
hidl_string eins; eins = "Eins";
|
||||
hidl_string zwei; zwei = "Zwei";
|
||||
|
||||
@@ -86,6 +86,8 @@ struct Baz : public IBaz {
|
||||
haveSomeStrings_cb _hidl_cb) override;
|
||||
Return<void> haveAStringVec(const hidl_vec<hidl_string>& vector,
|
||||
haveAStringVec_cb _hidl_cb) override;
|
||||
Return<void> repeatBitfieldVec(const hidl_vec<uint8_t>& vector,
|
||||
repeatBitfieldVec_cb _hidl_cb) override;
|
||||
Return<void> returnABunchOfStrings(returnABunchOfStrings_cb _hidl_cb) override;
|
||||
Return<uint8_t> returnABitField() override;
|
||||
Return<uint32_t> size(uint32_t size) override;
|
||||
|
||||
Reference in New Issue
Block a user