Package: android.hardware.tests.msgq@1.0

ITestMsgQ

interface ITestMsgQ

Properties

EventFlagBits

enum EventFlagBits: uint32_t
Details
Members
FMQ_NOT_EMPTY = 1 << 0
FMQ_NOT_FULL = 1 << 1

Methods

configureFmqSyncReadWrite

configureFmqSyncReadWrite ()
generates (bool ret, fmq_sync<uint16_t> mqDesc)

This method requests the service to set up a synchronous read/write wait-free FMQ with the client as reader.

Details
Generates
ret
True if the setup is successful.
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.

getFmqUnsyncWrite

getFmqUnsyncWrite (bool configureFmq)
generates (bool ret, fmq_unsync<uint16_t> mqDesc)

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.

Details
Parameters
configureFmq
The server sets up a new unsynchronized FMQ if this parameter is true.
Generates
ret
True if successful.
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.

requestWriteFmqSync

requestWriteFmqSync (int32_t count)
generates (bool ret)

This method request the service to write into the synchronized read/write flavor of the FMQ.

Details
Parameters
count
Number to messages to write.
Generates
ret
True if the write operation was successful.

requestReadFmqSync

requestReadFmqSync (int32_t count)
generates (bool ret)

This method request the service to read from the synchronized read/write FMQ.

Details
Parameters
count
Number to messages to read.
Generates
ret
True if the read operation was successful.

requestWriteFmqUnsync

requestWriteFmqUnsync (int32_t count)
generates (bool ret)

This method request the service to write into the unsynchronized flavor of FMQ.

Details
Parameters
count
Number to messages to write.
Generates
ret
True if the write operation was successful.

requestReadFmqUnsync

requestReadFmqUnsync (int32_t count)
generates (bool ret)

This method request the service to read from the unsynchronized flavor of FMQ.

Details
Parameters
count
Number to messages to read.
Generates
ret
Will be True if the read operation was successful.

requestBlockingRead

oneway requestBlockingRead (int32_t count)

This method requests the service to trigger a blocking read.

Details
RPC mode
oneway
Parameters
count
Number of messages to read.

requestBlockingReadDefaultEventFlagBits

oneway requestBlockingReadDefaultEventFlagBits (int32_t count)

This method requests the service to trigger a blocking read using default Event Flag notification bits defined by the MessageQueue class.

Details
RPC mode
oneway
Parameters
count
Number of messages to read.

requestBlockingReadRepeat

oneway requestBlockingReadRepeat (int32_t count, int32_t numIter)

This method requests the service to repeatedly trigger blocking reads.

Details
RPC mode
oneway
Parameters
count
Number of messages to read in a single blocking read.
numIter
Number of blocking reads to trigger.