+
+void sensor_listener_proxy::on_policy_changed(int policy, int value)
+{
+ ret_if(m_started == false);
+ ret_if(policy != SENSORD_ATTRIBUTE_PAUSE_POLICY);
+ ret_if(m_pause_policy == SENSORD_PAUSE_NONE);
+
+ _D("power_save_state[%d], listener[%d] pause policy[%d]",
+ value, get_id(), m_pause_policy);
+
+ if (value & m_pause_policy)
+ stop(true);
+ if (!(value & m_pause_policy))
+ start(true);
+}