Loading healthd/BatteryPropertiesRegistrar.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ void BatteryPropertiesRegistrar::publish( defaultServiceManager()->addService(String16("batteryproperties"), service); } void BatteryPropertiesRegistrar::notifyListeners(struct BatteryProperties props) { void BatteryPropertiesRegistrar::notifyListeners(const struct BatteryProperties& props) { Mutex::Autolock _l(mRegistrationLock); for (size_t i = 0; i < mListeners.size(); i++) { mListeners[i]->batteryPropertiesChanged(props); Loading healthd/BatteryPropertiesRegistrar.h +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class BatteryPropertiesRegistrar : public BnBatteryPropertiesRegistrar, public IBinder::DeathRecipient { public: void publish(const sp<BatteryPropertiesRegistrar>& service); void notifyListeners(struct BatteryProperties props); void notifyListeners(const struct BatteryProperties& props); private: Mutex mRegistrationLock; Loading Loading
healthd/BatteryPropertiesRegistrar.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ void BatteryPropertiesRegistrar::publish( defaultServiceManager()->addService(String16("batteryproperties"), service); } void BatteryPropertiesRegistrar::notifyListeners(struct BatteryProperties props) { void BatteryPropertiesRegistrar::notifyListeners(const struct BatteryProperties& props) { Mutex::Autolock _l(mRegistrationLock); for (size_t i = 0; i < mListeners.size(); i++) { mListeners[i]->batteryPropertiesChanged(props); Loading
healthd/BatteryPropertiesRegistrar.h +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class BatteryPropertiesRegistrar : public BnBatteryPropertiesRegistrar, public IBinder::DeathRecipient { public: void publish(const sp<BatteryPropertiesRegistrar>& service); void notifyListeners(struct BatteryProperties props); void notifyListeners(const struct BatteryProperties& props); private: Mutex mRegistrationLock; Loading