/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | InputDeviceDelegateTest.java | 125 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/ |
D | VibratorManagerHalWrapperAidlTest.cpp | 96 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 …]
|
D | VibratorManagerHalControllerTest.cpp | 44 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()
|
D | VibratorManagerHalWrapperLegacyTest.cpp | 90 auto result = mWrapper->getVibratorIds(); in TEST_F() 94 result = mWrapper->getVibratorIds(); in TEST_F()
|
/frameworks/native/services/vibratorservice/ |
D | VibratorManagerHalWrapper.cpp | 45 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()
|
D | VibratorManagerHalController.cpp | 113 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/ |
D | InputDeviceVibratorManager.java | 64 mGlobal.getVibratorIds(mDeviceId); in initializeVibrators() 94 public int[] getVibratorIds() { in getVibratorIds() method in InputDeviceVibratorManager
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorManagerHalWrapper.h | 75 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;
|
D | VibratorManagerHalController.h | 59 HalResult<std::vector<int32_t>> getVibratorIds() override final;
|
/frameworks/base/core/java/android/os/ |
D | SystemVibrator.java | 74 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()
|
D | IVibratorManagerService.aidl | 26 int[] getVibratorIds(); in getVibratorIds() method
|
D | VibratorManager.java | 61 public abstract int[] getVibratorIds(); in getVibratorIds() method in VibratorManager
|
D | SystemVibratorManager.java | 67 public int[] getVibratorIds() { in getVibratorIds() method in SystemVibratorManager 76 return mVibratorIds = mService.getVibratorIds(); in getVibratorIds()
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | VibratorTest.java | 114 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/ |
D | InputDeviceDelegate.java | 153 if (vibratorManager.getVibratorIds().length > 0) { in updateInputDeviceVibrators() 181 if (vibratorManager.getVibratorIds().length > 0) { in updateInputDevice()
|
D | StartSequentialEffectStep.java | 197 effectMapping.getVibratorIds()); in startVibrating() 319 public int[] getVibratorIds() { in getVibratorIds() method in StartSequentialEffectStep.DeviceEffectMap
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | VibratorInputMapper.cpp | 81 std::vector<int32_t> VibratorInputMapper::getVibratorIds() { in getVibratorIds() function in android::VibratorInputMapper 82 return getDeviceContext().getVibratorIds(); in getVibratorIds()
|
D | VibratorInputMapper.h | 39 virtual std::vector<int32_t> getVibratorIds() override;
|
D | InputMapper.cpp | 89 std::vector<int32_t> InputMapper::getVibratorIds() { in getVibratorIds() function in android::InputMapper
|
D | InputMapper.h | 95 virtual std::vector<int32_t> getVibratorIds();
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | NullVibratorManager.java | 29 public int[] getVibratorIds() { in getVibratorIds() method in NullVibratorManager
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 155 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/ |
D | InputDevice.h | 110 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/ |
D | InputReaderFuzzer.cpp | 96 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/ |
D | com_android_server_vibrator_VibratorManagerService.cpp | 113 auto result = service->hal()->getVibratorIds(); in nativeGetVibratorIds()
|