/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationVibrationHelper.java | 24 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/ |
D | SystemVibratorManager.java | 48 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 {
|
D | TEST_MAPPING | 5 "[^/]*(Vibrator|Vibration)[^/]*\\.java", 17 "[^/]*(Vibrator|Vibration)[^/]*\\.java", 29 "[^/]*(Vibrator|Vibration)[^/]*\\.java",
|
D | VibratorManager.java | 70 public abstract Vibrator getVibrator(int vibratorId); in getVibrator() 76 public abstract Vibrator getDefaultVibrator(); in getDefaultVibrator()
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | VibratorTest.java | 63 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/ |
D | InputDeviceVibratorManager.java | 25 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/ |
D | VibratorHelper.java | 25 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/ |
D | EmptyVibrator.kt | 21 import android.os.Vibrator 24 class EmptyVibrator : Vibrator() {
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationScalerTest.java | 22 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/ |
D | ParsedVibrationTest.java | 25 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/ |
D | VibrationScaler.java | 25 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()
|
D | VibrationSettings.java | 55 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/ |
D | NullVibratorManager.java | 34 public Vibrator getVibrator(int vibratorId) { in getVibrator() 39 public Vibrator getDefaultVibrator() { in getDefaultVibrator()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationVibrationHelperTest.java | 28 import android.os.Vibrator; 49 Vibrator mMockVibrator; 56 mContext.addMockSystemService(Vibrator.class, mMockVibrator); in setUp()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | VibrationConfig.java | 33 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/ |
D | VibratorHelperTest.java | 26 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/ |
D | FakeVibrator.java | 24 import android.os.Vibrator; 28 public final class FakeVibrator extends Vibrator {
|
/frameworks/base/core/java/android/os/vibrator/persistence/ |
D | ParsedVibration.java | 24 import android.os.Vibrator; 60 public VibrationEffect resolve(@NonNull Vibrator vibrator) { in resolve()
|
/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/ |
D | MainActivity.kt | 23 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/ |
D | ShutdownThreadTest.java | 32 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/ |
D | VibratorHelperTest.kt | 7 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/ |
D | AcquisitionClient.java | 29 import android.os.Vibrator; 195 Vibrator vibrator = getContext().getSystemService(Vibrator.class); in vibrateSuccess()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayer.kt | 6 import android.os.Vibrator in <lambda>() 23 private val vibrator: Vibrator? in <lambda>()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | VibratorPerfTest.java | 37 private Vibrator mVibrator; 42 mVibrator = context.getSystemService(Vibrator.class); in setUp()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | VibratorHelper.java | 30 import android.os.Vibrator; 48 private final Vibrator mVibrator; 56 mVibrator = context.getSystemService(Vibrator.class); in VibratorHelper()
|