Home
last modified time | relevance | path

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

12

/hardware/interfaces/sensors/2.0/vts/functional/
DVtsHalSensorsV2_0TargetTest.cpp75 void waitForFlushEvents(const std::vector<SensorInfo>& sensorsToWaitFor, in waitForFlushEvents()
87 void waitForEvents(const std::vector<SensorInfo>& sensorsToWaitFor, milliseconds timeout) { in waitForEvents()
93 bool flushesReceived(const std::vector<SensorInfo>& sensorsToWaitFor, int32_t numCallsToFlush) { in flushesReceived()
94 for (const SensorInfo& sensor : sensorsToWaitFor) { in flushesReceived()
102 bool eventsReceived(const std::vector<SensorInfo>& sensorsToWaitFor) { in eventsReceived()
103 for (const SensorInfo& sensor : sensorsToWaitFor) { in eventsReceived()
134 SensorInfo defaultSensorByType(SensorType type) override;
135 std::vector<SensorInfo> getSensorsList();
175 void runSingleFlushTest(const std::vector<SensorInfo>& sensors, bool activateSensor,
177 void runFlushTest(const std::vector<SensorInfo>& sensors, bool activateSensor,
[all …]
DSensorsHidlEnvironmentV2_0.cpp29 using ::android::hardware::sensors::V1_0::SensorInfo;
49 Return<void> onDynamicSensorsConnected(const hidl_vec<SensorInfo>& /* sensorInfos */) { in onDynamicSensorsConnected()
87 std::vector<SensorInfo> sensorList; in resetHal()
88 if (!mSensors->getSensorsList([&](const hidl_vec<SensorInfo>& list) { sensorList = list; }) in resetHal()
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h58 using SensorInfo = ::android::hardware::sensors::V1_0::SensorInfo; variable
100 Return<void> onDynamicSensorsConnected(const hidl_vec<SensorInfo>& dynamicSensorsAdded,
127 const SensorInfo& getSensorInfo(int32_t sensorHandle) { return mSensors[sensorHandle]; } in getSensorInfo()
180 std::map<int32_t, SensorInfo> mSensors;
183 std::map<int32_t, SensorInfo> mDynamicSensors;
333 void setDirectChannelFlags(SensorInfo* sensorInfo, ISensorsSubHal* subHal);
383 using SensorInfo = ::android::hardware::sensors::V1_0::SensorInfo; variable
390 const hidl_vec<SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected()
DSubHal.h38 using ::android::hardware::sensors::V1_0::SensorInfo;
/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensorsSubHal.cpp58 std::vector<SensorInfo> sensors; in getSensorsList()
146 SensorInfo info = sensor.second->getSensorInfo(); in debug()
202 std::vector<SensorInfo> sensors; in getSensorsList()
204 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList()
214 std::vector<SensorInfo> sensors; in getSensorsList()
216 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList()
226 const std::vector<SensorInfo>& sensorsAdded) { in addDynamicSensors()
DSensor.h30 using ::android::hardware::sensors::V1_0::SensorInfo;
51 const SensorInfo& getSensorInfo() const;
70 SensorInfo mSensorInfo;
DSensorsSubHal.h156 void addDynamicSensors(const std::vector<SensorInfo>& sensorsAdded);
/hardware/interfaces/sensors/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.cpp26 using ::android::hardware::sensors::V1_0::SensorInfo;
52 std::vector<SensorInfo> sensorList; in resetHal()
54 ->getSensorsList([&](const hidl_vec<SensorInfo>& list) { in resetHal()
DVtsHalSensorsV1_0TargetTest.cpp49 SensorInfo defaultSensorByType(SensorType type) override;
50 std::vector<SensorInfo> getSensorsList();
116 SensorInfo SensorsHidlTest::defaultSensorByType(SensorType type) { in defaultSensorByType()
117 SensorInfo ret; in defaultSensorByType()
134 std::vector<SensorInfo> SensorsHidlTest::getSensorsList() { in getSensorsList()
135 std::vector<SensorInfo> ret; in getSensorsList()
196 std::vector<SensorInfo> sensorList = getSensorsList(); in TEST_P()
214 std::vector<SensorInfo> sensorList = getSensorsList(); in TEST_P()
215 std::vector<SensorInfo> sensorSupportInjection; in TEST_P()
/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/2.0/multihal/tests/
DHalProxy_test.cpp38 using ::android::hardware::sensors::V1_0::SensorInfo;
64 const hidl_vec<SensorInfo>& /*dynamicSensorsAdded*/) override { in onDynamicSensorsConnected() argument
80 const hidl_vec<SensorInfo>& dynamicSensorsAdded) override { in onDynamicSensorsConnected()
94 const std::vector<SensorInfo>& getSensorsConnected() const { return mSensorsConnected; } in getSensorsConnected()
100 std::vector<SensorInfo> mSensorsConnected;
114 void testSensorsListFromProxyAndSubHal(const std::vector<SensorInfo>& proxySensorsList,
115 const std::vector<SensorInfo>& subHalSensorsList);
126 void testSensorsListForOneDirectChannelEnabledSubHal(const std::vector<SensorInfo>& sensorsList,
186 std::vector<SensorInfo>& sensors,
210 std::vector<SensorInfo> proxySensorsList, combinedSubHalSensorsList; in TEST()
[all …]
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlTestBase.h42 using ::android::hardware::sensors::V1_0::SensorInfo;
69 virtual SensorInfo defaultSensorByType(SensorType type) = 0;
119 static bool isDirectReportRateSupported(SensorInfo sensor, RateLevel rate);
120 static bool isDirectChannelTypeSupported(SensorInfo sensor, SharedMemType type);
/hardware/google/pixel/thermal/utils/
Dconfig_parser.h39 struct SensorInfo { struct
50 std::map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path); argument
Dconfig_parser.cpp62 std::map<std::string, SensorInfo> ParseSensorInfo(std::string_view config_path) { in ParseSensorInfo()
64 std::map<std::string, SensorInfo> sensors_parsed; in ParseSensorInfo()
/hardware/interfaces/sensors/2.0/default/
DSensor.h31 using ::android::hardware::sensors::V1_0::SensorInfo;
51 const SensorInfo& getSensorInfo() const;
70 SensorInfo mSensorInfo;
DSensors.cpp64 std::vector<SensorInfo> sensors; in getSensorsList()
/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);
DISensors.hal23 import @1.0::SensorInfo;
31 * The SensorInfo for each sensor returned by getSensorsList must be stable
33 * entire system restarts. The SensorInfo for each sensor must not change
38 getSensorsList() generates (vec<SensorInfo> list);
/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()
Dconvert.cpp27 void convertFromSensor(const sensor_t &src, SensorInfo *dst) { in convertFromSensor()
46 const ::android::hardware::sensors::V1_0::SensorInfo &src, in convertToSensor()
/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlTestBase.cpp223 bool SensorsHidlTestBase::isDirectReportRateSupported(SensorInfo sensor, RateLevel rate) { in isDirectReportRateSupported()
229 bool SensorsHidlTestBase::isDirectChannelTypeSupported(SensorInfo sensor, SharedMemType type) { in isDirectChannelTypeSupported()
254 SensorInfo sensor = defaultSensorByType(type); in testDirectReportOperation()
371 SensorInfo sensor = defaultSensorByType(type); in testStreamingOperation()
429 SensorInfo sensor = defaultSensorByType(type); in testSamplingRateHotSwitchOperation()
525 SensorInfo sensor = defaultSensorByType(type); in testBatchingOperation()
/hardware/google/pixel/thermal/
Dthermal-helper.h106 const std::map<std::string, SensorInfo> &GetSensorInfoMap() const { return sensor_info_map_; } in GetSensorInfoMap()
128 const std::map<std::string, SensorInfo> sensor_info_map_;
Dthermal-helper.cpp204 [](std::pair<std::string, SensorInfo> const &sensor) { in ThermalHelper()
253 const SensorInfo &sensor_info = sensor_info_map_.at(sensor_name.data()); in readTemperature()
565 const SensorInfo &sensor_info = sensor_info_map_.at(name_status_pair.first); in thermalWatcherCallbackFunc()
/hardware/interfaces/sensors/2.0/multihal/
DHalProxy.cpp99 std::vector<SensorInfo> sensors; in getSensorsList()
314 Return<void> HalProxy::onDynamicSensorsConnected(const hidl_vec<SensorInfo>& dynamicSensorsAdded, in onDynamicSensorsConnected()
316 std::vector<SensorInfo> sensors; in onDynamicSensorsConnected()
319 for (SensorInfo sensor : dynamicSensorsAdded) { in onDynamicSensorsConnected()
401 for (SensorInfo sensor : list) { in initializeSensorList()
629 void HalProxy::setDirectChannelFlags(SensorInfo* sensorInfo, ISensorsSubHal* subHal) { in setDirectChannelFlags()
700 const SensorInfo& sensor = mHalProxy->getSensorInfo(event.sensorHandle); in processEvents()
/hardware/interfaces/sensors/1.0/
DISensors.hal23 getSensorsList() generates (vec<SensorInfo> list);
70 * @return dynamicSensorsAdded vector of SensorInfo contains dynamic sensor
78 vec<SensorInfo> dynamicSensorsAdded);

12