Loading core/java/android/os/Vibrator.java +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class Vibrator } try { mService.vibrate(milliseconds, mToken); } catch (Exception e) { } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); } } Loading Loading @@ -80,7 +80,7 @@ public class Vibrator if (repeat < pattern.length) { try { mService.vibratePattern(pattern, repeat, mToken); } catch (Exception e) { } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); } } else { Loading core/java/com/android/internal/app/ShutdownThread.java +7 −1 Original line number Diff line number Diff line Loading @@ -360,7 +360,13 @@ public final class ShutdownThread extends Thread { } else if (SHUTDOWN_VIBRATE_MS > 0) { // vibrate before shutting down Vibrator vibrator = new Vibrator(); try { vibrator.vibrate(SHUTDOWN_VIBRATE_MS); } catch (Exception e) { // Failure to vibrate shouldn't interrupt shutdown. Just log it. Log.w(TAG, "Failed to vibrate during shutdown.", e); } // vibrator is asynchronous so we need to wait to avoid shutting down too soon. try { Thread.sleep(SHUTDOWN_VIBRATE_MS); Loading Loading
core/java/android/os/Vibrator.java +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class Vibrator } try { mService.vibrate(milliseconds, mToken); } catch (Exception e) { } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); } } Loading Loading @@ -80,7 +80,7 @@ public class Vibrator if (repeat < pattern.length) { try { mService.vibratePattern(pattern, repeat, mToken); } catch (Exception e) { } catch (RemoteException e) { Log.w(TAG, "Failed to vibrate.", e); } } else { Loading
core/java/com/android/internal/app/ShutdownThread.java +7 −1 Original line number Diff line number Diff line Loading @@ -360,7 +360,13 @@ public final class ShutdownThread extends Thread { } else if (SHUTDOWN_VIBRATE_MS > 0) { // vibrate before shutting down Vibrator vibrator = new Vibrator(); try { vibrator.vibrate(SHUTDOWN_VIBRATE_MS); } catch (Exception e) { // Failure to vibrate shouldn't interrupt shutdown. Just log it. Log.w(TAG, "Failed to vibrate during shutdown.", e); } // vibrator is asynchronous so we need to wait to avoid shutting down too soon. try { Thread.sleep(SHUTDOWN_VIBRATE_MS); Loading