summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHridya Valsaraju2017-02-13 16:38:26 -0600
committerHridya Valsaraju2017-02-13 17:50:40 -0600
commitc3db9c8142061a1a5b37aafffc6e7a0e8907af57 (patch)
tree6fc440abb2427b847e672435453280fb804ab701 /tests/msgq/1.0
parentff14eb32cdc9fe4319d2cc7316797fca59c703b6 (diff)
downloadplatform-hardware-interfaces-c3db9c8142061a1a5b37aafffc6e7a0e8907af57.tar.gz
platform-hardware-interfaces-c3db9c8142061a1a5b37aafffc6e7a0e8907af57.tar.xz
platform-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/msgq/1.0')
-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 3ed1b378..dfb9be46 100644
--- a/tests/msgq/1.0/ITestMsgQ.hal
+++ b/tests/msgq/1.0/ITestMsgQ.hal
@@ -34,15 +34,19 @@ interface ITestMsgQ {
34 generates(bool ret, fmq_sync<uint16_t> mqDesc); 34 generates(bool ret, fmq_sync<uint16_t> mqDesc);
35 35
36 /* 36 /*
37 * This method requests the service to set up an unsynchronized write 37 * This method requests the service to return an MQDescriptor to
38 * wait-free FMQ with the client as reader. 38 * an unsynchronized FMQ set up by the server. If 'configureFmq' is
39 * true, then the server sets up a new unsynchronized FMQ. This
40 * method is to be used to test multiple reader processes.
39 * 41 *
40 * @return ret True if the setup is successful. 42 * @param configureFmq The server sets up a new unsynchronized FMQ if
41 * @return mqDesc This structure describes the FMQ that was 43 * this parameter is true.
44 *
45 * @return ret True if successful.
46 * @return mqDesc This structure describes the unsynchronized FMQ that was
42 * set up by the service. Client can use it to set up the FMQ at its end. 47 * set up by the service. Client can use it to set up the FMQ at its end.
43 */ 48 */
44 configureFmqUnsyncWrite() 49 getFmqUnsyncWrite(bool configureFmq) generates(bool ret, fmq_unsync<uint16_t> mqDesc);
45 generates(bool ret, fmq_unsync<uint16_t> mqDesc);
46 50
47 /* 51 /*
48 * This method request the service to write into the synchronized read/write 52 * This method request the service to write into the synchronized read/write