Merge "Remove a bunch of logging." into honeycomb
This commit is contained in:
@@ -668,7 +668,8 @@ public class PhoneStatusBarPolicy {
|
|||||||
if ((mPhoneState == TelephonyManager.CALL_STATE_IDLE) && isEvdo()){
|
if ((mPhoneState == TelephonyManager.CALL_STATE_IDLE) && isEvdo()){
|
||||||
iconLevel = getEvdoLevel();
|
iconLevel = getEvdoLevel();
|
||||||
if (false) {
|
if (false) {
|
||||||
Slog.d(TAG, "use Evdo level=" + iconLevel + " to replace Cdma Level=" + getCdmaLevel());
|
Slog.d(TAG, "use Evdo level=" + iconLevel + " to replace Cdma Level="
|
||||||
|
+ getCdmaLevel());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
iconLevel = getCdmaLevel();
|
iconLevel = getCdmaLevel();
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ public class AirplaneModeController extends BroadcastReceiver
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onCheckedChanged(CompoundButton view, boolean checked) {
|
public void onCheckedChanged(CompoundButton view, boolean checked) {
|
||||||
Slog.d(TAG, "onCheckedChanged checked=" + checked + " mAirplaneMode=" + mAirplaneMode);
|
|
||||||
if (checked != mAirplaneMode) {
|
if (checked != mAirplaneMode) {
|
||||||
mAirplaneMode = checked;
|
mAirplaneMode = checked;
|
||||||
unsafe(checked);
|
unsafe(checked);
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ public class KeyButtonView extends ImageView {
|
|||||||
int mRepeat;
|
int mRepeat;
|
||||||
Runnable mCheckLongPress = new Runnable() {
|
Runnable mCheckLongPress = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
Slog.d("KeyButtonView", "longpress");
|
|
||||||
if (isPressed()) {
|
if (isPressed()) {
|
||||||
mLongPressed = true;
|
mLongPressed = true;
|
||||||
mRepeat++;
|
mRepeat++;
|
||||||
|
|||||||
@@ -73,12 +73,10 @@ public class HeightReceiver extends BroadcastReceiver {
|
|||||||
private void setPlugged(boolean plugged) {
|
private void setPlugged(boolean plugged) {
|
||||||
final Resources res = mContext.getResources();
|
final Resources res = mContext.getResources();
|
||||||
|
|
||||||
Slog.d(TAG, "plugged=" + plugged);
|
|
||||||
int height = -1;
|
int height = -1;
|
||||||
if (plugged) {
|
if (plugged) {
|
||||||
final DisplayMetrics metrics = new DisplayMetrics();
|
final DisplayMetrics metrics = new DisplayMetrics();
|
||||||
mWindowManager.getDefaultDisplay().getMetrics(metrics);
|
mWindowManager.getDefaultDisplay().getMetrics(metrics);
|
||||||
Slog.d(TAG, "metrics=" + metrics);
|
|
||||||
height = metrics.heightPixels - 720;
|
height = metrics.heightPixels - 720;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +85,8 @@ public class HeightReceiver extends BroadcastReceiver {
|
|||||||
if (height < minHeight) {
|
if (height < minHeight) {
|
||||||
height = minHeight;
|
height = minHeight;
|
||||||
}
|
}
|
||||||
Slog.d(TAG, "using height=" + height + " old=" + mHeight);
|
Slog.i(TAG, "Resizing status bar plugged=" + plugged + " height="
|
||||||
|
+ height + " old=" + mHeight);
|
||||||
mHeight = height;
|
mHeight = height;
|
||||||
|
|
||||||
final int N = mListeners.size();
|
final int N = mListeners.size();
|
||||||
|
|||||||
@@ -269,7 +269,8 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel,
|
|||||||
// fully closed, no animation necessary
|
// fully closed, no animation necessary
|
||||||
} else if (mVisible) {
|
} else if (mVisible) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Slog.d(TAG, "panelHeight not zero but trying to open; scheduling an anim to open fully");
|
Slog.d(TAG, "panelHeight not zero but trying to open; scheduling an anim"
|
||||||
|
+ " to open fully");
|
||||||
}
|
}
|
||||||
startAnimation(true);
|
startAnimation(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ public class SettingsView extends LinearLayout implements View.OnClickListener {
|
|||||||
// Network
|
// Network
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
private void onClickNetwork() {
|
private void onClickNetwork() {
|
||||||
Slog.d(TAG, "onClickNetwork");
|
|
||||||
getContext().startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)
|
getContext().startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)
|
||||||
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
||||||
getStatusBarManager().collapse();
|
getStatusBarManager().collapse();
|
||||||
@@ -104,7 +103,6 @@ public class SettingsView extends LinearLayout implements View.OnClickListener {
|
|||||||
// Settings
|
// Settings
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
private void onClickSettings() {
|
private void onClickSettings() {
|
||||||
Slog.d(TAG, "onClickSettings");
|
|
||||||
getContext().startActivity(new Intent(Settings.ACTION_SETTINGS)
|
getContext().startActivity(new Intent(Settings.ACTION_SETTINGS)
|
||||||
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
||||||
getStatusBarManager().collapse();
|
getStatusBarManager().collapse();
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ public class ShirtPocket extends ImageView {
|
|||||||
hideWindow();
|
hideWindow();
|
||||||
return true;
|
return true;
|
||||||
} else if (action == MotionEvent.ACTION_DOWN) {
|
} else if (action == MotionEvent.ACTION_DOWN) {
|
||||||
Slog.d(TAG, "ACTION_DOWN");
|
|
||||||
final ClipData clip = mClipping;
|
final ClipData clip = mClipping;
|
||||||
if (clip != null) {
|
if (clip != null) {
|
||||||
final Bitmap icon = clip.getIcon();
|
final Bitmap icon = clip.getIcon();
|
||||||
|
|||||||
@@ -596,7 +596,7 @@ public class TabletStatusBar extends StatusBar implements
|
|||||||
// TODO: immersive mode popups for tablet
|
// TODO: immersive mode popups for tablet
|
||||||
} else if (notification.notification.fullScreenIntent != null) {
|
} else if (notification.notification.fullScreenIntent != null) {
|
||||||
// not immersive & a full-screen alert should be shown
|
// not immersive & a full-screen alert should be shown
|
||||||
Slog.d(TAG, "Notification has fullScreenIntent and activity is not immersive;"
|
Slog.w(TAG, "Notification has fullScreenIntent and activity is not immersive;"
|
||||||
+ " sending fullScreenIntent");
|
+ " sending fullScreenIntent");
|
||||||
try {
|
try {
|
||||||
notification.notification.fullScreenIntent.send();
|
notification.notification.fullScreenIntent.send();
|
||||||
@@ -732,28 +732,28 @@ public class TabletStatusBar extends StatusBar implements
|
|||||||
// act accordingly
|
// act accordingly
|
||||||
if ((diff & StatusBarManager.DISABLE_CLOCK) != 0) {
|
if ((diff & StatusBarManager.DISABLE_CLOCK) != 0) {
|
||||||
boolean show = (state & StatusBarManager.DISABLE_CLOCK) == 0;
|
boolean show = (state & StatusBarManager.DISABLE_CLOCK) == 0;
|
||||||
Slog.d(TAG, "DISABLE_CLOCK: " + (show ? "no" : "yes"));
|
Slog.i(TAG, "DISABLE_CLOCK: " + (show ? "no" : "yes"));
|
||||||
showClock(show);
|
showClock(show);
|
||||||
}
|
}
|
||||||
if ((diff & StatusBarManager.DISABLE_SYSTEM_INFO) != 0) {
|
if ((diff & StatusBarManager.DISABLE_SYSTEM_INFO) != 0) {
|
||||||
boolean show = (state & StatusBarManager.DISABLE_SYSTEM_INFO) == 0;
|
boolean show = (state & StatusBarManager.DISABLE_SYSTEM_INFO) == 0;
|
||||||
Slog.d(TAG, "DISABLE_SYSTEM_INFO: " + (show ? "no" : "yes"));
|
Slog.i(TAG, "DISABLE_SYSTEM_INFO: " + (show ? "no" : "yes"));
|
||||||
mNotificationTrigger.setVisibility(show ? View.VISIBLE : View.GONE);
|
mNotificationTrigger.setVisibility(show ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
if ((diff & StatusBarManager.DISABLE_EXPAND) != 0) {
|
if ((diff & StatusBarManager.DISABLE_EXPAND) != 0) {
|
||||||
if ((state & StatusBarManager.DISABLE_EXPAND) != 0) {
|
if ((state & StatusBarManager.DISABLE_EXPAND) != 0) {
|
||||||
Slog.d(TAG, "DISABLE_EXPAND: yes");
|
Slog.i(TAG, "DISABLE_EXPAND: yes");
|
||||||
animateCollapse();
|
animateCollapse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((diff & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {
|
if ((diff & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {
|
||||||
if ((state & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {
|
if ((state & StatusBarManager.DISABLE_NOTIFICATION_ICONS) != 0) {
|
||||||
Slog.d(TAG, "DISABLE_NOTIFICATION_ICONS: yes");
|
Slog.i(TAG, "DISABLE_NOTIFICATION_ICONS: yes");
|
||||||
// synchronize with current shadow state
|
// synchronize with current shadow state
|
||||||
mNotificationIconArea.setVisibility(View.GONE);
|
mNotificationIconArea.setVisibility(View.GONE);
|
||||||
mTicker.halt();
|
mTicker.halt();
|
||||||
} else {
|
} else {
|
||||||
Slog.d(TAG, "DISABLE_NOTIFICATION_ICONS: no");
|
Slog.i(TAG, "DISABLE_NOTIFICATION_ICONS: no");
|
||||||
// synchronize with current shadow state
|
// synchronize with current shadow state
|
||||||
mNotificationIconArea.setVisibility(View.VISIBLE);
|
mNotificationIconArea.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
@@ -764,11 +764,11 @@ public class TabletStatusBar extends StatusBar implements
|
|||||||
}
|
}
|
||||||
if ((diff & StatusBarManager.DISABLE_NAVIGATION) != 0) {
|
if ((diff & StatusBarManager.DISABLE_NAVIGATION) != 0) {
|
||||||
if ((state & StatusBarManager.DISABLE_NAVIGATION) != 0) {
|
if ((state & StatusBarManager.DISABLE_NAVIGATION) != 0) {
|
||||||
Slog.d(TAG, "DISABLE_NAVIGATION: yes");
|
Slog.i(TAG, "DISABLE_NAVIGATION: yes");
|
||||||
mNavigationArea.setVisibility(View.GONE);
|
mNavigationArea.setVisibility(View.GONE);
|
||||||
mInputMethodSwitchButton.setScreenLocked(true);
|
mInputMethodSwitchButton.setScreenLocked(true);
|
||||||
} else {
|
} else {
|
||||||
Slog.d(TAG, "DISABLE_NAVIGATION: no");
|
Slog.i(TAG, "DISABLE_NAVIGATION: no");
|
||||||
mNavigationArea.setVisibility(View.VISIBLE);
|
mNavigationArea.setVisibility(View.VISIBLE);
|
||||||
mInputMethodSwitchButton.setScreenLocked(false);
|
mInputMethodSwitchButton.setScreenLocked(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,9 @@ public class TabletStatusBarView extends FrameLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Slog.d(TabletStatusBar.TAG, "TabletStatusBarView not intercepting event");
|
if (TabletStatusBar.DEBUG) {
|
||||||
|
Slog.d(TabletStatusBar.TAG, "TabletStatusBarView not intercepting event");
|
||||||
|
}
|
||||||
return super.onInterceptTouchEvent(ev);
|
return super.onInterceptTouchEvent(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ public class TabletTicker
|
|||||||
|
|
||||||
public void remove(IBinder key, boolean advance) {
|
public void remove(IBinder key, boolean advance) {
|
||||||
if (mCurrentKey == key) {
|
if (mCurrentKey == key) {
|
||||||
Slog.d(TAG, "removed current");
|
|
||||||
// Showing now
|
// Showing now
|
||||||
if (advance) {
|
if (advance) {
|
||||||
removeMessages(MSG_ADVANCE);
|
removeMessages(MSG_ADVANCE);
|
||||||
@@ -121,7 +120,6 @@ public class TabletTicker
|
|||||||
// In the queue
|
// In the queue
|
||||||
for (int i=0; i<QUEUE_LENGTH; i++) {
|
for (int i=0; i<QUEUE_LENGTH; i++) {
|
||||||
if (mKeys[i] == key) {
|
if (mKeys[i] == key) {
|
||||||
Slog.d(TAG, "removed from queue: " + i);
|
|
||||||
for (; i<QUEUE_LENGTH-1; i++) {
|
for (; i<QUEUE_LENGTH-1; i++) {
|
||||||
mKeys[i] = mKeys[i+1];
|
mKeys[i] = mKeys[i+1];
|
||||||
mQueue[i] = mQueue[i+1];
|
mQueue[i] = mQueue[i+1];
|
||||||
|
|||||||
Reference in New Issue
Block a user