Searched defs:en (Results 1 - 11 of 11) sorted by relevance

/device/moto/stingray/sensors/
H A DAccelerationSensor.cpp61 int AccelerationSensor::enable(int32_t, int en) argument
63 int flags = en ? 1 : 0;
68 if (mOrientationEnabled && !en) {
88 int AccelerationSensor::enableOrientation(int en)
90 int flags = en ? 1 : 0;
94 if (mEnabled && !en) {
H A DGyroSensor.cpp62 int GyroSensor::enable(int32_t, int en) argument
64 int flags = en ? 1 : 0;
H A DLightSensor.cpp48 int LightSensor::enable(int32_t, int en) { argument
50 en = en ? 1 : 0;
51 if(mEnabled != en) {
52 if (en) {
55 err = ioctl(dev_fd, MAX9635_IOCTL_SET_ENABLE,&en);
59 mEnabled = en;
61 if (!en) {
H A DPressureSensor.cpp65 int PressureSensor::enable(int32_t, int en) argument
67 int flags = en ? 1 : 0;
H A DAkmSensor.cpp88 int AkmSensor::enable(int32_t handle, int en) argument
100 int newState = en ? 1 : 0;
/device/samsung/tuna/libsensors/
H A DProximitySensor.cpp53 int ProximitySensor::handleEnable(int en) { argument
54 if (!en)
H A DSamsungSensorBase.cpp53 int SamsungSensorBase::handleEnable(int en) { argument
98 int SamsungSensorBase::enable(int32_t handle, int en) argument
102 if (en != mEnabled) {
106 err = write(fd, en ? "1" : "0", 2);
111 mEnabled = en;
112 err = handleEnable(en);
/device/samsung/crespo/libsensors/
H A DProximitySensor.cpp67 int ProximitySensor::enable(int32_t, int en) { argument
68 int flags = en ? 1 : 0;
H A DGyroSensor.cpp78 int GyroSensor::enable(int32_t, int en) { argument
79 int flags = en ? 1 : 0;
H A DLightSensor.cpp71 int LightSensor::enable(int32_t handle, int en) argument
73 int flags = en ? 1 : 0;
H A DAkmSensor.cpp137 int AkmSensor::enable(int32_t handle, int en) argument
150 int newState = en ? 1 : 0;
161 if (en)

Completed in 51 milliseconds