Lines Matching defs:SensorService

43 #include "SensorService.h"
73 const char* SensorService::WAKE_LOCK_NAME = "SensorService_wakelock";
74 uint8_t SensorService::sHmacGlobalKey[128] = {};
75 bool SensorService::sHmacGlobalKeyIsValid = false;
86 SensorService::SensorService()
92 bool SensorService::initializeHmacKey() {
130 void SensorService::enableSchedFifoMode() {
134 ALOGE("Couldn't set SCHED_FIFO for SensorService thread");
138 void SensorService::onFirstRef() {
281 run("SensorService", PRIORITY_URGENT_DISPLAY);
292 void SensorService::setSensorAccess(uid_t uid, bool hasAccess) {
305 const Sensor& SensorService::registerSensor(SensorInterface* s, bool isDebug, bool isVirtual) {
316 const Sensor& SensorService::registerDynamicSensorLocked(SensorInterface* s, bool isDebug) {
320 bool SensorService::unregisterDynamicSensorLocked(int handle) {
331 const Sensor& SensorService::registerVirtualSensor(SensorInterface* s, bool isDebug) {
335 SensorService::~SensorService() {
342 status_t SensorService::dump(int fd, const Vector<String16>& args) {
345 result.appendFormat("Permission Denial: can't dump SensorService from pid=%d, uid=%d\n",
517 status_t SensorService::shellCommand(int in, int out, int err, Vector<String16>& args) {
538 status_t SensorService::handleSetUidState(Vector<String16>& args, int err) {
557 status_t SensorService::handleResetUidState(Vector<String16>& args, int err) {
569 status_t SensorService::handleGetUidState(Vector<String16>& args, int out, int err) {
584 status_t SensorService::printHelp(int out) {
593 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection,
614 bool SensorService::threadLoop() {
804 ALOGW("Exiting SensorService::threadLoop => aborting...");
809 sp<Looper> SensorService::getLooper() const {
813 void SensorService::resetAllWakeLockRefCounts() {
827 void SensorService::setWakeLockAcquiredLocked(bool acquire) {
842 bool SensorService::isWakeLockAcquired() {
847 bool SensorService::SensorEventAckReceiver::threadLoop() {
862 void SensorService::recordLastValueLocked(
878 void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count) {
889 String8 SensorService::getSensorName(int handle) const {
893 bool SensorService::isVirtualSensor(int handle) const {
898 bool SensorService::isWakeUpSensorEvent(const sensors_event_t& event) const {
907 int32_t SensorService::getIdFromUuid(const Sensor::uuid_t &uuid) const {
979 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const {
986 Vector<Sensor> SensorService::getSensorList(const String16& /* opPackageName */) {
1000 Vector<Sensor> SensorService::getDynamicSensorList(const String16& opPackageName) {
1020 sp<ISensorEventConnection> SensorService::createSensorEventConnection(const String8& packageName,
1028 // To create a client in DATA_INJECTION mode to inject data, SensorService should already be
1056 int SensorService::isDataInjectionEnabled() {
1061 sp<ISensorEventConnection> SensorService::createSensorDirectConnection(
1147 int SensorService::setOperationParameter(
1238 status_t SensorService::resetToNormalMode() {
1243 status_t SensorService::resetToNormalModeLocked() {
1253 void SensorService::cleanupConnection(SensorEventConnection* c) {
1297 void SensorService::cleanupConnection(SensorDirectConnection* c) {
1305 sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const {
1309 status_t SensorService::enable(const sp<SensorEventConnection>& connection,
1436 status_t SensorService::disable(const sp<SensorEventConnection>& connection, int handle) {
1455 status_t SensorService::cleanupWithoutDisable(
1461 status_t SensorService::cleanupWithoutDisableLocked(
1484 status_t SensorService::setEventRate(const sp<SensorEventConnection>& connection,
1506 status_t SensorService::flushSensor(const sp<SensorEventConnection>& connection,
1545 bool SensorService::canAccessSensor(const Sensor& sensor, const char* operation,
1583 void SensorService::checkWakeLockState() {
1588 void SensorService::checkWakeLockStateLocked() {
1607 void SensorService::sendEventsFromCache(const sp<SensorEventConnection>& connection) {
1615 void SensorService::populateActiveConnections(
1626 bool SensorService::isWhiteListedPackage(const String8& packageName) {
1630 bool SensorService::isOperationRestricted(const String16& opPackageName) {
1639 void SensorService::UidPolicy::registerSelf() {
1648 void SensorService::UidPolicy::unregisterSelf() {
1653 void SensorService::UidPolicy::onUidGone(__unused uid_t uid, __unused bool disabled) {
1657 void SensorService::UidPolicy::onUidActive(uid_t uid) {
1662 sp<SensorService> service = mService.promote();
1668 void SensorService::UidPolicy::onUidIdle(uid_t uid, __unused bool disabled) {
1677 sp<SensorService> service = mService.promote();
1684 void SensorService::UidPolicy::addOverrideUid(uid_t uid, bool active) {
1688 void SensorService::UidPolicy::removeOverrideUid(uid_t uid) {
1692 void SensorService::UidPolicy::updateOverrideUid(uid_t uid, bool active, bool insert) {
1705 sp<SensorService> service = mService.promote();
1712 bool SensorService::UidPolicy::isUidActive(uid_t uid) {
1721 bool SensorService::UidPolicy::isUidActiveLocked(uid_t uid) {