Home
last modified time | relevance | path

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

1234

/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationVibrationHelper.java24 import android.os.Vibrator;
38 private final Vibrator mVibrator;
47 mVibrator = context.getSystemService(Vibrator.class); in FullScreenMagnificationVibrationHelper()
50 VibrationEffect.EFFECT_CLICK) == Vibrator.VIBRATION_EFFECT_SUPPORT_YES; in FullScreenMagnificationVibrationHelper()
/frameworks/base/core/java/android/os/
DSystemVibratorManager.java48 private final SparseArray<Vibrator> mVibrators = new SparseArray<>();
51 private final ArrayMap<Vibrator.OnVibratorStateChangedListener,
87 public Vibrator getVibrator(int vibratorId) { in getVibrator()
89 Vibrator vibrator = mVibrators.get(vibratorId); in getVibrator()
115 public Vibrator getDefaultVibrator() { in getDefaultVibrator()
116 return mContext.getSystemService(Vibrator.class); in getDefaultVibrator()
190 private final Vibrator.OnVibratorStateChangedListener mListener;
193 @NonNull Vibrator.OnVibratorStateChangedListener listener, in OnVibratorStateChangedListenerDelegate()
206 private final class SingleVibrator extends Vibrator {
DTEST_MAPPING5 "[^/]*(Vibrator|Vibration)[^/]*\\.java",
17 "[^/]*(Vibrator|Vibration)[^/]*\\.java",
29 "[^/]*(Vibrator|Vibration)[^/]*\\.java",
DVibratorManager.java70 public abstract Vibrator getVibrator(int vibratorId); in getVibrator()
76 public abstract Vibrator getDefaultVibrator(); in getDefaultVibrator()
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java63 private Vibrator mVibratorSpy;
116 Vibrator.OnVibratorStateChangedListener mockListener = in onVibratorStateChanged_noVibrator_registersNoListenerToVibratorManager()
117 mock(Vibrator.OnVibratorStateChangedListener.class); in onVibratorStateChanged_noVibrator_registersNoListenerToVibratorManager()
135 Vibrator.OnVibratorStateChangedListener mockListener = in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
136 mock(Vibrator.OnVibratorStateChangedListener.class); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
163 Vibrator.OnVibratorStateChangedListener mockListener = in onVibratorStateChanged_multipleVibrators_triggersOnlyWhenAllVibratorsInitialized()
164 mock(Vibrator.OnVibratorStateChangedListener.class); in onVibratorStateChanged_multipleVibrators_triggersOnlyWhenAllVibratorsInitialized()
188 Vibrator.OnVibratorStateChangedListener mockListener = in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
189 mock(Vibrator.OnVibratorStateChangedListener.class); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibratorManager.java25 import android.os.Vibrator;
49 private final SparseArray<Vibrator> mVibrators = new SparseArray<>();
106 public Vibrator getVibrator(int vibratorId) { in getVibrator()
117 public Vibrator getDefaultVibrator() { in getDefaultVibrator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java25 import android.os.Vibrator;
47 private final Vibrator mVibrator;
64 public VibratorHelper(@Nullable Vibrator vibrator) { in VibratorHelper()
72 public VibratorHelper(@Nullable Vibrator vibrator, Executor executor) { in VibratorHelper()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/
DEmptyVibrator.kt21 import android.os.Vibrator
24 class EmptyVibrator : Vibrator() {
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationScalerTest.java22 import static android.os.Vibrator.VIBRATION_INTENSITY_HIGH;
23 import static android.os.Vibrator.VIBRATION_INTENSITY_LOW;
24 import static android.os.Vibrator.VIBRATION_INTENSITY_MEDIUM;
25 import static android.os.Vibrator.VIBRATION_INTENSITY_OFF;
44 import android.os.Vibrator;
121 setDefaultIntensity(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_LOW); in testGetScaleLevel()
151 setDefaultIntensity(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_LOW); in testAdaptiveHapticsScale_withAdaptiveHapticsAvailable()
152 setDefaultIntensity(USAGE_RINGTONE, Vibrator.VIBRATION_INTENSITY_LOW); in testAdaptiveHapticsScale_withAdaptiveHapticsAvailable()
171 setDefaultIntensity(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_LOW); in testAdaptiveHapticsScale_flagDisabled_adaptiveHapticScaleAlwaysNone()
172 setDefaultIntensity(USAGE_RINGTONE, Vibrator.VIBRATION_INTENSITY_LOW); in testAdaptiveHapticsScale_flagDisabled_adaptiveHapticScaleAlwaysNone()
[all …]
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/persistence/
DParsedVibrationTest.java25 import android.os.Vibrator;
48 @Mock Vibrator mVibratorMock;
110 Vibrator vibrator, List<VibrationEffect> componentVibrations) { in assertThatResolution()
114 private Subject assertThatResolution(Vibrator vibrator, VibrationEffect vibration) { in assertThatResolution()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java25 import android.os.Vibrator;
98 if (currentIntensity == Vibrator.VIBRATION_INTENSITY_OFF) { in getScaleLevel()
261 if (currentIntensity == Vibrator.VIBRATION_INTENSITY_OFF) { in getEffectStrength()
272 case Vibrator.VIBRATION_INTENSITY_LOW: in intensityToEffectStrength()
274 case Vibrator.VIBRATION_INTENSITY_MEDIUM: in intensityToEffectStrength()
276 case Vibrator.VIBRATION_INTENSITY_HIGH: in intensityToEffectStrength()
DVibrationSettings.java55 import android.os.Vibrator;
56 import android.os.Vibrator.VibrationIntensity;
544 return getCurrentIntensity(usage) != Vibrator.VIBRATION_INTENSITY_OFF; in shouldVibrateForUserSetting()
607 mCurrentVibrationIntensities.put(USAGE_TOUCH, Vibrator.VIBRATION_INTENSITY_OFF); in updateSettings()
739 case Vibrator.VIBRATION_INTENSITY_OFF -> "OFF"; in intensityToString()
740 case Vibrator.VIBRATION_INTENSITY_LOW -> "LOW"; in intensityToString()
741 case Vibrator.VIBRATION_INTENSITY_MEDIUM -> "MEDIUM"; in intensityToString()
742 case Vibrator.VIBRATION_INTENSITY_HIGH -> "HIGH"; in intensityToString()
758 if (value == Vibrator.VIBRATION_INTENSITY_OFF) {
766 if ((value < Vibrator.VIBRATION_INTENSITY_OFF)
[all …]
/frameworks/layoutlib/bridge/src/android/os/
DNullVibratorManager.java34 public Vibrator getVibrator(int vibratorId) { in getVibrator()
39 public Vibrator getDefaultVibrator() { in getDefaultVibrator()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationVibrationHelperTest.java28 import android.os.Vibrator;
49 Vibrator mMockVibrator;
56 mContext.addMockSystemService(Vibrator.class, mMockVibrator); in setUp()
/frameworks/base/core/java/android/os/vibrator/
DVibrationConfig.java33 import android.os.Vibrator;
34 import android.os.Vibrator.VibrationIntensity;
109 int defaultIntensity = Vibrator.VIBRATION_INTENSITY_MEDIUM; in loadDefaultIntensity()
111 if (value < Vibrator.VIBRATION_INTENSITY_OFF || value > Vibrator.VIBRATION_INTENSITY_HIGH) { in loadDefaultIntensity()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DVibratorHelperTest.java26 import android.os.Vibrator;
48 @Mock private Vibrator mVibrator;
55 getContext().addMockSystemService(Vibrator.class, mVibrator); in setUp()
/frameworks/base/services/tests/vibrator/utils/android/os/test/
DFakeVibrator.java24 import android.os.Vibrator;
28 public final class FakeVibrator extends Vibrator {
/frameworks/base/core/java/android/os/vibrator/persistence/
DParsedVibration.java24 import android.os.Vibrator;
60 public VibrationEffect resolve(@NonNull Vibrator vibrator) { in resolve()
/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/
DMainActivity.kt23 import android.os.Vibrator in <lambda>()
45 val vibrator = getSystemService(Vibrator::class.java) in <lambda>()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DShutdownThreadTest.java32 import android.os.Vibrator;
87 @Mock private Vibrator mVibratorMock;
204 public Vibrator getVibrator(Context context) { in getVibrator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DVibratorHelperTest.kt7 import android.os.Vibrator
36 @Mock lateinit var vibrator: Vibrator
116 private fun verifyAsync(): Vibrator { in verifyAsync()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAcquisitionClient.java29 import android.os.Vibrator;
195 Vibrator vibrator = getContext().getSystemService(Vibrator.class); in vibrateSuccess()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldHapticsPlayer.kt6 import android.os.Vibrator in <lambda>()
23 private val vibrator: Vibrator? in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DVibratorPerfTest.java37 private Vibrator mVibrator;
42 mVibrator = context.getSystemService(Vibrator.class); in setUp()
/frameworks/base/services/core/java/com/android/server/notification/
DVibratorHelper.java30 import android.os.Vibrator;
48 private final Vibrator mVibrator;
56 mVibrator = context.getSystemService(Vibrator.class); in VibratorHelper()

1234