mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "Add methods to test flavor of FMQ supporting unsynchronized writes." am: a6b44aad97
am: 903da658df
Change-Id: I4ae1b2d8476af6227089254bb9433c882830b6ed
This commit is contained in:
@@ -18,9 +18,10 @@ package android.hardware.tests.msgq@1.0;
|
||||
|
||||
interface ITestMsgQ {
|
||||
/*
|
||||
* This method requests the service to set up Synchronous read/write
|
||||
* This method requests the service to set up a synchronous read/write
|
||||
* wait-free FMQ with the client as reader.
|
||||
* @return ret Will be true if the setup is successful, false otherwise.
|
||||
*
|
||||
* @return ret True if the setup is successful.
|
||||
* @return mqDesc This structure describes the FMQ that was
|
||||
* set up by the service. Client can use it to set up the FMQ at its end.
|
||||
*/
|
||||
@@ -28,18 +29,54 @@ interface ITestMsgQ {
|
||||
generates(bool ret, MQDescriptorSync mqDesc);
|
||||
|
||||
/*
|
||||
* This method request the service to write into the FMQ.
|
||||
* @param count Number to messages to write.
|
||||
* @return ret Will be true if the write operation was successful,
|
||||
* false otherwise.
|
||||
* This method requests the service to set up an unsynchronized write
|
||||
* wait-free FMQ with the client as reader.
|
||||
*
|
||||
* @return ret True if the setup is successful.
|
||||
* @return mqDesc This structure describes the FMQ that was
|
||||
* set up by the service. Client can use it to set up the FMQ at its end.
|
||||
*/
|
||||
requestWrite(int32_t count) generates(bool ret);
|
||||
configureFmqUnsyncWrite()
|
||||
generates(bool ret, MQDescriptorUnsync mqDesc);
|
||||
|
||||
/*
|
||||
* This method request the service to read from the FMQ.
|
||||
* @param count Number to messages to read.
|
||||
* @return ret Will be true if the read operation was successful, false
|
||||
* otherwise.
|
||||
* This method request the service to write into the synchronized read/write
|
||||
* flavor of the FMQ.
|
||||
*
|
||||
* @param count Number to messages to write.
|
||||
*
|
||||
* @return ret True if the write operation was successful.
|
||||
*/
|
||||
requestRead(int32_t count) generates(bool ret);
|
||||
requestWriteFmqSync(int32_t count) generates(bool ret);
|
||||
|
||||
/*
|
||||
* This method request the service to read from the synchronized read/write
|
||||
* FMQ.
|
||||
*
|
||||
* @param count Number to messages to read.
|
||||
*
|
||||
* @return ret True if the read operation was successful.
|
||||
*/
|
||||
requestReadFmqSync(int32_t count) generates(bool ret);
|
||||
|
||||
/*
|
||||
* This method request the service to write into the unsynchronized flavor
|
||||
* of FMQ.
|
||||
*
|
||||
* @param count Number to messages to write.
|
||||
*
|
||||
* @return ret True if the write operation was successful.
|
||||
*/
|
||||
requestWriteFmqUnsync(int32_t count) generates(bool ret);
|
||||
|
||||
/*
|
||||
* This method request the service to read from the unsynchronized flavor of
|
||||
* FMQ.
|
||||
*
|
||||
* @param count Number to messages to read.
|
||||
*
|
||||
* @return ret Will be True if the read operation was successful.
|
||||
*/
|
||||
requestReadFmqUnsync(int32_t count) generates(bool ret);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user