summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f59720c)
raw | patch | inline | side by side (parent: f59720c)
author | Steven Moreland <smoreland@google.com> | |
Wed, 10 Oct 2018 20:59:36 +0000 (13:59 -0700) | ||
committer | Steven Moreland <smoreland@google.com> | |
Thu, 11 Oct 2018 18:02:25 +0000 (11:02 -0700) |
radio/1.3/Android.bp | patch | blob | history | |
radio/1.3/types.hal | patch | blob | history | |
tests/safeunion/1.0/Android.bp | patch | blob | history | |
tests/safeunion/1.0/ISafeUnion.hal | patch | blob | history |
diff --git a/radio/1.3/Android.bp b/radio/1.3/Android.bp
index 6a9b1d05c8a1a6c21708769a7a5f05ed99e56926..b6610e0602a3bdfc97da8a762a6f44b8ea823560 100644 (file)
--- a/radio/1.3/Android.bp
+++ b/radio/1.3/Android.bp
"android.hardware.radio@1.1",
"android.hardware.radio@1.2",
"android.hidl.base@1.0",
+ "android.hidl.safe_union@1.0",
],
types: [
"AccessNetwork",
diff --git a/radio/1.3/types.hal b/radio/1.3/types.hal
index a41f4b2d65eaaf9b118aa608358e0497518d000d..9f0cc15cbb60288d812097ad9f63fecb17ba73b6 100644 (file)
--- a/radio/1.3/types.hal
+++ b/radio/1.3/types.hal
import @1.2::CellIdentity;
import @1.2::DataRegStateResult;
+import android.hidl.safe_union@1.0::Monostate;
+
enum AccessNetwork : @1.2::AccessNetwork {
/**
* Unknown access network
* will be empty when device is camped only on 2G/3G .
*/
safe_union VopsInfo {
+ Monostate noinit;
+
LteVopsInfo lteVopsInfo; // LTE network capability
} vopsInfo;
};
index ede840188a8e1cd0441d0dc00b9b0a1246bce805..87edd537f4e6b130c8ec7f549b3073dc92a99e4b 100644 (file)
],
interfaces: [
"android.hidl.base@1.0",
+ "android.hidl.safe_union@1.0",
],
gen_java: true,
}
index f48248b51b3285e5ff36c80ccfde8e55234acc81..58c08c6153983a2468e27514d1723ed265e23f34 100644 (file)
import IOtherInterface;
+import android.hidl.safe_union@1.0::Monostate;
+
interface ISafeUnion {
enum BitField : uint8_t {
string j3;
};
- safe_union EmptySafeUnion {
- };
-
safe_union SmallSafeUnion {
+ Monostate noinit;
+
uint8_t a;
};
safe_union LargeSafeUnion {
+ Monostate noinit;
+
int8_t a;
uint16_t b;
int32_t c;
};
safe_union InterfaceTypeSafeUnion {
+ Monostate noinit;
+
uint32_t a;
int8_t[7] b;
IOtherInterface c;
};
safe_union HandleTypeSafeUnion {
+ Monostate noinit;
+
handle a;
handle[5] b;
vec<handle> c;