Port the putDocuments() API to be synchronous.

This requires adding an object for reporting multiple results in a single call.

It is based on android.hardware.camera2.TotalCaptureResult.

Bug: 143789408
Test: atest CtsAppSearchTestCases FrameworksCoreTests:android.app.appsearch FrameworksServicesTests:com.android.server.appsearch.impl
Change-Id: Ia775a5cd722ef8fd05286d2c8ed4ec0da3f3b63a
4 files changed