HomeSort by relevance Sort by last modified time
    Searched refs:vibrator (Results 1 - 25 of 26) sorted by null

1 2

  /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);
  /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...]
  /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/services/jni/
com_android_server_VibratorService.cpp 25 #include <hardware_legacy/vibrator.h>
  /frameworks/native/cmds/dumpstate/
dumpstate.c 389 FILE *vibrator = 0; local
391 /* open the vibrator before dropping root */
392 vibrator = fopen("/sys/class/timed_output/vibrator/enable", "w");
393 if (vibrator) fcntl(fileno(vibrator), F_SETFD, FD_CLOEXEC);
467 } else if (vibrator) {
468 fputs("150", vibrator);
469 fflush(vibrator);
476 } 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/DeskClock/src/com/android/deskclock/alarms/
AlarmKlaxon.java 26 import android.os.Vibrator;
61 ((Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE)).cancel();
121 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local
122 vibrator.vibrate(sVibratePattern, 0);
  /frameworks/base/services/java/com/android/server/
VibratorService.java 38 import android.os.Vibrator;
71 private final ArrayList<Vibrator> mInputDeviceVibrators = new ArrayList<Vibrator>();
143 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*");
437 Vibrator vibrator = device.getVibrator(); local
438 if (vibrator.hasVibrator()) {
439 mInputDeviceVibrators.add(vibrator);
466 // when reporting whether the device has a vibrator. Applications often use this
469 // the device has a built-in vibrator
    [all...]
SystemServer.java 134 VibratorService vibrator = null; local
284 Slog.i(TAG, "Vibrator Service");
285 vibrator = new VibratorService(context);
286 ServiceManager.addService("vibrator", vibrator);
    [all...]
  /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/Settings/src/com/android/settings/
SoundSettings.java 40 import android.os.Vibrator;
178 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
179 if (vibrator == null || !vibrator.hasVibrator()) {
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SearchPanelView.java 31 import android.os.Vibrator;
209 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); local
210 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;
63 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local
64 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/services/java/com/android/server/power/
ShutdownThread.java 41 import android.os.Vibrator;
499 Vibrator vibrator = new SystemVibrator(); local
501 vibrator.vibrate(SHUTDOWN_VIBRATE_MS);
507 // vibrator is asynchronous so we need to wait to avoid shutting down too soon.
  /packages/services/Telephony/src/com/android/phone/
CallFeaturesSetting.java 44 import android.os.Vibrator;
1538 Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); local
1838 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;
134 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local
135 mHasVibrator = vibrator != null && vibrator.hasVibrator();
187 // 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 31 import android.os.Vibrator;
798 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); local
    [all...]
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
VoiceDialerActivity.java 37 import android.os.Vibrator;
1093 Vibrator vibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); local
    [all...]
  /device/asus/deb/
init.deb.rc 222 # adjust vibrator amplitude
223 write /sys/class/timed_output/vibrator/amp 70
  /device/asus/flo/
init.flo.rc 224 # adjust vibrator amplitude
225 write /sys/class/timed_output/vibrator/amp 70
  /device/lge/mako/
init.mako.rc 213 # adjust vibrator amplitude
214 write /sys/class/timed_output/vibrator/amp 70

Completed in 1537 milliseconds

1 2