Home
last modified time | relevance | path

Searched refs:hwSensor (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/sensor/tests/
DSensor_test.cpp57 sensor_t hwSensor = {}; in getTestSensorT() local
58 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 …]
/frameworks/native/libs/sensor/
DSensor.cpp44 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()
[all …]
/frameworks/native/libs/sensor/include/sensor/
DSensor.h68 explicit Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
69 Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion = 0);