Searched refs:hwSensor (Results 1 – 3 of 3) sorted by relevance
57 sensor_t hwSensor = {}; in getTestSensorT() local58 hwSensor.name = "Test Sensor"; in getTestSensorT()59 hwSensor.vendor = "Test Vendor"; in getTestSensorT()60 hwSensor.version = 1; in getTestSensorT()61 hwSensor.handle = 2; in getTestSensorT()62 hwSensor.type = SENSOR_TYPE_ACCELEROMETER; in getTestSensorT()63 hwSensor.maxRange = 10.f; in getTestSensorT()64 hwSensor.resolution = 1.f; in getTestSensorT()65 hwSensor.power = 5.f; in getTestSensorT()66 hwSensor.minDelay = 1000; in getTestSensorT()[all …]
37 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) : in Sensor() argument38 Sensor(*hwSensor, uuid_t(), halVersion) { in Sensor()41 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) : in Sensor() argument43 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()[all …]
68 Sensor(struct sensor_t const* hwSensor, int halVersion = 0);69 Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion = 0);