/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/ |
D | SensorsSubHal.h | 32 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;
|
D | Sensor.h | 28 using ::android::hardware::sensors::V1_0::OperationMode; 56 void setOperationMode(OperationMode mode); 79 OperationMode mMode;
|
D | SensorsSubHal.cpp | 46 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
|
D | Sensor.cpp | 40 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/ |
D | HalProxy.h | 55 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/ |
D | Sensor.h | 29 using ::android::hardware::sensors::V1_0::OperationMode; 56 void setOperationMode(OperationMode mode); 79 OperationMode mMode;
|
D | Sensors.h | 51 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; member 62 Return<Result> setOperationMode(OperationMode mode) override;
|
D | Sensor.cpp | 40 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()
|
D | Sensors.cpp | 29 using ::android::hardware::sensors::V1_0::OperationMode; 75 Return<Result> Sensors::setOperationMode(OperationMode mode) { in setOperationMode()
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | VtsHalSensorsV1_0TargetTest.cpp | 207 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/ |
D | HalProxy_test.cpp | 230 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/ |
D | Sensors.h | 40 Return<Result> setOperationMode(OperationMode mode) override;
|
D | Sensors.cpp | 143 Return<Result> Sensors::setOperationMode(OperationMode mode) { in setOperationMode()
|
/hardware/interfaces/sensors/2.0/vts/functional/ |
D | VtsHalSensorsV2_0TargetTest.cpp | 38 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/ |
D | ISensors.hal | 38 setOperationMode(OperationMode mode) generates (Result result); 129 * Regardless of OperationMode, injected SensorType::ADDITIONAL_INFO 133 * @see OperationMode
|
D | types.hal | 38 enum OperationMode : int32_t {
|
/hardware/interfaces/sensors/2.0/ |
D | ISensors.hal | 20 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/ |
D | HalProxy.cpp | 107 Return<Result> HalProxy::setOperationMode(OperationMode mode) { in setOperationMode() 201 mCurrentOperationMode = OperationMode::NORMAL; in initialize() 224 if (mCurrentOperationMode == OperationMode::NORMAL && in injectSensorData()
|