Lines Matching refs:SensorService
42 #include "SensorService.h"
69 const char* SensorService::WAKE_LOCK_NAME = "SensorService_wakelock";
70 uint8_t SensorService::sHmacGlobalKey[128] = {};
71 bool SensorService::sHmacGlobalKeyIsValid = false;
80 SensorService::SensorService()
85 bool SensorService::initializeHmacKey() {
123 void SensorService::enableSchedFifoMode() {
127 ALOGE("Couldn't set SCHED_FIFO for SensorService thread");
131 void SensorService::onFirstRef() {
274 run("SensorService", PRIORITY_URGENT_DISPLAY);
282 const Sensor& SensorService::registerSensor(SensorInterface* s, bool isDebug, bool isVirtual) {
293 const Sensor& SensorService::registerDynamicSensorLocked(SensorInterface* s, bool isDebug) {
297 bool SensorService::unregisterDynamicSensorLocked(int handle) {
308 const Sensor& SensorService::registerVirtualSensor(SensorInterface* s, bool isDebug) {
312 SensorService::~SensorService() {
318 status_t SensorService::dump(int fd, const Vector<String16>& args) {
321 result.appendFormat("Permission Denial: can't dump SensorService from pid=%d, uid=%d\n",
472 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection,
493 bool SensorService::threadLoop() {
684 ALOGW("Exiting SensorService::threadLoop => aborting...");
689 sp<Looper> SensorService::getLooper() const {
693 void SensorService::resetAllWakeLockRefCounts() {
707 void SensorService::setWakeLockAcquiredLocked(bool acquire) {
722 bool SensorService::isWakeLockAcquired() {
727 bool SensorService::SensorEventAckReceiver::threadLoop() {
742 void SensorService::recordLastValueLocked(
758 void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count) {
769 String8 SensorService::getSensorName(int handle) const {
773 bool SensorService::isVirtualSensor(int handle) const {
778 bool SensorService::isWakeUpSensorEvent(const sensors_event_t& event) const {
787 int32_t SensorService::getIdFromUuid(const Sensor::uuid_t &uuid) const {
859 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const {
866 Vector<Sensor> SensorService::getSensorList(const String16& opPackageName) {
887 Vector<Sensor> SensorService::getDynamicSensorList(const String16& opPackageName) {
907 sp<ISensorEventConnection> SensorService::createSensorEventConnection(const String8& packageName,
915 // To create a client in DATA_INJECTION mode to inject data, SensorService should already be
936 int SensorService::isDataInjectionEnabled() {
941 status_t SensorService::resetToNormalMode() {
946 status_t SensorService::resetToNormalModeLocked() {
954 void SensorService::cleanupConnection(SensorEventConnection* c) {
995 sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const {
1000 status_t SensorService::enable(const sp<SensorEventConnection>& connection,
1129 status_t SensorService::disable(const sp<SensorEventConnection>& connection, int handle) {
1156 status_t SensorService::cleanupWithoutDisable(
1162 status_t SensorService::cleanupWithoutDisableLocked(
1185 status_t SensorService::setEventRate(const sp<SensorEventConnection>& connection,
1207 status_t SensorService::flushSensor(const sp<SensorEventConnection>& connection,
1246 bool SensorService::canAccessSensor(const Sensor& sensor, const char* operation,
1284 void SensorService::checkWakeLockState() {
1289 void SensorService::checkWakeLockStateLocked() {
1308 void SensorService::sendEventsFromCache(const sp<SensorEventConnection>& connection) {
1316 void SensorService::populateActiveConnections(
1327 bool SensorService::isWhiteListedPackage(const String8& packageName) {