AudioSystem: add APIs to control HAL stream latency mode

Add API to AudioSystem and AudioFlinger to discover and control
the latency modes supported by audio HAL streams

Bug: 218273231
Test: make
Merged-In: I84c2325301cc7a4cf058fa076d0645ede877b54f
Change-Id: I84c2325301cc7a4cf058fa076d0645ede877b54f
12 files changed