/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorController.java | 204 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()
|
D | VibratorManagerService.java | 774 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/ |
D | VibratorControllerTest.java | 132 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/ |
D | CommandSetExternalControl.cpp | 55 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/ |
D | VibratorHalWrapperHidlV1_3Test.cpp | 54 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()
|
D | VibratorHalWrapperAidlTest.cpp | 70 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()
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 181 ASSERT_TRUE(mWrapper->setExternalControl(true).isUnsupported()); in TEST_F() 182 ASSERT_TRUE(mWrapper->setExternalControl(false).isUnsupported()); in TEST_F()
|
D | VibratorHalControllerTest.cpp | 62 MOCK_METHOD(vibrator::HalResult<void>, setExternalControl, (bool enabled), (override));
|
D | VibratorManagerHalWrapperAidlTest.cpp | 66 MOCK_METHOD(Status, setExternalControl, (bool enabled), (override));
|
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 148 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/ |
D | VibratorHalWrapper.cpp | 241 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/ |
D | VibratorHalWrapper.h | 356 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/ |
D | FakeVibratorControllerProvider.java | 166 public void setExternalControl(boolean enabled) { in setExternalControl() method in FakeVibratorControllerProvider.FakeNativeWrapper
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 273 return hal->setExternalControl(enabled); in vibratorSetExternalControl()
|
/frameworks/base/services/ |
D | art-wear-profile | 24909 PLcom/android/server/vibrator/VibratorController;->setExternalControl(Z)V
|