/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
D | SensorsSubHal.h | 34 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;
|
D | Sensor.h | 27 using ::android::hardware::sensors::V1_0::OperationMode; 56 void setOperationMode(OperationMode mode); 79 OperationMode mMode;
|
D | Sensor.cpp | 32 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()
|
D | SensorsSubHal.cpp | 79 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/ |
D | Sensor.h | 47 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; 62 void setOperationMode(OperationMode mode); 86 OperationMode mMode;
|
D | Sensor.cpp | 31 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()
|
D | Sensors.h | 44 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; member 81 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
|
/hardware/interfaces/sensors/aidl/default/multihal/ |
D | HalProxyAidl.cpp | 77 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/ |
D | Sensor.h | 36 using OperationMode = ::aidl::android::hardware::sensors::ISensors::OperationMode; 52 void setOperationMode(OperationMode mode); 76 OperationMode mMode;
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | DynamicSensorsSubHal.h | 36 using OperationMode = ::android::hardware::sensors::V1_0::OperationMode; variable 46 Return<Result> setOperationMode(OperationMode mode) override;
|
D | DynamicSensorsSubHal.cpp | 65 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/ |
D | ISensors.aidl | 250 void setOperationMode(in OperationMode mode); in setOperationMode() 288 enum OperationMode { enum
|
/hardware/interfaces/sensors/common/default/2.X/multihal/include/ |
D | HalProxy.h | 60 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()
|
D | SubHalWrapper.h | 50 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/ |
D | ISensors.aidl | 45 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/ |
D | ISensors.aidl | 45 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/ |
D | ISensors.aidl | 45 void setOperationMode(in android.hardware.sensors.ISensors.OperationMode mode); in setOperationMode() 71 enum OperationMode { enum
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | VtsHalSensorsV1_0TargetTest.cpp | 217 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/ |
D | Sensor.cpp | 37 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/ |
D | HalProxy_test.cpp | 263 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/ |
D | ISensorsWrapper.h | 45 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/ |
D | Sensors.h | 40 Return<Result> setOperationMode(OperationMode mode) override;
|
/hardware/interfaces/sensors/aidl/default/multihal/include/ |
D | HalProxyAidl.h | 56 ::aidl::android::hardware::sensors::ISensors::OperationMode in_mode) override;
|
/hardware/interfaces/sensors/common/vts/2_X/ |
D | VtsHalSensorsV2_XTargetTest.h | 48 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/ |
D | VtsAidlHalSensorsTargetTest.cpp | 605 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()
|