Merge "AudioAttributes: add missing stream type to conversions"
This commit is contained in:
@@ -1187,6 +1187,9 @@ public final class AudioAttributes implements Parcelable {
|
||||
case AudioSystem.STREAM_ACCESSIBILITY:
|
||||
mContentType = CONTENT_TYPE_SPEECH;
|
||||
break;
|
||||
case AudioSystem.STREAM_ASSISTANT:
|
||||
mContentType = CONTENT_TYPE_SPEECH;
|
||||
break;
|
||||
default:
|
||||
Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes");
|
||||
}
|
||||
@@ -1611,6 +1614,8 @@ public final class AudioAttributes implements Parcelable {
|
||||
return USAGE_VOICE_COMMUNICATION_SIGNALLING;
|
||||
case AudioSystem.STREAM_ACCESSIBILITY:
|
||||
return USAGE_ASSISTANCE_ACCESSIBILITY;
|
||||
case AudioSystem.STREAM_ASSISTANT:
|
||||
return USAGE_ASSISTANT;
|
||||
case AudioSystem.STREAM_TTS:
|
||||
default:
|
||||
return USAGE_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user