summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Polyudov2016-08-29 14:08:44 -0500
committerAlexey Polyudov2016-11-22 16:50:13 -0600
commit586a32fa67a078eddf552c8f50c3ec0d0ecc012a (patch)
tree868fa0242bbb125c64caa4a0edb06c13de9a648a /gatekeeper/1.0/types.hal
parent803a462836e89b14e8d494ef3412a63f2b92a484 (diff)
downloadplatform-hardware-interfaces-586a32fa67a078eddf552c8f50c3ec0d0ecc012a.tar.gz
platform-hardware-interfaces-586a32fa67a078eddf552c8f50c3ec0d0ecc012a.tar.xz
platform-hardware-interfaces-586a32fa67a078eddf552c8f50c3ec0d0ecc012a.zip
gatekeeper HIDL HAL definition
Change-Id: I8224ba28abec42cfaea26b147acbcd1a27e09a9b Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Diffstat (limited to 'gatekeeper/1.0/types.hal')
-rw-r--r--gatekeeper/1.0/types.hal27
1 files changed, 27 insertions, 0 deletions
diff --git a/gatekeeper/1.0/types.hal b/gatekeeper/1.0/types.hal
new file mode 100644
index 00000000..9ab11521
--- /dev/null
+++ b/gatekeeper/1.0/types.hal
@@ -0,0 +1,27 @@
1package android.hardware.gatekeeper@1.0;
2
3/**
4 * Gatekeeper response codes; success >= 0; error < 0
5 */
6enum GatekeeperStatusCode : int32_t {
7 STATUS_REENROLL = 1, // success, but upper layers should re-enroll
8 // the verified password due to a version change
9 STATUS_OK = 0, // operation is successful
10 ERROR_GENERAL_FAILURE = -1, // operation failed
11 ERROR_RETRY_TIMEOUT = -2, // operation should be retried after timeout
12 ERROR_NOT_IMPLEMENTED = -3, // operation is not implemented
13};
14
15/**
16 * Gatekeeper response to any/all requests has this structure as mandatory part
17 */
18struct GatekeeperResponse {
19 /* request completion status */
20 GatekeeperStatusCode code;
21 /* retry timeout in ms, if code == ERROR_RETRY_TIMEOUT
22 * otherwise unused (0)
23 */
24 uint32_t timeout;
25 /* optional crypto blob */
26 vec<uint8_t> data;
27};