/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorController.java | 70 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 …]
|
D | StartSequentialEffectStep.java | 265 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()
|
D | AbstractVibratorStep.java | 71 public boolean acceptVibratorCompleteCallback(int vibratorId) { in acceptVibratorCompleteCallback() argument 72 if (getVibratorId() != vibratorId) { in acceptVibratorCompleteCallback() 81 "Received completion callback from " + vibratorId in acceptVibratorCompleteCallback()
|
D | VibrationStepConductor.java | 403 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()
|
D | SetAmplitudeVibratorStep.java | 50 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()
|
D | DeviceAdapter.java | 84 public VibrationEffect adaptToVibrator(int vibratorId, @NonNull VibrationEffect effect) { in adaptToVibrator() argument 91 VibratorController controller = mAvailableVibrators.get(vibratorId); in adaptToVibrator()
|
D | VibratorManagerService.java | 260 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 …]
|
D | Step.java | 82 public boolean acceptVibratorCompleteCallback(int vibratorId) { in acceptVibratorCompleteCallback() argument
|
/frameworks/base/core/java/android/os/ |
D | CombinedVibration.java | 153 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 …]
|
D | IVibratorManagerService.aidl | 27 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
|
D | SystemVibrator.java | 111 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()
|
D | SystemVibratorManager.java | 87 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()
|
D | VibratorManager.java | 70 public abstract Vibrator getVibrator(int vibratorId); in getVibrator() argument
|
/frameworks/native/services/inputflinger/ |
D | VibrationElement.cpp | 58 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/ |
D | FakeVibratorControllerProvider.java | 82 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/ |
D | InputDeviceVibratorManager.java | 106 public Vibrator getVibrator(int vibratorId) { in getVibrator() argument 108 if (mVibrators.contains(vibratorId)) { in getVibrator() 109 return mVibrators.get(vibratorId); in getVibrator()
|
D | InputDeviceVibrator.java | 54 InputDeviceVibrator(int deviceId, int vibratorId) { in InputDeviceVibrator() argument 57 mVibratorInfo = new VibratorInfo.Builder(vibratorId) in InputDeviceVibrator()
|
D | InputManager.java | 1173 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/ |
D | DeviceAdapterTest.java | 278 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()
|
D | VibratorManagerServiceTest.java | 263 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/ |
D | VibrationElement.h | 45 void addChannel(int32_t vibratorId, uint8_t amplitude); 49 uint16_t getMagnitude(int32_t vibratorId) const;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 94 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/ |
D | NullVibratorManager.java | 34 public Vibrator getVibrator(int vibratorId) { in getVibrator() argument
|
/frameworks/native/services/vibratorservice/ |
D | VibratorManagerHalWrapper.cpp | 77 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/ |
D | VibratorManagerHalWrapper.h | 137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,
|