/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/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/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...] |
/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...] |
/hardware/libhardware/modules/ |
Android.mk | 2 power usbaudio audio_remote_submix camera usbcamera consumerir sensors vibrator \
|
/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/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);
|
/hardware/libhardware/modules/vibrator/ |
Android.mk | 19 LOCAL_MODULE := vibrator.default 25 LOCAL_SRC_FILES := vibrator.c
|
vibrator.c | 17 #include <hardware/vibrator.h> 29 static const char THE_DEVICE[] = "/sys/class/timed_output/vibrator/enable"; 36 ALOGE("Vibrator file does not exist : %d", fd); 96 ALOGE("Vibrator device does not exist. Cannot start vibrator"); 103 ALOGE("Can not allocate memory for the vibrator device"); 121 /* Default vibrator HW module interface definition */ 133 .name = "Default vibrator HAL",
|
/build/target/board/generic_mips/ |
device.mk | 37 vibrator.goldfish
|
/build/target/board/generic_x86/ |
device.mk | 35 vibrator.goldfish
|
/build/target/board/generic_x86_64/ |
device.mk | 35 vibrator.goldfish
|
/device/generic/goldfish/vibrator/ |
vibrator_qemu.c | 25 #include <hardware/vibrator.h> 30 if (qemu_control_command("vibrator:%u", timeout_ms) < 0) { 60 ALOGE("No memory available to create Goldfish vibrator device!"); 78 /* Emulator vibrator module */ 90 .name = "Goldfish vibrator module",
|
Android.mk | 19 LOCAL_MODULE := vibrator.goldfish
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
TerminalManager.java | 32 import android.os.Vibrator; 74 private Vibrator vibrator; field in class:TerminalManager 90 vibrator = (Vibrator) mService.getSystemService(Context.VIBRATOR_SERVICE); 209 if (vibrator != null) { 210 vibrator.vibrate(VIBRATE_DURATION);
|
/frameworks/base/services/core/jni/ |
com_android_server_VibratorService.cpp | 25 #include <hardware/vibrator.h> 69 ALOGW("Tried to vibrate but there is no vibrator device."); 81 ALOGW("Tried to stop vibrating but there is no vibrator device.");
|
/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;
|
/build/target/product/ |
emulator.mk | 50 vibrator.goldfish \
|
generic_no_telephony.mk | 51 vibrator.default \
|
/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/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; 247 final Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 248 return vibrator != null && vibrator.hasVibrator();
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.h | 197 void vibrate(FILE* vibrator, int ms);
|
/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...] |