Home
last modified time | relevance | path

Searched refs:SensorInfo (Results 1 – 25 of 42) sorted by relevance

12

/hardware/interfaces/sensors/common/utils/
DconvertV2_1.h32 static_assert(sizeof(V1_0::SensorInfo) == sizeof(V2_1::SensorInfo),
50 inline const V2_1::SensorInfo& convertToNewSensorInfo(const V1_0::SensorInfo& info) { in convertToNewSensorInfo()
51 return reinterpret_cast<const V2_1::SensorInfo&>(info); in convertToNewSensorInfo()
54 inline const V1_0::SensorInfo& convertToOldSensorInfo(const V2_1::SensorInfo& info) { in convertToOldSensorInfo()
55 return reinterpret_cast<const V1_0::SensorInfo&>(info); in convertToOldSensorInfo()
70 inline const hidl_vec<V2_1::SensorInfo>& convertToNewSensorInfos( in convertToNewSensorInfos()
71 const hidl_vec<V1_0::SensorInfo>& infos) { in convertToNewSensorInfos()
72 return reinterpret_cast<const hidl_vec<V2_1::SensorInfo>&>(infos); in convertToNewSensorInfos()
75 inline const hidl_vec<V1_0::SensorInfo>& convertToOldSensorInfos( in convertToOldSensorInfos()
76 const hidl_vec<V2_1::SensorInfo>& infos) { in convertToOldSensorInfos()
[all …]
DISensorsCallbackWrapper.h49 const hidl_vec<V2_1::SensorInfo>& sensorInfos) = 0;
60 const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
85 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxyCallback.h47 const hidl_vec<V2_1::SensorInfo>& dynamicSensorsAdded, int32_t subHalIndex) = 0;
72 virtual const V2_1::SensorInfo& getSensorInfo(int32_t sensorHandle) = 0;
112 const hidl_vec<V1_0::SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected()
142 const hidl_vec<V2_1::SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected_2_1()
147 const hidl_vec<V1_0::SensorInfo>& /* dynamicSensorsAdded */) override { in onDynamicSensorsConnected() argument
DHalProxy.h62 using SensorInfo = ::android::hardware::sensors::V2_1::SensorInfo; variable
123 Return<void> onDynamicSensorsConnected(const hidl_vec<SensorInfo>& dynamicSensorsAdded,
132 const SensorInfo& getSensorInfo(int32_t sensorHandle) override { in getSensorInfo()
185 std::map<int32_t, SensorInfo> mSensors;
188 std::map<int32_t, SensorInfo> mDynamicSensors;
338 void setDirectChannelFlags(SensorInfo* sensorInfo, std::shared_ptr<ISubHalWrapperBase> subHal);
/hardware/google/pixel/thermal/
Dthermal-helper.h140 const std::unordered_map<std::string, SensorInfo> &GetSensorInfoMap() const { in GetSensorInfoMap()
179 void setMinTimeout(SensorInfo *sensor_info);
195 size_t getTargetStateOfPID(const SensorInfo &sensor_info, const SensorStatus &sensor_status);
197 float pidPowerCalculator(const Temperature_2_0 &temp, const SensorInfo &sensor_info,
203 const SensorInfo &sensor_info, float total_power_budget,
206 const SensorInfo &sensor_info);
207 void computeCoolingDevicesRequest(std::string_view sensor_name, const SensorInfo &sensor_info,
218 std::unordered_map<std::string, SensorInfo> sensor_info_map_;
/hardware/interfaces/sensors/1.0/default/include/sensors/
Dconvert.h30 void convertFromSensor(const sensor_t &src, SensorInfo *dst);
31 void convertToSensor(const SensorInfo &src, sensor_t *dst);
/hardware/interfaces/sensors/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.cpp26 using ::android::hardware::sensors::V1_0::SensorInfo;
59 std::vector<SensorInfo> sensorList; in resetHal()
61 ->getSensorsList([&](const hidl_vec<SensorInfo>& list) { in resetHal()
DVtsHalSensorsV1_0TargetTest.cpp38 class SensorsHidlTest : public SensorsHidlTestBase<SensorType, Event, SensorInfo> {
50 SensorInfo defaultSensorByType(SensorType type) override;
51 std::vector<SensorInfo> getSensorsList();
117 SensorInfo SensorsHidlTest::defaultSensorByType(SensorType type) { in defaultSensorByType()
118 SensorInfo ret; in defaultSensorByType()
135 std::vector<SensorInfo> SensorsHidlTest::getSensorsList() { in getSensorsList()
136 std::vector<SensorInfo> ret; in getSensorsList()
206 std::vector<SensorInfo> sensorList = getSensorsList(); in TEST_P()
224 std::vector<SensorInfo> sensorList = getSensorsList(); in TEST_P()
225 std::vector<SensorInfo> sensorSupportInjection; in TEST_P()
/hardware/interfaces/sensors/2.1/
DISensorsCallback.hal20 import @2.1::SensorInfo;
29 * @param sensorInfos vector of SensorInfo for each dynamic sensor that
32 oneway onDynamicSensorsConnected_2_1(vec<SensorInfo> sensorInfos);
/hardware/interfaces/sensors/common/default/2.X/
DSensor.h51 using SensorInfo = ::android::hardware::sensors::V2_1::SensorInfo; variable
57 const SensorInfo& getSensorInfo() const;
77 SensorInfo mSensorInfo;
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DIHalProxyCallbackWrapper.h44 const hidl_vec<V2_1::SensorInfo>& sensorInfos) = 0;
76 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
93 Return<void> onDynamicSensorsConnected(const hidl_vec<V2_1::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
DSensor.h30 using ::android::hardware::sensors::V2_1::SensorInfo;
51 const SensorInfo& getSensorInfo() const;
70 SensorInfo mSensorInfo;
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/
DHalProxy_test.cpp41 using ::android::hardware::sensors::V1_0::SensorInfo;
75 const hidl_vec<SensorInfo>& /*dynamicSensorsAdded*/) override { in onDynamicSensorsConnected() argument
90 const hidl_vec<::android::hardware::sensors::V2_1::SensorInfo>& /*dynamicSensorsAdded*/) in onDynamicSensorsConnected_2_1() argument
97 const hidl_vec<SensorInfo>& /*dynamicSensorsAdded*/) override { in onDynamicSensorsConnected() argument
113 const hidl_vec<SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected()
127 const std::vector<SensorInfo>& getSensorsConnected() const { return mSensorsConnected; } in getSensorsConnected()
133 std::vector<SensorInfo> mSensorsConnected;
147 void testSensorsListFromProxyAndSubHal(const std::vector<SensorInfo>& proxySensorsList,
148 const std::vector<SensorInfo>& subHalSensorsList);
159 void testSensorsListForOneDirectChannelEnabledSubHal(const std::vector<SensorInfo>& sensorsList,
[all …]
/hardware/interfaces/sensors/common/vts/2_X/
DSensorsHidlEnvironmentV2_X.cpp32 using ::android::hardware::sensors::V2_1::SensorInfo;
77 std::vector<SensorInfo> sensorList; in resetHal()
78 if (!mSensors->getSensorsList([&](const hidl_vec<SensorInfo>& list) { sensorList = list; }) in resetHal()
/hardware/interfaces/sensors/2.0/
DISensorsCallback.hal19 import @1.0::SensorInfo;
28 * @param sensorInfos vector of SensorInfo for each dynamic sensor that
31 oneway onDynamicSensorsConnected(vec<SensorInfo> sensorInfos);
/hardware/interfaces/sensors/2.1/default/
DSensorsV2_1.h39 Return<void> onDynamicSensorsConnected(const hidl_vec<V1_0::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected()
59 std::vector<V1_0::SensorInfo> sensors; in getSensorsList()
/hardware/interfaces/sensors/1.0/default/
DSensors.cpp120 hidl_vec<SensorInfo> out; in getSensorsList()
125 SensorInfo *dst = &out[i]; in getSensorsList()
163 hidl_vec<SensorInfo> dynamicSensorsAdded; in poll()
218 SensorInfo info; in poll()
/hardware/interfaces/sensors/2.0/default/
DSensorsV2_0.h33 std::vector<V1_0::SensorInfo> sensors; in getSensorsList()
/hardware/google/camera/common/sensor_listener/
Dgoog_sensor_environment.cc31 using ::android::hardware::sensors::V1_0::SensorInfo;
128 SensorInfo sensor; in GetSensorHandle()
Dgoog_sensor_sync.cc39 using ::android::hardware::sensors::V1_0::SensorInfo;
134 SensorInfo info; in GetSensorHandle()
146 for (const SensorInfo& item : list) { in GetSensorHandle()
Dgoog_gyro_direct.h150 ::android::hardware::sensors::V1_0::SensorInfo sensor_info_;
/hardware/google/pixel/thermal/utils/
Dconfig_parser.h99 struct SensorInfo { struct
131 std::unordered_map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path); argument
/hardware/libhardware/modules/sensors/dynamic_sensor/
DDynamicSensorsSubHal.cpp30 using ::android::hardware::sensors::V2_1::SensorInfo;
112 std::vector<SensorInfo> sensors; in getSensorsList_2_1()
207 hidl_vec<SensorInfo> sensor_list; in onSensorConnected()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/V2_0/
DSubHal.h38 using ::android::hardware::sensors::V1_0::SensorInfo;
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxy.cpp116 std::vector<V2_1::SensorInfo> sensors; in getSensorsList_2_1()
125 std::vector<V1_0::SensorInfo> sensors; in getSensorsList()
382 Return<void> HalProxy::onDynamicSensorsConnected(const hidl_vec<SensorInfo>& dynamicSensorsAdded, in onDynamicSensorsConnected()
384 std::vector<SensorInfo> sensors; in onDynamicSensorsConnected()
387 for (SensorInfo sensor : dynamicSensorsAdded) { in onDynamicSensorsConnected()
478 for (SensorInfo sensor : list) { in initializeSensorList()
710 void HalProxy::setDirectChannelFlags(SensorInfo* sensorInfo, in setDirectChannelFlags()

12