AudioTrack: Obtain stream type from AudioFlinger

This is the correct stream type, not an estimation.
Avoids a Binder call which can cause timing glitches.

Test: atest AudioTrackTest
Test: adb shell dumpsys media.metrics
Bug: 192924795
Bug: 193918473
Change-Id: Iefd0a06b8f914ca38918619ceacb5293dd666292
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 54a6425..65a163f 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -947,6 +947,7 @@
         output.frameCount = input.frameCount;
         output.notificationFrameCount = input.notificationFrameCount;
         output.flags = input.flags;
+        output.streamType = streamType;
 
         track = thread->createTrack_l(client, streamType, localAttr, &output.sampleRate,
                                       input.config.format, input.config.channel_mask,