Home
last modified time | relevance | path

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

/frameworks/native/libs/gui/
DSensorEventQueue.cpp38 SensorEventQueue::SensorEventQueue(const sp<ISensorEventConnection>& connection) in SensorEventQueue() function in android::SensorEventQueue
44 SensorEventQueue::~SensorEventQueue() { in ~SensorEventQueue()
48 void SensorEventQueue::onFirstRef() in onFirstRef()
53 int SensorEventQueue::getFd() const in getFd()
59 ssize_t SensorEventQueue::write(const sp<BitTube>& tube, in write()
64 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read()
81 sp<Looper> SensorEventQueue::getLooper() const in getLooper()
91 status_t SensorEventQueue::waitForEvent() const in waitForEvent()
116 status_t SensorEventQueue::wake() const in wake()
123 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { in enableSensor()
[all …]
DSensorManager.cpp141 sp<SensorEventQueue> SensorManager::createEventQueue() in createEventQueue()
143 sp<SensorEventQueue> queue; in createEventQueue()
154 queue = new SensorEventQueue(connection); in createEventQueue()
DAndroid.mk31 SensorEventQueue.cpp \
/frameworks/base/native/android/
Dsensor.cpp36 using android::SensorEventQueue;
78 sp<SensorEventQueue> queue = in ASensorManager_createEventQueue()
91 sp<SensorEventQueue> queue = static_cast<SensorEventQueue*>(inQueue); in ASensorManager_destroyEventQueue()
101 return static_cast<SensorEventQueue*>(queue)->enableSensor( in ASensorEventQueue_enableSensor()
107 return static_cast<SensorEventQueue*>(queue)->disableSensor( in ASensorEventQueue_disableSensor()
114 return static_cast<SensorEventQueue*>(queue)->setEventRate( in ASensorEventQueue_setEventRate()
121 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents()
139 ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count); in ASensorEventQueue_getEvents()
141 static_cast<SensorEventQueue*>(queue)->sendAck(events, actual); in ASensorEventQueue_getEvents()
/frameworks/native/include/gui/
DSensorEventQueue.h49 class SensorEventQueue : public ASensorEventQueue, public RefBase
55 SensorEventQueue(const sp<ISensorEventConnection>& connection);
56 virtual ~SensorEventQueue();
DSensorManager.h42 class SensorEventQueue; variable
56 sp<SensorEventQueue> createEventQueue();
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp30 sp<SensorEventQueue> q((SensorEventQueue*)data); in receiver()
70 sp<SensorEventQueue> q = mgr.createEventQueue(); in main()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java49 private final HashMap<SensorEventListener, SensorEventQueue> mSensorListeners =
50 new HashMap<SensorEventListener, SensorEventQueue>();
116 SensorEventQueue queue = mSensorListeners.get(listener); in registerListenerImpl()
119 queue = new SensorEventQueue(listener, looper, this); in registerListenerImpl()
141 SensorEventQueue queue = mSensorListeners.get(listener); in unregisterListenerImpl()
210 SensorEventQueue queue = mSensorListeners.get(listener); in flushImpl()
351 static final class SensorEventQueue extends BaseEventQueue { class in SystemSensorManager
355 public SensorEventQueue(SensorEventListener listener, Looper looper, in SensorEventQueue() method in SystemSensorManager.SensorEventQueue
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp128 sp<SensorEventQueue> mSensorQueue;
133 Receiver(const sp<SensorEventQueue>& sensorQueue, in Receiver()
147 sp<SensorEventQueue> getSensorEventQueue() const { in getSensorEventQueue()
164 sp<SensorEventQueue> q = reinterpret_cast<SensorEventQueue *>(data); in handleEvent()
223 sp<SensorEventQueue> queue(mgr.createEventQueue()); in nativeInitSensorEventQueue()
/frameworks/native/services/sensorservice/
DSensorService.cpp189 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in onFirstRef()
385 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in threadLoop()
1321 ssize_t size = SensorEventQueue::write(mChannel, in sendEvents()
1392 ssize_t size = SensorEventQueue::write(mChannel, &flushCompleteEvent, 1); in sendPendingFlushEventsLocked()
1407 const int maxWriteSize = helpers::min(SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT/2, in writeToSocketFromCache()
1425 ssize_t size = SensorEventQueue::write(mChannel, in writeToSocketFromCache()