Home | History | Annotate | Download | only in server

Lines Matching refs:Vibration

60     private final LinkedList<Vibration> mVibrations;
61 private Vibration mCurrentVibration;
88 private class Vibration implements IBinder.DeathRecipient {
98 Vibration(IBinder token, long millis, int usageHint, int uid, String opPkg) {
102 Vibration(IBinder token, long[] pattern, int repeat, int usageHint, int uid,
107 private Vibration(IBinder token, long millis, long[] pattern,
132 // vibration.
137 // If this vibration will end before the time passed in, let
138 // the new vibration play.
164 mVibrations = new LinkedList<Vibration>();
234 // timeout of 0 or negative. This will ensure that a vibration has
238 // Ignore this vibration since the current vibration will play for
247 Vibration vib = new Vibration(token, milliseconds, usageHint, uid, opPkg);
299 Vibration vib = new Vibration(token, pattern, repeat, usageHint, uid, packageName);
314 // to repeat. Treat it like a simple vibration.
335 final Vibration vib = removeVibrationLocked(token);
338 Slog.d(TAG, "Canceling vibration.");
386 private void startVibrationLocked(final Vibration vib) {
432 private Vibration removeVibrationLocked(IBinder token) {
433 ListIterator<Vibration> iter = mVibrations.listIterator(0);
435 Vibration vib = iter.next();
442 // We might be looking for a simple vibration which is only stored in
451 private void unlinkVibration(Vibration vib) {
453 // If Vibration object has a pattern,
454 // the Vibration object has also been linkedToDeath.
577 final Vibration mVibration;
580 VibrateThread(Vibration vib) {
650 // If this vibration finished naturally, start the next
651 // vibration.
676 Iterator<Vibration> it = mVibrations.iterator();
678 Vibration vibration = it.next();
679 if (vibration != mCurrentVibration) {
680 unlinkVibration(vibration);