/external/replicaisland/src/com/replica/replicaisland/ |
VibrationSystem.java | 18 import android.os.Vibrator; 21 /** A system for accessing the Android vibrator. Note that this system requires the app's 22 * AndroidManifest.xml to contain permissions for the Vibrator service. 37 Vibrator vibrator = (Vibrator)params.context.getSystemService(Context.VIBRATOR_SERVICE); local 38 if (vibrator != null) { 39 vibrator.vibrate((int)(seconds * 1000));
|
/external/robolectric/v1/src/main/java/android/os/ |
TestVibrator.java | 3 public class TestVibrator extends Vibrator {
|
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
MorseCode.java | 25 import android.os.Vibrator; 31 * <h3>App that vibrates the vibrator with the Morse Code for a string.</h3> 33 <p>This demonstrates the {@link android.os.Vibrator android.os.Vibrator} class. 36 OS / Morse Code Vibrator 42 * <td >The Morse Code Vibrator</td> 85 // android.os.Vibrator for more info about the format of this array 89 Vibrator vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE) [all...] |
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/ |
Utils.java | 21 import android.os.Vibrator; 40 Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/frameworks/base/core/java/android/os/ |
Vibrator.java | 24 * Class that operates the vibrator on the device. 29 * To obtain an instance of the system vibrator, call 32 public abstract class Vibrator { 39 public Vibrator() { 46 protected Vibrator(Context context) { 51 * Check whether the hardware has a vibrator. 53 * @return True if the hardware has a vibrator, else false. 88 * the vibrator in milliseconds. The first value indicates the number of milliseconds 89 * to wait before turning the vibrator on. The next value indicates the number of milliseconds 90 * for which to keep the vibrator on before turning it off. Subsequent values alternat [all...] |
NullVibrator.java | 22 * Vibrator implementation that does nothing. 26 public class NullVibrator extends Vibrator {
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowVibrator.java | 3 import android.os.Vibrator; 8 @Implements(Vibrator.class)
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintUtils.java | 21 import android.os.Vibrator; 76 Vibrator vibrator = context.getSystemService(Vibrator.class); local 77 if (vibrator != null) { 78 vibrator.vibrate(FP_ERROR_VIBRATE_PATTERN, -1); 83 Vibrator vibrator = context.getSystemService(Vibrator.class); local 84 if (vibrator != null) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmKlaxon.java | 23 import android.os.Vibrator; 47 ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).cancel(); 61 final Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 63 vibrateLOrLater(vibrator); 65 vibrator.vibrate(sVibratePattern, 0); 73 private static void vibrateLOrLater(Vibrator vibrator) { 74 vibrator.vibrate(sVibratePattern, 0, new AudioAttributes.Builder( [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
VibratorTest.java | 20 import android.os.Vibrator; 26 private Vibrator mVibrator; 31 mVibrator = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); 79 // This test only get two threads to run vibrator at the same time
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
VibratorTest.java | 14 import android.os.Vibrator; 20 private Vibrator vibrator; field in class:VibratorTest 25 vibrator = (Vibrator) new Activity().getSystemService(Context.VIBRATOR_SERVICE); 26 shadowVibrator = shadowOf(vibrator); 31 vibrator.vibrate(5000); 40 vibrator.vibrate(pattern, 2); 49 vibrator.vibrate(5000); 52 vibrator.cancel() [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
HapticFeedbackController.java | 8 import android.os.Vibrator; 26 private Vibrator mVibrator; 44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 26 import android.os.Vibrator; 116 * Verify that Vibrator's vibrating related methods requires permissions. 122 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); local 125 vibrator.cancel(); 126 fail("Vibrator.cancel() did not throw SecurityException as expected."); 132 vibrator.vibrate(1); 133 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); 141 vibrator.vibrate(testPattern, 1) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
AudioAndHapticFeedbackManager.java | 21 import android.os.Vibrator; 36 private Vibrator mVibrator; 58 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
PseudoEmergencyAnimator.java | 29 import android.os.Vibrator; 153 Vibrator vibrator = local 154 (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); 155 if (vibrator != null) { 156 vibrator.vibrate(milliseconds);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
EmergencyTonePlayer.java | 24 import android.os.Vibrator; 49 // We don't rely on getSystemService(Context.VIBRATOR_SERVICE) to make sure that this vibrator 51 private final Vibrator mVibrator = new SystemVibrator();
|
/packages/apps/Camera2/src/com/android/camera/util/ |
AndroidServices.java | 32 import android.os.Vibrator; 125 public Vibrator provideVibrator() { 126 return (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Nfc/src/com/android/nfc/ |
P2pEventManager.java | 24 import android.os.Vibrator; 38 final Vibrator mVibrator; 52 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
|
/packages/apps/Stk/src/com/android/stk/ |
ToneDialog.java | 24 import android.os.Vibrator; 62 Vibrator mVibrator; 72 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
Ringer.java | 26 import android.os.Vibrator; 58 private final Vibrator mVibrator; 83 Vibrator vibrator, 90 // vibrator object will be isolated from others. 91 mVibrator = vibrator;
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
TestActivity.java | 26 import android.os.Vibrator;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/ |
BaseGnssTestActivity.java | 33 import android.os.Vibrator; 311 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 312 vibrator.vibrate(timeInMs); 317 * See {@link Vibrator#vibrate(long[], int)} for more information. 320 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 321 vibrator.vibrate(pattern, -1) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
AlarmTimeAdapter.java | 22 import android.os.Vibrator; 61 mHasVibrator = ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE))
|