/frameworks/base/core/java/android/os/ |
SystemVibrator.java | 24 * Vibrator implementation that controls the main system vibrator. 28 public class SystemVibrator extends Vibrator { 29 private static final String TAG = "Vibrator"; 36 ServiceManager.getService("vibrator")); 42 ServiceManager.getService("vibrator")); 48 Log.w(TAG, "Failed to vibrate; no vibrator service."); 64 Log.w(TAG, "Failed to vibrate; no vibrator service."); 81 Log.w(TAG, "Failed to vibrate; no vibrator service.");
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
SettingsUtil.java | 27 import android.os.Vibrator;
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
TerminalManager.java | 32 import android.os.Vibrator; 76 private Vibrator vibrator; field in class:TerminalManager 92 vibrator = (Vibrator) mService.getSystemService(Context.VIBRATOR_SERVICE); 211 if (vibrator != null) { 212 vibrator.vibrate(VIBRATE_DURATION);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmTimeClickHandler.java | 26 import android.os.Vibrator; 95 // Buzz the vibrator to preview the alarm firing behavior. 97 final Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Dialer/src/com/android/dialer/settings/ |
SoundSettingsFragment.java | 25 import android.os.Vibrator; 232 * Whether the device hardware has a vibrator. 235 Vibrator vibrator = (Vibrator) getActivity().getSystemService(Context.VIBRATOR_SERVICE); local 236 return vibrator != null && vibrator.hasVibrator();
|
/packages/apps/Settings/src/com/android/settings/notification/ |
OtherSoundSettings.java | 29 import android.os.Vibrator; 243 final Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 244 return vibrator != null && vibrator.hasVibrator();
|
SoundSettings.java | 42 import android.os.Vibrator; 109 private Vibrator mVibrator; 138 mVibrator = (Vibrator) getActivity().getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 33 import android.os.Vibrator; 102 private Vibrator mVibrator; 251 mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); 490 // Stop vibrator
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
BaseSensorTestActivity.java | 35 import android.os.Vibrator; 410 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 411 vibrator.vibrate(timeInMs); 416 * See {@link Vibrator#vibrate(long[], int)} for more information. 419 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 420 vibrator.vibrate(pattern, -1) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
ClockBackService.java | 31 import android.os.Vibrator; 217 /** Vibrator for providing haptic feedback. */ 218 private Vibrator mVibrator; 328 // Get the vibrator service. 329 mVibrator = (Vibrator) getSystemService(Service.VIBRATOR_SERVICE);
|
/frameworks/base/core/java/android/view/ |
InputDevice.java | 24 import android.os.Vibrator; 63 private Vibrator mVibrator; // guarded by mMotionRanges during initialization 736 * Gets the vibrator service associated with the device, if there is one. 737 * Even if the device does not have a vibrator, the result is never null. 738 * Use {@link Vibrator#hasVibrator} to determine whether a vibrator is 741 * Note that the vibrator associated with the device may be different from 742 * the system vibrator. To obtain an instance of the system vibrator instead, call 745 * @return The vibrator service associated with the device, never null [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeService.java | 35 import android.os.Vibrator; 442 final Vibrator v = (Vibrator) mContext.getSystemService(
|
/packages/apps/Calendar/src/com/android/calendar/ |
GeneralPreferences.java | 31 import android.os.Vibrator; 161 Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); local 162 if (vibrator == null || !vibrator.hasVibrator()) {
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
TextCandidates1LineViewManager.java | 27 import android.os.Vibrator; 105 /** Vibrator for touch vibration */ 106 private Vibrator mVibrator = null; 521 mVibrator = (Vibrator)mWnn.getSystemService(Context.VIBRATOR_SERVICE); 531 Log.d("OpenWnn", "NO VIBRATOR"); 551 Log.e("OpenWnn", "TextCandidates1LineViewManager::selectCandidate Vibrator " + ex.toString());
|
DefaultSoftKeyboard.java | 28 import android.os.Vibrator; 295 protected Vibrator mVibrator = null; 741 /* vibrator */ 744 mVibrator = (Vibrator)mWnn.getSystemService(Context.VIBRATOR_SERVICE); 749 Log.d("OpenWnn", "NO VIBRATOR"); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameView.java | 26 import android.os.Vibrator; 40 * If the game controller has a vibrator, then it is used to provide feedback 42 * system vibrator is used for that purpose. 336 private Vibrator getVibrator() { 338 Vibrator vibrator = mLastInputDevice.getVibrator(); 339 if (vibrator.hasVibrator()) { 340 return vibrator; 343 return (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE);
|
/frameworks/base/services/core/java/com/android/server/ |
VibratorService.java | 40 import android.os.Vibrator; 83 private final ArrayList<Vibrator> mInputDeviceVibrators = new ArrayList<Vibrator>(); 208 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*"); 572 Vibrator vibrator = device.getVibrator(); local 573 if (vibrator.hasVibrator()) { 574 mInputDeviceVibrators.add(vibrator); 601 // when reporting whether the device has a vibrator. Applications often use this 604 // the device has a built-in vibrator [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
ProjectionOffscreenActivity.java | 38 import android.os.Vibrator; 93 ((Vibrator) getSystemService(VIBRATOR_SERVICE)).vibrate(1000);
|
/frameworks/base/core/java/android/hardware/input/ |
InputManager.java | 35 import android.os.Vibrator; [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
RotarySelector.java | 29 import android.os.Vibrator; 117 private Vibrator mVibrator; 684 mVibrator = (android.os.Vibrator) getContext()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
DragController.java | 27 import android.os.Vibrator; 69 private final Vibrator mVibrator; 154 mVibrator = (Vibrator) launcher.getSystemService(Context.VIBRATOR_SERVICE);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
BuzzBeepBlinkTest.java | 28 import android.os.Vibrator; 51 @Mock Vibrator mVibrator;
|
/development/samples/ControllerSample/src/com/example/controllersample/ |
GameView.java | 31 import android.os.Vibrator; 47 * the game controller has a vibrator, then it is used to provide feedback when 49 * vibrator is used for that purpose. 783 * Gets the vibrator from the controller if it is present. Note that it 784 * would be easy to get the system vibrator here if the controller one 787 * @return the Vibrator for the controller, or null if it is not 791 private final Vibrator getVibrator() { 800 Vibrator vibrator = getVibrator(); local 801 if (null != vibrator) { 807 Vibrator vibrator = getVibrator(); local [all...] |
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidInput.java | 33 import android.os.Vibrator;
130 protected final Vibrator vibrator;
field in class:AndroidInput 172 vibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
605 vibrator.vibrate(milliseconds);
610 vibrator.vibrate(pattern, repeat);
615 vibrator.cancel();
757 if (peripheral == Peripheral.Vibrator)
758 return (Build.VERSION.SDK_INT >= 11 && vibrator != null) ? vibrator.hasVibrator() : vibrator != null; [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/ |
Input.java | 561 HardwareKeyboard, OnscreenKeyboard, MultitouchScreen, Accelerometer, Compass, Vibrator, Gyroscope
670 /** Vibrate with a given pattern. Pass in an array of ints that are the times at which to turn on or off the vibrator. The first
673 * @param pattern an array of longs of times to turn the vibrator on or off.
677 /** Stops the vibrator */
|