Home
last modified time | relevance | path

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

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DHapticsDeviceInfo.java25 import android.os.vibrator.VibratorFrequencyProfile;
72 private void collectVibratorInfo(DeviceInfoStore store, String groupName, Vibrator vibrator) in collectVibratorInfo() argument
74 Objects.requireNonNull(vibrator); in collectVibratorInfo()
81 store.addResult("has_vibrator", vibrator.hasVibrator()); in collectVibratorInfo()
85 store.addResult("has_amplitude_control", vibrator.hasAmplitudeControl()); in collectVibratorInfo()
89 collectEffectsSupport(store, vibrator); in collectVibratorInfo()
90 collectPrimitivesSupport(store, vibrator); in collectVibratorInfo()
94 store.addResult("vibrator_id", vibrator.getId()); in collectVibratorInfo()
97 store.addResult("has_frequency_control", vibrator.hasFrequencyControl()); in collectVibratorInfo()
98 store.addResult("q_factor", vibrator.getQFactor()); in collectVibratorInfo()
[all …]
/cts/tests/vibrator/src/android/os/cts/
DVibratorManagerTest.java39 import android.os.vibrator.VibratorFrequencyProfile;
136 Vibrator vibrator = mVibratorManager.getVibrator(missingId); in testGetNonExistentVibratorId() local
137 assertThat(vibrator).isNotNull(); in testGetNonExistentVibratorId()
138 assertThat(vibrator.hasVibrator()).isFalse(); in testGetNonExistentVibratorId()
268 Vibrator vibrator = mVibratorManager.getVibrator(vibratorId); in testCombinedVibrationTargetingSingleVibrator() local
285 vibrator.cancel(); in testCombinedVibrationTargetingSingleVibrator()
DVibrationEffectXmlSerializationTest.java33 import android.os.vibrator.Flags;
34 import android.os.vibrator.persistence.ParsedVibration;
35 import android.os.vibrator.persistence.VibrationXmlParser;
36 import android.os.vibrator.persistence.VibrationXmlSerializer;
DVibrationEffectTest.java32 import android.os.vibrator.PrebakedSegment;
33 import android.os.vibrator.PrimitiveSegment;
34 import android.os.vibrator.RampSegment;
35 import android.os.vibrator.StepSegment;
36 import android.os.vibrator.VibrationEffectSegment;
DVibratorTest.java44 import android.os.vibrator.VibratorFrequencyProfile;
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java268 final Vibrator vibrator = getVibrator(); in testInputVibratorEvents() local
269 assertNotNull(vibrator); in testInputVibratorEvents()
270 vibrator.addVibratorStateListener(mListener); in testInputVibratorEvents()
275 vibrator.vibrate(effect); in testInputVibratorEvents()
279 assertTrue(vibrator.isVibrating()); in testInputVibratorEvents()
314 assertFalse(vibrator.isVibrating()); in testInputVibratorEvents()
315 vibrator.removeVibratorStateListener(mListener); in testInputVibratorEvents()
345 final Vibrator vibrator = getVibrator(); in testInputVibratorManagerEvents() local
346 assertNotNull(vibrator); in testInputVibratorManagerEvents()
348 vibrator.vibrate(effect); in testInputVibratorManagerEvents()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/vibrator/
DOWNERS1 include platform/frameworks/base:/services/core/java/com/android/server/vibrator/OWNERS
DVibratorStatsTests.java16 package android.cts.statsdatom.vibrator;
/cts/tests/vibrator/
DOWNERS2 include platform/frameworks/base:/services/core/java/com/android/server/vibrator/OWNERS
DAndroid.bp25 "android.os.vibrator.flags-aconfig-java",
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vibrations/
DOWNERS2 include platform/frameworks/base:/services/core/java/com/android/server/vibrator/OWNERS
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java96 Vibrator vibrator = inputDevice.getVibrator(); in getVibrator() local
97 if (vibrator.hasVibrator() && inputDevice.getVendorId() == vid in getVibrator()
101 return vibrator; in getVibrator()
DInputDeviceVibratorManagerTest.java223 final Vibrator vibrator = mVibratorManager.getVibrator(ids[i]); in testGetVibrators() local
224 assertNotNull(vibrator); in testGetVibrators()
225 assertTrue(vibrator.hasVibrator()); in testGetVibrators()
/cts/hostsidetests/statsdatom/
DOWNERS12 …orTests.java = file:platform/frameworks/base:/services/core/java/com/android/server/vibrator/OWNERS
DAndroid.bp60 "src/**/vibrator/*.java",
/cts/tests/tests/os/
DOWNERS5 per-file *Vibrat* = file:platform/frameworks/base:/services/core/java/com/android/server/vibrator/O…
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java442 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); in vibrate() local
443 vibrator.vibrate(timeInMs); in vibrate()
451 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); in vibrate() local
452 vibrator.vibrate(pattern, -1); in vibrate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSignificantMotionTestActivity.java114 … Vibrator vibrator = (Vibrator) getApplicationContext().getSystemService(Context.VIBRATOR_SERVICE); in testVibratorDoesNotTrigger() local
115 if (!vibrator.hasVibrator()) { in testVibratorDoesNotTrigger()
/cts/tests/tests/media/audio/
DOWNERS26 …ngtone*.java = file:platform/frameworks/base:/services/core/java/com/android/server/vibrator/OWNERS
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java97 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in onCreate() local
98 mHasVibrator = (vibrator != null) && vibrator.hasVibrator(); in onCreate()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioFocusTest.java149 Vibrator vibrator = mContext.getSystemService(Vibrator.class); in setUp() local
150 mHasVibration = (vibrator != null) && vibrator.hasVibrator(); in setUp()
DAudioManagerTest.java230 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in setUp() local
233 mHasVibrator = (vibrator != null) && vibrator.hasVibrator(); in setUp()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1361 final Vibrator vibrator = (Vibrator) InstrumentationRegistry.getContext() in testVibratePermission() local
1365 vibrator.vibrate(effect); in testVibratePermission()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt2525 method @NonNull public java.util.List<android.os.vibrator.VibrationEffectSegment> getSegments();
2553 method @Nullable public android.os.vibrator.VibratorFrequencyProfile getFrequencyProfile();
2684 package android.os.vibrator {
2686 public final class PrebakedSegment extends android.os.vibrator.VibrationEffectSegment {
2693 …field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.PrebakedSegme…
2696 public final class PrimitiveSegment extends android.os.vibrator.VibrationEffectSegment {
2703 …field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.PrimitiveSegm…
2706 public final class RampSegment extends android.os.vibrator.VibrationEffectSegment {
2714 …field @NonNull public static final android.os.Parcelable.Creator<android.os.vibrator.RampSegment> …
2717 public final class StepSegment extends android.os.vibrator.VibrationEffectSegment {
[all …]
Dcurrent.txt10794 field @Deprecated public static final String VIBRATOR_SERVICE = "vibrator";