Home
last modified time | relevance | path

Searched refs:RateLevel (Results 1 – 25 of 30) sorted by relevance

12

/aosp12/hardware/interfaces/sensors/2.0/vts/functional/
H A DVtsHalSensorsV2_0TargetTest.cpp109 RateLevel::NORMAL, mAccelNormChecker); in TEST_P()
115 RateLevel::FAST, mAccelNormChecker); in TEST_P()
121 RateLevel::VERY_FAST, mAccelNormChecker); in TEST_P()
127 RateLevel::NORMAL, mGyroNormChecker); in TEST_P()
139 RateLevel::VERY_FAST, mGyroNormChecker); in TEST_P()
163 RateLevel::NORMAL, mAccelNormChecker); in TEST_P()
169 RateLevel::FAST, mAccelNormChecker); in TEST_P()
181 RateLevel::NORMAL, mGyroNormChecker); in TEST_P()
193 RateLevel::VERY_FAST, mGyroNormChecker); in TEST_P()
217 RateLevel rate; in TEST_P()
[all …]
/aosp12/hardware/interfaces/sensors/1.0/vts/functional/
H A DVtsHalSensorsV1_0TargetTest.cpp77 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
362 testDirectReportOperation(SensorType::ACCELEROMETER, SharedMemType::ASHMEM, RateLevel::FAST, in TEST_P()
369 RateLevel::VERY_FAST, mAccelNormChecker); in TEST_P()
374 testDirectReportOperation(SensorType::GYROSCOPE, SharedMemType::ASHMEM, RateLevel::NORMAL, in TEST_P()
380 testDirectReportOperation(SensorType::GYROSCOPE, SharedMemType::ASHMEM, RateLevel::FAST, in TEST_P()
386 testDirectReportOperation(SensorType::GYROSCOPE, SharedMemType::ASHMEM, RateLevel::VERY_FAST, in TEST_P()
405 RateLevel::VERY_FAST, NullChecker<Event>()); in TEST_P()
423 RateLevel::VERY_FAST, mAccelNormChecker); in TEST_P()
428 testDirectReportOperation(SensorType::GYROSCOPE, SharedMemType::GRALLOC, RateLevel::NORMAL, in TEST_P()
434 testDirectReportOperation(SensorType::GYROSCOPE, SharedMemType::GRALLOC, RateLevel::FAST, in TEST_P()
[all …]
/aosp12/hardware/google/camera/common/sensor_listener/
H A Dgoog_gyro_direct.cc36 using ::android::hardware::sensors::V1_0::RateLevel;
41 GoogGyroDirect::GoogGyroDirect(RateLevel rate_level, in GoogGyroDirect()
71 RateLevel rate_level; in Create()
73 rate_level = RateLevel::NORMAL; in Create()
75 rate_level = RateLevel::FAST; in Create()
77 rate_level = RateLevel::VERY_FAST; in Create()
98 gyro_direct_channel_->configure(sensor_info_.sensorHandle, RateLevel::STOP, in DisableDirectChannel()
H A Dgoog_gyro_direct.h120 GoogGyroDirect(::android::hardware::sensors::V1_0::RateLevel rate_level,
131 ::android::hardware::sensors::V1_0::RateLevel gyro_direct_rate_level_;
/aosp12/hardware/interfaces/sensors/common/vts/2_X/
H A DVtsHalSensorsV2_XTargetTest.h245 RateLevel rateLevel);
816 RateLevel rateLevel) { in checkRateLevel()
827 if (rateLevel != RateLevel::STOP) { in checkRateLevel()
893 checkRateLevel(sensor, directChannelHandle, RateLevel::NORMAL); in verifyConfigure()
894 checkRateLevel(sensor, directChannelHandle, RateLevel::FAST); in verifyConfigure()
896 checkRateLevel(sensor, directChannelHandle, RateLevel::STOP); in verifyConfigure()
955 RateLevel* rate) { in getDirectChannelSensor()
974 RateLevel rates[kNumRateLevels] = {RateLevel::NORMAL, RateLevel::FAST, in getDirectChannelSensor()
975 RateLevel::VERY_FAST}; in getDirectChannelSensor()
976 *rate = RateLevel::STOP; in getDirectChannelSensor()
[all …]
/aosp12/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
H A DSensorsHidlTestBase.h41 using ::android::hardware::sensors::V1_0::RateLevel;
180 configDirectReport(-1, c, RateLevel::STOP, [](auto, auto) {}); in TearDown()
198 RateLevel rate,
475 void testDirectReportOperation(SensorTypeVersion type, SharedMemType memType, RateLevel rate, in testDirectReportOperation()
539 case RateLevel::NORMAL: in testDirectReportOperation()
542 case RateLevel::FAST: in testDirectReportOperation()
545 case RateLevel::VERY_FAST: in testDirectReportOperation()
548 case RateLevel::STOP: in testDirectReportOperation()
589 configDirectReport(sensor.sensorHandle, channelHandle, RateLevel::STOP, in testDirectReportOperation()
645 static bool isDirectReportRateSupported(SensorInfoType sensor, RateLevel rate) { in isDirectReportRateSupported()
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/
H A DDynamicSensorsSubHal.h37 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; variable
56 int32_t sensor_handle, int32_t channel_handle, RateLevel rate,
/aosp12/hardware/interfaces/sensors/common/default/2.X/multihal/include/
H A DSubHalWrapper.h51 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; variable
85 RateLevel rate,
134 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
H A DHalProxy.h60 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; variable
118 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate,
429 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
/aosp12/frameworks/native/services/sensorservice/hidl/
H A DDirectReportChannel.h33 using ::android::hardware::sensors::V1_0::RateLevel;
50 Return<void> configure(int32_t sensorHandle, RateLevel rate,
H A DDirectReportChannel.cpp34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, in configure()
/aosp12/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
H A DSensorsSubHal.h44 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; variable
71 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate,
150 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
H A DSensorsSubHal.cpp80 using ::android::hardware::sensors::V1_0::RateLevel;
156 int32_t /* sensorHandle */, int32_t /* channelHandle */, RateLevel /* rate */, in configDirectReport() argument
/aosp12/frameworks/base/core/java/android/hardware/
H A DSensorDirectChannel.java73 public @interface RateLevel {} annotation in SensorDirectChannel
188 public int configure(Sensor sensor, @RateLevel int rateLevel) { in configure()
/aosp12/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
H A DVtsHalSensorManagerV1_0TargetTest.cpp44 using ::android::hardware::sensors::V1_0::RateLevel;
245 return maxLevel >= convertFromRateLevel(RateLevel::FAST); in TEST_P()
267 ASSERT_OK(chan->configure(handle, RateLevel::FAST, [&](auto token, auto res) { in TEST_P()
273 ASSERT_OK(chan->configure(handle, RateLevel::STOP, [](auto token, auto res) { in TEST_P()
/aosp12/hardware/interfaces/sensors/1.0/default/
H A Dconvert.cpp375 int convertFromRateLevel(RateLevel rate) { in convertFromRateLevel()
377 case RateLevel::STOP: in convertFromRateLevel()
379 case RateLevel::NORMAL: in convertFromRateLevel()
381 case RateLevel::FAST: in convertFromRateLevel()
383 case RateLevel::VERY_FAST: in convertFromRateLevel()
H A DSensors.cpp303 int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
323 if (rate == RateLevel::STOP) { in configDirectReport()
H A DSensors.h62 int32_t sensorHandle, int32_t channelHandle, RateLevel rate,
/aosp12/hardware/interfaces/sensors/common/default/2.X/
H A DSensors.h45 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; member
194 RateLevel /* rate */, in configDirectReport()
/aosp12/hardware/interfaces/sensors/common/utils/
H A DISensorsWrapper.h46 using ::android::hardware::sensors::V1_0::RateLevel;
100 RateLevel rate,
163 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport()
/aosp12/frameworks/hardware/interfaces/sensorservice/1.0/
H A DIDirectReportChannel.hal19 import android.hardware.sensors@1.0::RateLevel;
54 configure(int32_t sensorHandle, RateLevel rate)
H A DREADME47 chan->configure(sensorHandle, RateLevel::FAST, [&](auto token, auto result) {
55 chan->configure(sensorHandle, RateLevel::STOP, [&](auto token, auto result) {
/aosp12/hardware/interfaces/sensors/1.0/default/include/sensors/
H A Dconvert.h37 int convertFromRateLevel(RateLevel rate);
/aosp12/frameworks/native/services/sensorservice/
H A DSensorDevice.cpp1073 RateLevel rate; in configureDirectChannel()
1076 rate = RateLevel::STOP; in configureDirectChannel()
1079 rate = RateLevel::NORMAL; in configureDirectChannel()
1082 rate = RateLevel::FAST; in configureDirectChannel()
1085 rate = RateLevel::VERY_FAST; in configureDirectChannel()
1094 if (rate == RateLevel::STOP) { in configureDirectChannel()
/aosp12/hardware/interfaces/sensors/2.0/
H A DISensors.hal21 import @1.0::RateLevel;
261 * @param rate rate level, see RateLevel enum.
272 RateLevel rate

12