Loading services/sensorservice/SensorDevice.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -475,6 +475,11 @@ ssize_t SensorDevice::Info::removeBatchParamsForIdent(void* ident) { return idx; } void SensorDevice::notifyConnectionDestroyed(void* ident) { Mutex::Autolock _l(mLock); mDisabledClients.remove(ident); } // --------------------------------------------------------------------------- }; // namespace android services/sensorservice/SensorDevice.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ public: void enableAllSensors(); void autoDisable(void *ident, int handle); status_t injectSensorData(const sensors_event_t *event); void notifyConnectionDestroyed(void *ident); // Dumpable virtual std::string dump() const; Loading services/sensorservice/SensorService.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -995,6 +995,9 @@ void SensorService::cleanupConnection(SensorEventConnection* c) { if (c->needsWakeLock()) { checkWakeLockStateLocked(); } SensorDevice& dev(SensorDevice::getInstance()); dev.notifyConnectionDestroyed(c); } sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const { Loading Loading
services/sensorservice/SensorDevice.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -475,6 +475,11 @@ ssize_t SensorDevice::Info::removeBatchParamsForIdent(void* ident) { return idx; } void SensorDevice::notifyConnectionDestroyed(void* ident) { Mutex::Autolock _l(mLock); mDisabledClients.remove(ident); } // --------------------------------------------------------------------------- }; // namespace android
services/sensorservice/SensorDevice.h +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ public: void enableAllSensors(); void autoDisable(void *ident, int handle); status_t injectSensorData(const sensors_event_t *event); void notifyConnectionDestroyed(void *ident); // Dumpable virtual std::string dump() const; Loading
services/sensorservice/SensorService.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -995,6 +995,9 @@ void SensorService::cleanupConnection(SensorEventConnection* c) { if (c->needsWakeLock()) { checkWakeLockStateLocked(); } SensorDevice& dev(SensorDevice::getInstance()); dev.notifyConnectionDestroyed(c); } sp<SensorInterface> SensorService::getSensorInterfaceFromHandle(int handle) const { Loading