Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 37) sorted by relevance

12

/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlEnvironmentBase.h33 virtual void onEvent(const ::android::hardware::sensors::V1_0::Event& event) = 0;
38 using Event = ::android::hardware::sensors::V1_0::Event;
44 void catEvents(std::vector<Event>* output);
55 void addEvent(const Event& ev);
63 std::vector<Event> mEvents;
DSensorEventsChecker.h26 using Event = ::android::hardware::sensors::V1_0::Event;
27 virtual bool check(const std::vector<Event>& events, std::string* out) const = 0;
33 virtual bool check(const std::vector<Event>&, std::string*) const { return true; } in check() argument
38 virtual bool checkEvent(const Event& event, std::string* out) const = 0;
39 virtual bool check(const std::vector<Event>& events, std::string* out) const { in check()
56 virtual bool checkEvent(const Event& event, std::string* out) const { in checkEvent()
DSensorsTestSharedMemory.h30 using Event = ::android::hardware::sensors::V1_0::Event; variable
37 std::vector<Event> parseEvents(int64_t lastCounter = -1, size_t offset = 0) const;
DSensorsHidlTestBase.h37 using ::android::hardware::sensors::V1_0::Event;
78 virtual Return<Result> injectSensorData(const Event& event) = 0;
86 std::vector<Event> collectEvents(useconds_t timeLimitUs, size_t nEventLimit,
88 static std::vector<Event> collectEvents(useconds_t timeLimitUs, size_t nEventLimit,
/hardware/interfaces/sensors/2.0/vts/functional/
DSensorsHidlEnvironmentV2_0.h37 using Event = ::android::hardware::sensors::V1_0::Event;
89 typedef MessageQueue<Event, ::android::hardware::kSynchronizedReadWrite> EventMessageQueue;
122 std::array<Event, MAX_RECEIVE_BUFFER_EVENT_COUNT> mEventBuffer;
DVtsHalSensorsV2_0TargetTest.cpp53 void onEvent(const ::android::hardware::sensors::V1_0::Event& event) override { in onEvent()
78 const std::vector<Event> getEvents(int32_t sensorHandle) { in getEvents()
112 std::map<int32_t, std::vector<Event>> mEventMap;
139 Return<Result> injectSensorData(const Event& event) override { in injectSensorData()
352 Event additionalInfoEvent; in TEST_F()
356 Event injectedEvent; in TEST_F()
850 const Event newEvent = callback.getEvents(sensor.sensorHandle).front(); in TEST_F()
/hardware/interfaces/sensors/2.0/default/
DSensor.h28 using ::android::hardware::sensors::V1_0::Event;
43 virtual void postEvents(const std::vector<Event>& events, bool wakeup) = 0;
58 Result injectEvent(const Event& event);
62 virtual std::vector<Event> readEvents();
89 virtual std::vector<Event> readEvents() override;
92 Event mPreviousEvent;
DSensors.h50 using Event = ::android::hardware::sensors::V1_0::Event; member
67 const ::android::hardware::MQDescriptorSync<Event>& eventQueueDescriptor,
76 Return<Result> injectSensorData(const Event& event) override;
86 void postEvents(const std::vector<Event>& events, bool wakeup) override;
116 using EventMessageQueue = MessageQueue<Event, kSynchronizedReadWrite>;
DSensor.cpp88 Event ev; in flush()
92 std::vector<Event> evs{ev}; in flush()
132 std::vector<Event> Sensor::readEvents() { in readEvents()
133 std::vector<Event> events; in readEvents()
134 Event event; in readEvents()
158 Result Sensor::injectEvent(const Event& event) { in injectEvent()
166 mCallback->postEvents(std::vector<Event>{event}, isWakeUpSensor()); in injectEvent()
183 std::vector<Event> OnChangeSensor::readEvents() { in readEvents()
184 std::vector<Event> events = Sensor::readEvents(); in readEvents()
185 std::vector<Event> outputEvents; in readEvents()
[all …]
DSensors.cpp28 using ::android::hardware::sensors::V1_0::Event;
92 const ::android::hardware::MQDescriptorSync<Event>& eventQueueDescriptor, in initialize()
158 Return<Result> Sensors::injectSensorData(const Event& event) { in injectSensorData()
183 void Sensors::postEvents(const std::vector<Event>& events, bool wakeup) { in postEvents()
/hardware/interfaces/sensors/1.0/default/include/sensors/
Dconvert.h33 void convertFromSensorEvent(const sensors_event_t &src, Event *dst);
34 void convertToSensorEvent(const Event &src, sensors_event_t *dst);
/hardware/interfaces/sensors/2.0/
DISensors.hal19 import @1.0::Event;
76 * The Event FMQ is used to transport sensor events from the HAL to the
77 * framework. The Event FMQ is created using the eventQueueDescriptor.
78 * Data may only be written to the Event FMQ. Data must not be read from
79 * the Event FMQ since the framework is the only reader. Upon receiving
80 * sensor events, the HAL writes the sensor events to the Event FMQ.
82 * Once the HAL is finished writing sensor events to the Event FMQ, the HAL
85 * 1) Calling the Event FMQ’s EventFlag::wake() function with
87 * 2) Setting the write notification in the Event FMQ’s writeBlocking()
90 * If the Event FMQ’s writeBlocking() function is used, the read
[all …]
Dtypes.hal29 * Used to notify the Event FMQ that events should be read and processed.
35 * successfully read from the Event FMQ.
38 * events to the Event FMQ, then the readNotification parameter must be set
/hardware/interfaces/sensors/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.h34 using Event = ::android::hardware::sensors::V1_0::Event;
/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlTestBase.cpp40 std::vector<Event> SensorsHidlTestBase::collectEvents(useconds_t timeLimitUs, size_t nEventLimit, in collectEvents()
47 std::vector<Event> SensorsHidlTestBase::collectEvents(useconds_t timeLimitUs, size_t nEventLimit, in collectEvents()
51 std::vector<Event> events; in collectEvents()
325 std::vector<Event> sensorEvents; in testDirectReportOperation()
363 std::vector<Event> events; in testStreamingOperation()
364 std::vector<Event> sensorEvents; in testStreamingOperation()
423 std::vector<Event> events1, events2; in testSamplingRateHotSwitchOperation()
470 std::vector<Event>& minDelayEvents(fastToSlow ? events1 : events2); in testSamplingRateHotSwitchOperation()
471 std::vector<Event>& maxDelayEvents(fastToSlow ? events2 : events1); in testSamplingRateHotSwitchOperation()
520 std::vector<Event> events; in testBatchingOperation()
DSensorsHidlEnvironmentBase.cpp35 void SensorsHidlEnvironmentBase::catEvents(std::vector<Event>* output) { in catEvents()
48 void SensorsHidlEnvironmentBase::addEvent(const Event& ev) { in addEvent()
DSensorsTestSharedMemory.cpp42 std::vector<Event> SensorsTestSharedMemory::parseEvents(int64_t lastCounter, size_t offset) const { in parseEvents()
52 std::vector<Event> events; in parseEvents()
79 Event event = { in parseEvents()
/hardware/interfaces/sensors/1.0/default/
DSensors.h54 Return<Result> injectSensorData(const Event& event) override;
75 size_t count, const sensors_event_t *src, hidl_vec<Event> *dst);
DSensors.cpp162 hidl_vec<Event> out; in poll()
251 Return<Result> Sensors::injectSensorData(const Event& event) { in injectSensorData()
335 hidl_vec<Event> *dstVec) { in convertFromSensorEvents()
338 Event *dst = &(*dstVec)[i]; in convertFromSensorEvents()
/hardware/interfaces/soundtrigger/2.1/
DISoundTriggerHwCallback.hal32 /** Event header. Any data contained in the 'header.data' field
50 * Event sent via load sound model callback.
53 /** Event header. Any data contained in the 'header.data' field
/hardware/interfaces/tv/input/1.0/
DITvInputCallback.hal24 * @param event Event passed to the client.
/hardware/interfaces/wifi/1.0/
DIWifiRttControllerEventCallback.hal20 * RTT Response and Event Callbacks.
/hardware/interfaces/sensors/1.0/
DISensors.hal69 * @return data vector of Event contains sensor events.
77 vec<Event> data,
122 * environment data to device. In this operation, Event is always of
139 injectSensorData(Event event) generates (Result result);
/hardware/interfaces/wifi/1.2/
Dtypes.hal80 * Event indication is received on both initiator and responder side when negotiation for a
98 * Event indication is received by all NDP owners whenever the channels on which the NDP operates
DIWifiNanIfaceEventCallback.hal22 * NAN Response and Asynchronous Event Callbacks.

12