/hardware/interfaces/sensors/aidl/vts/ |
D | VtsAidlHalSensorsTargetTest.cpp | 41 using aidl::android::hardware::sensors::SensorInfo; 111 bool isDirectChannelTypeSupported(SensorInfo sensor, ISensors::SharedMemInfo::SharedMemType type) { in isDirectChannelTypeSupported() 114 return (sensor.flags & SensorInfo::SENSOR_FLAG_BITS_DIRECT_CHANNEL_ASHMEM) != 0; in isDirectChannelTypeSupported() 116 return (sensor.flags & SensorInfo::SENSOR_FLAG_BITS_DIRECT_CHANNEL_GRALLOC) != 0; in isDirectChannelTypeSupported() 122 bool isDirectReportRateSupported(SensorInfo sensor, ISensors::RateLevel rate) { in isDirectReportRateSupported() 124 SensorInfo::SENSOR_FLAG_BITS_MASK_DIRECT_REPORT) >> in isDirectReportRateSupported() 125 static_cast<unsigned int>(SensorInfo::SENSOR_FLAG_SHIFT_DIRECT_REPORT); in isDirectReportRateSupported() 151 return SensorInfo::SENSOR_FLAG_BITS_CONTINUOUS_MODE; in expectedReportModeForType() 161 return SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE; in expectedReportModeForType() 169 return SensorInfo::SENSOR_FLAG_BITS_ONE_SHOT_MODE; in expectedReportModeForType() [all …]
|
D | SensorsAidlEnvironment.cpp | 25 using aidl::android::hardware::sensors::SensorInfo; 40 const std::vector<SensorInfo>& /* sensorInfos */) override { in onDynamicSensorsConnected() argument 86 std::vector<SensorInfo> sensorList; in resetHal()
|
/hardware/interfaces/sensors/common/utils/ |
D | convertV2_1.h | 32 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 …]
|
D | ISensorsCallbackWrapper.h | 49 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/google/pixel/thermal/utils/ |
D | thermal_throttling.h | 55 size_t getTargetStateOfPID(const SensorInfo &sensor_info, const ThrottlingSeverity curr_severity); 80 const Temperature &temp, const SensorInfo &sensor_info, 88 void computeCoolingDevicesRequest(std::string_view sensor_name, const SensorInfo &sensor_info, 97 void parseProfileProperty(std::string_view sensor_name, const SensorInfo &sensor_info); 100 const Temperature &temp, const SensorInfo &sensor_info, 107 float computeExcludedPower(const SensorInfo &sensor_info, 114 const Temperature &temp, const SensorInfo &sensor_info, 124 void updateCdevRequestBySeverity(std::string_view sensor_name, const SensorInfo &sensor_info, 132 const ThrottlingSeverity severity, const SensorInfo &sensor_info);
|
/hardware/interfaces/sensors/aidl/default/multihal/include/ |
D | ISensorsCallbackWrapperAidl.h | 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() 46 const ::android::hardware::hidl_vec<::android::hardware::sensors::V2_1::SensorInfo>& in onDynamicSensorsConnected()
|
D | ConvertUtils.h | 31 ::aidl::android::hardware::sensors::SensorInfo convertSensorInfo( 32 const ::android::hardware::sensors::V2_1::SensorInfo& sensorInfo);
|
/hardware/interfaces/sensors/aidl/default/ |
D | Sensor.cpp | 50 const SensorInfo& Sensor::getSensorInfo() const { in getSensorInfo() 80 (mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ONE_SHOT_MODE))) { in flush() 131 return mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_WAKE_UP); in isWakeUpSensor() 155 return mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in supportsDataInjection() 219 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in AccelSensor() 271 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in MagnetometerSensor() 300 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE); in LightSensor() 323 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE | in ProximitySensor() 324 SensorInfo::SENSOR_FLAG_BITS_WAKE_UP); in ProximitySensor() 346 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in GyroSensor() [all …]
|
/hardware/interfaces/sensors/aidl/android/hardware/sensors/ |
D | ISensorsCallback.aidl | 19 import android.hardware.sensors.SensorInfo; 32 void onDynamicSensorsConnected(in SensorInfo[] sensorInfos); in onDynamicSensorsConnected()
|
D | ISensors.aidl | 24 import android.hardware.sensors.SensorInfo; 110 SensorInfo[] getSensorsList(); in getSensorsList()
|
/hardware/interfaces/sensors/common/default/2.X/multihal/include/ |
D | HalProxyCallback.h | 47 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
|
D | HalProxy.h | 63 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() 144 const std::map<int32_t, SensorInfo>& getSensors() { return mSensors; } in getSensors() 187 std::map<int32_t, SensorInfo> mSensors; 190 std::map<int32_t, SensorInfo> mDynamicSensors; 340 void setDirectChannelFlags(SensorInfo* sensorInfo, std::shared_ptr<ISubHalWrapperBase> subHal);
|
/hardware/interfaces/sensors/1.0/default/include/sensors/ |
D | convert.h | 31 void convertFromSensor(const sensor_t &src, SensorInfo *dst); 32 void convertToSensor(const SensorInfo &src, sensor_t *dst);
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | SensorsHidlEnvironmentV1_0.cpp | 26 using ::android::hardware::sensors::V1_0::SensorInfo; 59 std::vector<SensorInfo> sensorList; in resetHal() 61 ->getSensorsList([&](const hidl_vec<SensorInfo>& list) { in resetHal()
|
D | VtsHalSensorsV1_0TargetTest.cpp | 38 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/ |
D | ISensorsCallback.hal | 20 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/ |
D | Sensor.h | 51 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/ |
D | SensorsSubHal.cpp | 92 std::vector<SensorInfo> sensors; in getSensorsList() 180 SensorInfo info = sensor.second->getSensorInfo(); in debug() 210 std::vector<SensorInfo> sensors; in getSensorsList() 212 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList() 222 std::vector<SensorInfo> sensors; in getSensorsList() 224 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList() 234 const std::vector<SensorInfo>& sensorsAdded) { in addDynamicSensors()
|
D | IHalProxyCallbackWrapper.h | 44 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()
|
D | Sensor.h | 30 using ::android::hardware::sensors::V2_1::SensorInfo; 51 const SensorInfo& getSensorInfo() const; 70 SensorInfo mSensorInfo;
|
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/ |
D | HalProxy_test.cpp | 41 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/aidl/default/include/sensors-impl/ |
D | Sensor.h | 39 using SensorInfo = ::aidl::android::hardware::sensors::SensorInfo; variable 47 const SensorInfo& getSensorInfo() const; 67 SensorInfo mSensorInfo;
|
/hardware/interfaces/sensors/common/vts/2_X/ |
D | SensorsHidlEnvironmentV2_X.cpp | 32 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/ |
D | ISensorsCallback.hal | 19 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/ |
D | SensorsV2_1.h | 39 Return<void> onDynamicSensorsConnected(const hidl_vec<V1_0::SensorInfo>& sensorInfos) override { in onDynamicSensorsConnected() 59 std::vector<V1_0::SensorInfo> sensors; in getSensorsList()
|