Fix DirectAudioProfilesForAttributesTest for non direct profiles

getDevicesForAttributes refers to the output device capabilities and
getDirectProfilesForAttributes refers to stream capabilities. So we
can't use the AudioProfiles associated with an output device to infer
all possible supported streams since streams can be transcoded/resampled
to be playable on the output audio device. Removing the nonDirect
AudioTrack creation checks.

Also increase the test timeout to 2h since TVs can support a lot
of direct audio profiles.

Bug: 236685099
Test: atest DirectAudioProfilesForAttributesTest
Change-Id: Ia3929f7a56c7f643b06da387f24a80cacd694161
2 files changed