Lines Matching refs:hw
291 HwSensors* hw = cl->sensors; in _hwSensorClient_tick() local
299 sensor = &hw->sensors[ANDROID_SENSOR_ACCELERATION]; in _hwSensorClient_tick()
308 sensor = &hw->sensors[ANDROID_SENSOR_MAGNETIC_FIELD]; in _hwSensorClient_tick()
318 sensor = &hw->sensors[ANDROID_SENSOR_ORIENTATION]; in _hwSensorClient_tick()
327 sensor = &hw->sensors[ANDROID_SENSOR_TEMPERATURE]; in _hwSensorClient_tick()
334 sensor = &hw->sensors[ANDROID_SENSOR_PROXIMITY]; in _hwSensorClient_tick()
362 HwSensors* hw = cl->sensors; in _hwSensorClient_receive() local
376 if (hw->sensors[nn].enabled) in _hwSensorClient_receive()
424 if (!hw->sensors[id].enabled) { in _hwSensorClient_receive()
441 if (hw->sensors_port != NULL) { in _hwSensorClient_receive()
443 sensors_port_enable_sensor(hw->sensors_port, (const char*)msg); in _hwSensorClient_receive()
445 sensors_port_disable_sensor(hw->sensors_port, (const char*)msg); in _hwSensorClient_receive()
707 HwSensors* hw = _sensorsState; in android_hw_sensors_init() local
709 if (hw->service == NULL) { in android_hw_sensors_init()
710 _hwSensors_init(hw); in android_hw_sensors_init()
737 HwSensors* hw = _sensorsState; in android_sensors_get_id_from_name() local
747 if (hw->service != NULL) { in android_sensors_get_id_from_name()
748 if (! hw->sensors[id].enabled) in android_sensors_get_id_from_name()
760 HwSensors* hw = _sensorsState; in android_sensors_get() local
769 Sensor* sensor = &hw->sensors[sensor_id]; in android_sensors_get()
770 if (hw->service != NULL) { in android_sensors_get()
787 HwSensors* hw = _sensorsState; in android_sensors_set() local
792 if (hw->service != NULL) { in android_sensors_set()
793 if (! hw->sensors[sensor_id].enabled) in android_sensors_set()
798 _hwSensors_setSensorValue(hw, sensor_id, a, b, c); in android_sensors_set()
807 HwSensors* hw = _sensorsState; in android_sensors_get_sensor_status() local
812 return hw->sensors[sensor_id].enabled; in android_sensors_get_sensor_status()