Home
last modified time | relevance | path

Searched refs:getVibratorIds (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java125 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in onInputDeviceAdded_withSettingsDisabled_ignoresNewDevice()
139 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[0]); in onInputDeviceAdded_withDeviceWithoutVibrator_ignoresNewDevice()
154 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in onInputDeviceAdded_withDeviceWithVibrator_addsNewDevice()
165 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in onInputDeviceChanged_withSettingsDisabled_ignoresDevice()
177 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}, new int[0]); in onInputDeviceChanged_deviceLosesVibrator_removesDevice()
192 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}, new int[0]); in onInputDeviceChanged_deviceLost_removesDevice()
207 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[0], new int[]{1}); in onInputDeviceChanged_deviceAddsVibrator_addsDevice()
222 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[0]); in onInputDeviceRemoved_removesDevice()
225 when(mIInputManagerMock.getVibratorIds(eq(2))).thenReturn(new int[]{1}); in onInputDeviceRemoved_removesDevice()
238 when(mIInputManagerMock.getVibratorIds(eq(1))).thenReturn(new int[]{1}); in updateInputDeviceVibrators_usesFlagToLoadDeviceList()
[all …]
/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalWrapperAidlTest.cpp96 MOCK_METHOD(Status, getVibratorIds, (std::vector<int32_t> * ret), (override));
188 EXPECT_CALL(*mMockHal.get(), getVibratorIds(_)) in TEST_F()
195 ASSERT_TRUE(mWrapper->getVibratorIds().isUnsupported()); in TEST_F()
196 ASSERT_TRUE(mWrapper->getVibratorIds().isFailed()); in TEST_F()
198 auto result = mWrapper->getVibratorIds(); in TEST_F()
204 EXPECT_CALL(*mMockHal.get(), getVibratorIds(_)) in TEST_F()
211 auto result = mWrapper->getVibratorIds(); in TEST_F()
218 auto result = mWrapper->getVibratorIds(); in TEST_F()
226 EXPECT_CALL(*mMockHal.get(), getVibratorIds(_)) in TEST_F()
242 EXPECT_CALL(*mMockHal.get(), getVibratorIds(_)) in TEST_F()
[all …]
DVibratorManagerHalControllerTest.cpp44 MOCK_METHOD(vibrator::HalResult<std::vector<int32_t>>, getVibratorIds, (), (override));
84 EXPECT_CALL(*mMockHal.get(), getVibratorIds()) in setHalExpectations()
131 auto getVibratorIdsResult = mController->getVibratorIds(); in TEST_F()
154 ASSERT_TRUE(mController->getVibratorIds().isUnsupported()); in TEST_F()
171 ASSERT_TRUE(mController->getVibratorIds().isFailed()); in TEST_F()
188 ASSERT_TRUE(mController->getVibratorIds().isFailed()); in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp90 auto result = mWrapper->getVibratorIds(); in TEST_F()
94 result = mWrapper->getVibratorIds(); in TEST_F()
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp45 HalResult<std::vector<int32_t>> LegacyManagerHalWrapper::getVibratorIds() { in getVibratorIds() function in android::vibrator::LegacyManagerHalWrapper
124 HalResult<std::vector<int32_t>> AidlManagerHalWrapper::getVibratorIds() { in getVibratorIds() function in android::vibrator::AidlManagerHalWrapper
131 auto result = getHal()->getVibratorIds(&ids); in getVibratorIds()
149 getVibratorIds(); in getVibrator()
DVibratorManagerHalController.cpp113 HalResult<std::vector<int32_t>> ManagerHalController::getVibratorIds() { in getVibratorIds() function in android::vibrator::ManagerHalController
115 return hal->getVibratorIds(); in getVibratorIds()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibratorManager.java64 mGlobal.getVibratorIds(mDeviceId); in initializeVibrators()
94 public int[] getVibratorIds() { in getVibratorIds() method in InputDeviceVibratorManager
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h75 virtual HalResult<std::vector<int32_t>> getVibratorIds() = 0;
95 HalResult<std::vector<int32_t>> getVibratorIds() override final;
118 HalResult<std::vector<int32_t>> getVibratorIds() override final;
DVibratorManagerHalController.h59 HalResult<std::vector<int32_t>> getVibratorIds() override final;
/frameworks/base/core/java/android/os/
DSystemVibrator.java74 int[] vibratorIds = mVibratorManager.getVibratorIds(); in getInfo()
102 return mVibratorManager.getVibratorIds().length > 0; in hasVibrator()
111 for (int vibratorId : mVibratorManager.getVibratorIds()) { in isVibrating()
313 int[] vibratorIds = vibratorManager.getVibratorIds(); in register()
DIVibratorManagerService.aidl26 int[] getVibratorIds(); in getVibratorIds() method
DVibratorManager.java61 public abstract int[] getVibratorIds(); in getVibratorIds() method in VibratorManager
DSystemVibratorManager.java67 public int[] getVibratorIds() { in getVibratorIds() method in SystemVibratorManager
76 return mVibratorIds = mService.getVibratorIds(); in getVibratorIds()
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java114 when(mockVibratorManager.getVibratorIds()).thenReturn(new int[0]); in onVibratorStateChanged_noVibrator_registersNoListenerToVibratorManager()
132 when(mockVibratorManager.getVibratorIds()).thenReturn(new int[] { 1 }); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
160 when(mockVibratorManager.getVibratorIds()).thenReturn(new int[] { 1, 2 }); in onVibratorStateChanged_multipleVibrators_triggersOnlyWhenAllVibratorsInitialized()
185 when(mockVibratorManager.getVibratorIds()).thenReturn(new int[] { 1, 2 }); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
/frameworks/base/services/core/java/com/android/server/vibrator/
DInputDeviceDelegate.java153 if (vibratorManager.getVibratorIds().length > 0) { in updateInputDeviceVibrators()
181 if (vibratorManager.getVibratorIds().length > 0) { in updateInputDevice()
DStartSequentialEffectStep.java197 effectMapping.getVibratorIds()); in startVibrating()
319 public int[] getVibratorIds() { in getVibratorIds() method in StartSequentialEffectStep.DeviceEffectMap
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp81 std::vector<int32_t> VibratorInputMapper::getVibratorIds() { in getVibratorIds() function in android::VibratorInputMapper
82 return getDeviceContext().getVibratorIds(); in getVibratorIds()
DVibratorInputMapper.h39 virtual std::vector<int32_t> getVibratorIds() override;
DInputMapper.cpp89 std::vector<int32_t> InputMapper::getVibratorIds() { in getVibratorIds() function in android::InputMapper
DInputMapper.h95 virtual std::vector<int32_t> getVibratorIds();
/frameworks/layoutlib/bridge/src/android/os/
DNullVibratorManager.java29 public int[] getVibratorIds() { in getVibratorIds() method in NullVibratorManager
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java155 int[] getVibratorIds(int deviceId); in getVibratorIds() method
425 public native int[] getVibratorIds(int deviceId); in getVibratorIds() method in NativeInputManagerService.NativeImpl
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h110 std::vector<int32_t> getVibratorIds();
416 inline std::vector<int32_t> getVibratorIds() { return mEventHub->getVibratorIds(mId); } in getVibratorIds() function
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp96 std::vector<int32_t> getVibratorIds(int32_t deviceId) { in getVibratorIds() function in android::FuzzInputReader
97 return reader->getVibratorIds(deviceId); in getVibratorIds()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorManagerService.cpp113 auto result = service->hal()->getVibratorIds(); in nativeGetVibratorIds()

12