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

1 2 3

  /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);
CommandParams.java 83 Tone tone, Duration duration, boolean vibrate) {
86 this.settings = new ToneSettings(duration, tone, vibrate);
  /frameworks/base/core/java/android/os/
IVibratorService.aidl 22 void vibrate(long milliseconds, IBinder token);
Vibrator.java 43 * @param milliseconds How long to vibrate for.
45 public void vibrate(long milliseconds) method in class:Vibrator
48 Log.w(TAG, "Failed to vibrate; no vibrator service.");
52 mService.vibrate(milliseconds, mToken);
54 Log.w(TAG, "Failed to vibrate.", e);
59 * Vibrate with a given pattern.
71 public void vibrate(long[] pattern, int repeat) method in class:Vibrator
74 Log.w(TAG, "Failed to vibrate; no vibrator service.");
84 Log.w(TAG, "Failed to vibrate.", e);
  /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/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.
167 * The pattern with which to vibrate.
170 * To vibrate the default pattern, see {@link #defaults}.
173 * @see android.os.Vibrator#vibrate(long[],int)
175 public long[] vibrate; field in class:Notification
348 vibrate = parcel.createLongArray();
381 final long[] vibrate = this.vibrate local
    [all...]
  /system/media/opensles/libopensles/
IVibra.c 22 static SLresult IVibra_Vibrate(SLVibraItf self, SLboolean vibrate)
28 this->mVibrate = SL_BOOLEAN_FALSE != vibrate; // normalize
45 SLboolean vibrate = this->mVibrate; local
47 *pVibrating = vibrate;
  /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]);
  /development/samples/ApiDemos/src/com/example/android/apis/os/
MorseCode.java 90 vibrator.vibrate(pattern, -1);
  /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}
  /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.");
  /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);
  /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;
AlarmKlaxon.java 217 if (alarm.vibrate) {
218 mVibrator.vibrate(sVibratePattern, 0);
SetAlarm.java 111 mVibratePref = (CheckBoxPreference) findPreference("vibrate");
211 mVibratePref.setChecked(alarm.vibrate);
277 alarm.vibrate = mVibratePref.isChecked();
  /packages/apps/Stk/src/com/android/stk/
ToneDialog.java 93 if (settings.vibrate) {
94 mVibrator.vibrate(timeout);
  /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/tests/StatusBar/src/com/android/statusbartest/
NotificationTestList.java 226 n.vibrate = new long[] {
362 new Test("Vibrate") {
366 n.vibrate = new long[] { 0, 700, 500, 1000 };
372 new Test("Vibrate and cancel") {
376 n.vibrate = new long[] { 0, 700, 500, 1000 };
384 new Test("Vibrate pattern") {
387 mVibrator.vibrate(new long[] { 250, 1000, 500, 2000 }, -1);
391 new Test("Vibrate pattern repeating") {
394 mVibrator.vibrate(new long[] { 250, 1000, 500 }, 1);
398 new Test("Vibrate 3s")
    [all...]
  /packages/apps/Email/src/com/android/email/service/
MailService.java 425 boolean vibrate; field in class:MailService.AccountSyncReport
504 report.vibrate = (flags & Account.FLAGS_VIBRATE_ALWAYS) != 0;
653 boolean vibrate = false;
668 vibrate = report.vibrate;
717 if (vibrate || (vibrateWhenSilent && nowSilent)) {
  /frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
FixVibrateSetting.java 118 n.vibrate = new long[] { 0, 700, 500, 1000 };
  /frameworks/base/core/java/com/android/internal/widget/
RotarySelector.java 519 vibrate(VIBRATE_SHORT);
524 vibrate(VIBRATE_SHORT);
669 private synchronized void vibrate(long duration) {
674 mVibrator.vibrate(duration);
704 vibrate(VIBRATE_LONG);
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DatabaseHelper.java 161 * longer a UI-visible for setting notification vibrate on/off (in
163 * notification vibrate to on.
283 // types affected by ringer modes (silent, vibrate, etc.)
396 // types affected by ringer modes (silent, vibrate, etc.)
992 int vibrate = 0; local
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
AlertService.java 308 // Find out the circumstances under which to vibrate.
318 boolean vibrate =
320 vibrateWhen = vibrate ?
  /packages/apps/Email/src/com/android/email/
Account.java 73 boolean mVibrate; // true: Always vibrate. false: Only when mVibrateWhenSilent.
74 boolean mVibrateWhenSilent; // true: Vibrate even if !mVibrate. False: Require mVibrate.
168 mVibrate = preferences.mSharedPreferences.getBoolean(mUuid + ".vibrate", false);
232 public void setVibrate(boolean vibrate) {
233 mVibrate = vibrate;
282 editor.remove(mUuid + ".vibrate");
350 editor.putBoolean(mUuid + ".vibrate", mVibrate);
SecurityPolicy.java 340 boolean vibrate = 0 != (account.mFlags & Account.FLAGS_VIBRATE_ALWAYS);
351 // Use the account's notification rules for sound & vibrate (but always notify)
358 if (vibrate || (vibrateWhenSilent && nowSilent)) {

Completed in 783 milliseconds

1 2 3