Audio: add getters for port ID in AudioTrack and AudioRecord JNI

Add JNI functions to retrieve unique port IDs allocated by audio policy
manager for AudioTrack and AudioRecord clients.

Test: basic manual playback and capture tests
Bug: 111438757
Change-Id: I41f2679329b76b7b28cf506c64b6ffa9192d940a
4 files changed