summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AllAppsView.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-11-11 08:16:49 -0800
committerJoe Onorato <joeo@android.com>2009-11-11 09:24:37 -0800
commita30ce8e6b25e41f392a41fd4d0d3e0a424a84dad (patch)
tree5fb171cce47df3d347b2966c9eb2d5473fd662b3 /src/com/android/launcher2/AllAppsView.java
parentc23c549af8435a92830c36031fa3620a9824ed63 (diff)
downloadandroid_packages_apps_Trebuchet-a30ce8e6b25e41f392a41fd4d0d3e0a424a84dad.tar.gz
android_packages_apps_Trebuchet-a30ce8e6b25e41f392a41fd4d0d3e0a424a84dad.tar.bz2
android_packages_apps_Trebuchet-a30ce8e6b25e41f392a41fd4d0d3e0a424a84dad.zip
Bug 2231692 - Turn off launcher2 logging.
Diffstat (limited to 'src/com/android/launcher2/AllAppsView.java')
-rw-r--r--src/com/android/launcher2/AllAppsView.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index a7a1e6421..76fee5b91 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -182,8 +182,7 @@ public class AllAppsView extends RSSurfaceView
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
- Log.d(TAG, "starting surfaceChanged");
- long startTime = SystemClock.uptimeMillis();
+ //long startTime = SystemClock.uptimeMillis();
super.surfaceChanged(holder, format, w, h);
@@ -194,7 +193,6 @@ public class AllAppsView extends RSSurfaceView
mRollo.init(getResources(), w, h);
if (mAllAppsList != null) {
mRollo.setApps(mAllAppsList);
- Log.d(TAG, "surfaceChanged... calling mRollo.setApps");
}
if (mShouldGainFocus) {
gainFocus();
@@ -209,8 +207,8 @@ public class AllAppsView extends RSSurfaceView
Resources res = getContext().getResources();
int barHeight = (int)res.getDimension(R.dimen.button_bar_height);
- long endTime = SystemClock.uptimeMillis();
- Log.d(TAG, "surfaceChanged took " + (endTime-startTime) + "ms");
+ //long endTime = SystemClock.uptimeMillis();
+ //Log.d(TAG, "surfaceChanged took " + (endTime-startTime) + "ms");
}
@Override
@@ -615,21 +613,6 @@ public class AllAppsView extends RSSurfaceView
}
}
- /*
- @Override
- public boolean onTrackballEvent(MotionEvent ev)
- {
- float x = ev.getX();
- float y = ev.getY();
- //Float tx = new Float(x);
- //Float ty = new Float(y);
- //Log.e("rs", "tbe " + tx.toString() + ", " + ty.toString());
-
-
- return true;
- }
- */
-
public void setApps(ArrayList<ApplicationInfo> list) {
mAllAppsList = list;
if (mRollo != null) {
@@ -655,7 +638,6 @@ public class AllAppsView extends RSSurfaceView
if (index < 0) {
index = -(index+1);
}
- Log.d(TAG, "Adding app '" + item + "' at index " + index + " mRollo=" + mRollo);
mAllAppsList.add(index, item);
if (mRollo != null) {
mRollo.addApp(index, item);
@@ -685,7 +667,7 @@ public class AllAppsView extends RSSurfaceView
mRollo.mState.iconCount--;
}
} else {
- Log.e(TAG, "couldn't find a match for item \"" + item + "\"");
+ Log.w(TAG, "couldn't find a match for item \"" + item + "\"");
// Try to recover. This should keep us from crashing for now.
}
}
@@ -795,7 +777,6 @@ public class AllAppsView extends RSSurfaceView
mPosX = ((float)mData[0]) / (1 << 16);
mVelocity = ((float)mData[1]) / (1 << 16);
mZoom = ((float)mData[2]) / (1 << 16);
- //Log.d("rs", "new msg " + mPosX + " " + mVelocity + " " + mZoom);
}
float mZoom;
float mPosX;
@@ -804,7 +785,6 @@ public class AllAppsView extends RSSurfaceView
AAMessage mMessageProc;
private boolean checkClickOK() {
- //android.util.Log.e("rs", "check click " + Float.toString(mReadback.velocity) + ", " + Float.toString(mReadback.posX));
return (Math.abs(mMessageProc.mVelocity) < 0.4f) &&
(Math.abs(mMessageProc.mPosX - Math.round(mMessageProc.mPosX)) < 0.4f);
}