MediaSessionService: Leave volume key event logs by default

Test: Manual test (Check the logcat)
Change-Id: Ibdc2b776ee839276d1de0932cfd584134a80fc8d
This commit is contained in:
Jaewan Kim
2017-03-02 09:57:09 +09:00
parent 158cd7b1f2
commit b2781e74f0

View File

@@ -1053,7 +1053,7 @@ public class MediaSessionService extends SystemService implements Monitor {
final int uid = Binder.getCallingUid();
final long token = Binder.clearCallingIdentity();
if (DEBUG) {
if (DEBUG_KEY_EVENT) {
Log.d(TAG, "dispatchVolumeKeyEvent, pid=" + pid + ", uid=" + uid + ", event="
+ keyEvent);
}
@@ -1242,7 +1242,7 @@ public class MediaSessionService extends SystemService implements Monitor {
&& AudioSystem.isStreamActive(suggestedStream, 0)) {
preferSuggestedStream = true;
}
if (DEBUG) {
if (DEBUG_KEY_EVENT) {
Log.d(TAG, "Adjusting " + session + " by " + direction + ". flags="
+ flags + ", suggestedStream=" + suggestedStream
+ ", preferSuggestedStream=" + preferSuggestedStream);