summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-03-04 13:03:17 -0800
committerRomain Guy <romainguy@android.com>2010-03-04 13:03:17 -0800
commitedcce099c98a6c40d10109ac092ab50f9d2668f3 (patch)
tree92a0416dd26317f2b38602c2b8cb9cce5b7b6b0c /src
parent2dc785dbde506090d6df6572c6cc88d7958754f0 (diff)
downloadandroid_packages_apps_Trebuchet-edcce099c98a6c40d10109ac092ab50f9d2668f3.tar.gz
android_packages_apps_Trebuchet-edcce099c98a6c40d10109ac092ab50f9d2668f3.tar.bz2
android_packages_apps_Trebuchet-edcce099c98a6c40d10109ac092ab50f9d2668f3.zip
Fix the build!
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AddAdapter.java2
-rw-r--r--src/com/android/launcher2/AllApps2D.java14
-rw-r--r--src/com/android/launcher2/AllApps3D.java2
-rw-r--r--src/com/android/launcher2/BubbleTextView.java2
-rw-r--r--src/com/android/launcher2/CellLayout.java2
-rw-r--r--src/com/android/launcher2/DeleteZone.java2
-rw-r--r--src/com/android/launcher2/Folder.java2
-rw-r--r--src/com/android/launcher2/FolderIcon.java2
-rw-r--r--src/com/android/launcher2/HandleView.java2
-rw-r--r--src/com/android/launcher2/InstallShortcutReceiver.java2
-rw-r--r--src/com/android/launcher2/Launcher.java2
-rw-r--r--src/com/android/launcher2/LauncherAppWidgetHostView.java2
-rw-r--r--src/com/android/launcher2/LauncherModel.java2
-rw-r--r--src/com/android/launcher2/LauncherProvider.java2
-rw-r--r--src/com/android/launcher2/LiveFolder.java2
-rw-r--r--src/com/android/launcher2/LiveFolderAdapter.java2
-rw-r--r--src/com/android/launcher2/LiveFolderIcon.java2
-rw-r--r--src/com/android/launcher2/ShortcutsAdapter.java4
-rw-r--r--src/com/android/launcher2/UninstallShortcutReceiver.java2
-rw-r--r--src/com/android/launcher2/UserFolder.java2
-rw-r--r--src/com/android/launcher2/Utilities.java2
-rw-r--r--src/com/android/launcher2/WallpaperChooser.java2
-rw-r--r--src/com/android/launcher2/Workspace.java2
23 files changed, 45 insertions, 15 deletions
diff --git a/src/com/android/launcher2/AddAdapter.java b/src/com/android/launcher2/AddAdapter.java
index 77f1f5569..24c31ffcd 100644
--- a/src/com/android/launcher2/AddAdapter.java
+++ b/src/com/android/launcher2/AddAdapter.java
@@ -27,6 +27,8 @@ import android.widget.TextView;
import java.util.ArrayList;
+import com.android.launcher.R;
+
/**
* Adapter showing the types of items that can be added to a {@link Workspace}.
*/
diff --git a/src/com/android/launcher2/AllApps2D.java b/src/com/android/launcher2/AllApps2D.java
index 55eb21704..1262880fc 100644
--- a/src/com/android/launcher2/AllApps2D.java
+++ b/src/com/android/launcher2/AllApps2D.java
@@ -19,26 +19,15 @@ package com.android.launcher2;
import android.content.ComponentName;
import android.content.Context;
import android.content.res.Resources;
-import android.graphics.Bitmap;
-import android.graphics.Canvas;
-import android.graphics.PixelFormat;
-import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
-import android.os.SystemClock;
import android.util.AttributeSet;
import android.util.Log;
import android.view.KeyEvent;
import android.view.ViewGroup;
-import android.view.MotionEvent;
import android.view.LayoutInflater;
-import android.view.SoundEffectConstants;
-import android.view.SurfaceHolder;
-import android.view.VelocityTracker;
import android.view.View;
-import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.ViewConfiguration;
-import android.view.accessibility.AccessibilityEvent;
import android.widget.AdapterView;
import android.widget.ImageButton;
import android.widget.TextView;
@@ -47,10 +36,9 @@ import android.widget.GridView;
import android.widget.RelativeLayout;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collections;
-import java.util.Comparator;
+import com.android.launcher.R;
public class AllApps2D
extends RelativeLayout
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java
index ac4b52cfa..0b236628c 100644
--- a/src/com/android/launcher2/AllApps3D.java
+++ b/src/com/android/launcher2/AllApps3D.java
@@ -52,6 +52,8 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
+import com.android.launcher.R;
+
public class AllApps3D extends RSSurfaceView
implements AllAppsView, View.OnClickListener, View.OnLongClickListener, DragSource {
private static final String TAG = "Launcher.AllApps3D";
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java
index eaaff1cbb..4a56e1bb0 100644
--- a/src/com/android/launcher2/BubbleTextView.java
+++ b/src/com/android/launcher2/BubbleTextView.java
@@ -25,6 +25,8 @@ import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.text.Layout;
+import com.android.launcher.R;
+
/**
* TextView that draws a bubble behind the text. We cannot use a LineBackgroundSpan
* because we want to make the bubble taller than the text and TextView's clip is
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index 8b141a41c..9d39c2ca7 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -32,6 +32,8 @@ import android.app.WallpaperManager;
import java.util.ArrayList;
+import com.android.launcher.R;
+
public class CellLayout extends ViewGroup {
private boolean mPortrait;
diff --git a/src/com/android/launcher2/DeleteZone.java b/src/com/android/launcher2/DeleteZone.java
index fabeb4a3b..9065de494 100644
--- a/src/com/android/launcher2/DeleteZone.java
+++ b/src/com/android/launcher2/DeleteZone.java
@@ -33,6 +33,8 @@ import android.view.animation.AlphaAnimation;
import android.graphics.RectF;
import android.graphics.drawable.TransitionDrawable;
+import com.android.launcher.R;
+
public class DeleteZone extends ImageView implements DropTarget, DragController.DragListener {
private static final int ORIENTATION_HORIZONTAL = 1;
private static final int TRANSITION_DURATION = 250;
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index 435004d33..cd3eae8d4 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -29,6 +29,8 @@ import android.widget.BaseAdapter;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
+import com.android.launcher.R;
+
/**
* Represents a set of icons chosen by the user or generated by the system.
*/
diff --git a/src/com/android/launcher2/FolderIcon.java b/src/com/android/launcher2/FolderIcon.java
index 826336c9f..0013644ab 100644
--- a/src/com/android/launcher2/FolderIcon.java
+++ b/src/com/android/launcher2/FolderIcon.java
@@ -24,6 +24,8 @@ import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;
+import com.android.launcher.R;
+
/**
* An icon that can appear on in the workspace representing an {@link UserFolder}.
*/
diff --git a/src/com/android/launcher2/HandleView.java b/src/com/android/launcher2/HandleView.java
index e07334e9f..e2e5745c5 100644
--- a/src/com/android/launcher2/HandleView.java
+++ b/src/com/android/launcher2/HandleView.java
@@ -25,6 +25,8 @@ import android.view.MotionEvent;
import android.view.KeyEvent;
import android.view.View;
+import com.android.launcher.R;
+
public class HandleView extends ImageView {
private static final int ORIENTATION_HORIZONTAL = 1;
diff --git a/src/com/android/launcher2/InstallShortcutReceiver.java b/src/com/android/launcher2/InstallShortcutReceiver.java
index 9a2f73fcd..3fc568b9f 100644
--- a/src/com/android/launcher2/InstallShortcutReceiver.java
+++ b/src/com/android/launcher2/InstallShortcutReceiver.java
@@ -23,6 +23,8 @@ import android.content.ContentResolver;
import android.database.Cursor;
import android.widget.Toast;
+import com.android.launcher.R;
+
public class InstallShortcutReceiver extends BroadcastReceiver {
private static final String ACTION_INSTALL_SHORTCUT =
"com.android.launcher.action.INSTALL_SHORTCUT";
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 08ef8439c..00e2c3d62 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -77,6 +77,8 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.DataInputStream;
+import com.android.launcher.R;
+
/**
* Default launcher application.
*/
diff --git a/src/com/android/launcher2/LauncherAppWidgetHostView.java b/src/com/android/launcher2/LauncherAppWidgetHostView.java
index d8fe49918..c45140ef6 100644
--- a/src/com/android/launcher2/LauncherAppWidgetHostView.java
+++ b/src/com/android/launcher2/LauncherAppWidgetHostView.java
@@ -23,6 +23,8 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
+import com.android.launcher.R;
+
/**
* {@inheritDoc}
*/
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 16e5c3b6f..8790fd7bd 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -50,6 +50,8 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
+import com.android.launcher.R;
+
/**
* Maintains in-memory state of the Launcher. It is expected that there should be only one
* LauncherModel object held in a static. Also provide APIs for updating the database state
diff --git a/src/com/android/launcher2/LauncherProvider.java b/src/com/android/launcher2/LauncherProvider.java
index e262be385..9f55e9152 100644
--- a/src/com/android/launcher2/LauncherProvider.java
+++ b/src/com/android/launcher2/LauncherProvider.java
@@ -57,6 +57,8 @@ import org.xmlpull.v1.XmlPullParser;
import com.android.internal.util.XmlUtils;
import com.android.launcher2.LauncherSettings.Favorites;
+import com.android.launcher.R;
+
public class LauncherProvider extends ContentProvider {
private static final String TAG = "Launcher.LauncherProvider";
private static final boolean LOGD = false;
diff --git a/src/com/android/launcher2/LiveFolder.java b/src/com/android/launcher2/LiveFolder.java
index ecd9bdf9c..c85a844d0 100644
--- a/src/com/android/launcher2/LiveFolder.java
+++ b/src/com/android/launcher2/LiveFolder.java
@@ -29,6 +29,8 @@ import android.database.Cursor;
import java.lang.ref.WeakReference;
+import com.android.launcher.R;
+
public class LiveFolder extends Folder {
private AsyncTask<LiveFolderInfo,Void,Cursor> mLoadingTask;
diff --git a/src/com/android/launcher2/LiveFolderAdapter.java b/src/com/android/launcher2/LiveFolderAdapter.java
index 58b43e33a..fb9c6a37a 100644
--- a/src/com/android/launcher2/LiveFolderAdapter.java
+++ b/src/com/android/launcher2/LiveFolderAdapter.java
@@ -36,6 +36,8 @@ import java.net.URISyntaxException;
import java.util.HashMap;
import java.lang.ref.SoftReference;
+import com.android.launcher.R;
+
class LiveFolderAdapter extends CursorAdapter {
private boolean mIsList;
private LayoutInflater mInflater;
diff --git a/src/com/android/launcher2/LiveFolderIcon.java b/src/com/android/launcher2/LiveFolderIcon.java
index f80928bd4..5b73a59a7 100644
--- a/src/com/android/launcher2/LiveFolderIcon.java
+++ b/src/com/android/launcher2/LiveFolderIcon.java
@@ -23,6 +23,8 @@ import android.view.ViewGroup;
import android.view.LayoutInflater;
import android.graphics.Bitmap;
+import com.android.launcher.R;
+
public class LiveFolderIcon extends FolderIcon {
public LiveFolderIcon(Context context, AttributeSet attrs) {
super(context, attrs);
diff --git a/src/com/android/launcher2/ShortcutsAdapter.java b/src/com/android/launcher2/ShortcutsAdapter.java
index 212b5d62d..19c3af0a8 100644
--- a/src/com/android/launcher2/ShortcutsAdapter.java
+++ b/src/com/android/launcher2/ShortcutsAdapter.java
@@ -26,17 +26,17 @@ import android.widget.TextView;
import java.util.ArrayList;
+import com.android.launcher.R;
+
/**
* GridView adapter to show the list of applications and shortcuts
*/
public class ShortcutsAdapter extends ArrayAdapter<ShortcutInfo> {
private final LayoutInflater mInflater;
- private final PackageManager mPackageManager;
private final IconCache mIconCache;
public ShortcutsAdapter(Context context, ArrayList<ShortcutInfo> apps) {
super(context, 0, apps);
- mPackageManager = context.getPackageManager();
mInflater = LayoutInflater.from(context);
mIconCache = ((LauncherApplication)context.getApplicationContext()).getIconCache();
}
diff --git a/src/com/android/launcher2/UninstallShortcutReceiver.java b/src/com/android/launcher2/UninstallShortcutReceiver.java
index e65c6a039..eb4ee4cf3 100644
--- a/src/com/android/launcher2/UninstallShortcutReceiver.java
+++ b/src/com/android/launcher2/UninstallShortcutReceiver.java
@@ -26,6 +26,8 @@ import android.widget.Toast;
import java.net.URISyntaxException;
+import com.android.launcher.R;
+
public class UninstallShortcutReceiver extends BroadcastReceiver {
private static final String ACTION_UNINSTALL_SHORTCUT =
"com.android.launcher.action.UNINSTALL_SHORTCUT";
diff --git a/src/com/android/launcher2/UserFolder.java b/src/com/android/launcher2/UserFolder.java
index 148949217..d49c27aea 100644
--- a/src/com/android/launcher2/UserFolder.java
+++ b/src/com/android/launcher2/UserFolder.java
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
+import com.android.launcher.R;
+
/**
* Folder which contains applications or shortcuts chosen by the user.
*
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java
index fbe489ec5..c83e7dbfd 100644
--- a/src/com/android/launcher2/Utilities.java
+++ b/src/com/android/launcher2/Utilities.java
@@ -38,6 +38,8 @@ import android.util.Log;
import android.content.res.Resources;
import android.content.Context;
+import com.android.launcher.R;
+
/**
* Various utilities shared amongst the Launcher's classes.
*/
diff --git a/src/com/android/launcher2/WallpaperChooser.java b/src/com/android/launcher2/WallpaperChooser.java
index 8045059e7..11621cefa 100644
--- a/src/com/android/launcher2/WallpaperChooser.java
+++ b/src/com/android/launcher2/WallpaperChooser.java
@@ -38,6 +38,8 @@ import android.widget.ImageView;
import java.io.IOException;
import java.util.ArrayList;
+import com.android.launcher.R;
+
public class WallpaperChooser extends Activity implements AdapterView.OnItemSelectedListener,
OnClickListener {
private static final String TAG = "Launcher.WallpaperChooser";
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index e64c487af..824ef5ff7 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -44,6 +44,8 @@ import android.widget.TextView;
import java.util.ArrayList;
+import com.android.launcher.R;
+
/**
* The workspace is a wide area with a wallpaper and a finite number of screens. Each
* screen contains a number of icons, folders or widgets the user can interact with.