Home
last modified time | relevance | path

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

/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.cpp198 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
199 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_F()
200 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
221 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
222 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_F()
245 ASSERT_EQ(Result::OK, S()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
/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;
331 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
332 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_F()
333 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
335 ASSERT_EQ(Result::BAD_VALUE, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_F()
346 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::DATA_INJECTION)); in TEST_F()
392 ASSERT_EQ(Result::OK, getSensors()->setOperationMode(OperationMode::NORMAL)); in TEST_F()
/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