/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | VibrationSettings.java | 62 final boolean hasVibrator = context.getSystemService(Vibrator.class).hasVibrator(); in isPageSearchEnabled() 63 return hasVibrator && supportedIntensityLevels == 1; in isPageSearchEnabled()
|
D | VibrationIntensitySettingsFragment.java | 66 final boolean hasVibrator = context.getSystemService(Vibrator.class).hasVibrator(); in isPageSearchEnabled() 67 return hasVibrator && supportedIntensityLevels > 1; in isPageSearchEnabled()
|
D | VibrationPreferenceController.java | 40 mHasVibrator = context.getSystemService(Vibrator.class).hasVibrator(); in VibrationPreferenceController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | VibrationPreferenceControllerTest.java | 69 when(mVibrator.hasVibrator()).thenReturn(true); in setUp() 80 when(mVibrator.hasVibrator()).thenReturn(false); in getAvailabilityStatus_noVibrator_returnUnsupportedOnDevice() 88 when(mVibrator.hasVibrator()).thenReturn(true); in getAvailabilityStatus_withVibrator_returnAvailable()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | AudioAndHapticFeedbackManager.java | 67 public boolean hasVibrator() { in hasVibrator() method in AudioAndHapticFeedbackManager 68 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | NoSystemFunctionPermissionTest.java | 128 if (!vibrator.hasVibrator()) { in testVibrator() 133 if (!vibrator.hasVibrator()) { in testVibrator()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastSearchIndexableProviderTest.java | 79 doReturn(true).when(mVibrator).hasVibrator(); in testQueryNonIndexableKeys() 96 doReturn(false).when(mVibrator).hasVibrator(); in testQueryNonIndexableKeys()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceControllerTest.java | 82 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(true); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable() 92 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(false); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 109 val hasVibrator: Boolean = (it.getContext() in onCreatePreferences() constant 110 .getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in onCreatePreferences() 111 it.setVisible(hasVibrator) in onCreatePreferences()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 212 final boolean hasVibrator = AudioAndHapticFeedbackManager.getInstance().hasVibrator(); in readVibrationEnabled() 213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled()
|
D | PreferencesSettingsFragment.java | 64 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
|
D | AdvancedSettingsFragment.java | 63 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
|
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | Checkers.java | 37 assertThat(v.hasVibrator()).isTrue(); in checkVibratorSupported()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | VibrateIconPreferenceController.java | 36 mHasVibrator = context.getSystemService(Vibrator.class).hasVibrator(); in VibrateIconPreferenceController()
|
D | RingerModeAffectedVolumePreferenceController.java | 55 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingerModeAffectedVolumePreferenceController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | VibrationPreferenceControllerTest.java | 90 when(mVibrator.hasVibrator()).thenReturn(true); in setUp() 102 when(mVibrator.hasVibrator()).thenReturn(false); in testIsAvailable_notSystemDoesNotHave()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | VibrationPreferenceController.java | 54 && mVibrator.hasVibrator(); in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceController.java | 74 if (device != null && !device.isVirtual() && device.getVibrator().hasVibrator()) { in getAvailabilityStatus()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 440 mVibrator.hasVibrator(), in startRinging() 545 mVibrator.hasVibrator(), mSystemSettingsUtil.isRingVibrationEnabled(mContext), in vibrateIfNeeded() 695 return mVibrator.hasVibrator() in isVibratorEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RingVolumePreferenceControllerTest.java | 158 when(mVibrator.hasVibrator()).thenReturn(true); in setRingerModeToVibrate_VibratorAvailable_iconIsVibrate()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | VibratorWrapper.java | 87 mHasVibrator = mVibrator.hasVibrator(); in VibratorWrapper()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.kt | 91 if (v.hasVibrator()) { in setAlarmVibrationEnabled()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.kt | 79 if (vibrator == null || !vibrator.hasVibrator()) { in onCreate()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | RingerTest.java | 813 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationWhenRinging() 818 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationOnlyWhenNotRinging()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.kt | 489 (context.getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in <lambda>()
|