HomeSort by relevance Sort by last modified time
    Searched full:vibrate (Results 1 - 25 of 153) sorted by null

1 2 3 4 5 6 7

  /cts/tests/tests/os/src/android/os/cts/
VibratorTest.java 47 mVibrator.vibrate(1000);
62 notes = "Test vibrate",
63 method = "vibrate",
68 notes = "Test vibrate",
69 method = "vibrate",
76 mVibrator.vibrate(pattern, 3);
78 fail("vibrate failed!");
81 mVibrator.vibrate(pattern, 10);
91 method = "vibrate",
100 mVibrator.vibrate(100)
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
ToneSettings.java 29 public boolean vibrate; field in class:ToneSettings
31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) {
34 this.vibrate = vibrate;
40 vibrate = in.readInt() == 1;
50 dest.writeInt(vibrate ? 1 : 0);
  /frameworks/base/tests/permission/src/com/android/framework/permission/tests/
VibratorServicePermissionTest.java 42 * Test that calling {@link android.os.IVibratorService#vibrate(long)} requires permissions.
44 * {@link android.Manifest.permission#VIBRATE}
49 mVibratorService.vibrate(2000, new Binder());
50 fail("vibrate did not throw SecurityException as expected");
60 * {@link android.Manifest.permission#VIBRATE}
75 * {@link android.Manifest.permission#VIBRATE}
  /frameworks/base/tests/appwidgets/AppWidgetProviderTest/
AndroidManifest.xml 3 <uses-permission android:name="android.permission.VIBRATE" />
  /development/simulator/wrapsim/
DevVibrator.c 17 * that the device should vibrate. In current usage, this is either -1
18 * (meaning vibrate forever) or 0 (don't vibrate).
SimMgr.h 30 kCommandVibrate, // vibrate on or off
  /frameworks/base/core/java/android/os/
Vibrator.java 39 * @param milliseconds How long to vibrate for.
41 public void vibrate(long milliseconds) method in class:Vibrator
44 mService.vibrate(milliseconds, mToken);
50 * Vibrate with a given pattern.
62 public void vibrate(long[] pattern, int repeat) method in class:Vibrator
IVibratorService.aidl 22 void vibrate(long milliseconds, IBinder token);
  /development/simulator/app/
MyApp.h 63 void Vibrate(int vibrateOn) { ((MainFrame*)mpMainFrame)->Vibrate(vibrateOn); }
MainFrame.h 28 void Vibrate(int vibrateOn) { mpPhoneWindow->Vibrate(vibrateOn); }
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 112 * {@link android.Manifest.permission#VIBRATE}.
126 vibrator.vibrate(1);
127 fail("Vibrator.vibrate(long) did not throw SecurityException as expected.");
135 vibrator.vibrate(testPattern, 1);
136 fail("Vibrator.vibrate(long[], int) not throw SecurityException as expected.");
  /cts/tests/tests/app/src/android/app/cts/
NotificationTest.java 125 mNotification.vibrate = longArray;
146 assertEquals(mNotification.vibrate[0], result.vibrate[0]);
147 assertEquals(mNotification.vibrate[1], result.vibrate[1]);
148 assertEquals(mNotification.vibrate[2], result.vibrate[2]);
  /packages/apps/DeskClock/src/com/android/deskclock/
Alarm.java 58 p.writeInt(vibrate ? 1 : 0);
108 * True if alarm should vibrate
111 public static final String VIBRATE = "vibrate";
137 ENABLED, VIBRATE, MESSAGE, ALERT };
164 public boolean vibrate; field in class:Alarm
176 vibrate = c.getInt(Columns.ALARM_VIBRATE_INDEX) == 1;
205 vibrate = p.readInt() == 1;
218 vibrate = true;
  /frameworks/base/media/java/android/media/
AudioManager.java 86 * Broadcast intent action indicating that the vibrate setting has
87 * changed. Includes the vibrate type and its new setting.
107 * The new vibrate setting for a particular type.
118 * The vibrate type whose setting has changed.
225 * vibrate mode.
252 * Removes any sounds/vibrate that may be in the queue, or are playing (related to
258 * Whether to vibrate if going into the vibrate ringer mode.
263 * Ringer mode that will be silent and will not vibrate. (This overrides the
264 * vibrate setting.
    [all...]
  /hardware/libhardware_legacy/include/hardware_legacy/
vibrator.h 27 * @param timeout_ms number of milliseconds to vibrate
  /packages/apps/AlarmClock/src/com/android/alarmclock/
Alarm.java 58 p.writeInt(vibrate ? 1 : 0);
108 * True if alarm should vibrate
111 public static final String VIBRATE = "vibrate";
137 ENABLED, VIBRATE, MESSAGE, ALERT };
164 public boolean vibrate; field in class:Alarm
176 vibrate = c.getInt(Columns.ALARM_VIBRATE_INDEX) == 1;
205 vibrate = p.readInt() == 1;
  /packages/apps/Phone/src/com/android/phone/
HapticFeedback.java 57 * mHaptic.vibrate();
65 /** If no pattern was found, vibrate for a small amount of time. */
86 * @param enabled If false, vibrate will be a no-op regardless of
126 public void vibrate() { method in class:HapticFeedback
130 mVibrator.vibrate(mHapticPattern, NO_REPEAT);
143 Log.e(TAG, "Vibrate pattern missing.", nfe);
  /frameworks/base/core/java/android/app/
Notification.java 57 * Use the default notification vibrate. This will ignore any given
58 * {@link #vibrate}. Using phone vibration requires the
59 * {@link android.Manifest.permission#VIBRATE VIBRATE} permission.
156 * The pattern with which to vibrate.
159 * To vibrate the default pattern, see {@link #defaults}.
162 * @see android.os.Vibrator#vibrate(long[],int)
164 public long[] vibrate; field in class:Notification
337 vibrate = parcel.createLongArray();
393 parcel.writeLongArray(vibrate);
    [all...]
  /frameworks/base/tests/StatusBar/src/com/android/statusbartest/
NotificationTestList.java 194 n.vibrate = new long[] {
312 new Test("Vibrate") {
316 n.vibrate = new long[] { 0, 700, 500, 1000 };
322 new Test("Vibrate and cancel") {
326 n.vibrate = new long[] { 0, 700, 500, 1000 };
334 new Test("Vibrate pattern") {
337 mVibrator.vibrate(new long[] { 250, 1000, 500, 2000 }, -1);
341 new Test("Vibrate pattern repeating") {
344 mVibrator.vibrate(new long[] { 250, 1000, 500 }, 1);
348 new Test("Vibrate 3s")
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
IncomingMessage.java 100 // after a 100ms delay, vibrate for 250ms, pause for 100 ms and
101 // then vibrate for 500ms.
102 notif.vibrate = new long[] { 100, 250, 100, 500};
  /frameworks/base/services/java/com/android/server/
VibratorService.java 111 public void vibrate(long milliseconds, IBinder token) { method in class:VibratorService
112 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.VIBRATE)
114 throw new SecurityException("Requires VIBRATE permission");
145 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.VIBRATE)
147 throw new SecurityException("Requires VIBRATE permission");
196 android.Manifest.permission.VIBRATE,
  /development/samples/ApiDemos/res/layout/
morse_code.xml 33 android:text="@string/vibrate"
  /frameworks/base/tests/appwidgets/AppWidgetHostTest/
AndroidManifest.xml 3 <uses-permission android:name="android.permission.VIBRATE" />
  /frameworks/base/core/java/com/android/internal/widget/
PasswordEntryKeyboardHelper.java 157 * Sets and enables vibrate pattern. If id is 0 (or can't be loaded), vibrate is disabled.
158 * @param id resource id for array containing vibrate pattern.
166 Log.e(TAG, "Vibrate pattern missing", e);
238 mVibrator.vibrate(mVibratePattern, -1);
  /frameworks/base/core/java/android/view/
VolumePanel.java 61 * moving to silent mode, it will not emit a short vibrate (it normally
62 * would since vibrate is between normal mode and silent mode using hardware
268 // Do a little vibrate if applicable (only when going into vibrate mode)
308 // Make sure we ended up in vibrate ringer mode
313 mVibrator.vibrate(VIBRATE_DURATION);

Completed in 66 milliseconds

1 2 3 4 5 6 7