/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | HapticFeedbackVibrationProvider.java | 21 import android.os.VibrationAttributes; 41 private static final VibrationAttributes TOUCH_VIBRATION_ATTRIBUTES = 42 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH); 43 private static final VibrationAttributes PHYSICAL_EMULATION_VIBRATION_ATTRIBUTES = 44 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_PHYSICAL_EMULATION); 45 private static final VibrationAttributes HARDWARE_FEEDBACK_VIBRATION_ATTRIBUTES = 46 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_HARDWARE_FEEDBACK); 47 private static final VibrationAttributes COMMUNICATION_REQUEST_VIBRATION_ATTRIBUTES = 48 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_COMMUNICATION_REQUEST); 194 public VibrationAttributes getVibrationAttributesForHapticFeedback( in getVibrationAttributesForHapticFeedback() [all …]
|
D | VibratorControlService.java | 19 import static android.os.VibrationAttributes.USAGE_ACCESSIBILITY; 20 import static android.os.VibrationAttributes.USAGE_ALARM; 21 import static android.os.VibrationAttributes.USAGE_COMMUNICATION_REQUEST; 22 import static android.os.VibrationAttributes.USAGE_HARDWARE_FEEDBACK; 23 import static android.os.VibrationAttributes.USAGE_MEDIA; 24 import static android.os.VibrationAttributes.USAGE_NOTIFICATION; 25 import static android.os.VibrationAttributes.USAGE_PHYSICAL_EMULATION; 26 import static android.os.VibrationAttributes.USAGE_RINGTONE; 27 import static android.os.VibrationAttributes.USAGE_TOUCH; 28 import static android.os.VibrationAttributes.USAGE_UNKNOWN; [all …]
|
D | VibratorManagerService.java | 54 import android.os.VibrationAttributes; 99 private static final VibrationAttributes DEFAULT_ATTRIBUTES = 100 new VibrationAttributes.Builder().build(); 102 VibrationAttributes.FLAG_BYPASS_INTERRUPTION_POLICY 103 | VibrationAttributes.FLAG_BYPASS_USER_VIBRATION_INTENSITY_OFF 104 | VibrationAttributes.FLAG_BYPASS_USER_VIBRATION_INTENSITY_SCALE; 369 @Nullable CombinedVibration effect, @Nullable VibrationAttributes attrs) { in setAlwaysOnEffect() 412 @Nullable VibrationAttributes attrs, String reason, IBinder token) { in vibrate() 453 VibrationAttributes attrs = in performHapticFeedbackInternal() 469 @NonNull CombinedVibration effect, @Nullable VibrationAttributes attrs, in vibrateWithPermissionCheck() [all …]
|
D | VibrationSettings.java | 19 import static android.os.VibrationAttributes.CATEGORY_KEYBOARD; 20 import static android.os.VibrationAttributes.USAGE_ACCESSIBILITY; 21 import static android.os.VibrationAttributes.USAGE_ALARM; 22 import static android.os.VibrationAttributes.USAGE_COMMUNICATION_REQUEST; 23 import static android.os.VibrationAttributes.USAGE_HARDWARE_FEEDBACK; 24 import static android.os.VibrationAttributes.USAGE_MEDIA; 25 import static android.os.VibrationAttributes.USAGE_NOTIFICATION; 26 import static android.os.VibrationAttributes.USAGE_PHYSICAL_EMULATION; 27 import static android.os.VibrationAttributes.USAGE_RINGTONE; 28 import static android.os.VibrationAttributes.USAGE_TOUCH; [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibrationAttributesTest.java | 30 final VibrationAttributes attr = new VibrationAttributes.Builder() in testSimple() 31 .setCategory(VibrationAttributes.CATEGORY_KEYBOARD) in testSimple() 32 .setUsage(VibrationAttributes.USAGE_ALARM) in testSimple() 35 assertEquals(VibrationAttributes.CATEGORY_KEYBOARD, attr.getCategory()); in testSimple() 36 assertEquals(VibrationAttributes.USAGE_ALARM, attr.getUsage()); in testSimple()
|
/frameworks/base/core/java/android/os/ |
D | VibrationAttributes.java | 33 public final class VibrationAttributes implements Parcelable { class 258 public static @NonNull VibrationAttributes createForUsage(@Usage int usage) { in createForUsage() 259 return new VibrationAttributes.Builder().setUsage(usage).build(); in createForUsage() 267 private VibrationAttributes(@Usage int usage, @AudioAttributes.AttributeUsage int audioUsage, in VibrationAttributes() method in VibrationAttributes 377 private VibrationAttributes(Parcel src) { in VibrationAttributes() method in VibrationAttributes 384 public static final @NonNull Parcelable.Creator<VibrationAttributes> 385 CREATOR = new Parcelable.Creator<VibrationAttributes>() { 386 public VibrationAttributes createFromParcel(Parcel p) { 387 return new VibrationAttributes(p); 389 public VibrationAttributes[] newArray(int size) { [all …]
|
D | IVibratorManagerService.aidl | 21 import android.os.VibrationAttributes; 35 in CombinedVibration vibration, in VibrationAttributes attributes); in setAlwaysOnEffect() 37 in VibrationAttributes attributes, String reason, IBinder token); in vibrate()
|
D | Vibrator.java | 182 public int getDefaultVibrationIntensity(@VibrationAttributes.Usage int usage) { in getDefaultVibrationIntensity() 337 @Nullable VibrationAttributes attributes) { in setAlwaysOnEffect() 346 @Nullable VibrationEffect effect, @Nullable VibrationAttributes attributes) { in setAlwaysOnEffect() 471 vibrate(vibe, new VibrationAttributes.Builder().build()); in vibrate() 491 ? new VibrationAttributes.Builder().build() in vibrate() 492 : new VibrationAttributes.Builder(attributes).build()); in vibrate() 508 public void vibrate(@NonNull VibrationEffect vibe, @NonNull VibrationAttributes attributes) { in vibrate() 520 String reason, @NonNull VibrationAttributes attributes); in vibrate()
|
D | VibratorManager.java | 85 @Nullable CombinedVibration effect, @Nullable VibrationAttributes attributes) { in setAlwaysOnEffect() 126 @Nullable VibrationAttributes attributes) { in vibrate() 138 String reason, @Nullable VibrationAttributes attributes); in vibrate()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | VibrationConfig.java | 19 import static android.os.VibrationAttributes.USAGE_ACCESSIBILITY; 20 import static android.os.VibrationAttributes.USAGE_ALARM; 21 import static android.os.VibrationAttributes.USAGE_COMMUNICATION_REQUEST; 22 import static android.os.VibrationAttributes.USAGE_HARDWARE_FEEDBACK; 23 import static android.os.VibrationAttributes.USAGE_MEDIA; 24 import static android.os.VibrationAttributes.USAGE_NOTIFICATION; 25 import static android.os.VibrationAttributes.USAGE_PHYSICAL_EMULATION; 26 import static android.os.VibrationAttributes.USAGE_RINGTONE; 27 import static android.os.VibrationAttributes.USAGE_TOUCH; 28 import static android.os.VibrationAttributes.USAGE_UNKNOWN; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | VibratorHelper.java | 23 import android.os.VibrationAttributes; 48 public static final VibrationAttributes TOUCH_VIBRATION_ATTRIBUTES = 49 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH); 55 private static final VibrationAttributes HARDWARE_FEEDBACK_VIBRATION_ATTRIBUTES = 56 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_HARDWARE_FEEDBACK); 93 String reason, @NonNull VibrationAttributes attributes) { in vibrate() 123 public void vibrate(@NonNull VibrationEffect effect, @NonNull VibrationAttributes attributes) { in vibrate()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 22 import static android.os.VibrationAttributes.USAGE_ACCESSIBILITY; 23 import static android.os.VibrationAttributes.USAGE_ALARM; 24 import static android.os.VibrationAttributes.USAGE_COMMUNICATION_REQUEST; 25 import static android.os.VibrationAttributes.USAGE_HARDWARE_FEEDBACK; 26 import static android.os.VibrationAttributes.USAGE_MEDIA; 27 import static android.os.VibrationAttributes.USAGE_NOTIFICATION; 28 import static android.os.VibrationAttributes.USAGE_PHYSICAL_EMULATION; 29 import static android.os.VibrationAttributes.USAGE_RINGTONE; 30 import static android.os.VibrationAttributes.USAGE_TOUCH; 31 import static android.os.VibrationAttributes.USAGE_UNKNOWN; [all …]
|
D | HapticFeedbackVibrationProviderTest.java | 19 import static android.os.VibrationAttributes.CATEGORY_KEYBOARD; 20 import static android.os.VibrationAttributes.CATEGORY_UNKNOWN; 21 import static android.os.VibrationAttributes.FLAG_BYPASS_INTERRUPTION_POLICY; 22 import static android.os.VibrationAttributes.FLAG_BYPASS_USER_VIBRATION_INTENSITY_OFF; 23 import static android.os.VibrationAttributes.FLAG_BYPASS_USER_VIBRATION_INTENSITY_SCALE; 24 import static android.os.VibrationAttributes.USAGE_TOUCH; 50 import android.os.VibrationAttributes; 294 VibrationAttributes attrs = hapticProvider.getVibrationAttributesForHapticFeedback( in testVibrationAttribute_biometricConstants_returnsCommunicationRequestUsage() 296 assertThat(attrs.getUsage()).isEqualTo(VibrationAttributes.USAGE_COMMUNICATION_REQUEST); in testVibrationAttribute_biometricConstants_returnsCommunicationRequestUsage() 304 VibrationAttributes attrs = hapticProvider.getVibrationAttributesForHapticFeedback( in testVibrationAttribute_forNotBypassingIntensitySettings() [all …]
|
D | VibratorManagerServiceTest.java | 75 import android.os.VibrationAttributes; 142 private static final VibrationAttributes ALARM_ATTRS = 143 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_ALARM).build(); 144 private static final VibrationAttributes HAPTIC_FEEDBACK_ATTRS = 145 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_TOUCH).build(); 146 private static final VibrationAttributes NOTIFICATION_ATTRS = 147 new VibrationAttributes.Builder().setUsage( 148 VibrationAttributes.USAGE_NOTIFICATION).build(); 149 private static final VibrationAttributes RINGTONE_ATTRS = 150 new VibrationAttributes.Builder().setUsage( [all …]
|
D | VibratorControlServiceTest.java | 19 import static android.os.VibrationAttributes.USAGE_ALARM; 20 import static android.os.VibrationAttributes.USAGE_COMMUNICATION_REQUEST; 21 import static android.os.VibrationAttributes.USAGE_HARDWARE_FEEDBACK; 22 import static android.os.VibrationAttributes.USAGE_MEDIA; 23 import static android.os.VibrationAttributes.USAGE_NOTIFICATION; 24 import static android.os.VibrationAttributes.USAGE_RINGTONE; 25 import static android.os.VibrationAttributes.USAGE_TOUCH; 26 import static android.os.VibrationAttributes.USAGE_UNKNOWN;
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | VibratorTest.java | 216 VibrationAttributes attributes = new VibrationAttributes.Builder().setUsage( in vibrate_withVibrationAttributes_usesGivenAttributes() 217 VibrationAttributes.USAGE_TOUCH).build(); in vibrate_withVibrationAttributes_usesGivenAttributes() 232 ArgumentCaptor<VibrationAttributes> captor = ArgumentCaptor.forClass( in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage() 233 VibrationAttributes.class); in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage() 236 VibrationAttributes vibrationAttributes = captor.getValue(); in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage() 237 assertEquals(VibrationAttributes.USAGE_COMMUNICATION_REQUEST, in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage() 248 ArgumentCaptor<VibrationAttributes> captor = ArgumentCaptor.forClass( in vibrate_withoutAudioAttributes_passesOnDefaultAttributes() 249 VibrationAttributes.class); in vibrate_withoutAudioAttributes_passesOnDefaultAttributes() 252 VibrationAttributes vibrationAttributes = captor.getValue(); in vibrate_withoutAudioAttributes_passesOnDefaultAttributes() 253 assertEquals(new VibrationAttributes.Builder().build(), vibrationAttributes); in vibrate_withoutAudioAttributes_passesOnDefaultAttributes()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayerTest.kt | 18 import android.os.VibrationAttributes 61 verify(vibrator).vibrate(any<VibrationEffect>(), any<VibrationAttributes>()) in testUnfoldingTransitionFinishingEarly_playsHaptics() 76 verify(vibrator).vibrate(any<VibrationEffect>(), any<VibrationAttributes>()) in testHapticsDisabled_unfoldingTransitionFinishing_doesNotPlayHaptics() 87 verify(vibrator, never()).vibrate(any<VibrationEffect>(), any<VibrationAttributes>()) in testUnfoldingTransitionFinishingLate_doesNotPlayHaptics() 107 verify(vibrator, never()).vibrate(any<VibrationEffect>(), any<VibrationAttributes>()) in testFoldingAfterUnfolding_doesNotPlayHaptics() 135 verify(vibrator).vibrate(any<VibrationEffect>(), any<VibrationAttributes>()) in testUnfoldingAfterFoldingAndUnfolding_playsHaptics()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | VibratorHelperTest.kt | 5 import android.os.VibrationAttributes 52 any(VibrationAttributes::class.java)) in testVibrate() 59 mock(VibrationAttributes::class.java)) in testVibrate2() 62 any(VibrationAttributes::class.java)) in testVibrate2() 81 mock(VibrationAttributes::class.java) in testVibrate5() 85 any(VibrationAttributes::class.java) in testVibrate5()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/ |
D | EmptyVibrator.kt | 19 import android.os.VibrationAttributes 38 attributes: VibrationAttributes, in hasAmplitudeControl()
|
D | FakeVibratorHelper.kt | 21 import android.os.VibrationAttributes 43 override fun vibrate(effect: VibrationEffect, attributes: VibrationAttributes) = vibrate(effect) in vibrate() 52 attributes: VibrationAttributes, in vibrate()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | VibratorManagerServicePermissionTest.java | 32 import android.os.VibrationAttributes; 57 private static final VibrationAttributes ATTRS = new VibrationAttributes.Builder() 58 .setUsage(VibrationAttributes.USAGE_ALARM)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayer.kt | 4 import android.os.VibrationAttributes in <lambda>() 28 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_HARDWARE_FEEDBACK) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/ |
D | SliderHapticFeedbackProvider.kt | 19 import android.os.VibrationAttributes 198 VibrationAttributes.Builder() 199 .setUsage(VibrationAttributes.USAGE_TOUCH) 200 .setFlags(VibrationAttributes.FLAG_PIPELINED_EFFECT)
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | ShutdownThreadTest.java | 30 import android.os.VibrationAttributes; 168 .vibrate(any(VibrationEffect.class), any(VibrationAttributes.class)); in testNoVibrator() 175 eq(VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH))); in assertShutdownVibration()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | AcquisitionClient.java | 27 import android.os.VibrationAttributes; 45 private static final VibrationAttributes HARDWARE_FEEDBACK_VIBRATION_ATTRIBUTES = 46 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_HARDWARE_FEEDBACK);
|