summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common/Utils.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-03-07 17:39:56 +0800
committerOwen Lin <owenlin@google.com>2012-03-14 15:48:54 +0800
commitaa03cd0a539c56dcc0c6d2f9a000d8374b394b41 (patch)
tree9d79d2dc46d9f1d644204af22efd31ba9a83bce9 /gallerycommon/src/com/android/gallery3d/common/Utils.java
parent23a22e3510d1ef95c67455b3f59025aa985b8542 (diff)
downloadandroid_packages_apps_Snap-aa03cd0a539c56dcc0c6d2f9a000d8374b394b41.tar.gz
android_packages_apps_Snap-aa03cd0a539c56dcc0c6d2f9a000d8374b394b41.tar.bz2
android_packages_apps_Snap-aa03cd0a539c56dcc0c6d2f9a000d8374b394b41.zip
Reuse bitmap for all micro thumb images to prevent GC.
Change-Id: I27d3002e5bb745a597f52962fe24744c8329441c
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common/Utils.java')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/Utils.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/Utils.java b/gallerycommon/src/com/android/gallery3d/common/Utils.java
index bbe2a5d55..391b22535 100644
--- a/gallerycommon/src/com/android/gallery3d/common/Utils.java
+++ b/gallerycommon/src/com/android/gallery3d/common/Utils.java
@@ -16,22 +16,17 @@
package com.android.gallery3d.common;
-import android.app.PendingIntent;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.database.Cursor;
import android.os.Build;
-import android.os.Environment;
-import android.os.Parcel;
import android.os.ParcelFileDescriptor;
-import android.os.StatFs;
import android.text.TextUtils;
import android.util.Log;
import java.io.Closeable;
import java.io.InterruptedIOException;
-import java.util.Random;
public class Utils {
private static final String TAG = "Utils";
@@ -336,4 +331,9 @@ public class Utils {
int length = Math.min(s.length(), MASK_STRING.length());
return IS_DEBUG_BUILD ? s : MASK_STRING.substring(0, length);
}
+
+ // This method should be ONLY used for debugging.
+ public static void debug(String message, Object ... args) {
+ Log.v(DEBUG_TAG, String.format(message, args));
+ }
}