Home
last modified time | relevance | path

Searched refs:vibratorId (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java70 void onComplete(int vibratorId, long vibrationId); in onComplete() argument
73 VibratorController(int vibratorId, OnVibrationCompleteListener listener) { in VibratorController() argument
74 this(vibratorId, listener, new NativeWrapper()); in VibratorController()
78 VibratorController(int vibratorId, OnVibrationCompleteListener listener, in VibratorController() argument
81 mNativeWrapper.init(vibratorId, listener); in VibratorController()
82 VibratorInfo.Builder vibratorInfoBuilder = new VibratorInfo.Builder(vibratorId); in VibratorController()
89 + vibratorId); in VibratorController()
132 int vibratorId = mVibratorInfo.getId(); in reloadVibratorInfoIfNeeded() local
133 VibratorInfo.Builder vibratorInfoBuilder = new VibratorInfo.Builder(vibratorId); in reloadVibratorInfoIfNeeded()
137 Slog.e(TAG, "Failed retry of HAL getInfo for vibrator " + vibratorId); in reloadVibratorInfoIfNeeded()
[all …]
DStartSequentialEffectStep.java265 int vibratorId = vibrators.keyAt(i); in DeviceEffectMap() local
266 mVibratorEffects.put(vibratorId, composedEffect); in DeviceEffectMap()
267 mVibratorIds[i] = vibratorId; in DeviceEffectMap()
283 int vibratorId = stereoEffects.keyAt(i); in DeviceEffectMap() local
284 if (vibrators.contains(vibratorId)) { in DeviceEffectMap()
287 mVibratorEffects.put(vibratorId, (VibrationEffect.Composed) effect); in DeviceEffectMap()
DAbstractVibratorStep.java71 public boolean acceptVibratorCompleteCallback(int vibratorId) { in acceptVibratorCompleteCallback() argument
72 if (getVibratorId() != vibratorId) { in acceptVibratorCompleteCallback()
81 "Received completion callback from " + vibratorId in acceptVibratorCompleteCallback()
DVibrationStepConductor.java403 public void notifyVibratorComplete(int vibratorId) { in notifyVibratorComplete() argument
409 Slog.d(TAG, "Vibration complete reported by vibrator " + vibratorId); in notifyVibratorComplete()
413 mSignalVibratorsComplete.add(vibratorId); in notifyVibratorComplete()
435 for (int vibratorId : mDeviceAdapter.getAvailableVibratorIds()) { in notifySyncedVibrationComplete()
436 mSignalVibratorsComplete.add(vibratorId); in notifySyncedVibrationComplete()
600 for (int vibratorId : vibratorsToProcess) { in processVibratorsComplete()
604 if (step.acceptVibratorCompleteCallback(vibratorId)) { in processVibratorsComplete()
DSetAmplitudeVibratorStep.java50 public boolean acceptVibratorCompleteCallback(int vibratorId) { in acceptVibratorCompleteCallback() argument
53 if (!super.acceptVibratorCompleteCallback(vibratorId)) { in acceptVibratorCompleteCallback()
66 "Amplitude step received completion callback from " + vibratorId in acceptVibratorCompleteCallback()
DDeviceAdapter.java84 public VibrationEffect adaptToVibrator(int vibratorId, @NonNull VibrationEffect effect) { in adaptToVibrator() argument
91 VibratorController controller = mAvailableVibrators.get(vibratorId); in adaptToVibrator()
DVibratorManagerService.java260 for (int vibratorId : vibratorIds) { in VibratorManagerService()
261 mVibrators.put(vibratorId, injector.createVibratorController(vibratorId, listener)); in VibratorManagerService()
320 public VibratorInfo getVibratorInfo(int vibratorId) { in getVibratorInfo() argument
321 final VibratorController controller = mVibrators.get(vibratorId); in getVibratorInfo()
338 public boolean isVibrating(int vibratorId) { in isVibrating() argument
340 VibratorController controller = mVibrators.get(vibratorId); in isVibrating()
346 public boolean registerVibratorStateListener(int vibratorId, IVibratorStateListener listener) { in registerVibratorStateListener() argument
348 VibratorController controller = mVibrators.get(vibratorId); in registerVibratorStateListener()
357 public boolean unregisterVibratorStateListener(int vibratorId, in unregisterVibratorStateListener() argument
360 VibratorController controller = mVibrators.get(vibratorId); in unregisterVibratorStateListener()
[all …]
DStep.java82 public boolean acceptVibratorCompleteCallback(int vibratorId) { in acceptVibratorCompleteCallback() argument
/frameworks/base/core/java/android/os/
DCombinedVibration.java153 public abstract boolean hasVibrator(int vibratorId); in hasVibrator() argument
181 VibrationEffect adaptToVibrator(int vibratorId, @NonNull VibrationEffect effect); in adaptToVibrator() argument
206 public ParallelCombination addVibrator(int vibratorId, @NonNull VibrationEffect effect) { in addVibrator() argument
207 mEffects.put(vibratorId, effect); in addVibrator()
260 public SequentialCombination addNext(int vibratorId, @NonNull VibrationEffect effect) { in addNext() argument
261 return addNext(vibratorId, effect, /* delay= */ 0); in addNext()
279 public SequentialCombination addNext(int vibratorId, @NonNull VibrationEffect effect, in addNext() argument
282 CombinedVibration.startParallel().addVibrator(vibratorId, effect).combine(), in addNext()
409 for (int vibratorId : adapter.getAvailableVibratorIds()) { in adapt()
410 VibrationEffect newEffect = adapter.adaptToVibrator(vibratorId, mEffect); in adapt()
[all …]
DIVibratorManagerService.aidl27 VibratorInfo getVibratorInfo(int vibratorId); in getVibratorInfo() argument
29 boolean isVibrating(int vibratorId); in isVibrating() argument
31 boolean registerVibratorStateListener(int vibratorId, in IVibratorStateListener listener); in registerVibratorStateListener() argument
33 boolean unregisterVibratorStateListener(int vibratorId, in IVibratorStateListener listener); in unregisterVibratorStateListener() argument
DSystemVibrator.java111 for (int vibratorId : mVibratorManager.getVibratorIds()) { in isVibrating()
112 if (mVibratorManager.getVibrator(vibratorId).isVibrating()) { in isVibrating()
316 int vibratorId = vibratorIds[i]; in register() local
319 vibratorManager.getVibrator(vibratorId).addVibratorStateListener(mExecutor, in register()
321 mVibratorListeners.put(vibratorId, listener); in register()
340 int vibratorId = mVibratorListeners.keyAt(i); in unregister() local
342 vibratorManager.getVibrator(vibratorId).removeVibratorStateListener(listener); in unregister()
DSystemVibratorManager.java87 public Vibrator getVibrator(int vibratorId) { in getVibrator() argument
89 Vibrator vibrator = mVibrators.get(vibratorId); in getVibrator()
98 info = mService.getVibratorInfo(vibratorId); in getVibrator()
105 mVibrators.put(vibratorId, vibrator); in getVibrator()
DVibratorManager.java70 public abstract Vibrator getVibrator(int vibratorId); in getVibrator() argument
/frameworks/native/services/inputflinger/
DVibrationElement.cpp58 uint16_t VibrationElement::getMagnitude(int32_t vibratorId) const { in getMagnitude()
61 [vibratorId](const std::pair<int32_t /*vibratorId*/, uint8_t /*amplitude*/> in getMagnitude()
62 pair) { return pair.first == vibratorId; }); in getMagnitude()
75 void VibrationElement::addChannel(int32_t vibratorId, uint8_t amplitude) { in addChannel() argument
76 channels.push_back(std::make_pair(vibratorId, amplitude)); in addChannel()
/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorControllerProvider.java82 public int vibratorId; field in FakeVibratorControllerProvider.FakeNativeWrapper
87 public void init(int vibratorId, OnVibrationCompleteListener listener) { in init() argument
89 this.vibratorId = vibratorId; in init()
209 mHandler.postDelayed(() -> listener.onComplete(vibratorId, vibrationId), in scheduleListener()
220 int vibratorId, OnVibrationCompleteListener listener) { in newVibratorController() argument
221 return new VibratorController(vibratorId, listener, mNativeWrapper); in newVibratorController()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibratorManager.java106 public Vibrator getVibrator(int vibratorId) { in getVibrator() argument
108 if (mVibrators.contains(vibratorId)) { in getVibrator()
109 return mVibrators.get(vibratorId); in getVibrator()
DInputDeviceVibrator.java54 InputDeviceVibrator(int deviceId, int vibratorId) { in InputDeviceVibrator() argument
57 mVibratorInfo = new VibratorInfo.Builder(vibratorId) in InputDeviceVibrator()
DInputManager.java1173 public Vibrator getInputDeviceVibrator(int deviceId, int vibratorId) { in getInputDeviceVibrator() argument
1174 return new InputDeviceVibrator(deviceId, vibratorId); in getInputDeviceVibrator()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DDeviceAdapterTest.java278 private VibratorController createEmptyVibratorController(int vibratorId) { in createEmptyVibratorController() argument
280 .newVibratorController(vibratorId, (id, vibrationId) -> {}); in createEmptyVibratorController()
283 private VibratorController createPwleWithoutFrequenciesVibratorController(int vibratorId) { in createPwleWithoutFrequenciesVibratorController() argument
287 return provider.newVibratorController(vibratorId, (id, vibrationId) -> {}); in createPwleWithoutFrequenciesVibratorController()
290 private VibratorController createPwleVibratorController(int vibratorId) { in createPwleVibratorController() argument
298 return provider.newVibratorController(vibratorId, (id, vibrationId) -> {}); in createPwleVibratorController()
DVibratorManagerServiceTest.java263 for (int vibratorId : mService.getVibratorIds()) { in tearDown()
264 if (s.isVibrating(vibratorId)) { in tearDown()
313 VibratorController createVibratorController(int vibratorId, in createService()
315 return mVibratorProviders.get(vibratorId) in createService()
316 .newVibratorController(vibratorId, listener); in createService()
2594 for (int vibratorId : vibratorIds) { in mockVibrators()
2595 mVibratorProviders.put(vibratorId, in mockVibrators()
/frameworks/native/services/inputflinger/include/
DVibrationElement.h45 void addChannel(int32_t vibratorId, uint8_t amplitude);
49 uint16_t getMagnitude(int32_t vibratorId) const;
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp94 static std::shared_ptr<vibrator::HalController> findVibrator(int32_t vibratorId) { in findVibrator() argument
100 auto result = manager->getVibrator(vibratorId); in findVibrator()
106 VibratorControllerWrapper(JNIEnv* env, int32_t vibratorId, jobject callbackListener) in VibratorControllerWrapper() argument
107 : mHal(findVibrator(vibratorId)), in VibratorControllerWrapper()
108 mVibratorId(vibratorId), in VibratorControllerWrapper()
205 static jlong vibratorNativeInit(JNIEnv* env, jclass /* clazz */, jint vibratorId, in vibratorNativeInit() argument
208 std::make_unique<VibratorControllerWrapper>(env, vibratorId, callbackListener); in vibratorNativeInit()
/frameworks/layoutlib/bridge/src/android/os/
DNullVibratorManager.java34 public Vibrator getVibrator(int vibratorId) { in getVibrator() argument
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp77 int32_t vibratorId, std::shared_ptr<CallbackScheduler> callbackScheduler) { in connectToVibrator() argument
80 auto result = this->getHal()->getVibrator(vibratorId, &vibrator); in connectToVibrator()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,

12