summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ApplicationInfo.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-11-17 17:32:16 -0800
committerJoe Onorato <joeo@android.com>2009-11-17 18:04:52 -0800
commitbe38609f875f9b9374ceaf723135c0a624637fcb (patch)
treebf7c66e12f86fa685ea2b98051e020a82bd9ff57 /src/com/android/launcher2/ApplicationInfo.java
parentb40d29cb41c302387b2794b214fe2522073d957d (diff)
downloadandroid_packages_apps_Trebuchet-be38609f875f9b9374ceaf723135c0a624637fcb.tar.gz
android_packages_apps_Trebuchet-be38609f875f9b9374ceaf723135c0a624637fcb.tar.bz2
android_packages_apps_Trebuchet-be38609f875f9b9374ceaf723135c0a624637fcb.zip
Add a lot of logging that can be seen by doing adb shell setprop launcher2.dumpstate 1 and presssing volume down
Diffstat (limited to 'src/com/android/launcher2/ApplicationInfo.java')
-rw-r--r--src/com/android/launcher2/ApplicationInfo.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/launcher2/ApplicationInfo.java b/src/com/android/launcher2/ApplicationInfo.java
index db802c757..0fe84e731 100644
--- a/src/com/android/launcher2/ApplicationInfo.java
+++ b/src/com/android/launcher2/ApplicationInfo.java
@@ -21,6 +21,9 @@ import android.content.ContentValues;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
+import android.util.Log;
+
+import java.util.ArrayList;
/**
* Represents a launchable application. An application is made of a name (or title),
@@ -140,4 +143,15 @@ class ApplicationInfo extends ItemInfo {
super.unbind();
icon.setCallback(null);
}
+
+
+ public static void dumpApplicationInfoList(String tag, String label,
+ ArrayList<ApplicationInfo> list) {
+ Log.d(tag, label + " size=" + list.size());
+ for (ApplicationInfo info: list) {
+ Log.d(tag, " title=\"" + info.title + "\" titleBitmap=" + info.titleBitmap
+ + " icon=" + info.icon + " iconBitmap=" + info.iconBitmap
+ + " filtered=" + info.filtered + " customIcon=" + info.customIcon);
+ }
+ }
}