Home
last modified time | relevance | path

Searched refs:setExternalControl (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java204 public void setExternalControl(boolean externalControl) { in setExternalControl() method in VibratorController
210 mNativeWrapper.setExternalControl(externalControl); in setExternalControl()
349 setExternalControl(false); in reset()
436 private static native void setExternalControl(long nativePtr, boolean enabled); in setExternalControl() method in VibratorController.NativeWrapper
496 public void setExternalControl(boolean enabled) { in setExternalControl() method in VibratorController.NativeWrapper
497 setExternalControl(mNativePtr, enabled); in setExternalControl()
DVibratorManagerService.java774 private void setExternalControl(boolean externalControl, VibrationStats vibrationStats) { in setExternalControl() method in VibratorManagerService
776 mVibrators.valueAt(i).setExternalControl(externalControl); in setExternalControl()
1901 setExternalControl(false, mCurrentExternalVibration.stats); in endExternalVibrateLocked()
2074 setExternalControl(true, vibHolder.stats); in onExternalVibrationStart()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorControllerTest.java132 controller.setExternalControl(true); in setExternalControl_withCapability_enablesExternalControl()
135 controller.setExternalControl(false); in setExternalControl_withCapability_enablesExternalControl()
139 inOrderVerifier.verify(mNativeWrapperMock).setExternalControl(eq(true)); in setExternalControl_withCapability_enablesExternalControl()
140 inOrderVerifier.verify(mNativeWrapperMock).setExternalControl(eq(false)); in setExternalControl_withCapability_enablesExternalControl()
148 controller.setExternalControl(true); in setExternalControl_withNoCapability_ignoresExternalControl()
151 verify(mNativeWrapperMock, never()).setExternalControl(anyBoolean()); in setExternalControl_withNoCapability_ignoresExternalControl()
263 verify(mNativeWrapperMock).setExternalControl(eq(false)); in reset_turnsOffVibratorAndDisablesExternalControl()
/frameworks/native/cmds/idlcli/vibrator/
DCommandSetExternalControl.cpp55 auto status = hal->call(&aidl::IVibrator::setExternalControl, mEnable); in doMain()
59 auto status = hal->call(&V1_3::IVibrator::setExternalControl, mEnable); in doMain()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperHidlV1_3Test.cpp54 MOCK_METHOD(hardware::Return<V1_0::Status>, setExternalControl, (bool enabled), (override));
88 EXPECT_CALL(*mMockHal.get(), setExternalControl(Eq(true))) in TEST_F()
94 EXPECT_CALL(*mMockHal.get(), setExternalControl(Eq(false))) in TEST_F()
102 ASSERT_TRUE(mWrapper->setExternalControl(true).isOk()); in TEST_F()
103 ASSERT_TRUE(mWrapper->setExternalControl(true).isUnsupported()); in TEST_F()
104 ASSERT_TRUE(mWrapper->setExternalControl(false).isFailed()); in TEST_F()
105 ASSERT_TRUE(mWrapper->setExternalControl(false).isFailed()); in TEST_F()
DVibratorHalWrapperAidlTest.cpp70 MOCK_METHOD(Status, setExternalControl, (bool enabled), (override));
244 EXPECT_CALL(*mMockHal.get(), setExternalControl(Eq(true))).Times(Exactly(1)); in TEST_F()
245 EXPECT_CALL(*mMockHal.get(), setExternalControl(Eq(false))) in TEST_F()
252 ASSERT_TRUE(mWrapper->setExternalControl(true).isOk()); in TEST_F()
253 ASSERT_TRUE(mWrapper->setExternalControl(false).isUnsupported()); in TEST_F()
254 ASSERT_TRUE(mWrapper->setExternalControl(false).isFailed()); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp181 ASSERT_TRUE(mWrapper->setExternalControl(true).isUnsupported()); in TEST_F()
182 ASSERT_TRUE(mWrapper->setExternalControl(false).isUnsupported()); in TEST_F()
DVibratorHalControllerTest.cpp62 MOCK_METHOD(vibrator::HalResult<void>, setExternalControl, (bool enabled), (override));
DVibratorManagerHalWrapperAidlTest.cpp66 MOCK_METHOD(Status, setExternalControl, (bool enabled), (override));
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp148 auto disableExternalControlFn = [](auto hal) { return hal->setExternalControl(false); }; in disableExternalControl()
309 BENCHMARK_WRAPPER(VibratorBench, setExternalControl, {
314 auto enableExternalControlFn = [](auto hal) { return hal->setExternalControl(true); }; in __anon599d61ff0c02()
340 auto enableExternalControlFn = [](auto hal) { return hal->setExternalControl(true); }; in __anon599d61ff0e02()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp241 HalResult<void> AidlHalWrapper::setExternalControl(bool enabled) { in setExternalControl() function in android::vibrator::AidlHalWrapper
242 return HalResultFactory::fromStatus(getHal()->setExternalControl(enabled)); in setExternalControl()
461 HalResult<void> HidlHalWrapper<I>::setExternalControl(bool) { in setExternalControl() function in android::vibrator::HidlHalWrapper
572 HalResult<void> HidlHalWrapperV1_3::setExternalControl(bool enabled) { in setExternalControl() function in android::vibrator::HidlHalWrapperV1_3
573 auto result = getHal()->setExternalControl(static_cast<uint32_t>(enabled)); in setExternalControl()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h356 virtual HalResult<void> setExternalControl(bool enabled) = 0;
428 HalResult<void> setExternalControl(bool enabled) override final;
490 virtual HalResult<void> setExternalControl(bool enabled) override;
567 HalResult<void> setExternalControl(bool enabled) override final;
/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorControllerProvider.java166 public void setExternalControl(boolean enabled) { in setExternalControl() method in FakeVibratorControllerProvider.FakeNativeWrapper
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp273 return hal->setExternalControl(enabled); in vibratorSetExternalControl()
/frameworks/base/services/
Dart-wear-profile24909 PLcom/android/server/vibrator/VibratorController;->setExternalControl(Z)V