Return duration for composed effects.

Use IVibrator.getPrimitiveDuration to calculate the duration a composed
effect should have and return this result to the service.

Bug: 177807015
Test: atest libvibratorservice_test
Change-Id: I606fdb59818a13e138e1cde36172ea74050a8a75
6 files changed