Add input validation on VibrationParam[] to prohibit null items

We're adding validation checks to setVibrationParams and onRequestVibrationParamsComplete in the VibratorControlService. Null items within the VibrationParam[] array are prohibited and will immediately trigger an exception.

Fix: 335279298
Test: atest VibratorControlServiceTest
Change-Id: I00e2a1e59e2bd9ae5e2b43d4f85cfd8b343a15ee
3 files changed