From 710e4a3f0d3463d2711767dc41ba992d6ab7cc27 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Thu, 15 Dec 2016 09:14:13 -0800 Subject: [PATCH] Add a method to test EventFlag configuration and usage Bug: 31223612 33295104 Test: FMQ unit tests. Change-Id: Idbddd38730edd0ec14c37d3cb5e67f78705c3d4a --- tests/msgq/1.0/ITestMsgQ.hal | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/msgq/1.0/ITestMsgQ.hal b/tests/msgq/1.0/ITestMsgQ.hal index dcdc74a2ce..b23f48f94e 100644 --- a/tests/msgq/1.0/ITestMsgQ.hal +++ b/tests/msgq/1.0/ITestMsgQ.hal @@ -17,6 +17,11 @@ package android.hardware.tests.msgq@1.0; interface ITestMsgQ { + enum EventFlagBits : uint32_t { + FMQ_NOT_EMPTY = 1 << 0, + FMQ_NOT_FULL = 1 << 1, + }; + /* * This method requests the service to set up a synchronous read/write * wait-free FMQ with the client as reader. @@ -79,4 +84,11 @@ interface ITestMsgQ { */ requestReadFmqUnsync(int32_t count) generates(bool ret); + /* + * This method requests the service to trigger a blocking read. + * + * @param count Number of messages to read. + * + */ + oneway requestBlockingRead(int32_t count); };