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
43 mName = hwSensor.name; in Sensor()
44 mVendor = hwSensor.vendor; in Sensor()
45 mVersion = hwSensor.version; in Sensor()
46 mHandle = hwSensor.handle; in Sensor()
47 mType = hwSensor.type; in Sensor()
49 mMaxValue = hwSensor.maxRange; // FIXME: maxValue in Sensor()
50 mResolution = hwSensor.resolution; in Sensor()
51 mPower = hwSensor.power; in Sensor()
52 mMinDelay = hwSensor.minDelay; in Sensor()
59 mFifoReservedEventCount = hwSensor.fifoReservedEventCount; in Sensor()
60 mFifoMaxEventCount = hwSensor.fifoMaxEventCount; in Sensor()
67 if (hwSensor.maxDelay > INT_MAX) { in Sensor()
71 static_cast<int64_t>(hwSensor.maxDelay)); in Sensor()
74 mMaxDelay = static_cast<int32_t>(hwSensor.maxDelay); in Sensor()
258 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.stringType) { in Sensor()
259 mStringType = hwSensor.stringType; in Sensor()
261 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0 && hwSensor.requiredPermission) { in Sensor()
262 mRequiredPermission = hwSensor.requiredPermission; in Sensor()
270 mFlags = static_cast<uint32_t>(hwSensor.flags); in Sensor()
287 mFlags |= (hwSensor.flags & SENSOR_FLAG_WAKE_UP); in Sensor()
290 int actualReportingMode = (hwSensor.flags & REPORTING_MODE_MASK) >> REPORTING_MODE_SHIFT; in Sensor()
302 mFlags |= hwSensor.flags & (DYNAMIC_SENSOR_MASK | ADDITIONAL_INFO_MASK); in Sensor()
308 mFlags |= hwSensor.flags in Sensor()
314 mFlags |= (hwSensor.flags & DATA_INJECTION_MASK); in Sensor()