Lines Matching refs:SensorService

52 #include "SensorService.h"
66 const char* SensorService::WAKE_LOCK_NAME = "SensorService";
68 SensorService::SensorService()
74 void SensorService::onFirstRef()
197 run("SensorService", PRIORITY_URGENT_DISPLAY);
202 Sensor SensorService::registerSensor(SensorInterface* s)
218 Sensor SensorService::registerVirtualSensor(SensorInterface* s)
225 SensorService::~SensorService()
233 status_t SensorService::dump(int fd, const Vector<String16>& /*args*/)
238 "can't dump SensorService from pid=%d, uid=%d\n",
358 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection,
378 bool SensorService::threadLoop()
519 ALOGW("Exiting SensorService::threadLoop => aborting...");
524 sp<Looper> SensorService::getLooper() const {
528 void SensorService::resetAllWakeLockRefCounts() {
542 void SensorService::setWakeLockAcquiredLocked(bool acquire) {
558 bool SensorService::isWakeLockAcquired() {
563 bool SensorService::SensorEventAckReceiver::threadLoop() {
578 void SensorService::recordLastValueLocked(
595 void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count)
607 String8 SensorService::getSensorName(int handle) const {
619 bool SensorService::isVirtualSensor(int handle) const {
624 bool SensorService::isWakeUpSensorEvent(const sensors_event_t& event) const {
634 SensorService::SensorRecord * SensorService::getSensorRecord(int handle) {
638 Vector<Sensor> SensorService::getSensorList()
661 sp<ISensorEventConnection> SensorService::createSensorEventConnection()
668 void SensorService::cleanupConnection(SensorEventConnection* c)
709 Sensor SensorService::getSensorFromHandle(int handle) const {
713 status_t SensorService::enable(const sp<SensorEventConnection>& connection,
813 status_t SensorService::disable(const sp<SensorEventConnection>& connection,
828 status_t SensorService::cleanupWithoutDisable(
834 status_t SensorService::cleanupWithoutDisableLocked(
857 status_t SensorService::setEventRate(const sp<SensorEventConnection>& connection,
882 status_t SensorService::flushSensor(const sp<SensorEventConnection>& connection) {
913 bool SensorService::canAccessSensor(const Sensor& sensor) {
918 bool SensorService::verifyCanAccessSensor(const Sensor& sensor, const char* operation) {
932 void SensorService::checkWakeLockState() {
937 void SensorService::checkWakeLockStateLocked() {
956 void SensorService::sendEventsFromCache(const sp<SensorEventConnection>& connection) {
964 void SensorService::populateActiveConnections(
976 SensorService::SensorRecord::SensorRecord(
982 bool SensorService::SensorRecord::addConnection(
992 bool SensorService::SensorRecord::removeConnection(
1012 void SensorService::SensorRecord::addPendingFlushConnection(
1017 void SensorService::SensorRecord::removeFirstPendingFlushConnection() {
1023 SensorService::SensorEventConnection *
1024 SensorService::SensorRecord::getFirstPendingFlushConnection() {
1033 SensorService::SensorEventConnection::SensorEventConnection(
1034 const sp<SensorService>& service, uid_t uid)
1044 SensorService::SensorEventConnection::~SensorEventConnection() {
1052 void SensorService::SensorEventConnection::onFirstRef() {
1056 bool SensorService::SensorEventConnection::needsWakeLock() {
1061 void SensorService::SensorEventConnection::resetWakeLockRefCount() {
1066 void SensorService::SensorEventConnection::dump(String8& result) {
1091 bool SensorService::SensorEventConnection::addSensor(int32_t handle) {
1103 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) {
1111 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const {
1116 bool SensorService::SensorEventConnection::hasAnySensor() const {
1121 bool SensorService::SensorEventConnection::hasOneShotSensors() const {
1132 void SensorService::SensorEventConnection::setFirstFlushPending(int32_t handle,
1142 void SensorService::SensorEventConnection::updateLooperRegistration(const sp<Looper>& looper) {
1147 void SensorService::SensorEventConnection::updateLooperRegistrationLocked(
1192 void SensorService::SensorEventConnection::incrementPendingFlushCount(int32_t handle) {
1201 status_t SensorService::SensorEventConnection::sendEvents(
1358 void SensorService::SensorEventConnection::reAllocateCacheLocked(sensors_event_t const* scratch,
1376 void SensorService::SensorEventConnection::sendPendingFlushEventsLocked() {
1404 void SensorService::SensorEventConnection::writeToSocketFromCache() {
1460 void SensorService::SensorEventConnection::countFlushCompleteEventsLocked(
1476 int SensorService::SensorEventConnection::findWakeUpSensorEventLocked(
1486 sp<BitTube> SensorService::SensorEventConnection::getSensorChannel() const
1491 status_t SensorService::SensorEventConnection::enableDisable(
1506 status_t SensorService::SensorEventConnection::setEventRate(
1512 status_t SensorService::SensorEventConnection::flush() {
1516 int SensorService::SensorEventConnection::handleEvent(int fd, int events, void* /*data*/) {
1520 // and remove the fd from Looper. Call checkWakeLockState to know if SensorService
1566 int SensorService::SensorEventConnection::computeMaxCacheSizeLocked() const {