Cleanup Return object.

- Expose isOk() instead of having to say getStatus().isOk()
- Add 'get' function which checks to make sure content is valid.
- Mark implicit cast operator as deprecated.

Bug: 32744406
Bug: 31348667
Test: hidl_test
Change-Id: I13bfe33b6c1f9b94a372161064a9e913825df959
7 files changed
tree: 7e3f78673bed3237b6809c435b6aefa33f60b127
  1. base/
  2. transport/
  3. Android.bp
  4. MODULE_LICENSE_APACHE2
  5. NOTICE
  6. test_main.cpp