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()
319 void SensorService::onUidStateChanged(uid_t uid, UidState state) { in onUidStateChanged()
339 bool SensorService::hasSensorAccess(uid_t uid, const String16& opPackageName) { in hasSensorAccess()
344 bool SensorService::hasSensorAccessLocked(uid_t uid, const String16& opPackageName) { in hasSensorAccessLocked()
349 const Sensor& SensorService::registerSensor(SensorInterface* s, bool isDebug, bool isVirtual) { in registerSensor()
360 const Sensor& SensorService::registerDynamicSensorLocked(SensorInterface* s, bool isDebug) { in registerDynamicSensorLocked()
364 bool SensorService::unregisterDynamicSensorLocked(int handle) { in unregisterDynamicSensorLocked()
375 const Sensor& SensorService::registerVirtualSensor(SensorInterface* s, bool isDebug) { in registerVirtualSensor()
379 SensorService::~SensorService() { in ~SensorService()
390 status_t SensorService::dump(int fd, const Vector<String16>& args) { in dump()
560 status_t SensorService::dumpProtoLocked(int fd, ConnectionSafeAutolock* connLock) const { in dumpProtoLocked()
675 void SensorService::disableAllSensors() { in disableAllSensors()
680 void SensorService::disableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in disableAllSensorsLocked()
696 void SensorService::enableAllSensors() { in enableAllSensors()
701 void SensorService::enableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in enableAllSensorsLocked()
719 void SensorService::capRates(userid_t userId) { in capRates()
734 void SensorService::uncapRates(userid_t userId) { in uncapRates()
750 status_t SensorService::shellCommand(int in, int out, int err, Vector<String16>& args) { in shellCommand()
793 status_t SensorService::handleSetUidState(Vector<String16>& args, int err) { in handleSetUidState()
822 status_t SensorService::handleResetUidState(Vector<String16>& args, int err) { in handleResetUidState()
843 status_t SensorService::handleGetUidState(Vector<String16>& args, int out, int err) { in handleGetUidState()
867 status_t SensorService::printHelp(int out) { in printHelp()
876 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked()
897 bool SensorService::threadLoop() { in threadLoop()
1087 sp<Looper> SensorService::getLooper() const { in getLooper()
1091 void SensorService::resetAllWakeLockRefCounts() { in resetAllWakeLockRefCounts()
1099 void SensorService::setWakeLockAcquiredLocked(bool acquire) { in setWakeLockAcquiredLocked()
1114 bool SensorService::isWakeLockAcquired() { in isWakeLockAcquired()
1119 bool SensorService::SensorEventAckReceiver::threadLoop() { in threadLoop()
1134 void SensorService::recordLastValueLocked( in recordLastValueLocked()
1150 void SensorService::sortEventBuffer(sensors_event_t* buffer, size_t count) { in sortEventBuffer()
1161 String8 SensorService::getSensorName(int handle) const { in getSensorName()
1165 String8 SensorService::getSensorStringType(int handle) const { in getSensorStringType()
1169 bool SensorService::isVirtualSensor(int handle) const { in isVirtualSensor()
1174 bool SensorService::isWakeUpSensorEvent(const sensors_event_t& event) const { in isWakeUpSensorEvent()
1183 int32_t SensorService::getIdFromUuid(const Sensor::uuid_t &uuid) const { in getIdFromUuid()
1255 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const { in makeUuidsIntoIdsForSensorList()
1262 Vector<Sensor> SensorService::getSensorList(const String16& opPackageName) { in getSensorList()
1282 Vector<Sensor> SensorService::getDynamicSensorList(const String16& opPackageName) { in getDynamicSensorList()
1302 sp<ISensorEventConnection> SensorService::createSensorEventConnection(const String8& packageName, in createSensorEventConnection()
1335 int SensorService::isDataInjectionEnabled() { in isDataInjectionEnabled()
1340 sp<ISensorEventConnection> SensorService::createSensorDirectConnection( in createSensorDirectConnection()
1436 int SensorService::setOperationParameter( in setOperationParameter()
1527 status_t SensorService::resetToNormalMode() { in resetToNormalMode()
1532 status_t SensorService::resetToNormalModeLocked() { in resetToNormalModeLocked()
1543 void SensorService::cleanupConnection(SensorEventConnection* c) { in cleanupConnection()
1595 void SensorService::cleanupConnection(SensorDirectConnection* c) { in cleanupConnection()
1603 void SensorService::checkAndReportProxStateChangeLocked() { in checkAndReportProxStateChangeLocked()
1620 void SensorService::notifyProximityStateLocked( in notifyProximityStateLocked()
1634 status_t SensorService::addProximityActiveListener(const sp<ProximityActiveListener>& callback) { in addProximityActiveListener()
1654 status_t SensorService::removeProximityActiveListener( in removeProximityActiveListener()
1673 sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const { in getSensorInterfaceFromHandle()
1677 status_t SensorService::enable(const sp<SensorEventConnection>& connection, in enable()
1822 status_t SensorService::disable(const sp<SensorEventConnection>& connection, int handle) { in disable()
1841 status_t SensorService::cleanupWithoutDisable( in cleanupWithoutDisable()
1847 status_t SensorService::cleanupWithoutDisableLocked( in cleanupWithoutDisableLocked()
1870 status_t SensorService::setEventRate(const sp<SensorEventConnection>& connection, in setEventRate()
1892 status_t SensorService::flushSensor(const sp<SensorEventConnection>& connection, in flushSensor()
1933 bool SensorService::canAccessSensor(const Sensor& sensor, const char* operation, in canAccessSensor()
1970 bool SensorService::hasPermissionForSensor(const Sensor& sensor) { in hasPermissionForSensor()
1984 int SensorService::getTargetSdkVersion(const String16& opPackageName) { in getTargetSdkVersion()
2015 void SensorService::checkWakeLockState() { in checkWakeLockState()
2020 void SensorService::checkWakeLockStateLocked(ConnectionSafeAutolock* connLock) { in checkWakeLockStateLocked()
2036 void SensorService::sendEventsFromCache(const sp<SensorEventConnection>& connection) { in sendEventsFromCache()
2044 bool SensorService::isWhiteListedPackage(const String8& packageName) { in isWhiteListedPackage()
2048 bool SensorService::isOperationRestrictedLocked(const String16& opPackageName) { in isOperationRestrictedLocked()
2056 void SensorService::UidPolicy::registerSelf() { in registerSelf()
2065 void SensorService::UidPolicy::unregisterSelf() { in unregisterSelf()
2070 void SensorService::UidPolicy::onUidGone(__unused uid_t uid, __unused bool disabled) { in onUidGone()
2074 void SensorService::UidPolicy::onUidActive(uid_t uid) { in onUidActive()
2079 sp<SensorService> service = mService.promote(); in onUidActive()
2085 void SensorService::UidPolicy::onUidIdle(uid_t uid, __unused bool disabled) { in onUidIdle()
2094 sp<SensorService> service = mService.promote(); in onUidIdle()
2101 void SensorService::UidPolicy::addOverrideUid(uid_t uid, bool active) { in addOverrideUid()
2105 void SensorService::UidPolicy::removeOverrideUid(uid_t uid) { in removeOverrideUid()
2109 void SensorService::UidPolicy::updateOverrideUid(uid_t uid, bool active, bool insert) { in updateOverrideUid()
2122 sp<SensorService> service = mService.promote(); in updateOverrideUid()
2129 bool SensorService::UidPolicy::isUidActive(uid_t uid) { in isUidActive()
2138 bool SensorService::UidPolicy::isUidActiveLocked(uid_t uid) { in isUidActiveLocked()
2150 bool SensorService::isUidActive(uid_t uid) { in isUidActive()
2154 bool SensorService::isRateCappedBasedOnPermission(const String16& opPackageName) { in isRateCappedBasedOnPermission()
2173 bool SensorService::isSensorInCappedSet(int sensorType) { in isSensorInCappedSet()
2182 status_t SensorService::adjustSamplingPeriodBasedOnMicAndPermission(nsecs_t* requestedPeriodNs, in adjustSamplingPeriodBasedOnMicAndPermission()
2203 status_t SensorService::adjustRateLevelBasedOnMicAndPermission(int* requestedRateLevel, in adjustRateLevelBasedOnMicAndPermission()
2225 void SensorService::SensorPrivacyPolicy::registerSelf() { in registerSelf()
2232 void SensorService::SensorPrivacyPolicy::unregisterSelf() { in unregisterSelf()
2243 bool SensorService::SensorPrivacyPolicy::isSensorPrivacyEnabled() { in isSensorPrivacyEnabled()
2247 binder::Status SensorService::SensorPrivacyPolicy::onSensorPrivacyChanged(bool enabled) { in onSensorPrivacyChanged()
2249 sp<SensorService> service = mService.promote(); in onSensorPrivacyChanged()
2269 status_t SensorService::SensorPrivacyPolicy::registerSelfForIndividual(int userId) { in registerSelfForIndividual()
2288 bool SensorService::isMicSensorPrivacyEnabledForUid(uid_t uid) { in isMicSensorPrivacyEnabledForUid()
2300 SensorService::ConnectionSafeAutolock::ConnectionSafeAutolock( in ConnectionSafeAutolock()
2301 SensorService::SensorConnectionHolder& holder, Mutex& mutex) in ConnectionSafeAutolock()
2305 const std::vector<sp<ConnectionType>>& SensorService::ConnectionSafeAutolock::getConnectionsHelper( in getConnectionsHelper()
2319 const std::vector<sp<SensorService::SensorEventConnection>>&
2320 SensorService::ConnectionSafeAutolock::getActiveConnections() { in getActiveConnections()
2325 const std::vector<sp<SensorService::SensorDirectConnection>>&
2326 SensorService::ConnectionSafeAutolock::getDirectConnections() { in getDirectConnections()
2331 void SensorService::SensorConnectionHolder::addEventConnectionIfNotPresent( in addEventConnectionIfNotPresent()
2332 const sp<SensorService::SensorEventConnection>& connection) { in addEventConnectionIfNotPresent()
2338 void SensorService::SensorConnectionHolder::removeEventConnection( in removeEventConnection()
2339 const wp<SensorService::SensorEventConnection>& connection) { in removeEventConnection()
2343 void SensorService::SensorConnectionHolder::addDirectConnection( in addDirectConnection()
2344 const sp<SensorService::SensorDirectConnection>& connection) { in addDirectConnection()
2348 void SensorService::SensorConnectionHolder::removeDirectConnection( in removeDirectConnection()
2349 const wp<SensorService::SensorDirectConnection>& connection) { in removeDirectConnection()
2353 SensorService::ConnectionSafeAutolock SensorService::SensorConnectionHolder::lock(Mutex& mutex) { in lock()
2357 bool SensorService::isPackageDebuggable(const String16& opPackageName) { in isPackageDebuggable()