Home
last modified time | relevance | path

Searched refs:mVibratorInfo (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java53 private volatile VibratorInfo mVibratorInfo; field in VibratorController
84 mVibratorInfo = vibratorInfoBuilder.build(); in VibratorController()
132 int vibratorId = mVibratorInfo.getId(); in reloadVibratorInfoIfNeeded()
135 mVibratorInfo = vibratorInfoBuilder.build(); in reloadVibratorInfoIfNeeded()
149 return mVibratorInfo; in getVibratorInfo()
189 return mVibratorInfo.hasCapability(capability); in hasCapability()
205 if (!mVibratorInfo.hasCapability(IVibrator.CAP_EXTERNAL_CONTROL)) { in setExternalControl()
219 if (!mVibratorInfo.hasCapability(IVibrator.CAP_ALWAYS_ON_CONTROL)) { in updateAlwaysOn()
235 if (mVibratorInfo.hasCapability(IVibrator.CAP_AMPLITUDE_CONTROL)) { in setAmplitude()
295 if (!mVibratorInfo.hasCapability(IVibrator.CAP_COMPOSE_EFFECTS)) { in on()
[all …]
DHapticFeedbackVibrationProvider.java50 private final VibratorInfo mVibratorInfo; field in HapticFeedbackVibrationProvider
73 mVibratorInfo = vibratorInfo; in HapticFeedbackVibrationProvider()
299 if (mVibratorInfo.isPrimitiveSupported(primitiveId)) { in getVibration()
312 if (mVibratorInfo.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_QUICK_RISE) in getAssistantButtonVibration()
313 && mVibratorInfo.isPrimitiveSupported(VibrationEffect.Composition.PRIMITIVE_TICK)) { in getAssistantButtonVibration()
350 if (mVibratorInfo.isPrimitiveSupported(primitiveId)) { in getKeyboardVibration()
367 return mVibratorInfo.isPrimitiveSupported( in shouldBypassIntensityScale()
370 return mVibratorInfo.isPrimitiveSupported( in shouldBypassIntensityScale()
/frameworks/av/media/libeffects/hapticgenerator/aidl/
DHapticGeneratorContext.cpp40 mParams.mVibratorInfo.resonantFrequencyHz = DEFAULT_RESONANT_FREQUENCY; in HapticGeneratorContext()
41 mParams.mVibratorInfo.qFactor = DEFAULT_BSF_ZERO_Q; in HapticGeneratorContext()
42 mParams.mVibratorInfo.maxAmplitude = 0.f; in HapticGeneratorContext()
100 return mParams.mVibratorInfo; in getHgVibratorInformation()
113 mParams.mVibratorInfo = vibratorInfo; in setHgVibratorInformation()
114 if (::android::audio_utils::safe_isnan(mParams.mVibratorInfo.resonantFrequencyHz)) { in setHgVibratorInformation()
117 mParams.mVibratorInfo.resonantFrequencyHz = DEFAULT_RESONANT_FREQUENCY; in setHgVibratorInformation()
119 if (::android::audio_utils::safe_isnan(mParams.mVibratorInfo.qFactor)) { in setHgVibratorInformation()
121 mParams.mVibratorInfo.qFactor = DEFAULT_BSF_ZERO_Q; in setHgVibratorInformation()
126 mParams.mVibratorInfo.resonantFrequencyHz, DEFAULT_BPF_Q, mSampleRate)); in setHgVibratorInformation()
[all …]
DHapticGeneratorContext.h48 HapticGenerator::VibratorInformation mVibratorInfo; member
/frameworks/base/core/java/android/os/
DSystemVibratorManager.java207 private final VibratorInfo mVibratorInfo; field in SystemVibratorManager.SingleVibrator
210 mVibratorInfo = vibratorInfo; in SingleVibrator()
215 return mVibratorInfo; in getInfo()
225 return mVibratorInfo.hasAmplitudeControl(); in hasAmplitudeControl()
232 .addVibrator(mVibratorInfo.getId(), effect) in setAlwaysOnEffect()
242 .addVibrator(mVibratorInfo.getId(), vibe) in vibrate()
266 Log.w(TAG, "Failed to check status of vibrator " + mVibratorInfo.getId() in isVibrating()
271 return mService.isVibrating(mVibratorInfo.getId()); in isVibrating()
296 "Failed to add vibrate state listener to vibrator " + mVibratorInfo.getId() in addVibratorStateListener()
309 if (!mService.registerVibratorStateListener(mVibratorInfo.getId(), delegate)) { in addVibratorStateListener()
[all …]
DSystemVibrator.java55 private VibratorInfo mVibratorInfo; field in SystemVibrator
67 if (mVibratorInfo != null) { in getInfo()
68 return mVibratorInfo; in getInfo()
78 return mVibratorInfo = VibratorInfo.EMPTY_VIBRATOR_INFO; in getInfo()
92 return mVibratorInfo = VibratorInfoFactory.create(/* id= */ -1, vibratorInfos); in getInfo()
/frameworks/base/services/tests/vibrator/utils/android/os/test/
DFakeVibrator.java29 private final VibratorInfo mVibratorInfo; field in FakeVibrator
37 mVibratorInfo = buildInfoSupportingPrimitives(supportedPrimitives); in FakeVibrator()
52 return mVibratorInfo; in getInfo()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibrator.java46 private final VibratorInfo mVibratorInfo; field in InputDeviceVibrator
57 mVibratorInfo = new VibratorInfo.Builder(vibratorId) in InputDeviceVibrator()
86 return mVibratorInfo; in getInfo()
170 return mVibratorInfo.hasCapability(IVibrator.CAP_AMPLITUDE_CONTROL); in hasAmplitudeControl()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java91 private VibratorInfo mVibratorInfo = VibratorInfo.EMPTY_VIBRATOR_INFO; field in HapticFeedbackVibrationProviderTest
455 return new HapticFeedbackVibrationProvider(mResourcesMock, mVibratorInfo, customizations); in createProvider()
464 mVibratorInfo = builder.build(); in mockVibratorPrimitiveSupport()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DTestPhoneWindowManager.java151 @Mock private VibratorInfo mVibratorInfo; field in TestPhoneWindowManager
326 doReturn(mVibratorInfo).when(mVibrator).getInfo(); in setUp()