Home
last modified time | relevance | path

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

12

/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlEnvironmentBase.h32 virtual void onEvent(const ::android::hardware::sensors::V1_0::Event& event) = 0;
37 using Event = ::android::hardware::sensors::V1_0::Event;
43 void catEvents(std::vector<Event>* output);
58 void addEvent(const Event& ev);
67 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/multihal/tests/fake_subhal/
DSensor.cpp97 Event ev; in flush()
101 std::vector<Event> evs{ev}; in flush()
141 std::vector<Event> Sensor::readEvents() { in readEvents()
142 std::vector<Event> events; in readEvents()
143 Event event; in readEvents()
167 Result Sensor::injectEvent(const Event& event) { in injectEvent()
175 mCallback->postEvents(std::vector<Event>{event}, isWakeUpSensor()); in injectEvent()
194 std::vector<Event> OnChangeSensor::readEvents() { in readEvents()
195 std::vector<Event> events = Sensor::readEvents(); in readEvents()
196 std::vector<Event> outputEvents; in readEvents()
[all …]
DSensor.h27 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;
106 std::vector<Event> readEvents() override;
114 std::vector<Event> readEvents() override;
DSensorsSubHal.h41 using Event = ::android::hardware::sensors::V1_0::Event; variable
62 Return<Result> injectSensorData(const Event& event) override;
86 void postEvents(const std::vector<Event>& events, bool wakeup) override;
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h54 using Event = ::android::hardware::sensors::V1_0::Event;
75 const ::android::hardware::MQDescriptorSync<Event>& eventQueueDescriptor,
84 Return<Result> injectSensorData(const Event& event) override;
117 void postEventsToMessageQueue(const std::vector<Event>& events, size_t numWakeupEvents,
138 using EventMessageQueue = MessageQueue<Event, kSynchronizedReadWrite>;
201 std::queue<std::pair<std::vector<Event>, size_t>> mPendingWriteEventsQueue;
360 size_t countNumWakeupEvents(const std::vector<Event>& events, size_t n);
399 void postEvents(const std::vector<Event>& events, ScopedWakelock wakelock);
407 std::vector<Event> processEvents(const std::vector<Event>& events,
DSubHal.h36 using ::android::hardware::sensors::V1_0::Event;
74 virtual void postEvents(const std::vector<Event>& events, ScopedWakelock wakelock) = 0;
107 const ::android::hardware::MQDescriptorSync<Event>& /* eventQueueDescriptor */, in initialize()
/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/2.0/vts/functional/
DSensorsHidlEnvironmentV2_0.h44 using Event = ::android::hardware::sensors::V1_0::Event;
91 typedef MessageQueue<Event, ::android::hardware::kSynchronizedReadWrite> EventMessageQueue;
124 std::array<Event, MAX_RECEIVE_BUFFER_EVENT_COUNT> mEventBuffer;
/hardware/interfaces/sensors/2.0/multihal/tests/
DHalProxy_test.cpp57 using EventMessageQueue = MessageQueue<Event, ::android::hardware::kSynchronizedReadWrite>;
145 Event makeProximityEvent();
153 Event makeAccelerometerEvent();
163 std::vector<Event> makeMultipleProximityEvents(size_t numEvents);
173 std::vector<Event> makeMultipleAccelerometerEvents(size_t numEvents);
290 std::vector<Event> events{makeAccelerometerEvent()}; in TEST()
307 std::vector<Event> events = makeMultipleAccelerometerEvents(kNumEvents); in TEST()
329 std::vector<Event> events{makeProximityEvent()}; in TEST()
355 std::vector<Event> events = makeMultipleProximityEvents(kNumEvents); in TEST()
375 std::vector<Event> events = makeMultipleAccelerometerEvents(kNumEvents); in TEST()
[all …]
/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/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.h34 using Event = ::android::hardware::sensors::V1_0::Event;
/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/2.0/multihal/
DHalProxy.cpp139 const ::android::hardware::MQDescriptorSync<Event>& eventQueueDescriptor, in initialize()
152 mPendingWriteEventsQueue = std::queue<std::pair<std::vector<Event>, size_t>>(); in initialize()
222 Return<Result> HalProxy::injectSensorData(const Event& event) { in injectSensorData()
231 Event subHalEvent = event; in injectSensorData()
446 std::vector<Event> events(numToRead); in stopThreads()
489 std::vector<Event>& pendingWriteEvents = mPendingWriteEventsQueue.front().first; in handlePendingWrites()
570 void HalProxy::postEventsToMessageQueue(const std::vector<Event>& events, size_t numWakeupEvents, in postEventsToMessageQueue()
592 std::vector<Event> eventsLeft(events.begin() + numToWrite, events.end()); in postEventsToMessageQueue()
651 size_t HalProxy::countNumWakeupEvents(const std::vector<Event>& events, size_t n) { in countNumWakeupEvents()
670 void HalProxyCallback::postEvents(const std::vector<Event>& events, ScopedWakelock wakelock) { in postEvents()
[all …]
/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.cpp37 void SensorsHidlEnvironmentBase::catEvents(std::vector<Event>* output) { in catEvents()
50 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);
/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

12