summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2017-02-13 14:38:26 -0800
committerHridya Valsaraju <hridya@google.com>2017-02-13 15:50:40 -0800
commitc3db9c8142061a1a5b37aafffc6e7a0e8907af57 (patch)
tree6fc440abb2427b847e672435453280fb804ab701 /tests
parentff14eb32cdc9fe4319d2cc7316797fca59c703b6 (diff)
downloadandroid_hardware_interfaces-c3db9c8142061a1a5b37aafffc6e7a0e8907af57.tar.gz
android_hardware_interfaces-c3db9c8142061a1a5b37aafffc6e7a0e8907af57.tar.bz2
android_hardware_interfaces-c3db9c8142061a1a5b37aafffc6e7a0e8907af57.zip
Modify method to get MQDescriptor for unsynchronized FMQ.
The modified method adds a new parameter specifying if a new unsynchronized FMQ needs to be set up by the server or if it is to return an MQDescriptor to an unsynchronized FMQ that has already been configured by the server(if one exists) Bug: 35319190 Test: FMQ unit tests Change-Id: I64a5b356a2761faaeeea6fdd2c3a7da9b60f0016
Diffstat (limited to 'tests')
-rw-r--r--tests/msgq/1.0/ITestMsgQ.hal16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/msgq/1.0/ITestMsgQ.hal b/tests/msgq/1.0/ITestMsgQ.hal
index 3ed1b378f..dfb9be46c 100644
--- a/tests/msgq/1.0/ITestMsgQ.hal
+++ b/tests/msgq/1.0/ITestMsgQ.hal
@@ -34,15 +34,19 @@ interface ITestMsgQ {
generates(bool ret, fmq_sync<uint16_t> mqDesc);
/*
- * This method requests the service to set up an unsynchronized write
- * wait-free FMQ with the client as reader.
+ * This method requests the service to return an MQDescriptor to
+ * an unsynchronized FMQ set up by the server. If 'configureFmq' is
+ * true, then the server sets up a new unsynchronized FMQ. This
+ * method is to be used to test multiple reader processes.
*
- * @return ret True if the setup is successful.
- * @return mqDesc This structure describes the FMQ that was
+ * @param configureFmq The server sets up a new unsynchronized FMQ if
+ * this parameter is true.
+ *
+ * @return ret True if successful.
+ * @return mqDesc This structure describes the unsynchronized FMQ that was
* set up by the service. Client can use it to set up the FMQ at its end.
*/
- configureFmqUnsyncWrite()
- generates(bool ret, fmq_unsync<uint16_t> mqDesc);
+ getFmqUnsyncWrite(bool configureFmq) generates(bool ret, fmq_unsync<uint16_t> mqDesc);
/*
* This method request the service to write into the synchronized read/write