Home
last modified time | relevance | path

Searched refs:sensors (Results 1 – 25 of 83) sorted by relevance

1234

/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.c61 static struct inv_sensor_cal_t sensors; variable
91 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); in inv_get_raw_compass()
99 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy; in inv_db_load_func()
100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
101 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; in inv_db_load_func()
103 if (sensors.accel.accuracy == 3) { in inv_db_load_func()
106 if (sensors.compass.accuracy == 3) { in inv_db_load_func()
155 memset(&sensors, 0, sizeof(sensors)); in inv_init_data_builder()
178 return sensors.gyro.sensitivity; in inv_get_gyro_sensitivity()
188 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c60 static struct inv_sensor_cal_t sensors; variable
90 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); in inv_get_raw_compass()
98 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy; in inv_db_load_func()
99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
100 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; in inv_db_load_func()
102 if (sensors.accel.accuracy == 3) { in inv_db_load_func()
105 if (sensors.compass.accuracy == 3) { in inv_db_load_func()
154 memset(&sensors, 0, sizeof(sensors)); in inv_init_data_builder()
177 return sensors.gyro.sensitivity; in inv_get_gyro_sensitivity()
187 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
[all …]
/hardware/interfaces/sensors/2.0/multihal/
DAndroid.bp17 name: "android.hardware.sensors@2.0-multihal-defaults",
19 "android.hardware.sensors@2.0-multihal.header",
22 "android.hardware.sensors@1.0",
23 "android.hardware.sensors@2.0",
36 name: "android.hardware.sensors@2.0-service.multihal",
39 "android.hardware.sensors@2.0-multihal-defaults",
47 init_rc: ["android.hardware.sensors@2.0-service-multihal.rc"],
48 vintf_fragments: ["android.hardware.sensors@2.0-multihal.xml"],
49 shared_libs: ["android.hardware.sensors@2.0-ScopedWakelock"],
53 name: "android.hardware.sensors@2.0-multihal.header",
[all …]
/hardware/interfaces/sensors/2.0/multihal/tests/
DAndroid.bp17 name: "android.hardware.sensors@2.0-fakesubhal-defaults",
22 "android.hardware.sensors@2.0-multihal.header",
26 "android.hardware.sensors@1.0",
27 "android.hardware.sensors@2.0",
28 "android.hardware.sensors@2.0-ScopedWakelock",
38 "android.hardware.sensors@2.0-HalProxy",
46 name: "android.hardware.sensors@2.0-fakesubhal-config1",
48 defaults: ["android.hardware.sensors@2.0-fakesubhal-defaults"],
56 name: "android.hardware.sensors@2.0-fakesubhal-config2",
58 defaults: ["android.hardware.sensors@2.0-fakesubhal-defaults"],
[all …]
/hardware/interfaces/sensors/1.0/default/
DAndroid.bp2 name: "android.hardware.sensors@1.0-impl",
14 "android.hardware.sensors@1.0",
17 "android.hardware.sensors@1.0-convert",
20 local_include_dirs: ["include/sensors"],
24 name: "android.hardware.sensors@1.0-convert",
36 "android.hardware.sensors@1.0",
38 local_include_dirs: ["include/sensors"],
45 name: "android.hardware.sensors@1.0-service",
48 init_rc: ["android.hardware.sensors@1.0-service.rc"],
58 "android.hardware.sensors@1.0",
Dandroid.hardware.sensors@1.0-service.rc1 service vendor.sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service
2 interface android.hardware.sensors@1.0::ISensors default
/hardware/interfaces/sensors/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.cpp24 using ::android::hardware::sensors::V1_0::ISensors;
25 using ::android::hardware::sensors::V1_0::Result;
26 using ::android::hardware::sensors::V1_0::SensorInfo;
38 sensors = ISensors::getService(mServiceName); in resetHal()
39 if (sensors == nullptr) { in resetHal()
47 if (!sensors->poll(0, [](auto, const auto&, const auto&) {}).isOk()) { in resetHal()
53 if (!sensors in resetHal()
68 if (!sensors->activate(i.sensorHandle, false).isOk()) { in resetHal()
91 sensors = nullptr; in resetHal()
106 env->sensors->poll( in pollingThread()
DSensorsHidlEnvironmentV1_0.h34 using Event = ::android::hardware::sensors::V1_0::Event;
41 sp<android::hardware::sensors::V1_0::ISensors> sensors; variable
/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensorsSubHal.cpp24 static ::android::hardware::sensors::V2_0::subhal::implementation::AllSensorsSubHal subHal; in sensorsHalGetSubHal()
26 static ::android::hardware::sensors::V2_0::subhal::implementation::ContinuousSensorsSubHal in sensorsHalGetSubHal()
29 static ::android::hardware::sensors::V2_0::subhal::implementation::OnChangeSensorsSubHal subHal; in sensorsHalGetSubHal()
31 static ::android::hardware::sensors::V2_0::subhal::implementation::SensorsSubHal subHal; in sensorsHalGetSubHal()
39 namespace sensors { namespace
45 using ::android::hardware::sensors::V1_0::Event;
46 using ::android::hardware::sensors::V1_0::OperationMode;
47 using ::android::hardware::sensors::V1_0::RateLevel;
48 using ::android::hardware::sensors::V1_0::Result;
49 using ::android::hardware::sensors::V1_0::SharedMemInfo;
[all …]
DSensorsSubHal.h27 namespace sensors {
32 using ::android::hardware::sensors::V1_0::OperationMode;
33 using ::android::hardware::sensors::V1_0::Result;
34 using ::android::hardware::sensors::V2_0::implementation::IHalProxyCallback;
41 using Event = ::android::hardware::sensors::V1_0::Event;
42 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel;
43 using SharedMemInfo = ::android::hardware::sensors::V1_0::SharedMemInfo;
DREADME2 provided for sensors HAL 2.0 to support multi-HAL 2.0. It should be used as a
7 for different sets of sensors. One "SUPPORT_CONTINUOUS_SENSORS", enables
8 support for continuous sensors like accel, and gyro whereas the other
9 "SUPPORT_ON_CHANGE_SENSORS" enables support for on change sensors like the
15 out/target/product/<device>/vendor/lib64/android.hardware.sensors@2.0-fakesubhal.so
DSensor.h27 using ::android::hardware::sensors::V1_0::Event;
28 using ::android::hardware::sensors::V1_0::OperationMode;
29 using ::android::hardware::sensors::V1_0::Result;
30 using ::android::hardware::sensors::V1_0::SensorInfo;
31 using ::android::hardware::sensors::V1_0::SensorType;
35 namespace sensors {
/hardware/libhardware/modules/sensors/dynamic_sensor/
DBaseDynamicSensorDaemon.cpp31 BaseSensorVector sensors = createSensor(deviceKey); in onConnectionChange() local
32 if (sensors.empty()) { in onConnectionChange()
35 ALOGV("discovered %zu sensors from device", sensors.size()); in onConnectionChange()
37 auto result = mDeviceKeySensorMap.emplace(deviceKey, std::move(sensors)); in onConnectionChange()
52 BaseSensorVector sensors = i->second; in onConnectionChange() local
53 for (auto &sensor : sensors) { in onConnectionChange()
/hardware/interfaces/sensors/2.0/vts/functional/
DVtsHalSensorsV2_0TargetTest.cpp37 using ::android::hardware::sensors::V1_0::MetaDataEventType;
38 using ::android::hardware::sensors::V1_0::OperationMode;
39 using ::android::hardware::sensors::V1_0::SensorsEventFormatOffset;
40 using ::android::hardware::sensors::V1_0::SensorStatus;
41 using ::android::hardware::sensors::V1_0::SharedMemType;
42 using ::android::hardware::sensors::V1_0::Vec3;
57 void onEvent(const ::android::hardware::sensors::V1_0::Event& event) override { in onEvent()
168 inline sp<::android::hardware::sensors::V2_0::ISensors>& getSensors() { in getSensors()
175 void runSingleFlushTest(const std::vector<SensorInfo>& sensors, bool activateSensor,
177 void runFlushTest(const std::vector<SensorInfo>& sensors, bool activateSensor,
[all …]
/hardware/qcom/sm8150/thermal/
Dthermal_common.c42 static struct vendor_temperature *sensors; variable
271 if (sensors != NULL && sensor_cnt != 0) in thermal_zone_init()
278 sensors = calloc(get_num_cpus() + cfg_cnt - 1, in thermal_zone_init()
287 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
289 free(sensors); in thermal_zone_init()
295 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
297 free(sensors); in thermal_zone_init()
368 if (sensors == NULL) { in get_temperature_for_all()
374 ssize_t result = read_temperature(sensors[idx].tzn, sensors[idx].t.type, in get_temperature_for_all()
375 sensors[idx].t.name, sensors[idx].mult, in get_temperature_for_all()
[all …]
/hardware/qcom/sdm845/thermal/
Dthermal_common.c42 static struct vendor_temperature *sensors; variable
271 if (sensors != NULL && sensor_cnt != 0) in thermal_zone_init()
278 sensors = calloc(get_num_cpus() + cfg_cnt - 1, in thermal_zone_init()
287 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
289 free(sensors); in thermal_zone_init()
295 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
297 free(sensors); in thermal_zone_init()
368 if (sensors == NULL) { in get_temperature_for_all()
374 ssize_t result = read_temperature(sensors[idx].tzn, sensors[idx].t.type, in get_temperature_for_all()
375 sensors[idx].t.name, sensors[idx].mult, in get_temperature_for_all()
[all …]
/hardware/interfaces/sensors/2.0/default/
DSensors.cpp24 namespace sensors { namespace
28 using ::android::hardware::sensors::V1_0::Event;
29 using ::android::hardware::sensors::V1_0::OperationMode;
30 using ::android::hardware::sensors::V1_0::RateLevel;
31 using ::android::hardware::sensors::V1_0::Result;
32 using ::android::hardware::sensors::V1_0::SharedMemInfo;
33 using ::android::hardware::sensors::V2_0::SensorTimeout;
34 using ::android::hardware::sensors::V2_0::WakeLockQueueFlagBits;
64 std::vector<SensorInfo> sensors; in getSensorsList() local
66 sensors.push_back(sensor.second->getSensorInfo()); in getSensorsList()
[all …]
Dservice.cpp27 using android::hardware::sensors::V2_0::ISensors;
28 using android::hardware::sensors::V2_0::implementation::Sensors;
33 android::sp<ISensors> sensors = new Sensors(); in main() local
34 if (sensors->registerAsService() != ::android::OK) { in main()
DAndroid.bp17 name: "android.hardware.sensors@2.0-service.mock",
26 init_rc: ["android.hardware.sensors@2.0-service-mock.rc"],
28 "android.hardware.sensors@1.0",
29 "android.hardware.sensors@2.0",
37 vintf_fragments: ["android.hardware.sensors@2.0.xml"],
DSensors.h34 namespace sensors {
50 using Event = ::android::hardware::sensors::V1_0::Event;
51 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode;
52 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel;
53 using Result = ::android::hardware::sensors::V1_0::Result;
54 using SharedMemInfo = ::android::hardware::sensors::V1_0::SharedMemInfo;
109 static void startReadWakeLockThread(Sensors* sensors);
DSensor.h28 using ::android::hardware::sensors::V1_0::Event;
29 using ::android::hardware::sensors::V1_0::OperationMode;
30 using ::android::hardware::sensors::V1_0::Result;
31 using ::android::hardware::sensors::V1_0::SensorInfo;
32 using ::android::hardware::sensors::V1_0::SensorType;
36 namespace sensors {
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlTestBase.h37 using ::android::hardware::sensors::V1_0::Event;
38 using ::android::hardware::sensors::V1_0::ISensors;
39 using ::android::hardware::sensors::V1_0::RateLevel;
40 using ::android::hardware::sensors::V1_0::Result;
41 using ::android::hardware::sensors::V1_0::SensorFlagBits;
42 using ::android::hardware::sensors::V1_0::SensorInfo;
43 using ::android::hardware::sensors::V1_0::SensorType;
44 using ::android::hardware::sensors::V1_0::SharedMemInfo;
45 using ::android::hardware::sensors::V1_0::SharedMemType;
/hardware/interfaces/sensors/2.0/multihal/include/
DSubHal.h32 namespace sensors {
36 using ::android::hardware::sensors::V1_0::Event;
37 using ::android::hardware::sensors::V1_0::Result;
38 using ::android::hardware::sensors::V1_0::SensorInfo;
155 using ::android::hardware::sensors::V2_0::implementation::ISensorsSubHal;
DHalProxy.h39 namespace sensors {
54 using Event = ::android::hardware::sensors::V1_0::Event;
55 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode;
56 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel;
57 using Result = ::android::hardware::sensors::V1_0::Result;
58 using SensorInfo = ::android::hardware::sensors::V1_0::SensorInfo;
59 using SharedMemInfo = ::android::hardware::sensors::V1_0::SharedMemInfo;
60 using ISensorsSubHal = ::android::hardware::sensors::V2_0::implementation::ISensorsSubHal;
383 using SensorInfo = ::android::hardware::sensors::V1_0::SensorInfo;
/hardware/google/pixel/thermal/utils/
Dconfig_parser.cpp78 Json::Value sensors = root["Sensors"]; in ParseSensorInfo() local
82 for (Json::Value::ArrayIndex i = 0; i < sensors.size(); ++i) { in ParseSensorInfo()
83 const std::string &name = sensors[i]["Name"].asString(); in ParseSensorInfo()
99 std::string sensor_type_str = sensors[i]["Type"].asString(); in ParseSensorInfo()
119 Json::Value values = sensors[i]["HotThreshold"]; in ParseSensorInfo()
144 values = sensors[i]["HotHysteresis"]; in ParseSensorInfo()
162 values = sensors[i]["ColdThreshold"]; in ParseSensorInfo()
185 values = sensors[i]["ColdHysteresis"]; in ParseSensorInfo()
205 vr_threshold = getFloatFromValue(sensors[i]["VrThreshold"]); in ParseSensorInfo()
208 float multiplier = sensors[i]["Multiplier"].asFloat(); in ParseSensorInfo()
[all …]

1234