Merge "Log Volume visibility at INFO temporarily, to collect better data on why it is sometimes not dismissed." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
18e7ac673a
@@ -1402,7 +1402,7 @@ public class VolumeDialogImpl implements VolumeDialog,
|
|||||||
|
|
||||||
private void showH(int reason, boolean keyguardLocked, int lockTaskModeState) {
|
private void showH(int reason, boolean keyguardLocked, int lockTaskModeState) {
|
||||||
Trace.beginSection("VolumeDialogImpl#showH");
|
Trace.beginSection("VolumeDialogImpl#showH");
|
||||||
if (D.BUG) Log.d(TAG, "showH r=" + Events.SHOW_REASONS[reason]);
|
Log.i(TAG, "showH r=" + Events.SHOW_REASONS[reason]);
|
||||||
mHandler.removeMessages(H.SHOW);
|
mHandler.removeMessages(H.SHOW);
|
||||||
mHandler.removeMessages(H.DISMISS);
|
mHandler.removeMessages(H.DISMISS);
|
||||||
rescheduleTimeoutH();
|
rescheduleTimeoutH();
|
||||||
@@ -1430,7 +1430,7 @@ public class VolumeDialogImpl implements VolumeDialog,
|
|||||||
final int timeout = computeTimeoutH();
|
final int timeout = computeTimeoutH();
|
||||||
mHandler.sendMessageDelayed(mHandler
|
mHandler.sendMessageDelayed(mHandler
|
||||||
.obtainMessage(H.DISMISS, Events.DISMISS_REASON_TIMEOUT, 0), timeout);
|
.obtainMessage(H.DISMISS, Events.DISMISS_REASON_TIMEOUT, 0), timeout);
|
||||||
if (D.BUG) Log.d(TAG, "rescheduleTimeout " + timeout + " " + Debug.getCaller());
|
Log.i(TAG, "rescheduleTimeout " + timeout + " " + Debug.getCaller());
|
||||||
mController.userActivity();
|
mController.userActivity();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1457,10 +1457,10 @@ public class VolumeDialogImpl implements VolumeDialog,
|
|||||||
|
|
||||||
protected void dismissH(int reason) {
|
protected void dismissH(int reason) {
|
||||||
Trace.beginSection("VolumeDialogImpl#dismissH");
|
Trace.beginSection("VolumeDialogImpl#dismissH");
|
||||||
if (D.BUG) {
|
|
||||||
Log.d(TAG, "mDialog.dismiss() reason: " + Events.DISMISS_REASONS[reason]
|
Log.i(TAG, "mDialog.dismiss() reason: " + Events.DISMISS_REASONS[reason]
|
||||||
+ " from: " + Debug.getCaller());
|
+ " from: " + Debug.getCaller());
|
||||||
}
|
|
||||||
mHandler.removeMessages(H.DISMISS);
|
mHandler.removeMessages(H.DISMISS);
|
||||||
mHandler.removeMessages(H.SHOW);
|
mHandler.removeMessages(H.SHOW);
|
||||||
if (mIsAnimatingDismiss) {
|
if (mIsAnimatingDismiss) {
|
||||||
|
|||||||
Reference in New Issue
Block a user