Port the getDocuments() API to be synchronous.

Bug: 146526096
Test: atest CtsAppSearchTestCases FrameworksCoreTests:android.app.appsearch FrameworksServicesTests:com.android.server.appsearch.impl
Change-Id: Ibd8bfecc900b5b563c5c1ecbc71506ee75753197
5 files changed