Home
last modified time | relevance | path

Searched refs:SensorEventQueue (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/libs/sensor/
DSensorEventQueue.cpp40 SensorEventQueue::SensorEventQueue(const sp<ISensorEventConnection>& connection) in SensorEventQueue() function in android::SensorEventQueue
46 SensorEventQueue::~SensorEventQueue() { in ~SensorEventQueue()
50 void SensorEventQueue::onFirstRef() in onFirstRef()
55 int SensorEventQueue::getFd() const in getFd()
61 ssize_t SensorEventQueue::write(const sp<BitTube>& tube, in write()
66 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read()
83 sp<Looper> SensorEventQueue::getLooper() const in getLooper()
93 status_t SensorEventQueue::waitForEvent() const in waitForEvent()
118 status_t SensorEventQueue::wake() const in wake()
125 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { in enableSensor()
[all …]
DSensorManager.cpp358 sp<SensorEventQueue> SensorManager::createEventQueue( in assertStateLocked()
360 sp<SensorEventQueue> queue; in assertStateLocked()
371 queue = new SensorEventQueue(connection); in assertStateLocked()
DAndroid.bp54 "SensorEventQueue.cpp",
/frameworks/base/native/android/
Dsensor.cpp37 using android::SensorEventQueue;
123 sp<SensorEventQueue> queue = in ASensorManager_createEventQueue()
138 sp<SensorEventQueue> q = static_cast<SensorEventQueue*>(queue); in ASensorManager_destroyEventQueue()
228 return static_cast<SensorEventQueue*>(queue)->enableSensor( in ASensorEventQueue_registerSensor()
237 return static_cast<SensorEventQueue*>(queue)->enableSensor( in ASensorEventQueue_enableSensor()
245 return static_cast<SensorEventQueue*>(queue)->disableSensor( in ASensorEventQueue_disableSensor()
258 return static_cast<SensorEventQueue*>(queue)->setEventRate( in ASensorEventQueue_setEventRate()
266 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents()
288 SensorEventQueue* sensorQueue = static_cast<SensorEventQueue*>(queue); in ASensorEventQueue_getEvents()
/frameworks/native/services/sensorservice/hidl/
DEventQueue.cpp30 EventQueueLooperCallback(sp<::android::SensorEventQueue> queue, in EventQueueLooperCallback()
55 wp<::android::SensorEventQueue> mQueue;
62 sp<::android::SensorEventQueue> internalQueue) in EventQueue()
DEventQueue.h44 sp<::android::SensorEventQueue> internalQueue);
54 sp<::android::SensorEventQueue> mInternalQueue;
DSensorManager.cpp219 sp<::android::SensorEventQueue> internalQueue = getInternalManager().createEventQueue(package); in createEventQueue()
/frameworks/native/services/sensorservice/aidl/
DEventQueue.cpp33 EventQueueLooperCallback(sp<::android::SensorEventQueue> queue, in EventQueueLooperCallback()
58 wp<::android::SensorEventQueue> mQueue;
63 sp<::android::SensorEventQueue> internalQueue) in EventQueue()
DEventQueue.h31 sp<::android::Looper> looper, sp<::android::SensorEventQueue> internalQueue);
41 sp<::android::SensorEventQueue> mInternalQueue;
DSensorManager.cpp130 sp<::android::SensorEventQueue> internalQueue = getInternalManager().createEventQueue(package); in createEventQueue()
/frameworks/native/libs/sensor/include/sensor/
DSensorEventQueue.h50 class SensorEventQueue : public ASensorEventQueue, public RefBase
68 explicit SensorEventQueue(const sp<ISensorEventConnection>& connection);
69 virtual ~SensorEventQueue();
DSensorManager.h50 class SensorEventQueue; variable
66 sp<SensorEventQueue> createEventQueue(
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp32 sp<SensorEventQueue> q((SensorEventQueue*)data); in receiver()
114 sp<SensorEventQueue> q = mgr.createEventQueue(); in main()
/frameworks/av/media/libheadtracking/
DSensorPoseProvider.cpp61 EventQueueGuard(const sp<SensorEventQueue>& queue, Looper* looper) : mQueue(queue) { in EventQueueGuard()
77 [[nodiscard]] SensorEventQueue* get() const { return mQueue.get(); } in get()
80 const sp<SensorEventQueue> mQueue;
88 SensorEnableGuard(const sp<SensorEventQueue>& queue, int32_t sensor) in SensorEnableGuard()
106 sp<SensorEventQueue> const mQueue;
227 sp<SensorEventQueue> mQueue;
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java126 private final HashMap<SensorEventListener, SensorEventQueue> mSensorListeners =
127 new HashMap<SensorEventListener, SensorEventQueue>();
275 SensorEventQueue queue = mSensorListeners.get(listener); in registerListenerImpl()
282 queue = new SensorEventQueue(listener, looper, this, fullClassName); in registerListenerImpl()
304 SensorEventQueue queue = mSensorListeners.get(listener); in unregisterListenerImpl()
385 SensorEventQueue queue = mSensorListeners.get(listener); in flushImpl()
487 HashMap<SensorEventListener, SensorEventQueue> sensorListeners = in cleanupSensorConnection()
488 new HashMap<SensorEventListener, SensorEventQueue>(mSensorListeners); in cleanupSensorConnection()
1009 static final class SensorEventQueue extends BaseEventQueue { class in SystemSensorManager
1013 public SensorEventQueue(SensorEventListener listener, Looper looper, in SensorEventQueue() method in SystemSensorManager.SensorEventQueue
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp353 sp<SensorEventQueue> mSensorQueue;
359 Receiver(const sp<SensorEventQueue>& sensorQueue, in Receiver()
376 sp<SensorEventQueue> getSensorEventQueue() const { in getSensorEventQueue()
393 sp<SensorEventQueue> q = reinterpret_cast<SensorEventQueue *>(data); in handleEvent()
494 sp<SensorEventQueue> queue(mgr->createEventQueue(clientName, mode, attributionTagName)); in nativeInitSensorEventQueue()
/frameworks/native/services/sensorservice/
DAidlSensorHalWrapper.h89 ::android::SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT>
DSensorEventConnection.cpp406 ssize_t size = SensorEventQueue::write(mChannel, in sendEvents()
575 ssize_t size = SensorEventQueue::write(mChannel, &flushCompleteEvent, 1); in sendPendingFlushEventsLocked()
590 const int maxWriteSize = helpers::min(SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT/2, in writeToSocketFromCache()
611 ssize_t size = SensorEventQueue::write(mChannel, in writeToSocketFromCache()
DHidlSensorHalWrapper.h167 std::array<Event, SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT> mEventBuffer;
DHidlSensorHalWrapper.cpp488 std::make_unique<WakeLockQueue>(SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT, in initializeHidlServiceV2_X()
DSensorService.cpp204 new sensors_event_t[SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT]; in registerRuntimeSensor()
476 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in onFirstRef()
1132 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in threadLoop()
1296 const size_t maxBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in processRuntimeSensorEvents()
/frameworks/native/libs/sensor/tests/
DSensorEventQueue_test.cpp83 sp<SensorEventQueue> mQueue;
/frameworks/base/boot/
Dboot-image-profile.txt7986 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;-><init>(Landroid/hardware/SensorEventLis…
7987 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->addSensorEvent(Landroid/hardware/Sensor…
7988 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->dispatchAdditionalInfoEvent(III[F[I)V
7989 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->dispatchSensorEvent(I[FIJ)V+]Landroid/h…
7990 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->removeSensorEvent(Landroid/hardware/Sen…
24973 Landroid/hardware/SystemSensorManager$SensorEventQueue;
Dpreloaded-classes2586 android.hardware.SystemSensorManager$SensorEventQueue
/frameworks/base/config/
Dboot-image-profile.txt7989 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;-><init>(Landroid/hardware/SensorEventLis…
7990 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->addSensorEvent(Landroid/hardware/Sensor…
7991 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->dispatchAdditionalInfoEvent(III[F[I)V
7992 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->dispatchSensorEvent(I[FIJ)V+]Landroid/h…
7993 HSPLandroid/hardware/SystemSensorManager$SensorEventQueue;->removeSensorEvent(Landroid/hardware/Sen…
35107 Landroid/hardware/SystemSensorManager$SensorEventQueue;

12