libhidl: add withDefault

Shorthand way to provide default values for HIDL calls.

Fixes: 37088970
Test: libhidl_test
Change-Id: If91cfb774fa76314aeec334fbc2b18ea790912c4
2 files changed