Fix broken vibration vendor effect tests in staging

Some fixes to new VibratorEffect.VendorEffect APIs:

- Add helper method to perform deep comparison of PersistableBundle
  instances. The BaseBundle.kindOfEquals doesn't work well on array
  values.
- Make sure VibrationEffect.createVendorEffect triggers the validate()
  method before returning the new instance.
- Fix service tests to grant new permission before testing vendor
  vibrations.

Fix: 355274084
Fix: 355400728
Flag: android.os.vibrator.vendor_vibration_effects
Test: FrameworksVibratorCoreTests
      FrameworksVibratorServiceTests
      CtsVibratorTestCases
Change-Id: I129242da63baad2835245083498960b2fc1d8915
2 files changed