Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity.

It implements Option 5 in this proposal doc: http://go/ambient-consent-api

Test: atest CtsAmbientContextDetectionServiceDeviceTest
Bug: 192476579
Change-Id: I923911fa8f73d973fd22587af74ed27c5045da34
18 files changed