Searched refs:USAGE_TOUCH (Results 1 – 23 of 23) sorted by relevance
21 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 …]
30 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 …]
25 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()
24 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()
145 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()
57 USAGE_TOUCH,119 public static final int USAGE_TOUCH = 0x10 | USAGE_CLASS_FEEDBACK; field in VibrationAttributes351 case USAGE_TOUCH: in getAudioUsage()444 case USAGE_TOUCH: in usageToString()532 mUsage = USAGE_TOUCH; in setUsage()
28 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()
27 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()
42 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
1087 usage = VibrationAttributes.USAGE_TOUCH; in getVibrationImportance()1105 case VibrationAttributes.USAGE_TOUCH: in getVibrationImportance()1292 usage = VibrationAttributes.USAGE_TOUCH; in fixupVibrationAttributes()
27 import static android.os.VibrationAttributes.USAGE_TOUCH;223 case USAGE_TOUCH: in getDefaultVibrationIntensity()
49 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
199 .setUsage(VibrationAttributes.USAGE_TOUCH)
175 eq(VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH))); in assertShutdownVibration()
217 VibrationAttributes.USAGE_TOUCH).build(); in vibrate_withVibrationAttributes_usesGivenAttributes()
152 VibrationAttributes.USAGE_TOUCH) in <lambda>()
107 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
754 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH)); in playShutdownVibration()
71 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
235 .setUsage(VibrationAttributes.USAGE_TOUCH)
733 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
34157 field public static final int USAGE_TOUCH = 18; // 0x12