Make AudioService perm provider HDS aware

Replicate the special handling for the isolated UID associated with HDS
in the audioserver permission provider logic.
 - VoiceInteractionManagerService now communicates the owner uid of
   trusted process, which is useful for package association/validation
 - VIMS no longer posts this call on an executor, it should be sync to
   ensure correct handling by audioserver
 - Keep track of the active HDS uid in the PermissionProvider, and grant
  it the appropriate special-case permissions, updating audioserver when
  HDS uid is changed
 - Change permission predicate to be more correct (old API was internal)

Bug: 338089555
Test: atest AudioServerPermissionProviderTest#testSpecialHotwordPermissions
Test: manual verification of hotword detection
Flag: com.android.media.audio.audioserver_permissions
Change-Id: Idf44e236f3992c10badbb8f96fd52bd54198430d
5 files changed