Skip to content

Commit 63bc6c1

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am a46a74f: Merge "Remove extraneous logs." into jb-mr1-dev
* commit 'a46a74fcd61d2b4e72b6027625a471f10b21b1c9': Remove extraneous logs.
2 parents 82b18e8 + a46a74f commit 63bc6c1

File tree

8 files changed

+18
-24
lines changed

8 files changed

+18
-24
lines changed

core/java/com/android/internal/widget/TransportControlView.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import android.app.PendingIntent;
2525
import android.app.PendingIntent.CanceledException;
26-
import android.content.ComponentName;
2726
import android.content.Context;
2827
import android.content.Intent;
2928
import android.graphics.Bitmap;
@@ -193,7 +192,7 @@ public void setCurrentClientId(int clientGeneration, PendingIntent mediaIntent,
193192

194193
public TransportControlView(Context context, AttributeSet attrs) {
195194
super(context, attrs);
196-
Log.v(TAG, "Create TCV " + this);
195+
if (DEBUG) Log.v(TAG, "Create TCV " + this);
197196
mAudioManager = new AudioManager(mContext);
198197
mCurrentPlayState = RemoteControlClient.PLAYSTATE_NONE; // until we get a callback
199198
mIRCD = new IRemoteControlDisplayWeak(mHandler);

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public class PhoneStatusBar extends BaseStatusBar {
279279
public void onAnimationEnd(Animator animation) {
280280
// double-check to avoid races
281281
if (mStatusBarContents.getAlpha() == 0) {
282-
Slog.d(TAG, "makeIconsInvisible");
282+
if (DEBUG) Slog.d(TAG, "makeIconsInvisible");
283283
mStatusBarContents.setVisibility(View.INVISIBLE);
284284
}
285285
}
@@ -518,7 +518,7 @@ public void onLayoutChange(View v, int left, int top, int right, int bottom,
518518

519519
mCarrierLabel = (TextView)mStatusBarWindow.findViewById(R.id.carrier_label);
520520
mShowCarrierInPanel = (mCarrierLabel != null);
521-
Slog.v(TAG, "carrierlabel=" + mCarrierLabel + " show=" + mShowCarrierInPanel);
521+
if (DEBUG) Slog.v(TAG, "carrierlabel=" + mCarrierLabel + " show=" + mShowCarrierInPanel);
522522
if (mShowCarrierInPanel) {
523523
mCarrierLabel.setVisibility(mCarrierLabelVisible ? View.VISIBLE : View.INVISIBLE);
524524

@@ -854,7 +854,7 @@ public void removeIcon(String slot, int index, int viewIndex) {
854854
}
855855

856856
public void addNotification(IBinder key, StatusBarNotification notification) {
857-
/* if (DEBUG) */ Slog.d(TAG, "addNotification score=" + notification.score);
857+
if (DEBUG) Slog.d(TAG, "addNotification score=" + notification.score);
858858
StatusBarIconView iconView = addNotificationViews(key, notification);
859859
if (iconView == null) return;
860860

@@ -909,7 +909,7 @@ public void addNotification(IBinder key, StatusBarNotification notification) {
909909
awakenDreams();
910910

911911
// not immersive & a full-screen alert should be shown
912-
Slog.d(TAG, "Notification has fullScreenIntent; sending fullScreenIntent");
912+
if (DEBUG) Slog.d(TAG, "Notification has fullScreenIntent; sending fullScreenIntent");
913913
try {
914914
notification.notification.fullScreenIntent.send();
915915
} catch (PendingIntent.CanceledException e) {
@@ -2249,7 +2249,7 @@ public void onClick(View v) {
22492249

22502250
private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
22512251
public void onReceive(Context context, Intent intent) {
2252-
Slog.v(TAG, "onReceive: " + intent);
2252+
if (DEBUG) Slog.v(TAG, "onReceive: " + intent);
22532253
String action = intent.getAction();
22542254
if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)) {
22552255
int flags = CommandQueue.FLAG_EXCLUDE_NONE;

policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private void inflateKeyguardView(Bundle options) {
215215
mKeyguardHost.removeView(v);
216216
}
217217
// TODO: Remove once b/7094175 is fixed
218-
Slog.d(TAG, "inflateKeyguardView: b/7094175 mContext.config="
218+
if (false) Slog.d(TAG, "inflateKeyguardView: b/7094175 mContext.config="
219219
+ mContext.getResources().getConfiguration());
220220
final LayoutInflater inflater = LayoutInflater.from(mContext);
221221
View view = inflater.inflate(R.layout.keyguard_host_view, mKeyguardHost, true);

services/java/com/android/server/BackupManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134
class BackupManagerService extends IBackupManager.Stub {
135135
private static final String TAG = "BackupManagerService";
136-
private static final boolean DEBUG = true;
136+
private static final boolean DEBUG = false;
137137
private static final boolean MORE_DEBUG = false;
138138

139139
// Name and current contents version of the full-backup manifest file

services/java/com/android/server/ConnectivityService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ private static NetworkStateTracker makeWimaxStateTracker(
629629
wimaxStateTrackerClassName = context.getResources().getString(
630630
com.android.internal.R.string.config_wimaxStateTrackerClassname);
631631

632-
log("wimaxJarLocation: " + wimaxJarLocation);
632+
if (DBG) log("wimaxJarLocation: " + wimaxJarLocation);
633633
wimaxClassLoader = new DexClassLoader(wimaxJarLocation,
634634
new ContextWrapper(context).getCacheDir().getAbsolutePath(),
635635
wimaxLibLocation, ClassLoader.getSystemClassLoader());
@@ -648,7 +648,7 @@ private static NetworkStateTracker makeWimaxStateTracker(
648648
}
649649

650650
try {
651-
log("Starting Wimax Service... ");
651+
if (DBG) log("Starting Wimax Service... ");
652652

653653
Constructor wmxStTrkrConst = wimaxStateTrackerClass.getConstructor
654654
(new Class[] {Context.class, Handler.class});

services/java/com/android/server/LocationManagerService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ private void requestLocationUpdatesLocked(LocationRequest request, Receiver rece
12141214
throw new IllegalArgumentException("provider doesn't exisit: " + provider);
12151215
}
12161216

1217-
Log.i(TAG, "request " + Integer.toHexString(System.identityHashCode(receiver)) + " " +
1218-
name + " " + request + " from " + packageName + "(" + uid + ")");
1217+
if (D) Log.d(TAG, "request " + Integer.toHexString(System.identityHashCode(receiver))
1218+
+ " " + name + " " + request + " from " + packageName + "(" + uid + ")");
12191219

12201220
UpdateRecord record = new UpdateRecord(name, request, receiver);
12211221
UpdateRecord oldRecord = receiver.mUpdateRecords.put(name, record);
@@ -1253,7 +1253,7 @@ public void removeUpdates(ILocationListener listener, PendingIntent intent,
12531253
}
12541254

12551255
private void removeUpdatesLocked(Receiver receiver) {
1256-
Log.i(TAG, "remove " + Integer.toHexString(System.identityHashCode(receiver)));
1256+
if (D) Log.i(TAG, "remove " + Integer.toHexString(System.identityHashCode(receiver)));
12571257

12581258
if (mReceivers.remove(receiver.mKey) != null && receiver.isListener()) {
12591259
receiver.getListener().asBinder().unlinkToDeath(receiver, 0);

services/java/com/android/server/usb/UsbDeviceManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ private void updateUsbNotification() {
668668
id = com.android.internal.R.string.usb_accessory_notification_title;
669669
} else {
670670
// There is a different notification for USB tethering so we don't need one here
671-
if (!containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_RNDIS)) {
672-
Slog.e(TAG, "No known USB function in updateUsbNotification");
673-
}
671+
//if (!containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_RNDIS)) {
672+
// Slog.e(TAG, "No known USB function in updateUsbNotification");
673+
//}
674674
}
675675
}
676676
if (id != mUsbNotificationId) {

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,10 +2779,7 @@ public int relayoutWindow(Session session, IWindow client, int seq,
27792779
}
27802780
}
27812781

2782-
if (DEBUG_LAYOUT
2783-
// TODO: Remove once b/7094175 is fixed
2784-
|| ((String)win.mAttrs.getTitle()).contains("Keyguard")
2785-
) Slog.v(TAG, "Relayout " + win + ": viewVisibility=" + viewVisibility
2782+
if (DEBUG_LAYOUT) Slog.v(TAG, "Relayout " + win + ": viewVisibility=" + viewVisibility
27862783
+ " req=" + requestedWidth + "x" + requestedHeight + " " + win.mAttrs);
27872784

27882785
win.mEnforceSizeCompat = (win.mAttrs.flags & FLAG_COMPATIBLE_WINDOW) != 0;
@@ -9403,9 +9400,7 @@ private final void performLayoutAndPlaceSurfacesLockedInner(boolean recoveringMe
94039400
"Reporting new frame to " + win + ": " + win.mCompatFrame);
94049401
int diff = 0;
94059402
boolean configChanged = win.isConfigChanged();
9406-
if ((DEBUG_RESIZE || DEBUG_ORIENTATION || DEBUG_CONFIGURATION
9407-
// TODO: Remove once b/7094175 is fixed
9408-
|| ((String)win.mAttrs.getTitle()).contains("Keyguard"))
9403+
if ((DEBUG_RESIZE || DEBUG_ORIENTATION || DEBUG_CONFIGURATION)
94099404
&& configChanged) {
94109405
Slog.i(TAG, "Sending new config to window " + win + ": "
94119406
+ winAnimator.mSurfaceW + "x" + winAnimator.mSurfaceH

0 commit comments

Comments
 (0)