Lines Matching refs:SensorService
82 const char* SensorService::WAKE_LOCK_NAME = "SensorService_wakelock";
83 uint8_t SensorService::sHmacGlobalKey[128] = {};
84 bool SensorService::sHmacGlobalKeyIsValid = false;
85 std::map<String16, int> SensorService::sPackageTargetVersion;
86 Mutex SensorService::sPackageTargetVersionLock;
87 String16 SensorService::sSensorInterfaceDescriptorPrefix =
89 AppOpsManager SensorService::sAppOpsManager;
90 std::atomic_uint64_t SensorService::curProxCallbackSeq(0);
91 std::atomic_uint64_t SensorService::completedCallbackSeq(0);
104 SensorService::SensorService() in SensorService() function in android::SensorService
111 bool SensorService::initializeHmacKey() { in initializeHmacKey()
149 void SensorService::enableSchedFifoMode() { in enableSchedFifoMode()
157 void SensorService::onFirstRef() { in onFirstRef()
317 void SensorService::onUidStateChanged(uid_t uid, UidState state) { in onUidStateChanged()
336 bool SensorService::hasSensorAccess(uid_t uid, const String16& opPackageName) { in hasSensorAccess()
341 bool SensorService::hasSensorAccessLocked(uid_t uid, const String16& opPackageName) { in hasSensorAccessLocked()
346 const Sensor& SensorService::registerSensor(SensorInterface* s, bool isDebug, bool isVirtual) { in registerSensor()
357 const Sensor& SensorService::registerDynamicSensorLocked(SensorInterface* s, bool isDebug) { in registerDynamicSensorLocked()
361 bool SensorService::unregisterDynamicSensorLocked(int handle) { in unregisterDynamicSensorLocked()
372 const Sensor& SensorService::registerVirtualSensor(SensorInterface* s, bool isDebug) { in registerVirtualSensor()
376 SensorService::~SensorService() { in ~SensorService()
387 status_t SensorService::dump(int fd, const Vector<String16>& args) { in dump()
557 status_t SensorService::dumpProtoLocked(int fd, ConnectionSafeAutolock* connLock) const { in dumpProtoLocked()
672 void SensorService::disableAllSensors() { in disableAllSensors()
677 void SensorService::disableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in disableAllSensorsLocked()
696 void SensorService::enableAllSensors() { in enableAllSensors()
701 void SensorService::enableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in enableAllSensorsLocked()
722 void SensorService::capRates(userid_t userId) { in capRates()
737 void SensorService::uncapRates(userid_t userId) { in uncapRates()
753 status_t SensorService::shellCommand(int in, int out, int err, Vector<String16>& args) { in shellCommand()
796 status_t SensorService::handleSetUidState(Vector<String16>& args, int err) { in handleSetUidState()
825 status_t SensorService::handleResetUidState(Vector<String16>& args, int err) { in handleResetUidState()
846 status_t SensorService::handleGetUidState(Vector<String16>& args, int out, int err) { in handleGetUidState()
870 status_t SensorService::printHelp(int out) { in printHelp()
879 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked()
900 bool SensorService::threadLoop() { in threadLoop()
1090 sp<Looper> SensorService::getLooper() const { in getLooper()
1094 void SensorService::resetAllWakeLockRefCounts() { in resetAllWakeLockRefCounts()
1102 void SensorService::setWakeLockAcquiredLocked(bool acquire) { in setWakeLockAcquiredLocked()
1117 bool SensorService::isWakeLockAcquired() { in isWakeLockAcquired()
1122 bool SensorService::SensorEventAckReceiver::threadLoop() { in threadLoop()
1137 void SensorService::recordLastValueLocked( in recordLastValueLocked()
1153 void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count) { in sortEventBuffer()
1164 String8 SensorService::getSensorName(int handle) const { in getSensorName()
1168 String8 SensorService::getSensorStringType(int handle) const { in getSensorStringType()
1172 bool SensorService::isVirtualSensor(int handle) const { in isVirtualSensor()
1177 bool SensorService::isWakeUpSensorEvent(const sensors_event_t& event) const { in isWakeUpSensorEvent()
1186 int32_t SensorService::getIdFromUuid(const Sensor::uuid_t &uuid) const { in getIdFromUuid()
1258 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const { in makeUuidsIntoIdsForSensorList()
1265 Vector<Sensor> SensorService::getSensorList(const String16& opPackageName) { in getSensorList()
1285 Vector<Sensor> SensorService::getDynamicSensorList(const String16& opPackageName) { in getDynamicSensorList()
1305 sp<ISensorEventConnection> SensorService::createSensorEventConnection(const String8& packageName, in createSensorEventConnection()
1338 int SensorService::isDataInjectionEnabled() { in isDataInjectionEnabled()
1343 sp<ISensorEventConnection> SensorService::createSensorDirectConnection( in createSensorDirectConnection()
1439 int SensorService::setOperationParameter( in setOperationParameter()
1530 status_t SensorService::resetToNormalMode() { in resetToNormalMode()
1535 status_t SensorService::resetToNormalModeLocked() { in resetToNormalModeLocked()
1549 void SensorService::cleanupConnection(SensorEventConnection* c) { in cleanupConnection()
1601 void SensorService::cleanupConnection(SensorDirectConnection* c) { in cleanupConnection()
1609 void SensorService::onProximityActiveLocked(bool isActive) { in onProximityActiveLocked()
1628 void SensorService::notifyProximityStateLocked( in notifyProximityStateLocked()
1642 status_t SensorService::addProximityActiveListener(const sp<ProximityActiveListener>& callback) { in addProximityActiveListener()
1662 status_t SensorService::removeProximityActiveListener( in removeProximityActiveListener()
1681 sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const { in getSensorInterfaceFromHandle()
1685 status_t SensorService::enable(const sp<SensorEventConnection>& connection, in enable()
1830 status_t SensorService::disable(const sp<SensorEventConnection>& connection, int handle) { in disable()
1849 status_t SensorService::cleanupWithoutDisable( in cleanupWithoutDisable()
1855 status_t SensorService::cleanupWithoutDisableLocked( in cleanupWithoutDisableLocked()
1878 status_t SensorService::setEventRate(const sp<SensorEventConnection>& connection, in setEventRate()
1900 status_t SensorService::flushSensor(const sp<SensorEventConnection>& connection, in flushSensor()
1941 bool SensorService::canAccessSensor(const Sensor& sensor, const char* operation, in canAccessSensor()
1978 bool SensorService::hasPermissionForSensor(const Sensor& sensor) { in hasPermissionForSensor()
1992 int SensorService::getTargetSdkVersion(const String16& opPackageName) { in getTargetSdkVersion()
2023 void SensorService::checkWakeLockState() { in checkWakeLockState()
2028 void SensorService::checkWakeLockStateLocked(ConnectionSafeAutolock* connLock) { in checkWakeLockStateLocked()
2044 void SensorService::sendEventsFromCache(const sp<SensorEventConnection>& connection) { in sendEventsFromCache()
2052 bool SensorService::isWhiteListedPackage(const String8& packageName) { in isWhiteListedPackage()
2056 bool SensorService::isOperationRestrictedLocked(const String16& opPackageName) { in isOperationRestrictedLocked()
2064 void SensorService::UidPolicy::registerSelf() { in registerSelf()
2073 void SensorService::UidPolicy::unregisterSelf() { in unregisterSelf()
2078 void SensorService::UidPolicy::onUidGone(__unused uid_t uid, __unused bool disabled) { in onUidGone()
2082 void SensorService::UidPolicy::onUidActive(uid_t uid) { in onUidActive()
2087 sp<SensorService> service = mService.promote(); in onUidActive()
2093 void SensorService::UidPolicy::onUidIdle(uid_t uid, __unused bool disabled) { in onUidIdle()
2102 sp<SensorService> service = mService.promote(); in onUidIdle()
2109 void SensorService::UidPolicy::addOverrideUid(uid_t uid, bool active) { in addOverrideUid()
2113 void SensorService::UidPolicy::removeOverrideUid(uid_t uid) { in removeOverrideUid()
2117 void SensorService::UidPolicy::updateOverrideUid(uid_t uid, bool active, bool insert) { in updateOverrideUid()
2130 sp<SensorService> service = mService.promote(); in updateOverrideUid()
2137 bool SensorService::UidPolicy::isUidActive(uid_t uid) { in isUidActive()
2146 bool SensorService::UidPolicy::isUidActiveLocked(uid_t uid) { in isUidActiveLocked()
2158 bool SensorService::isUidActive(uid_t uid) { in isUidActive()
2162 bool SensorService::isRateCappedBasedOnPermission(const String16& opPackageName) { in isRateCappedBasedOnPermission()
2181 bool SensorService::isSensorInCappedSet(int sensorType) { in isSensorInCappedSet()
2190 status_t SensorService::adjustSamplingPeriodBasedOnMicAndPermission(nsecs_t* requestedPeriodNs, in adjustSamplingPeriodBasedOnMicAndPermission()
2211 status_t SensorService::adjustRateLevelBasedOnMicAndPermission(int* requestedRateLevel, in adjustRateLevelBasedOnMicAndPermission()
2233 void SensorService::SensorPrivacyPolicy::registerSelf() { in registerSelf()
2240 void SensorService::SensorPrivacyPolicy::unregisterSelf() { in unregisterSelf()
2251 bool SensorService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { in isSensorPrivacyEnabled()
2255 binder::Status SensorService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool enabled) { in onSensorPrivacyChanged()
2257 sp<SensorService> service = mService.promote(); in onSensorPrivacyChanged()
2277 status_t SensorService::SensorPrivacyPolicy::registerSelfForIndividual(int userId) { in registerSelfForIndividual()
2296 bool SensorService::isMicSensorPrivacyEnabledForUid(uid_t uid) { in isMicSensorPrivacyEnabledForUid()
2308 SensorService::ConnectionSafeAutolock::ConnectionSafeAutolock( in ConnectionSafeAutolock()
2309 SensorService::SensorConnectionHolder& holder, Mutex& mutex) in ConnectionSafeAutolock()
2313 const std::vector<sp<ConnectionType>>& SensorService::ConnectionSafeAutolock::getConnectionsHelper( in getConnectionsHelper()
2327 const std::vector<sp<SensorService::SensorEventConnection>>&
2328 SensorService::ConnectionSafeAutolock::getActiveConnections() { in getActiveConnections()
2333 const std::vector<sp<SensorService::SensorDirectConnection>>&
2334 SensorService::ConnectionSafeAutolock::getDirectConnections() { in getDirectConnections()
2339 void SensorService::SensorConnectionHolder::addEventConnectionIfNotPresent( in addEventConnectionIfNotPresent()
2340 const sp<SensorService::SensorEventConnection>& connection) { in addEventConnectionIfNotPresent()
2346 void SensorService::SensorConnectionHolder::removeEventConnection( in removeEventConnection()
2347 const wp<SensorService::SensorEventConnection>& connection) { in removeEventConnection()
2351 void SensorService::SensorConnectionHolder::addDirectConnection( in addDirectConnection()
2352 const sp<SensorService::SensorDirectConnection>& connection) { in addDirectConnection()
2356 void SensorService::SensorConnectionHolder::removeDirectConnection( in removeDirectConnection()
2357 const wp<SensorService::SensorDirectConnection>& connection) { in removeDirectConnection()
2361 SensorService::ConnectionSafeAutolock SensorService::SensorConnectionHolder::lock(Mutex& mutex) { in lock()
2365 bool SensorService::isPackageDebuggable(const String16& opPackageName) { in isPackageDebuggable()