Lines Matching refs:hwSensor

44 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :  in Sensor()  argument
45 Sensor(*hwSensor, uuid_t(), halVersion) { in Sensor()
48 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) : in Sensor() argument
50 mName = hwSensor.name; in Sensor()
51 mVendor = hwSensor.vendor; in Sensor()
52 mVersion = hwSensor.version; in Sensor()
53 mHandle = hwSensor.handle; in Sensor()
54 mType = hwSensor.type; in Sensor()
56 mMaxValue = hwSensor.maxRange; // FIXME: maxValue in Sensor()
57 mResolution = hwSensor.resolution; in Sensor()
58 mPower = hwSensor.power; in Sensor()
59 mMinDelay = hwSensor.minDelay; in Sensor()
66 mFifoReservedEventCount = hwSensor.fifoReservedEventCount; in Sensor()
67 mFifoMaxEventCount = hwSensor.fifoMaxEventCount; in Sensor()
74 if (hwSensor.maxDelay > INT_MAX) { in Sensor()
78 static_cast<int64_t>(hwSensor.maxDelay)); in Sensor()
81 mMaxDelay = static_cast<int32_t>(hwSensor.maxDelay); in Sensor()
301 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.stringType) { in Sensor()
302 mStringType = hwSensor.stringType; in Sensor()
304 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.requiredPermission) { in Sensor()
305 mRequiredPermission = hwSensor.requiredPermission; in Sensor()
313 mFlags = static_cast<uint32_t>(hwSensor.flags); in Sensor()
330 mFlags |= (hwSensor.flags & SENSOR_FLAG_WAKE_UP); in Sensor()
333 int actualReportingMode = (hwSensor.flags & REPORTING_MODE_MASK) >> REPORTING_MODE_SHIFT; in Sensor()
345 mFlags |= hwSensor.flags & (DYNAMIC_SENSOR_MASK | ADDITIONAL_INFO_MASK); in Sensor()
351 mFlags |= hwSensor.flags in Sensor()
357 mFlags |= (hwSensor.flags & DATA_INJECTION_MASK); in Sensor()