Home
last modified time | relevance | path

Searched refs:USAGE_TOUCH (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationScalerTest.java21 import static android.os.VibrationAttributes.USAGE_TOUCH;
121 setDefaultIntensity(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_LOW); in testGetScaleLevel()
124 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
128 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
132 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
134 setDefaultIntensity(USAGE_TOUCH, VIBRATION_INTENSITY_MEDIUM); in testGetScaleLevel()
136 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
138 setDefaultIntensity(USAGE_TOUCH, VIBRATION_INTENSITY_HIGH); in testGetScaleLevel()
140 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
145 mVibrationScaler.getScaleLevel(USAGE_TOUCH)); in testGetScaleLevel()
[all …]
DVibrationSettingsTest.java30 import static android.os.VibrationAttributes.USAGE_TOUCH;
122 USAGE_TOUCH,
514 if (usage == USAGE_TOUCH) { in shouldIgnoreVibration_withHapticFeedbackDisabled_ignoresTouchVibration()
529 if (usage == USAGE_TOUCH) { in shouldIgnoreVibration_withHapticFeedbackSettingsOff_ignoresTouchVibration()
613 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOff_shouldIgnoreKeyboardVibration()
619 assertVibrationNotIgnoredForUsage(USAGE_TOUCH); in shouldIgnoreVibration_withKeyboardSettingsOff_shouldIgnoreKeyboardVibration()
622 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOff_shouldIgnoreKeyboardVibration()
636 assertVibrationIgnoredForUsage(USAGE_TOUCH, Vibration.Status.IGNORED_FOR_SETTINGS); in shouldIgnoreVibration_withKeyboardSettingsOn_shouldNotIgnoreKeyboardVibration()
641 .setUsage(USAGE_TOUCH) in shouldIgnoreVibration_withKeyboardSettingsOn_shouldNotIgnoreKeyboardVibration()
654 assertVibrationIgnoredForUsage(USAGE_TOUCH, Vibration.Status.IGNORED_FOR_SETTINGS); in shouldIgnoreVibration_noFixedKeyboardAmplitude_ignoresKeyboardTouchVibration()
[all …]
DVibratorControlServiceTest.java25 import static android.os.VibrationAttributes.USAGE_TOUCH;
296 new int[]{USAGE_ALARM, USAGE_RINGTONE, USAGE_MEDIA, USAGE_TOUCH, USAGE_NOTIFICATION, in testShouldRequestVibrationParams_returnsTrueForVibrationsThatShouldRequestParams()
310 new int[]{USAGE_ALARM, USAGE_RINGTONE, USAGE_MEDIA, USAGE_TOUCH, USAGE_NOTIFICATION, in testShouldRequestVibrationParams_unregisteredVibratorController_returnsFalse()
DHapticFeedbackVibrationProviderTest.java24 import static android.os.VibrationAttributes.USAGE_TOUCH;
356 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOff_isIme_notUseKeyboardCategory()
371 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOn_notIme_notUseKeyboardCategory()
386 .that(attrs.getUsage()).isEqualTo(USAGE_TOUCH); in testVibrationAttribute_keyboardCategoryOn_isIme_useKeyboardCategory()
DVibratorManagerServiceTest.java145 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_TOUCH).build();
673 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH))); in vibrate_withoutVibratePermission_throwsSecurityException()
1530 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_TOUCH); in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations()
1590 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_TOUCH);
1608 .setUsage(VibrationAttributes.USAGE_TOUCH)
1626 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_TOUCH));
2416 assertEquals(VibrationAttributes.USAGE_TOUCH, touchMetrics.usage); in frameworkStats_interruptingVibrations_reportsAllMetrics()
2429 assertEquals(VibrationAttributes.USAGE_TOUCH, alarmMetrics.interruptedUsage); in frameworkStats_interruptingVibrations_reportsAllMetrics()
2455 assertEquals(VibrationAttributes.USAGE_TOUCH, touchMetrics.usage); in frameworkStats_ignoredVibration_reportsStatus()
2565 .setUsage(VibrationAttributes.USAGE_TOUCH) in assertCanVibrateWithBypassFlags()
/frameworks/base/core/java/android/os/
DVibrationAttributes.java57 USAGE_TOUCH,
119 public static final int USAGE_TOUCH = 0x10 | USAGE_CLASS_FEEDBACK; field in VibrationAttributes
351 case USAGE_TOUCH: in getAudioUsage()
444 case USAGE_TOUCH: in usageToString()
532 mUsage = USAGE_TOUCH; in setUsage()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java28 import static android.os.VibrationAttributes.USAGE_TOUCH;
131 USAGE_TOUCH,
537 if (usage == USAGE_TOUCH && category == CATEGORY_KEYBOARD) { in shouldVibrateForUserSetting()
565 int defaultHapticFeedbackIntensity = getDefaultIntensity(USAGE_TOUCH); in updateSettings()
607 mCurrentVibrationIntensities.put(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_OFF); in updateSettings()
609 mCurrentVibrationIntensities.put(USAGE_TOUCH, hapticFeedbackIntensity); in updateSettings()
709 getCurrentIntensity(USAGE_TOUCH)); in dump()
711 getDefaultIntensity(USAGE_TOUCH)); in dump()
DVibratorControlService.java27 import static android.os.VibrationAttributes.USAGE_TOUCH;
378 case USAGE_TOUCH, USAGE_HARDWARE_FEEDBACK, USAGE_ACCESSIBILITY, in mapToAdaptiveVibrationType()
410 usages.add(USAGE_TOUCH); in mapFromAdaptiveVibrationTypeToVibrationUsages()
DHapticFeedbackVibrationProvider.java42 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
DVibratorManagerService.java1087 usage = VibrationAttributes.USAGE_TOUCH; in getVibrationImportance()
1105 case VibrationAttributes.USAGE_TOUCH: in getVibrationImportance()
1292 usage = VibrationAttributes.USAGE_TOUCH; in fixupVibrationAttributes()
/frameworks/base/core/java/android/os/vibrator/
DVibrationConfig.java27 import static android.os.VibrationAttributes.USAGE_TOUCH;
223 case USAGE_TOUCH: in getDefaultVibrationIntensity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java49 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProvider.kt199 .setUsage(VibrationAttributes.USAGE_TOUCH)
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DShutdownThreadTest.java175 eq(VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH))); in assertShutdownVibration()
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java217 VibrationAttributes.USAGE_TOUCH).build(); in vibrate_withVibrationAttributes_usesGivenAttributes()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt152 VibrationAttributes.USAGE_TOUCH) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLegacyLockIconViewController.java107 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java754 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH)); in playShutdownVibration()
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java71 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java235 .setUsage(VibrationAttributes.USAGE_TOUCH)
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java733 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt34157 field public static final int USAGE_TOUCH = 18; // 0x12