diff --git a/core/java/com/android/internal/alsa/AlsaDevicesParser.java b/core/java/com/android/internal/alsa/AlsaDevicesParser.java index 81b79438de209..3d78a2c27bf49 100644 --- a/core/java/com/android/internal/alsa/AlsaDevicesParser.java +++ b/core/java/com/android/internal/alsa/AlsaDevicesParser.java @@ -199,9 +199,11 @@ public class AlsaDevicesParser { // // Predicates // +/* public boolean hasPlaybackDevices() { return mHasPlaybackDevices; } +*/ public boolean hasPlaybackDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { @@ -214,9 +216,11 @@ public class AlsaDevicesParser { return false; } +/* public boolean hasCaptureDevices() { return mHasCaptureDevices; } +*/ public boolean hasCaptureDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { @@ -229,9 +233,11 @@ public class AlsaDevicesParser { return false; } +/* public boolean hasMIDIDevices() { return mHasMIDIDevices; } +*/ public boolean hasMIDIDevices(int card) { for (AlsaDeviceRecord deviceRecord : mDeviceRecords) { diff --git a/services/usb/java/com/android/server/usb/UsbAlsaManager.java b/services/usb/java/com/android/server/usb/UsbAlsaManager.java index 058de05f4e411..40bdaa58a8649 100644 --- a/services/usb/java/com/android/server/usb/UsbAlsaManager.java +++ b/services/usb/java/com/android/server/usb/UsbAlsaManager.java @@ -497,6 +497,7 @@ public final class UsbAlsaManager { // // Devices List // +/* public ArrayList getConnectedDevices() { ArrayList devices = new ArrayList(mAudioDevices.size()); for (HashMap.Entry entry : mAudioDevices.entrySet()) { @@ -504,6 +505,7 @@ public final class UsbAlsaManager { } return devices; } +*/ // // Logging @@ -519,6 +521,7 @@ public final class UsbAlsaManager { } } +/* public void logDevicesList(String title) { if (DEBUG) { for (HashMap.Entry entry : mAudioDevices.entrySet()) { @@ -528,15 +531,19 @@ public final class UsbAlsaManager { Slog.i(TAG, "" + entry.getValue()); } } - } + } +*/ - // This logs a more terse (and more readable) version of the devices list - public void logDevices(String title) { + // This logs a more terse (and more readable) version of the devices list +/* + public void logDevices(String title) { if (DEBUG) { Slog.i(TAG, title); for (HashMap.Entry entry : mAudioDevices.entrySet()) { Slog.i(TAG, entry.getValue().toShortString()); } } - } + } +*/ + }