summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2017-02-22 15:29:50 -0800
committer Glenn Kasten <gkasten@google.com> 2017-03-06 17:42:21 -0800
commit3fcf85cd91f01f21b3f9727508fd190898695533 (patch)
treef01e168dfd2912ad3fee40ff0b148986e85c0c07
parent072d7ac548f783a706e7fcc6644f8b09a5575a40 (diff)
Comment out unused methods
Test: compiles OK Change-Id: I6f5513e7c5655e91e4cc3dd8de8ec407b9f7b94e
-rw-r--r--core/java/com/android/internal/alsa/AlsaDevicesParser.java6
-rw-r--r--services/usb/java/com/android/server/usb/UsbAlsaManager.java15
2 files changed, 17 insertions, 4 deletions
diff --git a/core/java/com/android/internal/alsa/AlsaDevicesParser.java b/core/java/com/android/internal/alsa/AlsaDevicesParser.java
index 81b79438de20..3d78a2c27bf4 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 058de05f4e41..40bdaa58a864 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<UsbAudioDevice> getConnectedDevices() {
ArrayList<UsbAudioDevice> devices = new ArrayList<UsbAudioDevice>(mAudioDevices.size());
for (HashMap.Entry<UsbDevice,UsbAudioDevice> 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<UsbDevice,UsbAudioDevice> 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<UsbDevice,UsbAudioDevice> entry : mAudioDevices.entrySet()) {
Slog.i(TAG, entry.getValue().toShortString());
}
}
- }
+ }
+*/
+
}