Home
last modified time | relevance | path

Searched refs:OperationMode (Results 1 – 25 of 33) sorted by relevance

12

/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensorsSubHal.h34 using ::android::hardware::sensors::V1_0::OperationMode;
55 virtual Return<Result> setOperationMode(OperationMode mode);
57 OperationMode getOperationMode() const { return mCurrentOperationMode; } in getOperationMode()
113 OperationMode mCurrentOperationMode = OperationMode::NORMAL;
124 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
242 Return<Result> setOperationMode(OperationMode mode) override;
DSensor.h27 using ::android::hardware::sensors::V1_0::OperationMode;
56 void setOperationMode(OperationMode mode);
79 OperationMode mMode;
DSensor.cpp32 using ::android::hardware::sensors::V1_0::OperationMode;
45 mMode(OperationMode::NORMAL) { in Sensor()
123 if (!mIsEnabled || mMode == OperationMode::DATA_INJECTION) { in run()
125 return ((mIsEnabled && mMode == OperationMode::NORMAL) || mStopThread); in run()
162 void Sensor::setOperationMode(OperationMode mode) { in setOperationMode()
181 } else if (mMode == OperationMode::DATA_INJECTION) { in injectEvent()
DSensorsSubHal.cpp79 using ::android::hardware::sensors::V1_0::OperationMode;
101 Return<Result> ISensorsSubHalBase::setOperationMode(OperationMode mode) { in setOperationMode()
196 setOperationMode(OperationMode::NORMAL); in initialize()
205 Return<Result> SetOperationModeFailingSensorsSubHal::setOperationMode(OperationMode /*mode*/) { in setOperationMode() argument
/hardware/interfaces/sensors/common/default/2.X/
DSensor.h47 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode;
62 void setOperationMode(OperationMode mode);
86 OperationMode mMode;
DSensor.cpp31 using ::android::hardware::sensors::V1_0::OperationMode;
45 mMode(OperationMode::NORMAL) { in Sensor()
112 if (!mIsEnabled || mMode == OperationMode::DATA_INJECTION) { in run()
114 return ((mIsEnabled && mMode == OperationMode::NORMAL) || mStopThread); in run()
149 void Sensor::setOperationMode(OperationMode mode) { in setOperationMode()
168 } else if (mMode == OperationMode::DATA_INJECTION) { in injectEvent()
DSensors.h44 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; member
81 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
/hardware/interfaces/sensors/aidl/default/multihal/
DHalProxyAidl.cpp77 static ::android::hardware::sensors::V1_0::OperationMode convertOperationMode( in convertOperationMode()
78 ISensors::OperationMode operationMode) { in convertOperationMode()
80 case ISensors::OperationMode::NORMAL: in convertOperationMode()
81 return ::android::hardware::sensors::V1_0::OperationMode::NORMAL; in convertOperationMode()
82 case ISensors::OperationMode::DATA_INJECTION: in convertOperationMode()
83 return ::android::hardware::sensors::V1_0::OperationMode::DATA_INJECTION; in convertOperationMode()
222 ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) { in setOperationMode()
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/
DSensor.h36 using OperationMode = ::aidl::android::hardware::sensors::ISensors::OperationMode;
52 void setOperationMode(OperationMode mode);
76 OperationMode mMode;
/hardware/libhardware/modules/sensors/dynamic_sensor/
DDynamicSensorsSubHal.h36 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; variable
46 Return<Result> setOperationMode(OperationMode mode) override;
DDynamicSensorsSubHal.cpp65 Return<Result> DynamicSensorsSubHal::setOperationMode(OperationMode mode) { in setOperationMode()
66 return (mode == static_cast<OperationMode>(SENSOR_HAL_NORMAL_MODE) ? in setOperationMode()
/hardware/interfaces/sensors/aidl/android/hardware/sensors/
DISensors.aidl250 void setOperationMode(in OperationMode mode); in setOperationMode()
288 enum OperationMode { enum
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxy.h60 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; variable
93 Return<Result> setOperationMode(OperationMode mode);
193 OperationMode mCurrentOperationMode = OperationMode::NORMAL;
396 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
DSubHalWrapper.h50 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; variable
68 virtual Return<Result> setOperationMode(OperationMode mode) = 0;
106 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/
DISensors.aidl45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode()
71 enum OperationMode { enum
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/1/android/hardware/sensors/
DISensors.aidl45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode()
69 enum OperationMode { enum
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/2/android/hardware/sensors/
DISensors.aidl45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode()
71 enum OperationMode { enum
/hardware/interfaces/sensors/1.0/vts/functional/
DVtsHalSensorsV1_0TargetTest.cpp217 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
218 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
219 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
240 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
241 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
264 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
/hardware/interfaces/sensors/aidl/default/
DSensor.cpp37 mMode(OperationMode::NORMAL) { in Sensor()
109 if (!mIsEnabled || mMode == OperationMode::DATA_INJECTION) { in run()
111 return ((mIsEnabled && mMode == OperationMode::NORMAL) || mStopThread); in run()
146 void Sensor::setOperationMode(OperationMode mode) { in setOperationMode()
169 if (mMode == OperationMode::DATA_INJECTION) { in injectEvent()
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/
DHalProxy_test.cpp263 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
264 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
266 Result result = proxy.setOperationMode(OperationMode::DATA_INJECTION); in TEST()
269 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::DATA_INJECTION); in TEST()
270 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::DATA_INJECTION); in TEST()
280 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
281 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
283 Result result = proxy.setOperationMode(OperationMode::DATA_INJECTION); in TEST()
286 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
287 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
[all …]
/hardware/interfaces/sensors/common/utils/
DISensorsWrapper.h45 using ::android::hardware::sensors::V1_0::OperationMode;
83 virtual Return<Result> setOperationMode(OperationMode mode) = 0;
135 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
/hardware/interfaces/sensors/1.0/default/
DSensors.h40 Return<Result> setOperationMode(OperationMode mode) override;
/hardware/interfaces/sensors/aidl/default/multihal/include/
DHalProxyAidl.h56 ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) override;
/hardware/interfaces/sensors/common/vts/2_X/
DVtsHalSensorsV2_XTargetTest.h48 using ::android::hardware::sensors::V1_0::OperationMode;
434 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
435 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
436 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
438 ASSERT_EQ(Result::BAD_VALUE, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
449 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
499 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
/hardware/interfaces/sensors/aidl/vts/
DVtsAidlHalSensorsTargetTest.cpp605 ASSERT_TRUE(getSensors()->setOperationMode(ISensors::OperationMode::NORMAL).isOk()); in TEST_P()
606 ASSERT_TRUE(getSensors()->setOperationMode(ISensors::OperationMode::DATA_INJECTION).isOk()); in TEST_P()
607 ASSERT_TRUE(getSensors()->setOperationMode(ISensors::OperationMode::NORMAL).isOk()); in TEST_P()
611 ->setOperationMode(ISensors::OperationMode::DATA_INJECTION) in TEST_P()
624 ASSERT_TRUE(getSensors()->setOperationMode(ISensors::OperationMode::DATA_INJECTION).isOk()); in TEST_P()
690 ASSERT_TRUE(getSensors()->setOperationMode(ISensors::OperationMode::NORMAL).isOk()); in TEST_P()

12