/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/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...] |
/hardware/libhardware/modules/ |
Android.mk | 2 power usbaudio audio_remote_submix camera consumerir sensors vibrator \
|
/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...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 25 import android.os.Vibrator; 111 * Verify that Vibrator's vibrating related methods requires permissions. 117 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); local 120 vibrator.cancel(); 121 fail("Vibrator.cancel() did not throw SecurityException as expected."); 127 vibrator.vibrate(1); 128 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); 136 vibrator.vibrate(testPattern, 1) [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_VibratorService.cpp | 25 #include <hardware_legacy/vibrator.h>
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
SettingsUtil.java | 26 import android.os.Vibrator; 46 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 47 if (vibrator == null || !vibrator.hasVibrator()) {
|
/hardware/libhardware/modules/vibrator/ |
Android.mk | 19 LOCAL_MODULE := vibrator.default 25 LOCAL_SRC_FILES := vibrator.c
|
vibrator.c | 17 #include <hardware/vibrator.h> 28 static const char THE_DEVICE[] = "/sys/class/timed_output/vibrator/enable"; 35 ALOGE("Vibrator file does not exist : %d", fd); 95 ALOGE("Vibrator device does not exist. Cannot start vibrator"); 102 ALOGE("Can not allocate memory for the vibrator device"); 120 /* Default vibrator HW module interface definition */ 132 .name = "Default vibrator HAL",
|
/hardware/libhardware_legacy/vibrator/ |
vibrator.c | 16 #include <hardware_legacy/vibrator.h> 24 #define THE_DEVICE "/sys/class/timed_output/vibrator/enable" 50 return qemu_control_command( "vibrator:%d", timeout_ms );
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.c | 383 static void vibrate(FILE* vibrator, int ms) { 384 fprintf(vibrator, "%d\n", ms); 385 fflush(vibrator); 447 /* open the vibrator before dropping root */ 448 FILE *vibrator = 0; local 450 vibrator = fopen("/sys/class/timed_output/vibrator/enable", "w"); 451 if (vibrator) { 452 fcntl(fileno(vibrator), F_SETFD, FD_CLOEXEC); 453 vibrate(vibrator, 150) [all...] |
/packages/apps/Dialer/src/com/android/dialer/settings/ |
GeneralSettingsFragment.java | 24 import android.os.Vibrator; 87 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local 88 if (vibrator != null && vibrator.hasVibrator()) {
|
/hardware/libhardware_legacy/ |
Android.mk | 4 legacy_modules := power uevent vibrator wifi qemu qemu_tracing
|
/build/target/board/generic/ |
device.mk | 37 vibrator.goldfish
|
/build/target/board/generic_arm64/ |
device.mk | 35 vibrator.goldfish
|
/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 | 23 #include <hardware/vibrator.h> 28 if (qemu_control_command("vibrator:%u", timeout_ms) < 0) { 58 ALOGE("No memory available to create Goldfish vibrator device!"); 76 /* Emulator vibrator module */ 88 .name = "Goldfish vibrator module",
|
Android.mk | 19 LOCAL_MODULE := vibrator.goldfish
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmKlaxon.java | 27 import android.os.Vibrator; 67 ((Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE)).cancel(); 125 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 126 vibrator.vibrate(sVibratePattern, 0, VIBRATION_ATTRIBUTES);
|
/build/target/product/ |
generic_no_telephony.mk | 49 vibrator.default \
|
/packages/apps/Settings/src/com/android/settings/notification/ |
OtherSoundSettings.java | 30 import android.os.Vibrator; 198 final Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 199 return vibrator != null && vibrator.hasVibrator();
|
/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/apps/Mms/src/com/android/mms/ui/ |
MessagingPreferenceActivity.java | 33 import android.os.Vibrator; 199 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 200 if (mVibratePref != null && (vibrator == null || !vibrator.hasVibrator())) {
|