Home
last modified time | relevance | path

Searched refs:effectId (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/vibrator/
DHapticFeedbackVibrationProvider.java102 @Nullable public VibrationEffect getVibrationForHapticFeedback(int effectId) { in getVibrationForHapticFeedback() argument
103 switch (effectId) { in getVibrationForHapticFeedback()
109 return getVibration(effectId, VibrationEffect.EFFECT_TICK); in getVibrationForHapticFeedback()
118 return getVibration(effectId, VibrationEffect.EFFECT_TEXTURE_TICK); in getVibrationForHapticFeedback()
122 return getKeyboardVibration(effectId); in getVibrationForHapticFeedback()
127 effectId, in getVibrationForHapticFeedback()
139 return getVibration(effectId, VibrationEffect.EFFECT_CLICK); in getVibrationForHapticFeedback()
145 return getVibration(effectId, VibrationEffect.EFFECT_HEAVY_CLICK); in getVibrationForHapticFeedback()
149 return getVibration(effectId, VibrationEffect.EFFECT_DOUBLE_CLICK); in getVibrationForHapticFeedback()
159 effectId, in getVibrationForHapticFeedback()
[all …]
DHapticFeedbackCustomization.java162 int effectId = XmlReader.readAttributeIntNonNegative(parser, ATTRIBUTE_ID); in loadVibrationsInternal() local
163 if (mapping.contains(effectId)) { in loadVibrationsInternal()
165 "Multiple customizations found for effect " + effectId); in loadVibrationsInternal()
171 "Unsupported empty customization tag for effect " + effectId); in loadVibrationsInternal() local
177 "Unable to parse vibration element for effect " + effectId); in loadVibrationsInternal()
184 + " haptic feedback: %s", effectId, effect)); in loadVibrationsInternal()
186 mapping.put(effectId, effect); in loadVibrationsInternal()
DHalVibration.java98 public VibrationEffect getFallback(int effectId) { in getFallback() argument
99 return mFallbacks.get(effectId); in getFallback()
106 public void addFallback(int effectId, VibrationEffect effect) { in addFallback() argument
107 mFallbacks.put(effectId, effect); in addFallback()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java293 for (int effectId : BIOMETRIC_FEEDBACK_CONSTANTS) { in testVibrationAttribute_biometricConstants_returnsCommunicationRequestUsage()
295 effectId, /* bypassVibrationIntensitySetting= */ false, /* fromIme= */ false); in testVibrationAttribute_biometricConstants_returnsCommunicationRequestUsage()
326 for (int effectId : SCROLL_FEEDBACK_CONSTANTS) { in testVibrationAttribute_scrollFeedback_scrollApiFlagOn_bypassInterruptPolicy()
328 effectId, /* bypassVibrationIntensitySetting= */ false, false /* fromIme*/); in testVibrationAttribute_scrollFeedback_scrollApiFlagOn_bypassInterruptPolicy()
329 assertWithMessage("Expected FLAG_BYPASS_INTERRUPTION_POLICY for effect " + effectId) in testVibrationAttribute_scrollFeedback_scrollApiFlagOn_bypassInterruptPolicy()
339 for (int effectId : SCROLL_FEEDBACK_CONSTANTS) { in testVibrationAttribute_scrollFeedback_scrollApiFlagOff_noBypassInterruptPolicy()
341 effectId, /* bypassVibrationIntensitySetting= */ false, false /* fromIme*/); in testVibrationAttribute_scrollFeedback_scrollApiFlagOff_noBypassInterruptPolicy()
342 assertWithMessage("Expected no FLAG_BYPASS_INTERRUPTION_POLICY for effect " + effectId) in testVibrationAttribute_scrollFeedback_scrollApiFlagOff_noBypassInterruptPolicy()
352 for (int effectId : KEYBOARD_FEEDBACK_CONSTANTS) { in testVibrationAttribute_keyboardCategoryOff_isIme_notUseKeyboardCategory()
354 effectId, /* bypassVibrationIntensitySetting= */ false, true /* fromIme*/); in testVibrationAttribute_keyboardCategoryOff_isIme_notUseKeyboardCategory()
[all …]
/frameworks/base/core/java/android/view/
DSoundEffectConstants.java146 public static boolean isNavigationRepeat(@NavigationSoundEffect int effectId) { in isNavigationRepeat() argument
147 return effectId == SoundEffectConstants.NAVIGATION_REPEAT_DOWN in isNavigationRepeat()
148 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_LEFT in isNavigationRepeat()
149 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_RIGHT in isNavigationRepeat()
150 || effectId == SoundEffectConstants.NAVIGATION_REPEAT_UP; in isNavigationRepeat()
DIWindowSession.aidl165 boolean performHapticFeedback(int effectId, boolean always, boolean fromIme); in performHapticFeedback() argument
171 oneway void performHapticFeedbackAsync(int effectId, boolean always, boolean fromIme); in performHapticFeedbackAsync() argument
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DSimplePlayer.java180 public void attachAuxEffect(int effectId) { in attachAuxEffect() argument
181 mEffectId = effectId; in attachAuxEffect()
183 Log.d(TAG,"attach effect: "+effectId); in attachAuxEffect()
184 mMediaPlayer.attachAuxEffect(effectId); in attachAuxEffect()
/frameworks/av/media/libaudiohal/impl/
DEffectHalHidl.h64 uint64_t effectId() const { return mEffectId; } in effectId() function
85 EffectHalHidl(const sp<IEffect>& effect, uint64_t effectId);
DEffectsFactoryHalHidl.cpp173 [&](Result r, const sp<IEffect>& result, uint64_t effectId) { in createEffect() argument
176 *effect = new EffectHalHidl(result, effectId); in createEffect()
185 [&](Result r, const sp<IEffect>& result, uint64_t effectId) { in createEffect() argument
188 *effect = new EffectHalHidl(result, effectId); in createEffect()
DEffectHalHidl.cpp49 EffectHalHidl::EffectHalHidl(const sp<IEffect>& effect, uint64_t effectId) in EffectHalHidl() argument
51 mEffect(effect), mEffectId(effectId), mBuffersChanged(true), mEfGroup(nullptr) { in EffectHalHidl()
63 __func__, priorityBoost, (long long)effectId); in EffectHalHidl()
/frameworks/base/core/java/android/os/
DVibrationEffect.java314 public static VibrationEffect createPredefined(@EffectType int effectId) { in createPredefined() argument
315 return get(effectId, true); in createPredefined()
337 public static VibrationEffect get(int effectId) { in get() argument
338 return get(effectId, PrebakedSegment.DEFAULT_SHOULD_FALLBACK); in get()
364 public static VibrationEffect get(int effectId, boolean fallback) { in get() argument
366 new PrebakedSegment(effectId, fallback, PrebakedSegment.DEFAULT_STRENGTH)); in get()
653 public static String effectIdToString(int effectId) { in effectIdToString() argument
654 switch (effectId) { in effectIdToString()
670 return Integer.toString(effectId); in effectIdToString()
DSystemVibratorManager.java248 public void performHapticFeedback(int effectId, boolean always, String reason, in performHapticFeedback() argument
250 SystemVibratorManager.this.performHapticFeedback(effectId, always, reason, fromIme); in performHapticFeedback()
DVibrator.java611 for (int effectId : effectIds) { in areAllEffectsSupported()
612 switch (info.isEffectSupported(effectId)) { in areAllEffectsSupported()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DPrebakedSegmentTest.java279 private static PrebakedSegment createSegmentWithFallback(int effectId) { in createSegmentWithFallback() argument
281 return new PrebakedSegment(effectId, true, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in createSegmentWithFallback()
284 private static PrebakedSegment createSegmentWithoutFallback(int effectId) { in createSegmentWithoutFallback() argument
286 return new PrebakedSegment(effectId, false, VibrationEffect.EFFECT_STRENGTH_MEDIUM); in createSegmentWithoutFallback()
/frameworks/layoutlib/bridge/src/android/view/
DViewRootImpl_Delegate.java31 /*package*/ static boolean performHapticFeedback(ViewRootImpl thisViewRoot, int effectId, in performHapticFeedback() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java80 public void vibrate(final int effectId) { in vibrate() argument
85 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */), in vibrate()
/frameworks/base/core/java/android/os/vibrator/
DMultiVibratorInfo.java125 int effectId = firstVibratorEffects.keyAt(i); in supportedEffectsIntersection() local
132 if (infos[j].isEffectSupported(effectId) != Vibrator.VIBRATION_EFFECT_SUPPORT_YES) { in supportedEffectsIntersection()
138 intersection.put(effectId, true); in supportedEffectsIntersection()
DPrebakedSegment.java55 public PrebakedSegment(int effectId, boolean shouldFallback, int effectStrength) { in PrebakedSegment() argument
56 mEffectId = effectId; in PrebakedSegment()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DXmlConstants.java166 public static PredefinedEffectName findById(int effectId, @XmlConstants.Flags int flags) { in findById() argument
169 if (name.mEffectId == effectId) { in findById()
/frameworks/av/services/audioflinger/
DClient.h38 int effectId,
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioTrack.aidl66 int attachAuxEffect(int effectId); in attachAuxEffect() argument
/frameworks/wilhelm/src/android/
Dandroid_GenericMediaPlayer.cpp460 int32_t effectId = 0; in onAttachAuxEffect() local
461 if (msg->findInt32(WHATPARAM_ATTACHAUXEFFECT, &effectId)) { in onAttachAuxEffect()
464 status = mPlayer->attachAuxEffect(effectId); in onAttachAuxEffect()
Dandroid_GenericPlayer.cpp216 void GenericPlayer::attachAuxEffect(int32_t effectId) in attachAuxEffect() argument
218 SL_LOGV("GenericPlayer::attachAuxEffect(id=%d)", effectId); in attachAuxEffect()
220 msg->setInt32(WHATPARAM_ATTACHAUXEFFECT, effectId); in attachAuxEffect()
/frameworks/av/services/audiopolicy/tests/
DAudioPolicyTestClient.h91 void setEffectSuspended(int effectId __unused, in setEffectSuspended()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp222 void AudioPolicyService::AudioPolicyClient::setEffectSuspended(int effectId, in setEffectSuspended() argument
226 mAudioPolicyService->setEffectSuspended(effectId, sessionId, suspended); in setEffectSuspended()

123