/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 61 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/ |
D | data_builder.c | 60 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/aidl/default/multihal/ |
D | HalProxyAidl.cpp | 30 using ::aidl::android::hardware::sensors::ISensors; 31 using ::aidl::android::hardware::sensors::ISensorsCallback; 34 using ::android::hardware::sensors::V2_1::implementation::convertToOldEvent; 40 namespace sensors { namespace 44 resultToAStatus(::android::hardware::sensors::V1_0::Result result) { in resultToAStatus() 46 case ::android::hardware::sensors::V1_0::Result::OK: in resultToAStatus() 48 case ::android::hardware::sensors::V1_0::Result::PERMISSION_DENIED: in resultToAStatus() 50 case ::android::hardware::sensors::V1_0::Result::NO_MEMORY: in resultToAStatus() 52 case ::android::hardware::sensors::V1_0::Result::BAD_VALUE: in resultToAStatus() 54 case ::android::hardware::sensors::V1_0::Result::INVALID_OPERATION: in resultToAStatus() [all …]
|
D | Android.bp | 28 name: "android.hardware.sensors@aidl-multihal", 31 "android.hardware.sensors@2.X-multihal.header", 32 "android.hardware.sensors@2.X-shared-utils", 39 "android.hardware.sensors@1.0", 40 "android.hardware.sensors@2.0", 41 "android.hardware.sensors@2.1", 42 "android.hardware.sensors-V2-ndk", 50 "android.hardware.sensors@1.0-convert", 51 "android.hardware.sensors@2.X-multihal",
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/ |
D | Android.bp | 27 name: "android.hardware.sensors@2.X-fakesubhal-defaults", 32 "android.hardware.sensors@2.0-multihal.header", 33 "android.hardware.sensors@2.X-shared-utils", 37 "android.hardware.sensors@1.0", 38 "android.hardware.sensors@2.0", 39 "android.hardware.sensors@2.0-ScopedWakelock", 40 "android.hardware.sensors@2.1", 50 "android.hardware.sensors@1.0-convert", 51 "android.hardware.sensors@2.X-multihal", 59 name: "android.hardware.sensors@2.X-fakesubhal-config1", [all …]
|
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/1/android/hardware/sensors/ |
D | Event.aidl | 34 package android.hardware.sensors; 39 android.hardware.sensors.SensorType sensorType; 40 android.hardware.sensors.Event.EventPayload payload; 43 android.hardware.sensors.Event.EventPayload.Vec3 vec3; 44 android.hardware.sensors.Event.EventPayload.Vec4 vec4; 45 android.hardware.sensors.Event.EventPayload.Uncal uncal; 46 android.hardware.sensors.Event.EventPayload.MetaData meta; 49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate; 50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF; 51 android.hardware.sensors.DynamicSensorInfo dynamic; [all …]
|
D | ISensors.aidl | 34 package android.hardware.sensors; 39 …int configDirectReport(in int sensorHandle, in int channelHandle, in android.hardware.sensors.ISen… in configDirectReport() 41 android.hardware.sensors.SensorInfo[] getSensorsList(); in getSensorsList() 42 …sensors.Event,android.hardware.common.fmq.SynchronizedReadWrite> eventQueueDescriptor, in android.… in initialize() 43 void injectSensorData(in android.hardware.sensors.Event event); in injectSensorData() 44 int registerDirectChannel(in android.hardware.sensors.ISensors.SharedMemInfo mem); in registerDirectChannel() 45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode() 75 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemType type; 76 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemFormat format;
|
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/2/android/hardware/sensors/ |
D | Event.aidl | 34 package android.hardware.sensors; 39 android.hardware.sensors.SensorType sensorType; 40 android.hardware.sensors.Event.EventPayload payload; 43 android.hardware.sensors.Event.EventPayload.Vec3 vec3; 44 android.hardware.sensors.Event.EventPayload.Vec4 vec4; 45 android.hardware.sensors.Event.EventPayload.Uncal uncal; 46 android.hardware.sensors.Event.EventPayload.MetaData meta; 49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate; 50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF; 51 android.hardware.sensors.DynamicSensorInfo dynamic; [all …]
|
D | ISensors.aidl | 34 package android.hardware.sensors; 39 …int configDirectReport(in int sensorHandle, in int channelHandle, in android.hardware.sensors.ISen… in configDirectReport() 41 android.hardware.sensors.SensorInfo[] getSensorsList(); in getSensorsList() 42 …sensors.Event,android.hardware.common.fmq.SynchronizedReadWrite> eventQueueDescriptor, in android.… in initialize() 43 void injectSensorData(in android.hardware.sensors.Event event); in injectSensorData() 44 int registerDirectChannel(in android.hardware.sensors.ISensors.SharedMemInfo mem); in registerDirectChannel() 45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode() 77 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemType type; 78 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemFormat format;
|
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/ |
D | Event.aidl | 34 package android.hardware.sensors; 39 android.hardware.sensors.SensorType sensorType; 40 android.hardware.sensors.Event.EventPayload payload; 43 android.hardware.sensors.Event.EventPayload.Vec3 vec3; 44 android.hardware.sensors.Event.EventPayload.Vec4 vec4; 45 android.hardware.sensors.Event.EventPayload.Uncal uncal; 46 android.hardware.sensors.Event.EventPayload.MetaData meta; 49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate; 50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF; 51 android.hardware.sensors.DynamicSensorInfo dynamic; [all …]
|
D | ISensors.aidl | 34 package android.hardware.sensors; 39 …int configDirectReport(in int sensorHandle, in int channelHandle, in android.hardware.sensors.ISen… in configDirectReport() 41 android.hardware.sensors.SensorInfo[] getSensorsList(); in getSensorsList() 42 …sensors.Event,android.hardware.common.fmq.SynchronizedReadWrite> eventQueueDescriptor, in android.… in initialize() 43 void injectSensorData(in android.hardware.sensors.Event event); in injectSensorData() 44 int registerDirectChannel(in android.hardware.sensors.ISensors.SharedMemInfo mem); in registerDirectChannel() 45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode() 77 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemType type; 78 android.hardware.sensors.ISensors.SharedMemInfo.SharedMemFormat format;
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
D | SensorsSubHal.cpp | 23 ::android::hardware::sensors::V2_0::implementation::ISensorsSubHal* sensorsHalGetSubHal( in sensorsHalGetSubHal() 26 static ::android::hardware::sensors::V2_1::subhal::implementation::AllSensorsSubHal< in sensorsHalGetSubHal() 27 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal() 30 static ::android::hardware::sensors::V2_1::subhal::implementation::ContinuousSensorsSubHal< in sensorsHalGetSubHal() 31 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal() 34 static ::android::hardware::sensors::V2_1::subhal::implementation::OnChangeSensorsSubHal< in sensorsHalGetSubHal() 35 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal() 38 static ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHal< in sensorsHalGetSubHal() 39 ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHalV2_0> in sensorsHalGetSubHal() 48 ::android::hardware::sensors::V2_1::implementation::ISensorsSubHal* sensorsHalGetSubHal_2_1( in sensorsHalGetSubHal_2_1() [all …]
|
/hardware/interfaces/sensors/common/default/2.X/multihal/ |
D | Android.bp | 27 name: "android.hardware.sensors@2.X-multihal-defaults", 29 "android.hardware.sensors@2.X-multihal.header", 30 "android.hardware.sensors@2.X-shared-utils", 33 "android.hardware.sensors@1.0", 34 "android.hardware.sensors@2.0", 35 "android.hardware.sensors@2.1", 45 "android.hardware.sensors@1.0-convert", 52 name: "android.hardware.sensors@2.0-multihal.header", 59 name: "android.hardware.sensors@2.1-multihal.header", 66 name: "android.hardware.sensors@2.X-multihal.header", [all …]
|
/hardware/interfaces/sensors/common/utils/ |
D | ISensorsWrapper.h | 37 namespace sensors { 44 using ::android::hardware::sensors::V1_0::ISensors; 45 using ::android::hardware::sensors::V1_0::OperationMode; 46 using ::android::hardware::sensors::V1_0::RateLevel; 47 using ::android::hardware::sensors::V1_0::Result; 48 using ::android::hardware::sensors::V1_0::SharedMemInfo; 49 using ::android::hardware::sensors::V2_1::Event; 50 using ::android::hardware::sensors::V2_1::ISensorsCallback; 81 ::android::hardware::sensors::V2_1::ISensors::getSensorsList_2_1_cb _hidl_cb) = 0; 122 SensorsWrapperBase(sp<T> sensors) : mSensors(sensors){}; in SensorsWrapperBase() argument [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | DynamicSensorsSubHal.cpp | 28 using ::android::hardware::sensors::V1_0::Result; 29 using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock; 30 using ::android::hardware::sensors::V2_1::implementation::convertFromSensorEvent; 31 using ::android::hardware::sensors::V2_1::SensorInfo; 32 using ::android::hardware::sensors::V2_1::SensorType; 36 namespace dynamic_sensors_flags = com::android::libhardware::dynamic::sensors::flags; 115 std::vector<SensorInfo> sensors; in getSensorsList_2_1() local 120 sensors.resize(1); in getSensorsList_2_1() 121 sensors[0].sensorHandle = sensor_info.handle; in getSensorsList_2_1() 122 sensors[0].name = sensor_info.name; in getSensorsList_2_1() [all …]
|
/hardware/interfaces/sensors/aidl/default/multihal/include/ |
D | ConvertUtils.h | 25 namespace sensors { 31 ::aidl::android::hardware::sensors::SensorInfo convertSensorInfo( 32 const ::android::hardware::sensors::V2_1::SensorInfo& sensorInfo); 37 void convertToHidlEvent(const ::aidl::android::hardware::sensors::Event& aidlEvent, 38 ::android::hardware::sensors::V2_1::Event* hidlEvent); 43 void convertToAidlEvent(const ::android::hardware::sensors::V2_1::Event& hidlEvent, 44 ::aidl::android::hardware::sensors::Event* aidlEvent);
|
D | ISensorsCallbackWrapperAidl.h | 25 namespace sensors { 28 static std::vector<::aidl::android::hardware::sensors::SensorInfo> convertToAidlSensorInfos( in convertToAidlSensorInfos() 29 const ::android::hardware::hidl_vec<::android::hardware::sensors::V2_1::SensorInfo>& in convertToAidlSensorInfos() 31 std::vector<::aidl::android::hardware::sensors::SensorInfo> aidlSensorInfos; in convertToAidlSensorInfos() 39 : public ::android::hardware::sensors::V2_1::implementation::ISensorsCallbackWrapperBase { 42 std::shared_ptr<::aidl::android::hardware::sensors::ISensorsCallback> sensorsCallback) in ISensorsCallbackWrapperAidl() 46 const ::android::hardware::hidl_vec<::android::hardware::sensors::V2_1::SensorInfo>& in onDynamicSensorsConnected() 59 std::shared_ptr<::aidl::android::hardware::sensors::ISensorsCallback> mSensorsCallback;
|
D | HalProxyAidl.h | 25 namespace sensors { 28 class HalProxyAidl : public ::android::hardware::sensors::V2_1::implementation::HalProxy, 29 public ::aidl::android::hardware::sensors::BnSensors { 35 ::aidl::android::hardware::sensors::ISensors::RateLevel in_rate, 39 std::vector<::aidl::android::hardware::sensors::SensorInfo>* _aidl_return) override; 42 ::aidl::android::hardware::sensors::Event, 48 const std::shared_ptr<::aidl::android::hardware::sensors::ISensorsCallback>& 51 const ::aidl::android::hardware::sensors::Event& in_event) override; 53 const ::aidl::android::hardware::sensors::ISensors::SharedMemInfo& in_mem, 56 ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) override;
|
D | EventMessageQueueWrapperAidl.h | 28 namespace sensors { 32 : public ::android::hardware::sensors::V2_1::implementation::EventMessageQueueWrapperBase { 36 ::aidl::android::hardware::sensors::Event, in EventMessageQueueWrapperAidl() 48 virtual bool read(::android::hardware::sensors::V2_1::Event* events, in read() 57 bool write(const ::android::hardware::sensors::V2_1::Event* events, in write() 66 const std::vector<::android::hardware::sensors::V2_1::Event>& events) override { in write() 73 bool writeBlocking(const ::android::hardware::sensors::V2_1::Event* events, size_t count, in writeBlocking() 87 ::aidl::android::hardware::sensors::Event, 90 std::array<::aidl::android::hardware::sensors::Event, 91 ::android::hardware::sensors::V2_1::implementation::MAX_RECEIVE_BUFFER_EVENT_COUNT>
|
/hardware/interfaces/sensors/1.0/default/ |
D | Android.bp | 11 name: "android.hardware.sensors@1.0-impl", 23 "android.hardware.sensors@1.0", 26 "android.hardware.sensors@1.0-convert", 29 local_include_dirs: ["include/sensors"], 33 name: "android.hardware.sensors@1.0-convert", 45 "android.hardware.sensors@1.0", 53 local_include_dirs: ["include/sensors"], 60 name: "android.hardware.sensors@1.0-service", 63 init_rc: ["android.hardware.sensors@1.0-service.rc"], 73 "android.hardware.sensors@1.0",
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | SensorsHidlEnvironmentV1_0.cpp | 24 using ::android::hardware::sensors::V1_0::ISensors; 25 using ::android::hardware::sensors::V1_0::Result; 26 using ::android::hardware::sensors::V1_0::SensorInfo; 45 sensors = ISensors::getService(mServiceName); in resetHal() 46 if (sensors == nullptr) { in resetHal() 54 if (!sensors->poll(0, [](auto, const auto&, const auto&) {}).isOk()) { in resetHal() 60 if (!sensors in resetHal() 75 if (!sensors->activate(i.sensorHandle, false).isOk()) { in resetHal() 98 sensors = nullptr; in resetHal() 113 if (!env->sensors in pollingThread()
|
/hardware/interfaces/sensors/aidl/multihal/ |
D | Android.bp | 28 name: "android.hardware.sensors-service.multihal", 35 "android.hardware.sensors@2.X-multihal.header", 36 "android.hardware.sensors@2.X-shared-utils", 38 init_rc: ["android.hardware.sensors-service-multihal.rc"], 39 vintf_fragments: ["android.hardware.sensors-multihal.xml"], 41 "android.hardware.sensors@2.0-ScopedWakelock", 42 "android.hardware.sensors@2.0", 43 "android.hardware.sensors@2.1", 44 "android.hardware.sensors-V2-ndk", 56 "android.hardware.sensors@1.0-convert", [all …]
|
/hardware/interfaces/sensors/2.1/default/ |
D | Android.bp | 26 name: "android.hardware.sensors@2.1.xml", 27 srcs: ["android.hardware.sensors@2.1.xml"], 31 name: "android.hardware.sensors@2.1-service.mock", 39 init_rc: ["android.hardware.sensors@2.1-service-mock.rc"], 41 "android.hardware.sensors@2.X-shared-utils", 44 "android.hardware.sensors@1.0", 45 "android.hardware.sensors@2.0", 46 "android.hardware.sensors@2.1", 55 "android.hardware.sensors@1.0-convert", 56 "android.hardware.sensors@2.X-shared-impl", [all …]
|
/hardware/interfaces/sensors/aidl/default/ |
D | Android.bp | 35 "android.hardware.sensors-V2-ndk", 44 "//hardware/interfaces/tests/extension/sensors:__subpackages__", 49 name: "android.hardware.sensors-service.example", 61 "android.hardware.sensors-V2-ndk", 74 name: "sensors-default.rc", 75 src: "sensors-default.rc", 80 name: "sensors-default.xml", 81 src: "sensors-default.xml", 86 // Default vendor APEX for android.hardware.sensors. 89 name: "com.android.hardware.sensors", [all …]
|
/hardware/interfaces/sensors/common/vts/2_X/ |
D | VtsHalSensorsV2_XTargetTest.h | 47 using ::android::hardware::sensors::V1_0::MetaDataEventType; 48 using ::android::hardware::sensors::V1_0::OperationMode; 49 using ::android::hardware::sensors::V1_0::SensorsEventFormatOffset; 50 using ::android::hardware::sensors::V1_0::SensorStatus; 51 using ::android::hardware::sensors::V1_0::SharedMemType; 52 using ::android::hardware::sensors::V1_0::Vec3; 53 using ::android::hardware::sensors::V2_1::implementation::convertToOldSensorInfos; 57 using EventV1_0 = ::android::hardware::sensors::V1_0::Event; 58 using ISensorsType = ::android::hardware::sensors::V2_1::ISensors; 59 using SensorTypeVersion = ::android::hardware::sensors::V2_1::SensorType; [all …]
|