Check if device has vibrator in vibrator state test.

Call vibrator's hasVibrator API to check if vibrator exist in vibrator
state test.  This bypass the checking of vibrator state on targets
don't have vibrator to avoid flaky test results.

Bug: 139622622
Change-Id: I8cfd9ff7cdb8efddcd929c4c93dfc4ac6e5c4616
Merged-In: I8cfd9ff7cdb8efddcd929c4c93dfc4ac6e5c4616
1 file changed