Lines Matching refs:hwSensor

37 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :  in Sensor()  argument
38 Sensor(*hwSensor, uuid_t(), halVersion) { in Sensor()
41 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) { in Sensor() argument
42 mName = hwSensor.name; in Sensor()
43 mVendor = hwSensor.vendor; in Sensor()
44 mVersion = hwSensor.version; in Sensor()
45 mHandle = hwSensor.handle; in Sensor()
46 mType = hwSensor.type; in Sensor()
48 mMaxValue = hwSensor.maxRange; // FIXME: maxValue in Sensor()
49 mResolution = hwSensor.resolution; in Sensor()
50 mPower = hwSensor.power; in Sensor()
51 mMinDelay = hwSensor.minDelay; in Sensor()
58 mFifoReservedEventCount = hwSensor.fifoReservedEventCount; in Sensor()
59 mFifoMaxEventCount = hwSensor.fifoMaxEventCount; in Sensor()
66 if (hwSensor.maxDelay > INT_MAX) { in Sensor()
70 static_cast<int64_t>(hwSensor.maxDelay)); in Sensor()
73 mMaxDelay = static_cast<int32_t>(hwSensor.maxDelay); in Sensor()
257 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.stringType) { in Sensor()
258 mStringType = hwSensor.stringType; in Sensor()
260 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.requiredPermission) { in Sensor()
261 mRequiredPermission = hwSensor.requiredPermission; in Sensor()
269 mFlags = static_cast<uint32_t>(hwSensor.flags); in Sensor()
286 mFlags |= (hwSensor.flags & SENSOR_FLAG_WAKE_UP); in Sensor()
289 int actualReportingMode = (hwSensor.flags & REPORTING_MODE_MASK) >> REPORTING_MODE_SHIFT; in Sensor()
301 mFlags |= hwSensor.flags & (DYNAMIC_SENSOR_MASK | ADDITIONAL_INFO_MASK); in Sensor()
307 mFlags |= hwSensor.flags in Sensor()
313 mFlags |= (hwSensor.flags & DATA_INJECTION_MASK); in Sensor()