diff options
author | 2018-11-06 10:39:45 +0900 | |
---|---|---|
committer | 2018-11-06 11:40:48 +0900 | |
commit | db4070c2433e15d561dbcaf1c5416a1d4da04945 (patch) | |
tree | 6211a3d2bb83979564ac3c455019f39dd5531560 | |
parent | 44f74d111f08704cae5a10b6c03db78748419816 (diff) |
Remove Vibrator Shell Command Time Limit
Bug: 119055171
Test: Manual Via "cmd vibrator vibrate <ms>"
Change-Id: Ib503356da42fe122733cb65d5d2f7f3e0140962b
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
-rw-r--r-- | services/core/java/com/android/server/VibratorService.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/VibratorService.java b/services/core/java/com/android/server/VibratorService.java index 793a1778f900..26e22bf6f8a2 100644 --- a/services/core/java/com/android/server/VibratorService.java +++ b/services/core/java/com/android/server/VibratorService.java @@ -1258,8 +1258,6 @@ public class VibratorService extends IVibratorService.Stub private final class VibratorShellCommand extends ShellCommand { - private static final long MAX_VIBRATION_MS = 200; - private final IBinder mToken; private VibratorShellCommand(IBinder token) { @@ -1303,9 +1301,6 @@ public class VibratorService extends IVibratorService.Stub } final long duration = Long.parseLong(getNextArgRequired()); - if (duration > MAX_VIBRATION_MS) { - throw new IllegalArgumentException("maximum duration is " + MAX_VIBRATION_MS); - } String description = getNextArg(); if (description == null) { description = "Shell command"; |