Searched refs:vibration (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/proto/android/app/
H A Dnotification_channel.proto43 repeated int64 vibration = 10;
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationRecord.java260 long[] vibration;
267 vibration = getChannel().getVibrationPattern() == null
270 vibration = null;
279 vibration = defaultVibration;
281 vibration = notification.vibrate;
284 return vibration;
H A DNotificationManagerService.java4773 long[] vibration = record.getVibration();
4774 // Demote sound to vibration if vibration missing & phone in vibration mode.
4775 if (vibration == null
4781 vibration = mFallbackVibrationPattern;
4783 hasValidVibrate = vibration != null;
4808 buzz = playVibration(record, vibration, hasValidSound);
4910 private boolean playVibration(final NotificationRecord record, long[] vibration, argument
4921 vibration, insisten
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/app/
H A DNotificationCompatTest.java351 // and vibration from the notification itself
499 long[] vibration = new long[]{100};
505 .setVibrate(vibration)
519 .setVibrate(vibration)
525 assertEquals(vibration, n.vibrate);
/frameworks/base/core/java/android/app/
H A DNotificationChannel.java71 private static final String ATT_VIBRATION = "vibration";
401 * Sets whether notification posted to this channel should vibrate. The vibration pattern can
407 public void enableVibration(boolean vibration) { argument
408 this.mVibrationEnabled = vibration;
412 * Sets the vibration pattern for notifications posted to this channel. If the provided
414 * vibration} as well. Otherwise, vibration will be disabled.
537 * Returns the vibration pattern for notifications posted to this channel. Will be ignored if
538 * vibration is not enabled ({@link #shouldVibrate()}.
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DRankingHelperTest.java1232 long[] vibration = new long[]{100, 67, 145, 156};
1235 channel.setVibrationPattern(vibration);
1273 long[] vibration = new long[]{100, 67, 145, 156};
1276 channel.setVibrationPattern(vibration);

Completed in 199 milliseconds