Home
last modified time | relevance | path

Searched refs:getVibrator (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalControllerTest.cpp45 MOCK_METHOD(vibrator::HalResult<std::shared_ptr<HalController>>, getVibrator, (int32_t id),
87 EXPECT_CALL(*mMockHal.get(), getVibrator(_)) in setHalExpectations()
135 auto getVibratorResult = mController->getVibrator(VIBRATOR_ID); in TEST_F()
155 ASSERT_TRUE(mController->getVibrator(VIBRATOR_ID).isUnsupported()); in TEST_F()
172 ASSERT_TRUE(mController->getVibrator(VIBRATOR_ID).isFailed()); in TEST_F()
189 ASSERT_TRUE(mController->getVibrator(VIBRATOR_ID).isFailed()); in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp105 ASSERT_TRUE(mWrapper->getVibrator(0).isFailed()); in TEST_F()
107 auto result = mWrapper->getVibrator(0); in TEST_F()
113 ASSERT_TRUE(mWrapper->getVibrator(-1).isFailed()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp97 MOCK_METHOD(Status, getVibrator, (int32_t id, sp<IVibrator>* ret), (override));
230 EXPECT_CALL(*mMockHal.get(), getVibrator(Eq(kVibratorId), _)) in TEST_F()
235 auto result = mWrapper->getVibrator(kVibratorId); in TEST_F()
246 ASSERT_TRUE(mWrapper->getVibrator(0).isFailed()); in TEST_F()
254 EXPECT_CALL(*mMockHal.get(), getVibrator(Eq(kVibratorId), _)) in TEST_F()
268 auto result = mWrapper->getVibrator(kVibratorId); in TEST_F()
286 EXPECT_CALL(*mMockHal.get(), getVibrator(_, _)) in TEST_F()
362 EXPECT_CALL(*mMockHal.get(), getVibrator(_, _)) in TEST_F()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h76 virtual HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) = 0;
96 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final;
119 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final;
DVibratorManagerHalController.h60 HalResult<std::shared_ptr<HalController>> getVibrator(int32_t id) override final;
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java126 verify(mockVibratorManager, never()).getVibrator(anyInt()); in onVibratorStateChanged_noVibrator_registersNoListenerToVibratorManager()
133 when(mockVibratorManager.getVibrator(anyInt())).thenReturn(NullVibrator.getInstance()); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
161 when(mockVibratorManager.getVibrator(anyInt())).thenReturn(NullVibrator.getInstance()); in onVibratorStateChanged_multipleVibrators_triggersOnlyWhenAllVibratorsInitialized()
186 when(mockVibratorManager.getVibrator(anyInt())).thenReturn(NullVibrator.getInstance()); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
/frameworks/base/core/java/android/os/
DSystemVibrator.java82 Vibrator vibrator = mVibratorManager.getVibrator(vibratorIds[i]); in getInfo()
112 if (mVibratorManager.getVibrator(vibratorId).isVibrating()) { in isVibrating()
319 vibratorManager.getVibrator(vibratorId).addVibratorStateListener(mExecutor, in register()
342 vibratorManager.getVibrator(vibratorId).removeVibratorStateListener(listener); in unregister()
DVibratorManager.java70 public abstract Vibrator getVibrator(int vibratorId); in getVibrator() method in VibratorManager
DSystemVibratorManager.java87 public Vibrator getVibrator(int vibratorId) { in getVibrator() method in SystemVibratorManager
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp53 HalResult<std::shared_ptr<HalController>> LegacyManagerHalWrapper::getVibrator(int32_t id) { in getVibrator() function in android::vibrator::LegacyManagerHalWrapper
80 auto result = this->getHal()->getVibrator(vibratorId, &vibrator); in connectToVibrator()
147 HalResult<std::shared_ptr<HalController>> AidlManagerHalWrapper::getVibrator(int32_t id) { in getVibrator() function in android::vibrator::AidlManagerHalWrapper
DVibratorManagerHalController.cpp120 HalResult<std::shared_ptr<HalController>> ManagerHalController::getVibrator(int32_t id) { in getVibrator() function in android::vibrator::ManagerHalController
122 [&](std::shared_ptr<ManagerHalWrapper> hal) { return hal->getVibrator(id); }; in getVibrator()
/frameworks/layoutlib/bridge/src/android/os/
DNullVibratorManager.java34 public Vibrator getVibrator(int vibratorId) { in getVibrator() method in NullVibratorManager
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibratorManager.java106 public Vibrator getVibrator(int vibratorId) { in getVibrator() method in InputDeviceVibratorManager
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DShutdownThreadTest.java204 public Vibrator getVibrator(Context context) { in getVibrator() method in ShutdownThreadTest.TestInjector
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java746 Vibrator vibrator = mInjector.getVibrator(context); in playShutdownVibration()
907 public Vibrator getVibrator(Context context) {
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp100 auto result = manager->getVibrator(vibratorId); in findVibrator()
/frameworks/base/core/java/android/view/
DInputDevice.java1242 public Vibrator getVibrator() { in getVibrator() method in InputDevice
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1616 Vibrator vibrator = vibratorManager.getVibrator(id); in updateVibratorInfos()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt34227 method @NonNull public abstract android.os.Vibrator getVibrator(int);
51028 method @Deprecated public android.os.Vibrator getVibrator();
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt32257 method public android.os.Vibrator getVibrator();