Android: Remove IsCommunicationModeEnabled() from AudioManager

This method is only used for logging and is blocking further refactoring
work. Once the refactoring and cleanup of the external AudioDeviceModule
is complete, we can revisit what logging we want and need and add it in
a cleaner way.

Bug: webrtc:7452
Change-Id: If08bcfb37860e9e7b9b5105cb75f748b53775f69
Reviewed-on: https://webrtc-review.googlesource.com/65460
Commit-Queue: Magnus Jedvert <magjed@webrtc.org>
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22678}
This commit is contained in:
Magnus Jedvert
2018-03-29 12:31:15 +02:00
committed by Commit Bot
parent 6c2c13af06
commit a21090b770
4 changed files with 0 additions and 23 deletions

View File

@ -128,11 +128,6 @@ class WebRtcAudioManager {
volumeLogger.stop();
}
@CalledByNative
private boolean isCommunicationModeEnabled() {
return (audioManager.getMode() == AudioManager.MODE_IN_COMMUNICATION);
}
// Returns true if low-latency audio output is supported.
public static boolean isLowLatencyOutputSupported(Context context) {
return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY);