Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationScalerTest.java21 import static android.os.VibrationAttributes.USAGE_TOUCH;
124 mVibrationScaler.getExternalVibrationScale(USAGE_TOUCH)); in testGetExternalVibrationScale()
128 mVibrationScaler.getExternalVibrationScale(USAGE_TOUCH)); in testGetExternalVibrationScale()
132 mVibrationScaler.getExternalVibrationScale(USAGE_TOUCH)); in testGetExternalVibrationScale()
134 setDefaultIntensity(USAGE_TOUCH, VIBRATION_INTENSITY_MEDIUM); in testGetExternalVibrationScale()
136 mVibrationScaler.getExternalVibrationScale(USAGE_TOUCH)); in testGetExternalVibrationScale()
138 setDefaultIntensity(USAGE_TOUCH, VIBRATION_INTENSITY_HIGH); in testGetExternalVibrationScale()
140 mVibrationScaler.getExternalVibrationScale(USAGE_TOUCH)); in testGetExternalVibrationScale()
222 setDefaultIntensity(USAGE_TOUCH, VIBRATION_INTENSITY_MEDIUM); in scale_withOneShotAndWaveform_scalesAmplitude()
237 USAGE_TOUCH)); in scale_withOneShotAndWaveform_scalesAmplitude()
[all …]
H A DVibrationSettingsTest.java27 import static android.os.VibrationAttributes.USAGE_TOUCH;
117 USAGE_TOUCH,
403 if (usage == USAGE_TOUCH) { in shouldIgnoreVibration_withHapticFeedbackDisabled_ignoresTouchVibration()
418 if (usage == USAGE_TOUCH) { in shouldIgnoreVibration_withHapticFeedbackSettingsOff_ignoresTouchVibration()
626 USAGE_TOUCH, in shouldCancelVibrationOnScreenOff_withUidZero_returnsFalseForUsagesInAllowlist()
649 USAGE_TOUCH, in shouldCancelVibrationOnScreenOff_withSystemUid__returnsFalseForUsagesInAllowlist()
672 USAGE_TOUCH, in shouldCancelVibrationOnScreenOff_withSysUiPkg_returnsFalseForUsagesInAllowlist()
743 assertEquals(VIBRATION_INTENSITY_OFF, mVibrationSettings.getCurrentIntensity(USAGE_TOUCH)); in getCurrentIntensity_noHardwareFeedbackValueUsesHapticFeedbackValue()
752 mVibrationSettings.getCurrentIntensity(USAGE_TOUCH)); in getCurrentIntensity_noHardwareFeedbackValueUsesHapticFeedbackValue()
H A DVibratorManagerServiceTest.java142 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_TOUCH).build();
1294 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_TOUCH); in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations()
2048 assertEquals(VibrationAttributes.USAGE_TOUCH, touchMetrics.usage); in frameworkStats_interruptingVibrations_reportsAllMetrics()
2061 assertEquals(VibrationAttributes.USAGE_TOUCH, alarmMetrics.interruptedUsage); in frameworkStats_interruptingVibrations_reportsAllMetrics()
2087 assertEquals(VibrationAttributes.USAGE_TOUCH, touchMetrics.usage); in frameworkStats_ignoredVibration_reportsStatus()
/aosp14/frameworks/base/core/java/android/os/
H A DVibrationAttributes.java56 USAGE_TOUCH,
118 public static final int USAGE_TOUCH = 0x10 | USAGE_CLASS_FEEDBACK; field in VibrationAttributes
278 case USAGE_TOUCH: in getAudioUsage()
367 case USAGE_TOUCH: in usageToString()
435 mUsage = USAGE_TOUCH; in setUsage()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationSettings.java27 import static android.os.VibrationAttributes.USAGE_TOUCH;
126 USAGE_TOUCH,
487 int defaultHapticFeedbackIntensity = getDefaultIntensity(USAGE_TOUCH); in updateSettings()
527 mCurrentVibrationIntensities.put(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_OFF); in updateSettings()
529 mCurrentVibrationIntensities.put(USAGE_TOUCH, hapticFeedbackIntensity); in updateSettings()
585 getCurrentIntensity(USAGE_TOUCH)); in dumpProto()
587 getDefaultIntensity(USAGE_TOUCH)); in dumpProto()
H A DVibratorManagerService.java931 usage = VibrationAttributes.USAGE_TOUCH; in getVibrationImportance()
949 case VibrationAttributes.USAGE_TOUCH: in getVibrationImportance()
1136 usage = VibrationAttributes.USAGE_TOUCH; in fixupVibrationAttributes()
2165 .setUsage(VibrationAttributes.USAGE_TOUCH) in createVibrationAttributes()
/aosp14/frameworks/base/core/java/android/os/vibrator/
H A DVibrationConfig.java27 import static android.os.VibrationAttributes.USAGE_TOUCH;
149 case USAGE_TOUCH: in getDefaultVibrationIntensity()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DVibratorHelper.java49 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
H A DMagnetizedObject.kt148 VibrationAttributes.USAGE_TOUCH)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DLockIconViewController.java99 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java71 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DVibratorTest.java550 VibrationAttributes.USAGE_TOUCH).build(); in vibrate_withVibrationAttributes_usesGivenAttributes()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DUdfpsController.java232 .setUsage(VibrationAttributes.USAGE_TOUCH)
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java360 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java651 VibrationAttributes.createForUsage(VibrationAttributes.USAGE_TOUCH);
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt34019 field public static final int USAGE_TOUCH = 18; // 0x12