Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensorsSubHal.h32 using ::android::hardware::sensors::V1_0::OperationMode;
51 virtual Return<Result> setOperationMode(OperationMode mode) override;
53 OperationMode getOperationMode() const { return mCurrentOperationMode; } in getOperationMode()
113 OperationMode mCurrentOperationMode = OperationMode::NORMAL;
141 Return<Result> setOperationMode(OperationMode mode) override;
DSensor.h28 using ::android::hardware::sensors::V1_0::OperationMode;
56 void setOperationMode(OperationMode mode);
79 OperationMode mMode;
DSensorsSubHal.cpp46 using ::android::hardware::sensors::V1_0::OperationMode;
67 Return<Result> SensorsSubHal::setOperationMode(OperationMode mode) { in setOperationMode()
161 setOperationMode(OperationMode::NORMAL); in initialize()
197 Return<Result> SetOperationModeFailingSensorsSubHal::setOperationMode(OperationMode /*mode*/) { in setOperationMode() argument
DSensor.cpp40 mMode(OperationMode::NORMAL) { in Sensor()
116 if (!mIsEnabled || mMode == OperationMode::DATA_INJECTION) { in run()
118 return ((mIsEnabled && mMode == OperationMode::NORMAL) || mStopThread); in run()
155 void Sensor::setOperationMode(OperationMode mode) { in setOperationMode()
174 } else if (mMode == OperationMode::DATA_INJECTION) { in injectEvent()
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h55 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; variable
70 Return<Result> setOperationMode(OperationMode mode) override;
186 OperationMode mCurrentOperationMode = OperationMode::NORMAL;
/hardware/interfaces/sensors/2.0/default/
DSensor.h29 using ::android::hardware::sensors::V1_0::OperationMode;
56 void setOperationMode(OperationMode mode);
79 OperationMode mMode;
DSensors.h51 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; member
62 Return<Result> setOperationMode(OperationMode mode) override;
DSensor.cpp40 mMode(OperationMode::NORMAL) { in Sensor()
107 if (!mIsEnabled || mMode == OperationMode::DATA_INJECTION) { in run()
109 return ((mIsEnabled && mMode == OperationMode::NORMAL) || mStopThread); in run()
146 void Sensor::setOperationMode(OperationMode mode) { in setOperationMode()
165 } else if (mMode == OperationMode::DATA_INJECTION) { in injectEvent()
DSensors.cpp29 using ::android::hardware::sensors::V1_0::OperationMode;
75 Return<Result> Sensors::setOperationMode(OperationMode mode) { in setOperationMode()
/hardware/interfaces/sensors/1.0/vts/functional/
DVtsHalSensorsV1_0TargetTest.cpp207 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
208 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
209 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
230 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
231 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
254 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
/hardware/interfaces/sensors/2.0/multihal/tests/
DHalProxy_test.cpp230 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
231 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
233 Result result = proxy.setOperationMode(OperationMode::DATA_INJECTION); in TEST()
236 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::DATA_INJECTION); in TEST()
237 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::DATA_INJECTION); in TEST()
247 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
248 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
250 Result result = proxy.setOperationMode(OperationMode::DATA_INJECTION); in TEST()
253 EXPECT_EQ(subHal1.getOperationMode(), OperationMode::NORMAL); in TEST()
254 EXPECT_EQ(subHal2.getOperationMode(), OperationMode::NORMAL); in TEST()
[all …]
/hardware/interfaces/sensors/1.0/default/
DSensors.h40 Return<Result> setOperationMode(OperationMode mode) override;
DSensors.cpp143 Return<Result> Sensors::setOperationMode(OperationMode mode) { in setOperationMode()
/hardware/interfaces/sensors/2.0/vts/functional/
DVtsHalSensorsV2_0TargetTest.cpp38 using ::android::hardware::sensors::V1_0::OperationMode;
362 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
363 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
364 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
366 ASSERT_EQ(Result::BAD_VALUE, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
377 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_P()
423 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_P()
/hardware/interfaces/sensors/1.0/
DISensors.hal38 setOperationMode(OperationMode mode) generates (Result result);
129 * Regardless of OperationMode, injected SensorType::ADDITIONAL_INFO
133 * @see OperationMode
Dtypes.hal38 enum OperationMode : int32_t {
/hardware/interfaces/sensors/2.0/
DISensors.hal20 import @1.0::OperationMode;
53 setOperationMode(OperationMode mode) generates (Result result);
207 * Regardless of OperationMode, injected SensorType::ADDITIONAL_INFO
211 * @see OperationMode
/hardware/interfaces/sensors/2.0/multihal/
DHalProxy.cpp107 Return<Result> HalProxy::setOperationMode(OperationMode mode) { in setOperationMode()
201 mCurrentOperationMode = OperationMode::NORMAL; in initialize()
224 if (mCurrentOperationMode == OperationMode::NORMAL && in injectSensorData()