/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));
|
PlayerComponent.java | 401 VibrationSystem vibrator = sSystemRegistry.vibrationSystem; local 403 if (vibrator != null) { 404 vibrator.vibrate(STOMP_VIBRATE_TIME);
|
/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 | 24 import android.os.Vibrator; 110 * Verify that Vibrator's vibrating related methods requires permissions. 116 Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); local 119 vibrator.cancel(); 120 fail("Vibrator.cancel() did not throw SecurityException as expected."); 126 vibrator.vibrate(1); 127 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); 135 vibrator.vibrate(testPattern, 1) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
VolumeController.java | 23 import android.os.Vibrator; 40 // Is there a vibrator 47 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 48 mHasVibrator = vibrator == null ? false : vibrator.hasVibrator();
|
/frameworks/base/services/jni/ |
com_android_server_VibratorService.cpp | 25 #include <hardware_legacy/vibrator.h>
|
/frameworks/native/cmds/dumpstate/ |
dumpstate.c | 362 FILE *vibrator = 0; local 364 /* open the vibrator before dropping root */ 365 vibrator = fopen("/sys/class/timed_output/vibrator/enable", "w"); 366 if (vibrator) fcntl(fileno(vibrator), F_SETFD, FD_CLOEXEC); 440 } else if (vibrator) { 441 fputs("150", vibrator); 442 fflush(vibrator); 449 } else if (vibrator) { [all...] |
/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 );
|
/hardware/libhardware_legacy/ |
Android.mk | 4 legacy_modules := power uevent vibrator wifi qemu qemu_tracing
|
/packages/apps/Calendar/src/com/android/calendar/ |
GeneralPreferences.java | 26 import android.os.Vibrator; 145 Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); local 146 if (vibrator == null || !vibrator.hasVibrator()) {
|
/frameworks/base/services/java/com/android/server/ |
VibratorService.java | 35 import android.os.Vibrator; 63 private final ArrayList<Vibrator> mInputDeviceVibrators = new ArrayList<Vibrator>(); 131 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*"); 377 Vibrator vibrator = device.getVibrator(); local 378 if (vibrator.hasVibrator()) { 379 mInputDeviceVibrators.add(vibrator); 406 // when reporting whether the device has a vibrator. Applications often use this 409 // the device has a built-in vibrator [all...] |
SystemServer.java | 130 VibratorService vibrator = null; local 291 Slog.i(TAG, "Vibrator Service"); 292 vibrator = new VibratorService(context); 293 ServiceManager.addService("vibrator", vibrator); 770 vibrator.systemReady(); 772 reportWtf("making Vibrator Service ready", e); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SoundSettings.java | 40 import android.os.Vibrator; 173 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 174 if (vibrator == null || !vibrator.hasVibrator()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SearchPanelView.java | 31 import android.os.Vibrator; 222 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 223 vibrator.vibrate(res.getInteger(R.integer.config_search_panel_view_vibration_duration));
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioManagerTest.java | 45 import android.os.Vibrator; 62 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local 63 mHasVibrator = (vibrator != null) && vibrator.hasVibrator();
|
/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/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
LockScreen.java | 36 import android.os.Vibrator; 85 // Is there a vibrator 476 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 477 mHasVibrator = vibrator == null ? false : vibrator.hasVibrator();
|
/frameworks/base/services/java/com/android/server/power/ |
ShutdownThread.java | 41 import android.os.Vibrator; 500 Vibrator vibrator = new SystemVibrator(); local 502 vibrator.vibrate(SHUTDOWN_VIBRATE_MS); 508 // vibrator is asynchronous so we need to wait to avoid shutting down too soon.
|
/packages/apps/Phone/src/com/android/phone/ |
CallFeaturesSetting.java | 43 import android.os.Vibrator; 1520 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local 1757 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalActions.java | 47 import android.os.Vibrator; 133 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local 134 mHasVibrator = vibrator != null && vibrator.hasVibrator(); 183 // Simple toggle style if there's no vibrator, otherwise use a tri-state [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsFragment.java | 32 import android.os.Vibrator; 504 // Set the vibrator value, or hide it on devices w/o a vibrator 506 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local 507 if (vibrator.hasVibrator()) { 536 // No vibrator present. Remove the preference altogether. [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceDialerActivity.java | 37 import android.os.Vibrator; 1093 Vibrator vibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); local [all...] |
/frameworks/base/media/java/android/media/ |
AudioService.java | 61 import android.os.Vibrator; 328 // Is there a vibrator 453 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local 454 mHasVibrator = vibrator == null ? false : vibrator.hasVibrator(); [all...] |