From: Daniel Sandler Date: Thu, 6 Jun 2013 02:57:57 +0000 (-0400) Subject: Launcher2 is now Launcher3. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=325dc23624160689e59fbac708cf6f222b20d025;p=android-x86%2Fpackages-apps-Trebuchet.git Launcher2 is now Launcher3. Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b --- diff --git a/Android.mk b/Android.mk index 351954130..a2e2f107a 100644 --- a/Android.mk +++ b/Android.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2008 The Android Open Source Project +# Copyright (C) 2013 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,10 +22,10 @@ LOCAL_MODULE_TAGS := optional LOCAL_STATIC_JAVA_LIBRARIES := android-common android-support-v13 LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src) -LOCAL_SDK_VERSION := current +LOCAL_SDK_VERSION := 17 -LOCAL_PACKAGE_NAME := Launcher2 -LOCAL_CERTIFICATE := shared +LOCAL_PACKAGE_NAME := Launcher3 +#LOCAL_CERTIFICATE := shared LOCAL_OVERRIDES_PACKAGES := Home diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f3ef6c8c1..81d7c8b62 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,34 +19,32 @@ --> - - + package="com.android.launcher3"> - - + + + android:name="com.android.launcher3.PreloadReceiver" + android:permission="com.android.launcher3.permission.PRELOAD_WORKSPACE"> - + + android:name="com.android.launcher3.InstallShortcutReceiver" + android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT"> - + + android:name="com.android.launcher3.UninstallShortcutReceiver" + android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT"> - + - + @@ -146,11 +144,11 @@ + android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS" + android:readPermission="com.android.launcher3.permission.READ_SETTINGS" /> diff --git a/proguard.flags b/proguard.flags index 0cde28ec1..ada622695 100644 --- a/proguard.flags +++ b/proguard.flags @@ -1,4 +1,4 @@ --keep class com.android.launcher2.Launcher { +-keep class com.android.launcher3.Launcher { public void previousScreen(android.view.View); public void nextScreen(android.view.View); public void launchHotSeat(android.view.View); @@ -11,7 +11,7 @@ public void dismissAllAppsCling(android.view.View); } --keep class com.android.launcher2.CellLayout { +-keep class com.android.launcher3.CellLayout { public float getBackgroundAlpha(); public void setBackgroundAlpha(float); public float getDimmableProgress(); @@ -22,7 +22,7 @@ public void setHoverAlpha(float); } --keep class com.android.launcher2.DragLayer$LayoutParams { +-keep class com.android.launcher3.DragLayer$LayoutParams { public void setWidth(int); public int getWidth(); public void setHeight(int); @@ -33,7 +33,7 @@ public int getY(); } --keep class com.android.launcher2.CellLayout$LayoutParams { +-keep class com.android.launcher3.CellLayout$LayoutParams { public void setWidth(int); public int getWidth(); public void setHeight(int); @@ -44,7 +44,7 @@ public int getY(); } --keep class com.android.launcher2.Workspace { +-keep class com.android.launcher3.Workspace { public float getBackgroundAlpha(); public void setBackgroundAlpha(float); public float getChildrenOutlineAlpha(); @@ -55,10 +55,10 @@ public float getHorizontalWallpaperOffset(); } --keep class com.android.launcher2.AllApps3D$Defines { +-keep class com.android.launcher3.AllApps3D$Defines { *; } --keep class com.android.launcher2.ClippedImageView { +-keep class com.android.launcher3.ClippedImageView { *; } diff --git a/res/drawable/wallpaper_gallery_background.xml b/res/drawable/wallpaper_gallery_background.xml index 271c1dfb8..283b4684c 100644 --- a/res/drawable/wallpaper_gallery_background.xml +++ b/res/drawable/wallpaper_gallery_background.xml @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/res/layout-land/all_apps_cling.xml b/res/layout-land/all_apps_cling.xml index fccf400af..820f00a6d 100644 --- a/res/layout-land/all_apps_cling.xml +++ b/res/layout-land/all_apps_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-land/application.xml b/res/layout-land/application.xml index 9ed1fa115..d20e1be1e 100644 --- a/res/layout-land/application.xml +++ b/res/layout-land/application.xml @@ -14,7 +14,7 @@ limitations under the License. --> - diff --git a/res/layout-land/apps_customize_application.xml b/res/layout-land/apps_customize_application.xml index ba95b27a6..bf0022d76 100644 --- a/res/layout-land/apps_customize_application.xml +++ b/res/layout-land/apps_customize_application.xml @@ -14,9 +14,9 @@ limitations under the License. --> - - - + diff --git a/res/layout-land/folder_icon.xml b/res/layout-land/folder_icon.xml index 808ff5e7b..32d729802 100644 --- a/res/layout-land/folder_icon.xml +++ b/res/layout-land/folder_icon.xml @@ -14,7 +14,7 @@ limitations under the License. --> - - - + diff --git a/res/layout-land/hotseat.xml b/res/layout-land/hotseat.xml index aebb21842..f2d2b00e7 100644 --- a/res/layout-land/hotseat.xml +++ b/res/layout-land/hotseat.xml @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 88490987b..02cde57d0 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -17,21 +17,21 @@ - - - + - - - \ No newline at end of file + + diff --git a/res/layout-land/search_bar.xml b/res/layout-land/search_bar.xml index 8cdee942c..ab36361fe 100644 --- a/res/layout-land/search_bar.xml +++ b/res/layout-land/search_bar.xml @@ -19,7 +19,7 @@ android:layout_height="match_parent" android:orientation="vertical"> - - - @@ -56,4 +56,4 @@ android:layout_marginEnd="10dp" android:layout_gravity="bottom|end" android:onClick="dismissWorkspaceCling" /> - + diff --git a/res/layout-port/all_apps_cling.xml b/res/layout-port/all_apps_cling.xml index 6954fb212..62284ec73 100644 --- a/res/layout-port/all_apps_cling.xml +++ b/res/layout-port/all_apps_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-port/application.xml b/res/layout-port/application.xml index ddc835420..4dcc774d7 100644 --- a/res/layout-port/application.xml +++ b/res/layout-port/application.xml @@ -14,7 +14,7 @@ limitations under the License. --> - diff --git a/res/layout-port/apps_customize_application.xml b/res/layout-port/apps_customize_application.xml index 84a8712d7..0b7bab6c5 100644 --- a/res/layout-port/apps_customize_application.xml +++ b/res/layout-port/apps_customize_application.xml @@ -14,9 +14,9 @@ limitations under the License. --> - - - + diff --git a/res/layout-port/folder_icon.xml b/res/layout-port/folder_icon.xml index 5ee1327a3..686fb170c 100644 --- a/res/layout-port/folder_icon.xml +++ b/res/layout-port/folder_icon.xml @@ -14,7 +14,7 @@ limitations under the License. --> - - - + diff --git a/res/layout-port/hotseat.xml b/res/layout-port/hotseat.xml index 4ca0bb820..cab20b2da 100644 --- a/res/layout-port/hotseat.xml +++ b/res/layout-port/hotseat.xml @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 346d29b5a..780f4366e 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -17,14 +17,14 @@ - - - + - - + diff --git a/res/layout-port/search_bar.xml b/res/layout-port/search_bar.xml index 62bdb22fc..1e12e9eb8 100644 --- a/res/layout-port/search_bar.xml +++ b/res/layout-port/search_bar.xml @@ -15,14 +15,14 @@ --> - - + - - + diff --git a/res/layout-port/workspace_cling.xml b/res/layout-port/workspace_cling.xml index ca71a3b44..052e1a091 100644 --- a/res/layout-port/workspace_cling.xml +++ b/res/layout-port/workspace_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - @@ -59,4 +59,4 @@ android:layout_marginEnd="10dp" android:layout_gravity="bottom|end" android:onClick="dismissWorkspaceCling" /> - + diff --git a/res/layout-sw600dp-port/all_apps_cling.xml b/res/layout-sw600dp-port/all_apps_cling.xml index fc32c4a89..cf65e410d 100644 --- a/res/layout-sw600dp-port/all_apps_cling.xml +++ b/res/layout-sw600dp-port/all_apps_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-sw600dp-port/folder_cling.xml b/res/layout-sw600dp-port/folder_cling.xml index 356bae55c..87086cb62 100644 --- a/res/layout-sw600dp-port/folder_cling.xml +++ b/res/layout-sw600dp-port/folder_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-sw720dp-port/folder_cling.xml b/res/layout-sw720dp-port/folder_cling.xml index d4d66dc74..40d4e20a5 100644 --- a/res/layout-sw720dp-port/folder_cling.xml +++ b/res/layout-sw720dp-port/folder_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-sw720dp/all_apps_cling.xml b/res/layout-sw720dp/all_apps_cling.xml index d6e19d302..824d84f0d 100644 --- a/res/layout-sw720dp/all_apps_cling.xml +++ b/res/layout-sw720dp/all_apps_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-sw720dp/folder_cling.xml b/res/layout-sw720dp/folder_cling.xml index f66da7bc7..4193838ca 100644 --- a/res/layout-sw720dp/folder_cling.xml +++ b/res/layout-sw720dp/folder_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + diff --git a/res/layout-sw720dp/hotseat.xml b/res/layout-sw720dp/hotseat.xml index a8faf3665..f69f68d95 100644 --- a/res/layout-sw720dp/hotseat.xml +++ b/res/layout-sw720dp/hotseat.xml @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 2bacf362d..d798aff92 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -17,14 +17,14 @@ - - - + - - + diff --git a/res/layout-sw720dp/search_bar.xml b/res/layout-sw720dp/search_bar.xml index 7cf79b8b5..44c969bef 100644 --- a/res/layout-sw720dp/search_bar.xml +++ b/res/layout-sw720dp/search_bar.xml @@ -15,14 +15,14 @@ --> - - + - - + diff --git a/res/layout-sw720dp/wallpaper_item.xml b/res/layout-sw720dp/wallpaper_item.xml index 9461e3b55..f3c32173f 100644 --- a/res/layout-sw720dp/wallpaper_item.xml +++ b/res/layout-sw720dp/wallpaper_item.xml @@ -23,4 +23,4 @@ android:layout_height="@dimen/wallpaper_chooser_grid_height" android:scaleType="centerCrop" android:focusable="true" /> - \ No newline at end of file + diff --git a/res/layout-sw720dp/workspace.xml b/res/layout-sw720dp/workspace.xml index bf2abfdb4..00ed529e0 100644 --- a/res/layout-sw720dp/workspace.xml +++ b/res/layout-sw720dp/workspace.xml @@ -16,9 +16,9 @@ - - \ No newline at end of file + diff --git a/res/layout-sw720dp/workspace_cling.xml b/res/layout-sw720dp/workspace_cling.xml index ca71a3b44..052e1a091 100644 --- a/res/layout-sw720dp/workspace_cling.xml +++ b/res/layout-sw720dp/workspace_cling.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - @@ -59,4 +59,4 @@ android:layout_marginEnd="10dp" android:layout_gravity="bottom|end" android:onClick="dismissWorkspaceCling" /> - + diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml index a9d7deded..a67cf919a 100644 --- a/res/layout/apps_customize_pane.xml +++ b/res/layout/apps_customize_pane.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - + diff --git a/res/layout/apps_customize_widget.xml b/res/layout/apps_customize_widget.xml index 6bb794345..ad677e928 100644 --- a/res/layout/apps_customize_widget.xml +++ b/res/layout/apps_customize_widget.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + diff --git a/res/layout/custom_workspace_cling.xml b/res/layout/custom_workspace_cling.xml index b3e15f589..3744f2e4b 100644 --- a/res/layout/custom_workspace_cling.xml +++ b/res/layout/custom_workspace_cling.xml @@ -14,9 +14,9 @@ limitations under the License. --> - @@ -29,4 +29,4 @@ android:gravity="start" android:layout_gravity="bottom|start" /> - + diff --git a/res/layout/drop_target_bar.xml b/res/layout/drop_target_bar.xml index ca3f55404..f38a50014 100644 --- a/res/layout/drop_target_bar.xml +++ b/res/layout/drop_target_bar.xml @@ -19,7 +19,7 @@ style="@style/DropTargetButtonContainer" android:layout_weight="1"> - - - \ No newline at end of file + diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml index 322dc006f..56e052346 100644 --- a/res/layout/qsb_bar.xml +++ b/res/layout/qsb_bar.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - @@ -30,4 +30,4 @@ - + diff --git a/res/layout/tab_widget_indicator.xml b/res/layout/tab_widget_indicator.xml index df43d3ddd..de7c50ec4 100644 --- a/res/layout/tab_widget_indicator.xml +++ b/res/layout/tab_widget_indicator.xml @@ -14,6 +14,6 @@ limitations under the License. --> - diff --git a/res/layout/user_folder.xml b/res/layout/user_folder.xml index aa4eb1c9c..8c72dd673 100644 --- a/res/layout/user_folder.xml +++ b/res/layout/user_folder.xml @@ -14,15 +14,15 @@ limitations under the License. --> - - - - + diff --git a/res/layout/wallpaper_chooser_base.xml b/res/layout/wallpaper_chooser_base.xml index fa8ea9372..14906674e 100644 --- a/res/layout/wallpaper_chooser_base.xml +++ b/res/layout/wallpaper_chooser_base.xml @@ -21,7 +21,7 @@ - diff --git a/res/layout/workspace_screen.xml b/res/layout/workspace_screen.xml index 6538532c1..acc9f6651 100644 --- a/res/layout/workspace_screen.xml +++ b/res/layout/workspace_screen.xml @@ -14,9 +14,9 @@ limitations under the License. --> - \ No newline at end of file + launcher:maxGap="@dimen/workspace_max_gap" /> diff --git a/res/mipmap-hdpi/ic_launcher_home.png b/res/mipmap-hdpi/ic_launcher_home.png index 8945ada34..b556d7aba 100644 Binary files a/res/mipmap-hdpi/ic_launcher_home.png and b/res/mipmap-hdpi/ic_launcher_home.png differ diff --git a/res/mipmap-mdpi/ic_launcher_home.png b/res/mipmap-mdpi/ic_launcher_home.png index 72bd80a2f..961bb7dbd 100644 Binary files a/res/mipmap-mdpi/ic_launcher_home.png and b/res/mipmap-mdpi/ic_launcher_home.png differ diff --git a/res/mipmap-xhdpi/ic_launcher_home.png b/res/mipmap-xhdpi/ic_launcher_home.png index 7bef13ca7..46ec2b775 100644 Binary files a/res/mipmap-xhdpi/ic_launcher_home.png and b/res/mipmap-xhdpi/ic_launcher_home.png differ diff --git a/res/mipmap-xxhdpi/ic_launcher_home.png b/res/mipmap-xxhdpi/ic_launcher_home.png new file mode 100644 index 000000000..d2975a39f Binary files /dev/null and b/res/mipmap-xxhdpi/ic_launcher_home.png differ diff --git a/res/values-sw720dp/wallpapers.xml b/res/values-sw720dp/wallpapers.xml index 8b01477e4..1e340e4b2 100644 --- a/res/values-sw720dp/wallpapers.xml +++ b/res/values-sw720dp/wallpapers.xml @@ -17,16 +17,5 @@ - wallpaper_00 - wallpaper_01 - wallpaper_02 - wallpaper_03 - wallpaper_04 - wallpaper_05 - wallpaper_06 - wallpaper_07 - wallpaper_08 - wallpaper_09 - wallpaper_10 diff --git a/res/values/strings.xml b/res/values/strings.xml index ead582ef5..102e43e77 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -21,7 +21,7 @@ - Launcher + Launcher3 Home diff --git a/res/values/wallpapers.xml b/res/values/wallpapers.xml index ed56b18ff..1e340e4b2 100644 --- a/res/values/wallpapers.xml +++ b/res/values/wallpapers.xml @@ -17,17 +17,5 @@ - wallpaper_01 - wallpaper_02 - wallpaper_03 - wallpaper_04 - wallpaper_05 - wallpaper_06 - wallpaper_07 - wallpaper_08 - wallpaper_09 - wallpaper_10 - wallpaper_11 - wallpaper_12 diff --git a/res/xml-sw600dp/default_workspace.xml b/res/xml-sw600dp/default_workspace.xml index 05371696d..090c7a7af 100644 --- a/res/xml-sw600dp/default_workspace.xml +++ b/res/xml-sw600dp/default_workspace.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/res/xml-sw720dp/default_workspace.xml b/res/xml-sw720dp/default_workspace.xml index 6302d7e04..1c1d70e92 100644 --- a/res/xml-sw720dp/default_workspace.xml +++ b/res/xml-sw720dp/default_workspace.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/res/xml/default_workspace.xml b/res/xml/default_workspace.xml index 93338d3b7..26fc504f0 100644 --- a/res/xml/default_workspace.xml +++ b/res/xml/default_workspace.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/res/xml/update_workspace.xml b/res/xml/update_workspace.xml index ba35b151f..38442b91c 100644 --- a/res/xml/update_workspace.xml +++ b/res/xml/update_workspace.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/res/xml/wallpaper_picker_preview.xml b/res/xml/wallpaper_picker_preview.xml index d52e0e03f..ce7124cef 100644 --- a/res/xml/wallpaper_picker_preview.xml +++ b/res/xml/wallpaper_picker_preview.xml @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/src/com/android/launcher2/AccessibleTabView.java b/src/com/android/launcher3/AccessibleTabView.java similarity index 98% rename from src/com/android/launcher2/AccessibleTabView.java rename to src/com/android/launcher3/AccessibleTabView.java index 101f139e7..90a78656e 100644 --- a/src/com/android/launcher2/AccessibleTabView.java +++ b/src/com/android/launcher3/AccessibleTabView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.util.AttributeSet; diff --git a/src/com/android/launcher2/AddAdapter.java b/src/com/android/launcher3/AddAdapter.java similarity index 97% rename from src/com/android/launcher2/AddAdapter.java rename to src/com/android/launcher3/AddAdapter.java index c0bb17b72..ad15e75c6 100644 --- a/src/com/android/launcher2/AddAdapter.java +++ b/src/com/android/launcher3/AddAdapter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; @@ -27,7 +27,7 @@ import android.widget.TextView; import java.util.ArrayList; -import com.android.launcher.R; +import com.android.launcher3.R; /** * Adapter showing the types of items that can be added to a {@link Workspace}. diff --git a/src/com/android/launcher2/Alarm.java b/src/com/android/launcher3/Alarm.java similarity index 98% rename from src/com/android/launcher2/Alarm.java rename to src/com/android/launcher3/Alarm.java index 7cd21c327..91f9bd091 100644 --- a/src/com/android/launcher2/Alarm.java +++ b/src/com/android/launcher3/Alarm.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.os.Handler; diff --git a/src/com/android/launcher2/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java similarity index 99% rename from src/com/android/launcher2/AllAppsList.java rename to src/com/android/launcher3/AllAppsList.java index 051b0bd1d..e74dc2133 100644 --- a/src/com/android/launcher2/AllAppsList.java +++ b/src/com/android/launcher3/AllAppsList.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.ArrayList; import java.util.List; diff --git a/src/com/android/launcher2/AppWidgetResizeFrame.java b/src/com/android/launcher3/AppWidgetResizeFrame.java similarity index 99% rename from src/com/android/launcher2/AppWidgetResizeFrame.java rename to src/com/android/launcher3/AppWidgetResizeFrame.java index 4b544147e..8e968f83c 100644 --- a/src/com/android/launcher2/AppWidgetResizeFrame.java +++ b/src/com/android/launcher3/AppWidgetResizeFrame.java @@ -1,4 +1,4 @@ -package com.android.launcher2; +package com.android.launcher3; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; @@ -13,7 +13,7 @@ import android.view.Gravity; import android.widget.FrameLayout; import android.widget.ImageView; -import com.android.launcher.R; +import com.android.launcher3.R; public class AppWidgetResizeFrame extends FrameLayout { private LauncherAppWidgetHostView mWidgetView; diff --git a/src/com/android/launcher2/ApplicationInfo.java b/src/com/android/launcher3/ApplicationInfo.java similarity index 99% rename from src/com/android/launcher2/ApplicationInfo.java rename to src/com/android/launcher3/ApplicationInfo.java index eda8c2520..4659e7e85 100644 --- a/src/com/android/launcher2/ApplicationInfo.java +++ b/src/com/android/launcher3/ApplicationInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.ComponentName; import android.content.Intent; diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java similarity index 99% rename from src/com/android/launcher2/AppsCustomizePagedView.java rename to src/com/android/launcher3/AppsCustomizePagedView.java index 95ce33752..43a5259a6 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher3/AppsCustomizePagedView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.AnimatorSet; import android.animation.ValueAnimator; @@ -51,8 +51,8 @@ import android.widget.GridLayout; import android.widget.ImageView; import android.widget.Toast; -import com.android.launcher.R; -import com.android.launcher2.DropTarget.DragObject; +import com.android.launcher3.R; +import com.android.launcher3.DropTarget.DragObject; import java.util.ArrayList; import java.util.Collections; diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher3/AppsCustomizeTabHost.java similarity index 99% rename from src/com/android/launcher2/AppsCustomizeTabHost.java rename to src/com/android/launcher3/AppsCustomizeTabHost.java index 225b05628..5d50fec03 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher3/AppsCustomizeTabHost.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -33,7 +33,7 @@ import android.widget.TabHost; import android.widget.TabWidget; import android.widget.TextView; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java similarity index 99% rename from src/com/android/launcher2/BubbleTextView.java rename to src/com/android/launcher3/BubbleTextView.java index c5bed1694..7cac8a68c 100644 --- a/src/com/android/launcher2/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; diff --git a/src/com/android/launcher2/ButtonDropTarget.java b/src/com/android/launcher3/ButtonDropTarget.java similarity index 98% rename from src/com/android/launcher2/ButtonDropTarget.java rename to src/com/android/launcher3/ButtonDropTarget.java index ff0813add..a7486a8e3 100644 --- a/src/com/android/launcher2/ButtonDropTarget.java +++ b/src/com/android/launcher3/ButtonDropTarget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; @@ -25,7 +25,7 @@ import android.util.AttributeSet; import android.view.View; import android.widget.TextView; -import com.android.launcher.R; +import com.android.launcher3.R; /** diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher3/CellLayout.java similarity index 99% rename from src/com/android/launcher2/CellLayout.java rename to src/com/android/launcher3/CellLayout.java index 024bb37af..842037c31 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -48,8 +48,8 @@ import android.view.animation.Animation; import android.view.animation.DecelerateInterpolator; import android.view.animation.LayoutAnimationController; -import com.android.launcher.R; -import com.android.launcher2.FolderIcon.FolderRingAnimator; +import com.android.launcher3.R; +import com.android.launcher3.FolderIcon.FolderRingAnimator; import java.util.ArrayList; import java.util.Arrays; diff --git a/src/com/android/launcher2/CheckLongPressHelper.java b/src/com/android/launcher3/CheckLongPressHelper.java similarity index 98% rename from src/com/android/launcher2/CheckLongPressHelper.java rename to src/com/android/launcher3/CheckLongPressHelper.java index 5c3752ad6..7760f4e0c 100644 --- a/src/com/android/launcher2/CheckLongPressHelper.java +++ b/src/com/android/launcher3/CheckLongPressHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.view.View; diff --git a/src/com/android/launcher2/Cling.java b/src/com/android/launcher3/Cling.java similarity index 99% rename from src/com/android/launcher2/Cling.java rename to src/com/android/launcher3/Cling.java index 971d9ff53..6bb183ce3 100644 --- a/src/com/android/launcher2/Cling.java +++ b/src/com/android/launcher3/Cling.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; @@ -33,7 +33,7 @@ import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; -import com.android.launcher.R; +import com.android.launcher3.R; public class Cling extends FrameLayout { diff --git a/src/com/android/launcher2/DeferredHandler.java b/src/com/android/launcher3/DeferredHandler.java similarity index 99% rename from src/com/android/launcher2/DeferredHandler.java rename to src/com/android/launcher3/DeferredHandler.java index cee27dfa8..92ecf9643 100644 --- a/src/com/android/launcher2/DeferredHandler.java +++ b/src/com/android/launcher3/DeferredHandler.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.os.Handler; import android.os.Looper; diff --git a/src/com/android/launcher2/DeleteDropTarget.java b/src/com/android/launcher3/DeleteDropTarget.java similarity index 99% rename from src/com/android/launcher2/DeleteDropTarget.java rename to src/com/android/launcher3/DeleteDropTarget.java index d575b8f58..eba154732 100644 --- a/src/com/android/launcher2/DeleteDropTarget.java +++ b/src/com/android/launcher3/DeleteDropTarget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; @@ -34,7 +34,7 @@ import android.view.animation.AnimationUtils; import android.view.animation.DecelerateInterpolator; import android.view.animation.LinearInterpolator; -import com.android.launcher.R; +import com.android.launcher3.R; public class DeleteDropTarget extends ButtonDropTarget { private static int DELETE_ANIMATION_DURATION = 285; diff --git a/src/com/android/launcher2/DragController.java b/src/com/android/launcher3/DragController.java similarity index 99% rename from src/com/android/launcher2/DragController.java rename to src/com/android/launcher3/DragController.java index d15cb6e06..86355890e 100644 --- a/src/com/android/launcher2/DragController.java +++ b/src/com/android/launcher3/DragController.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; @@ -33,7 +33,7 @@ import android.view.View; import android.view.ViewConfiguration; import android.view.inputmethod.InputMethodManager; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; diff --git a/src/com/android/launcher2/DragLayer.java b/src/com/android/launcher3/DragLayer.java similarity index 99% rename from src/com/android/launcher2/DragLayer.java rename to src/com/android/launcher3/DragLayer.java index fccc1a604..5a1b4ccd0 100644 --- a/src/com/android/launcher2/DragLayer.java +++ b/src/com/android/launcher3/DragLayer.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -40,7 +40,7 @@ import android.view.animation.Interpolator; import android.widget.FrameLayout; import android.widget.TextView; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; diff --git a/src/com/android/launcher2/DragScroller.java b/src/com/android/launcher3/DragScroller.java similarity index 97% rename from src/com/android/launcher2/DragScroller.java rename to src/com/android/launcher3/DragScroller.java index a3ee6c237..e261f15d8 100644 --- a/src/com/android/launcher2/DragScroller.java +++ b/src/com/android/launcher3/DragScroller.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; /** * Handles scrolling while dragging diff --git a/src/com/android/launcher2/DragSource.java b/src/com/android/launcher3/DragSource.java similarity index 94% rename from src/com/android/launcher2/DragSource.java rename to src/com/android/launcher3/DragSource.java index 54404770a..2ef99ae08 100644 --- a/src/com/android/launcher2/DragSource.java +++ b/src/com/android/launcher3/DragSource.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.view.View; -import com.android.launcher2.DropTarget.DragObject; +import com.android.launcher3.DropTarget.DragObject; /** * Interface defining an object that can originate a drag. diff --git a/src/com/android/launcher2/DragView.java b/src/com/android/launcher3/DragView.java similarity index 99% rename from src/com/android/launcher2/DragView.java rename to src/com/android/launcher3/DragView.java index b25ae6112..686cf62ff 100644 --- a/src/com/android/launcher2/DragView.java +++ b/src/com/android/launcher3/DragView.java @@ -15,7 +15,7 @@ */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; @@ -30,7 +30,7 @@ import android.graphics.Rect; import android.view.View; import android.view.animation.DecelerateInterpolator; -import com.android.launcher.R; +import com.android.launcher3.R; public class DragView extends View { private static float sDragAlpha = 1f; diff --git a/src/com/android/launcher2/DrawableStateProxyView.java b/src/com/android/launcher3/DrawableStateProxyView.java similarity index 96% rename from src/com/android/launcher2/DrawableStateProxyView.java rename to src/com/android/launcher3/DrawableStateProxyView.java index 5d2f6e0a2..196e2f2e1 100644 --- a/src/com/android/launcher2/DrawableStateProxyView.java +++ b/src/com/android/launcher3/DrawableStateProxyView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.TypedArray; @@ -23,7 +23,7 @@ import android.view.MotionEvent; import android.view.View; import android.widget.LinearLayout; -import com.android.launcher.R; +import com.android.launcher3.R; public class DrawableStateProxyView extends LinearLayout { diff --git a/src/com/android/launcher2/DropTarget.java b/src/com/android/launcher3/DropTarget.java similarity index 99% rename from src/com/android/launcher2/DropTarget.java rename to src/com/android/launcher3/DropTarget.java index d627a4c2e..3ecb8ff08 100644 --- a/src/com/android/launcher2/DropTarget.java +++ b/src/com/android/launcher3/DropTarget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.graphics.PointF; diff --git a/src/com/android/launcher2/FastBitmapDrawable.java b/src/com/android/launcher3/FastBitmapDrawable.java similarity index 98% rename from src/com/android/launcher2/FastBitmapDrawable.java rename to src/com/android/launcher3/FastBitmapDrawable.java index 3c39d278a..14760c7b6 100644 --- a/src/com/android/launcher2/FastBitmapDrawable.java +++ b/src/com/android/launcher3/FastBitmapDrawable.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.graphics.Bitmap; import android.graphics.Canvas; diff --git a/src/com/android/launcher2/FirstFrameAnimatorHelper.java b/src/com/android/launcher3/FirstFrameAnimatorHelper.java similarity index 99% rename from src/com/android/launcher2/FirstFrameAnimatorHelper.java rename to src/com/android/launcher3/FirstFrameAnimatorHelper.java index 38154860c..78fdadd4f 100644 --- a/src/com/android/launcher2/FirstFrameAnimatorHelper.java +++ b/src/com/android/launcher3/FirstFrameAnimatorHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; diff --git a/src/com/android/launcher2/FocusHelper.java b/src/com/android/launcher3/FocusHelper.java similarity index 99% rename from src/com/android/launcher2/FocusHelper.java rename to src/com/android/launcher3/FocusHelper.java index e9f986d76..94c5820ce 100644 --- a/src/com/android/launcher2/FocusHelper.java +++ b/src/com/android/launcher3/FocusHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.res.Configuration; import android.view.KeyEvent; @@ -24,7 +24,7 @@ import android.view.ViewParent; import android.widget.TabHost; import android.widget.TabWidget; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; import java.util.Collections; diff --git a/src/com/android/launcher2/FocusOnlyTabWidget.java b/src/com/android/launcher3/FocusOnlyTabWidget.java similarity index 98% rename from src/com/android/launcher2/FocusOnlyTabWidget.java rename to src/com/android/launcher3/FocusOnlyTabWidget.java index 8e9f58c61..08fc311bc 100644 --- a/src/com/android/launcher2/FocusOnlyTabWidget.java +++ b/src/com/android/launcher3/FocusOnlyTabWidget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.util.AttributeSet; diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher3/Folder.java similarity index 99% rename from src/com/android/launcher2/Folder.java rename to src/com/android/launcher3/Folder.java index ee150088b..a7b5c5c54 100644 --- a/src/com/android/launcher2/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -44,8 +44,8 @@ import android.view.inputmethod.InputMethodManager; import android.widget.LinearLayout; import android.widget.TextView; -import com.android.launcher.R; -import com.android.launcher2.FolderInfo.FolderListener; +import com.android.launcher3.R; +import com.android.launcher3.FolderInfo.FolderListener; import java.util.ArrayList; import java.util.Collections; diff --git a/src/com/android/launcher2/FolderEditText.java b/src/com/android/launcher3/FolderEditText.java similarity index 96% rename from src/com/android/launcher2/FolderEditText.java rename to src/com/android/launcher3/FolderEditText.java index 13169bd51..c31100899 100644 --- a/src/com/android/launcher2/FolderEditText.java +++ b/src/com/android/launcher3/FolderEditText.java @@ -1,4 +1,4 @@ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.util.AttributeSet; diff --git a/src/com/android/launcher2/FolderIcon.java b/src/com/android/launcher3/FolderIcon.java similarity index 99% rename from src/com/android/launcher2/FolderIcon.java rename to src/com/android/launcher3/FolderIcon.java index 33650c50a..e11d7d18a 100644 --- a/src/com/android/launcher2/FolderIcon.java +++ b/src/com/android/launcher3/FolderIcon.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -39,9 +39,9 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; -import com.android.launcher.R; -import com.android.launcher2.DropTarget.DragObject; -import com.android.launcher2.FolderInfo.FolderListener; +import com.android.launcher3.R; +import com.android.launcher3.DropTarget.DragObject; +import com.android.launcher3.FolderInfo.FolderListener; import java.util.ArrayList; diff --git a/src/com/android/launcher2/FolderInfo.java b/src/com/android/launcher3/FolderInfo.java similarity index 98% rename from src/com/android/launcher2/FolderInfo.java rename to src/com/android/launcher3/FolderInfo.java index dbac90ec5..6d45e59ce 100644 --- a/src/com/android/launcher2/FolderInfo.java +++ b/src/com/android/launcher3/FolderInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.ArrayList; diff --git a/src/com/android/launcher2/HandleView.java b/src/com/android/launcher3/HandleView.java similarity index 97% rename from src/com/android/launcher2/HandleView.java rename to src/com/android/launcher3/HandleView.java index d77138b0a..6cb51da31 100644 --- a/src/com/android/launcher2/HandleView.java +++ b/src/com/android/launcher3/HandleView.java @@ -15,7 +15,7 @@ */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.TypedArray; @@ -24,7 +24,7 @@ import android.view.MotionEvent; import android.view.View; import android.widget.ImageView; -import com.android.launcher.R; +import com.android.launcher3.R; public class HandleView extends ImageView { private static final int ORIENTATION_HORIZONTAL = 1; diff --git a/src/com/android/launcher2/HideFromAccessibilityHelper.java b/src/com/android/launcher3/HideFromAccessibilityHelper.java similarity index 99% rename from src/com/android/launcher2/HideFromAccessibilityHelper.java rename to src/com/android/launcher3/HideFromAccessibilityHelper.java index 0b2ce5ba6..33adf773c 100644 --- a/src/com/android/launcher2/HideFromAccessibilityHelper.java +++ b/src/com/android/launcher3/HideFromAccessibilityHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.view.View; import android.view.ViewGroup; diff --git a/src/com/android/launcher2/HolographicImageView.java b/src/com/android/launcher3/HolographicImageView.java similarity index 98% rename from src/com/android/launcher2/HolographicImageView.java rename to src/com/android/launcher3/HolographicImageView.java index 9e551e047..0ad82a70c 100644 --- a/src/com/android/launcher2/HolographicImageView.java +++ b/src/com/android/launcher3/HolographicImageView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.graphics.Canvas; diff --git a/src/com/android/launcher2/HolographicLinearLayout.java b/src/com/android/launcher3/HolographicLinearLayout.java similarity index 97% rename from src/com/android/launcher2/HolographicLinearLayout.java rename to src/com/android/launcher3/HolographicLinearLayout.java index 0f997d5fa..73d4c3a01 100644 --- a/src/com/android/launcher2/HolographicLinearLayout.java +++ b/src/com/android/launcher3/HolographicLinearLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.TypedArray; @@ -25,7 +25,7 @@ import android.util.AttributeSet; import android.widget.ImageView; import android.widget.LinearLayout; -import com.android.launcher.R; +import com.android.launcher3.R; public class HolographicLinearLayout extends LinearLayout { diff --git a/src/com/android/launcher2/HolographicOutlineHelper.java b/src/com/android/launcher3/HolographicOutlineHelper.java similarity index 99% rename from src/com/android/launcher2/HolographicOutlineHelper.java rename to src/com/android/launcher3/HolographicOutlineHelper.java index 1e990dcff..2decc3d22 100644 --- a/src/com/android/launcher2/HolographicOutlineHelper.java +++ b/src/com/android/launcher3/HolographicOutlineHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.graphics.Bitmap; import android.graphics.BlurMaskFilter; diff --git a/src/com/android/launcher2/HolographicViewHelper.java b/src/com/android/launcher3/HolographicViewHelper.java similarity index 99% rename from src/com/android/launcher2/HolographicViewHelper.java rename to src/com/android/launcher3/HolographicViewHelper.java index 93d785351..9d3ad70a8 100644 --- a/src/com/android/launcher2/HolographicViewHelper.java +++ b/src/com/android/launcher3/HolographicViewHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; diff --git a/src/com/android/launcher2/Hotseat.java b/src/com/android/launcher3/Hotseat.java similarity index 98% rename from src/com/android/launcher2/Hotseat.java rename to src/com/android/launcher3/Hotseat.java index c122695eb..2844d245e 100644 --- a/src/com/android/launcher2/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Configuration; @@ -26,7 +26,7 @@ import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; -import com.android.launcher.R; +import com.android.launcher3.R; public class Hotseat extends FrameLayout { @SuppressWarnings("unused") diff --git a/src/com/android/launcher2/IconCache.java b/src/com/android/launcher3/IconCache.java similarity index 99% rename from src/com/android/launcher2/IconCache.java rename to src/com/android/launcher3/IconCache.java index aa19545bd..774f27e1c 100644 --- a/src/com/android/launcher2/IconCache.java +++ b/src/com/android/launcher3/IconCache.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.ActivityManager; import android.content.ComponentName; diff --git a/src/com/android/launcher2/InfoDropTarget.java b/src/com/android/launcher3/InfoDropTarget.java similarity index 98% rename from src/com/android/launcher2/InfoDropTarget.java rename to src/com/android/launcher3/InfoDropTarget.java index 850cc1fe8..9f1b0169c 100644 --- a/src/com/android/launcher2/InfoDropTarget.java +++ b/src/com/android/launcher3/InfoDropTarget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.ComponentName; import android.content.Context; @@ -26,7 +26,7 @@ import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; -import com.android.launcher.R; +import com.android.launcher3.R; public class InfoDropTarget extends ButtonDropTarget { diff --git a/src/com/android/launcher2/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java similarity index 98% rename from src/com/android/launcher2/InstallShortcutReceiver.java rename to src/com/android/launcher3/InstallShortcutReceiver.java index 2e86a7f05..a0ea93b72 100644 --- a/src/com/android/launcher2/InstallShortcutReceiver.java +++ b/src/com/android/launcher3/InstallShortcutReceiver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.BroadcastReceiver; import android.content.Context; @@ -28,7 +28,7 @@ import android.util.Base64; import android.util.Log; import android.widget.Toast; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; import java.util.HashSet; @@ -39,7 +39,7 @@ import org.json.*; public class InstallShortcutReceiver extends BroadcastReceiver { public static final String ACTION_INSTALL_SHORTCUT = - "com.android.launcher.action.INSTALL_SHORTCUT"; + "com.android.launcher3.action.INSTALL_SHORTCUT"; public static final String NEW_APPS_PAGE_KEY = "apps.new.page"; public static final String NEW_APPS_LIST_KEY = "apps.new.list"; @@ -61,7 +61,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver { // A mime-type representing shortcut data public static final String SHORTCUT_MIMETYPE = - "com.android.launcher/shortcut"; + "com.android.launcher3/shortcut"; private static Object sLock = new Object(); diff --git a/src/com/android/launcher2/InstallWidgetReceiver.java b/src/com/android/launcher3/InstallWidgetReceiver.java similarity index 94% rename from src/com/android/launcher2/InstallWidgetReceiver.java rename to src/com/android/launcher3/InstallWidgetReceiver.java index a1e9b1187..d802df279 100644 --- a/src/com/android/launcher2/InstallWidgetReceiver.java +++ b/src/com/android/launcher3/InstallWidgetReceiver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.List; @@ -33,7 +33,7 @@ import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.TextView; -import com.android.launcher.R; +import com.android.launcher3.R; /** @@ -42,18 +42,18 @@ import com.android.launcher.R; */ public class InstallWidgetReceiver { public static final String ACTION_INSTALL_WIDGET = - "com.android.launcher.action.INSTALL_WIDGET"; + "com.android.launcher3.action.INSTALL_WIDGET"; public static final String ACTION_SUPPORTS_CLIPDATA_MIMETYPE = - "com.android.launcher.action.SUPPORTS_CLIPDATA_MIMETYPE"; + "com.android.launcher3.action.SUPPORTS_CLIPDATA_MIMETYPE"; // Currently not exposed. Put into Intent when we want to make it public. // TEMP: Should we call this "EXTRA_APPWIDGET_PROVIDER"? public static final String EXTRA_APPWIDGET_COMPONENT = - "com.android.launcher.extra.widget.COMPONENT"; + "com.android.launcher3.extra.widget.COMPONENT"; public static final String EXTRA_APPWIDGET_CONFIGURATION_DATA_MIME_TYPE = - "com.android.launcher.extra.widget.CONFIGURATION_DATA_MIME_TYPE"; + "com.android.launcher3.extra.widget.CONFIGURATION_DATA_MIME_TYPE"; public static final String EXTRA_APPWIDGET_CONFIGURATION_DATA = - "com.android.launcher.extra.widget.CONFIGURATION_DATA"; + "com.android.launcher3.extra.widget.CONFIGURATION_DATA"; /** * A simple data class that contains per-item information that the adapter below can reference. diff --git a/src/com/android/launcher2/InterruptibleInOutAnimator.java b/src/com/android/launcher3/InterruptibleInOutAnimator.java similarity index 99% rename from src/com/android/launcher2/InterruptibleInOutAnimator.java rename to src/com/android/launcher3/InterruptibleInOutAnimator.java index 375fddcb9..2898b347d 100644 --- a/src/com/android/launcher2/InterruptibleInOutAnimator.java +++ b/src/com/android/launcher3/InterruptibleInOutAnimator.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher3/ItemInfo.java similarity index 99% rename from src/com/android/launcher2/ItemInfo.java rename to src/com/android/launcher3/ItemInfo.java index 165c07b91..fb4183423 100644 --- a/src/com/android/launcher2/ItemInfo.java +++ b/src/com/android/launcher3/ItemInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.ContentValues; import android.content.Intent; diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher3/Launcher.java similarity index 99% rename from src/com/android/launcher2/Launcher.java rename to src/com/android/launcher3/Launcher.java index 94a0bca26..3f487cd21 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.accounts.Account; import android.accounts.AccountManager; @@ -63,7 +63,6 @@ import android.os.Handler; import android.os.Message; import android.os.StrictMode; import android.os.SystemClock; -import android.os.UserManager; import android.provider.Settings; import android.speech.RecognizerIntent; import android.text.Selection; @@ -96,8 +95,8 @@ import android.widget.TextView; import android.widget.Toast; import com.android.common.Search; -import com.android.launcher.R; -import com.android.launcher2.DropTarget.DragObject; +import com.android.launcher3.R; +import com.android.launcher3.DropTarget.DragObject; import java.io.DataInputStream; import java.io.DataOutputStream; @@ -156,7 +155,7 @@ public final class Launcher extends Activity // The Intent extra that defines whether to ignore the launch animation static final String INTENT_EXTRA_IGNORE_LAUNCH_ANIMATION = - "com.android.launcher.intent.extra.shortcut.INGORE_LAUNCH_ANIMATION"; + "com.android.launcher3.intent.extra.shortcut.INGORE_LAUNCH_ANIMATION"; // Type: int private static final String RUNTIME_STATE_CURRENT_SCREEN = "launcher.current_screen"; @@ -181,11 +180,11 @@ public final class Launcher extends Activity // Type: parcelable private static final String RUNTIME_STATE_PENDING_ADD_WIDGET_INFO = "launcher.add_widget_info"; - private static final String TOOLBAR_ICON_METADATA_NAME = "com.android.launcher.toolbar_icon"; + private static final String TOOLBAR_ICON_METADATA_NAME = "com.android.launcher3.toolbar_icon"; private static final String TOOLBAR_SEARCH_ICON_METADATA_NAME = - "com.android.launcher.toolbar_search_icon"; + "com.android.launcher3.toolbar_search_icon"; private static final String TOOLBAR_VOICE_SEARCH_ICON_METADATA_NAME = - "com.android.launcher.toolbar_voice_search_icon"; + "com.android.launcher3.toolbar_voice_search_icon"; /** The different states that Launcher can be in. */ private enum State { NONE, WORKSPACE, APPS_CUSTOMIZE, APPS_CUSTOMIZE_SPRING_LOADED }; @@ -3863,16 +3862,16 @@ public final class Launcher extends Activity // Restricted secondary users (child mode) will potentially have very few apps // seeded when they start up for the first time. Clings won't work well with that - boolean supportsLimitedUsers = - android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2; - Account[] accounts = AccountManager.get(this).getAccounts(); - if (supportsLimitedUsers && accounts.length == 0) { - UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); - Bundle restrictions = um.getUserRestrictions(); - if (restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false)) { - return false; - } - } +// boolean supportsLimitedUsers = +// android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR2; +// Account[] accounts = AccountManager.get(this).getAccounts(); +// if (supportsLimitedUsers && accounts.length == 0) { +// UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); +// Bundle restrictions = um.getUserRestrictions(); +// if (restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false)) { +// return false; +// } +// } return true; } @@ -3951,6 +3950,7 @@ public final class Launcher extends Activity boolean customCling = cling.getDrawIdentifier().equals("workspace_custom"); if (customCling) { AccountManager am = AccountManager.get(this); + if (am == null) return false; Account[] accounts = am.getAccountsByType("com.google"); return accounts.length == 0; } @@ -4024,7 +4024,7 @@ public final class Launcher extends Activity * Prints out out state for debugging. */ public void dumpState() { - Log.d(TAG, "BEGIN launcher2 dump state for launcher " + this); + Log.d(TAG, "BEGIN launcher3 dump state for launcher " + this); Log.d(TAG, "mSavedState=" + mSavedState); Log.d(TAG, "mWorkspaceLoading=" + mWorkspaceLoading); Log.d(TAG, "mRestoring=" + mRestoring); @@ -4036,7 +4036,7 @@ public final class Launcher extends Activity if (mAppsCustomizeContent != null) { mAppsCustomizeContent.dumpState(); } - Log.d(TAG, "END launcher2 dump state"); + Log.d(TAG, "END launcher3 dump state"); } @Override diff --git a/src/com/android/launcher2/LauncherAnimUtils.java b/src/com/android/launcher3/LauncherAnimUtils.java similarity index 99% rename from src/com/android/launcher2/LauncherAnimUtils.java rename to src/com/android/launcher3/LauncherAnimUtils.java index a89cb4654..01f72a7ce 100644 --- a/src/com/android/launcher2/LauncherAnimUtils.java +++ b/src/com/android/launcher3/LauncherAnimUtils.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorSet; diff --git a/src/com/android/launcher2/LauncherAnimatorUpdateListener.java b/src/com/android/launcher3/LauncherAnimatorUpdateListener.java similarity index 97% rename from src/com/android/launcher2/LauncherAnimatorUpdateListener.java rename to src/com/android/launcher3/LauncherAnimatorUpdateListener.java index dd821134d..ec9fd4d16 100644 --- a/src/com/android/launcher2/LauncherAnimatorUpdateListener.java +++ b/src/com/android/launcher3/LauncherAnimatorUpdateListener.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; diff --git a/src/com/android/launcher2/LauncherAppWidgetHost.java b/src/com/android/launcher3/LauncherAppWidgetHost.java similarity index 98% rename from src/com/android/launcher2/LauncherAppWidgetHost.java rename to src/com/android/launcher3/LauncherAppWidgetHost.java index 4d52ea864..7b08d4403 100644 --- a/src/com/android/launcher2/LauncherAppWidgetHost.java +++ b/src/com/android/launcher3/LauncherAppWidgetHost.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetHost; import android.appwidget.AppWidgetHostView; diff --git a/src/com/android/launcher2/LauncherAppWidgetHostView.java b/src/com/android/launcher3/LauncherAppWidgetHostView.java similarity index 98% rename from src/com/android/launcher2/LauncherAppWidgetHostView.java rename to src/com/android/launcher3/LauncherAppWidgetHostView.java index 549d3340e..6157a8721 100644 --- a/src/com/android/launcher2/LauncherAppWidgetHostView.java +++ b/src/com/android/launcher3/LauncherAppWidgetHostView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetHostView; import android.content.Context; @@ -24,7 +24,7 @@ import android.view.View; import android.view.ViewGroup; import android.widget.RemoteViews; -import com.android.launcher.R; +import com.android.launcher3.R; /** * {@inheritDoc} diff --git a/src/com/android/launcher2/LauncherAppWidgetInfo.java b/src/com/android/launcher3/LauncherAppWidgetInfo.java similarity index 98% rename from src/com/android/launcher2/LauncherAppWidgetInfo.java rename to src/com/android/launcher3/LauncherAppWidgetInfo.java index f001b2b64..3fc67cb5f 100644 --- a/src/com/android/launcher2/LauncherAppWidgetInfo.java +++ b/src/com/android/launcher3/LauncherAppWidgetInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetHostView; import android.content.ComponentName; diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher3/LauncherApplication.java similarity index 98% rename from src/com/android/launcher2/LauncherApplication.java rename to src/com/android/launcher3/LauncherApplication.java index e5f325021..45e24255e 100644 --- a/src/com/android/launcher2/LauncherApplication.java +++ b/src/com/android/launcher3/LauncherApplication.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.Application; import android.app.SearchManager; @@ -26,7 +26,7 @@ import android.content.res.Configuration; import android.database.ContentObserver; import android.os.Handler; -import com.android.launcher.R; +import com.android.launcher3.R; import java.lang.ref.WeakReference; @@ -37,7 +37,7 @@ public class LauncherApplication extends Application { private static boolean sIsScreenLarge; private static float sScreenDensity; private static int sLongPressTimeout = 300; - private static final String sSharedPreferencesKey = "com.android.launcher2.prefs"; + private static final String sSharedPreferencesKey = "com.android.launcher3.prefs"; WeakReference mLauncherProvider; @Override diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java similarity index 99% rename from src/com/android/launcher2/LauncherModel.java rename to src/com/android/launcher3/LauncherModel.java index 1d562beae..5459af21b 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.SearchManager; import android.appwidget.AppWidgetManager; @@ -47,8 +47,8 @@ import android.os.RemoteException; import android.os.SystemClock; import android.util.Log; -import com.android.launcher.R; -import com.android.launcher2.InstallWidgetReceiver.WidgetMimeTypeHandlerData; +import com.android.launcher3.R; +import com.android.launcher3.InstallWidgetReceiver.WidgetMimeTypeHandlerData; import java.lang.ref.WeakReference; import java.net.URISyntaxException; diff --git a/src/com/android/launcher2/LauncherProvider.java b/src/com/android/launcher3/LauncherProvider.java similarity index 99% rename from src/com/android/launcher2/LauncherProvider.java rename to src/com/android/launcher3/LauncherProvider.java index 8097ac99e..fb12f7163 100644 --- a/src/com/android/launcher2/LauncherProvider.java +++ b/src/com/android/launcher3/LauncherProvider.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.SearchManager; import android.appwidget.AppWidgetHost; @@ -49,8 +49,8 @@ import android.util.AttributeSet; import android.util.Log; import android.util.Xml; -import com.android.launcher.R; -import com.android.launcher2.LauncherSettings.Favorites; +import com.android.launcher3.R; +import com.android.launcher3.LauncherSettings.Favorites; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; @@ -68,7 +68,7 @@ public class LauncherProvider extends ContentProvider { private static final int DATABASE_VERSION = 12; - static final String AUTHORITY = "com.android.launcher2.settings"; + static final String AUTHORITY = "com.android.launcher3.settings"; static final String TABLE_FAVORITES = "favorites"; static final String PARAMETER_NOTIFY = "notify"; @@ -78,7 +78,7 @@ public class LauncherProvider extends ContentProvider { "DEFAULT_WORKSPACE_RESOURCE_ID"; private static final String ACTION_APPWIDGET_DEFAULT_WORKSPACE_CONFIGURE = - "com.android.launcher.action.APPWIDGET_DEFAULT_WORKSPACE_CONFIGURE"; + "com.android.launcher3.action.APPWIDGET_DEFAULT_WORKSPACE_CONFIGURE"; /** * {@link Uri} triggered at any registered {@link android.database.ContentObserver} when @@ -441,7 +441,7 @@ public class LauncherProvider extends ContentProvider { // Where's version 5? // - Donut and sholes on 2.0 shipped with version 4 of launcher1. - // - Passion shipped on 2.1 with version 6 of launcher2 + // - Passion shipped on 2.1 with version 6 of launcher3 // - Sholes shipped on 2.1r1 (aka Mr. 3) with version 5 of launcher 1 // but version 5 on there was the updateContactsShortcuts change // which was version 6 in launcher 2 (first shipped on passion 2.1r1). diff --git a/src/com/android/launcher2/LauncherSettings.java b/src/com/android/launcher3/LauncherSettings.java similarity index 99% rename from src/com/android/launcher2/LauncherSettings.java rename to src/com/android/launcher3/LauncherSettings.java index ee003716b..7d2b843d0 100644 --- a/src/com/android/launcher2/LauncherSettings.java +++ b/src/com/android/launcher3/LauncherSettings.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.net.Uri; import android.provider.BaseColumns; diff --git a/src/com/android/launcher2/LauncherViewPropertyAnimator.java b/src/com/android/launcher3/LauncherViewPropertyAnimator.java similarity index 99% rename from src/com/android/launcher2/LauncherViewPropertyAnimator.java rename to src/com/android/launcher3/LauncherViewPropertyAnimator.java index 258b2f4b9..8a9c35dda 100644 --- a/src/com/android/launcher2/LauncherViewPropertyAnimator.java +++ b/src/com/android/launcher3/LauncherViewPropertyAnimator.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.Animator.AnimatorListener; diff --git a/src/com/android/launcher2/PackageChangedReceiver.java b/src/com/android/launcher3/PackageChangedReceiver.java similarity index 95% rename from src/com/android/launcher2/PackageChangedReceiver.java rename to src/com/android/launcher3/PackageChangedReceiver.java index e5e7e94b2..ded01a6fc 100644 --- a/src/com/android/launcher2/PackageChangedReceiver.java +++ b/src/com/android/launcher3/PackageChangedReceiver.java @@ -1,4 +1,4 @@ -package com.android.launcher2; +package com.android.launcher3; import android.content.BroadcastReceiver; import android.content.Context; diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher3/PagedView.java similarity index 99% rename from src/com/android/launcher2/PagedView.java rename to src/com/android/launcher3/PagedView.java index 494534c16..8716a33be 100644 --- a/src/com/android/launcher2/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -42,7 +42,7 @@ import android.view.accessibility.AccessibilityNodeInfo; import android.view.animation.Interpolator; import android.widget.Scroller; -import com.android.launcher.R; +import com.android.launcher3.R; import java.util.ArrayList; diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher3/PagedViewCellLayout.java similarity index 99% rename from src/com/android/launcher2/PagedViewCellLayout.java rename to src/com/android/launcher3/PagedViewCellLayout.java index 9ce177b76..177425aca 100644 --- a/src/com/android/launcher2/PagedViewCellLayout.java +++ b/src/com/android/launcher3/PagedViewCellLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.content.res.Resources; @@ -24,7 +24,7 @@ import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; -import com.android.launcher.R; +import com.android.launcher3.R; /** * An abstraction of the original CellLayout which supports laying out items diff --git a/src/com/android/launcher2/PagedViewCellLayoutChildren.java b/src/com/android/launcher3/PagedViewCellLayoutChildren.java similarity index 99% rename from src/com/android/launcher2/PagedViewCellLayoutChildren.java rename to src/com/android/launcher3/PagedViewCellLayoutChildren.java index 187a22d55..c9e108d98 100644 --- a/src/com/android/launcher2/PagedViewCellLayoutChildren.java +++ b/src/com/android/launcher3/PagedViewCellLayoutChildren.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.graphics.Rect; diff --git a/src/com/android/launcher2/PagedViewGridLayout.java b/src/com/android/launcher3/PagedViewGridLayout.java similarity index 99% rename from src/com/android/launcher2/PagedViewGridLayout.java rename to src/com/android/launcher3/PagedViewGridLayout.java index aa9adc0ea..b28686113 100644 --- a/src/com/android/launcher2/PagedViewGridLayout.java +++ b/src/com/android/launcher3/PagedViewGridLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.view.MotionEvent; diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher3/PagedViewIcon.java similarity index 98% rename from src/com/android/launcher2/PagedViewIcon.java rename to src/com/android/launcher3/PagedViewIcon.java index d2aa31f86..73f62d60e 100644 --- a/src/com/android/launcher2/PagedViewIcon.java +++ b/src/com/android/launcher3/PagedViewIcon.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.graphics.Bitmap; diff --git a/src/com/android/launcher2/PagedViewIconCache.java b/src/com/android/launcher3/PagedViewIconCache.java similarity index 99% rename from src/com/android/launcher2/PagedViewIconCache.java rename to src/com/android/launcher3/PagedViewIconCache.java index d65f68baf..0d03b5a52 100644 --- a/src/com/android/launcher2/PagedViewIconCache.java +++ b/src/com/android/launcher3/PagedViewIconCache.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.ArrayList; import java.util.HashMap; diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher3/PagedViewWidget.java similarity index 99% rename from src/com/android/launcher2/PagedViewWidget.java rename to src/com/android/launcher3/PagedViewWidget.java index 86ab128cd..bd40c5cf5 100644 --- a/src/com/android/launcher2/PagedViewWidget.java +++ b/src/com/android/launcher3/PagedViewWidget.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetProviderInfo; import android.content.Context; @@ -29,7 +29,7 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; -import com.android.launcher.R; +import com.android.launcher3.R; /** * The linear layout used strictly for the widget/wallpaper tab of the customization tray diff --git a/src/com/android/launcher2/PagedViewWidgetImageView.java b/src/com/android/launcher3/PagedViewWidgetImageView.java similarity index 97% rename from src/com/android/launcher2/PagedViewWidgetImageView.java rename to src/com/android/launcher3/PagedViewWidgetImageView.java index 992817786..71f5eead3 100644 --- a/src/com/android/launcher2/PagedViewWidgetImageView.java +++ b/src/com/android/launcher3/PagedViewWidgetImageView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.graphics.Canvas; diff --git a/src/com/android/launcher2/PagedViewWithDraggableItems.java b/src/com/android/launcher3/PagedViewWithDraggableItems.java similarity index 99% rename from src/com/android/launcher2/PagedViewWithDraggableItems.java rename to src/com/android/launcher3/PagedViewWithDraggableItems.java index 9cdd74f24..8f10ecfa5 100644 --- a/src/com/android/launcher2/PagedViewWithDraggableItems.java +++ b/src/com/android/launcher3/PagedViewWithDraggableItems.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.util.AttributeSet; diff --git a/src/com/android/launcher2/PendingAddItemInfo.java b/src/com/android/launcher3/PendingAddItemInfo.java similarity index 99% rename from src/com/android/launcher2/PendingAddItemInfo.java rename to src/com/android/launcher3/PendingAddItemInfo.java index a1e7b06a5..967cc928e 100644 --- a/src/com/android/launcher2/PendingAddItemInfo.java +++ b/src/com/android/launcher3/PendingAddItemInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetHostView; import android.appwidget.AppWidgetProviderInfo; diff --git a/src/com/android/launcher2/PreloadReceiver.java b/src/com/android/launcher3/PreloadReceiver.java similarity index 93% rename from src/com/android/launcher2/PreloadReceiver.java rename to src/com/android/launcher3/PreloadReceiver.java index 08350b6ff..ee3434822 100644 --- a/src/com/android/launcher2/PreloadReceiver.java +++ b/src/com/android/launcher3/PreloadReceiver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.BroadcastReceiver; import android.content.Context; @@ -27,7 +27,7 @@ public class PreloadReceiver extends BroadcastReceiver { private static final boolean LOGD = false; public static final String EXTRA_WORKSPACE_NAME = - "com.android.launcher.action.EXTRA_WORKSPACE_NAME"; + "com.android.launcher3.action.EXTRA_WORKSPACE_NAME"; @Override public void onReceive(Context context, Intent intent) { @@ -36,7 +36,7 @@ public class PreloadReceiver extends BroadcastReceiver { if (provider != null) { String name = intent.getStringExtra(EXTRA_WORKSPACE_NAME); final int workspaceResId = !TextUtils.isEmpty(name) - ? context.getResources().getIdentifier(name, "xml", "com.android.launcher") : 0; + ? context.getResources().getIdentifier(name, "xml", "com.android.launcher3") : 0; if (LOGD) { Log.d(TAG, "workspace name: " + name + " id: " + workspaceResId); } diff --git a/src/com/android/launcher2/SearchDropTargetBar.java b/src/com/android/launcher3/SearchDropTargetBar.java similarity index 99% rename from src/com/android/launcher2/SearchDropTargetBar.java rename to src/com/android/launcher3/SearchDropTargetBar.java index a5b76c9bf..32d094b05 100644 --- a/src/com/android/launcher2/SearchDropTargetBar.java +++ b/src/com/android/launcher3/SearchDropTargetBar.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -27,7 +27,7 @@ import android.view.View; import android.view.animation.AccelerateInterpolator; import android.widget.FrameLayout; -import com.android.launcher.R; +import com.android.launcher3.R; /* * Ths bar will manage the transition between the QSB search bar and the delete drop diff --git a/src/com/android/launcher2/ShortcutAndWidgetContainer.java b/src/com/android/launcher3/ShortcutAndWidgetContainer.java similarity index 99% rename from src/com/android/launcher2/ShortcutAndWidgetContainer.java rename to src/com/android/launcher3/ShortcutAndWidgetContainer.java index 36f135aff..18b9399d1 100644 --- a/src/com/android/launcher2/ShortcutAndWidgetContainer.java +++ b/src/com/android/launcher3/ShortcutAndWidgetContainer.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.WallpaperManager; import android.content.Context; diff --git a/src/com/android/launcher2/ShortcutInfo.java b/src/com/android/launcher3/ShortcutInfo.java similarity index 99% rename from src/com/android/launcher2/ShortcutInfo.java rename to src/com/android/launcher3/ShortcutInfo.java index ccb663a7f..5249fec02 100644 --- a/src/com/android/launcher2/ShortcutInfo.java +++ b/src/com/android/launcher3/ShortcutInfo.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.ArrayList; diff --git a/src/com/android/launcher2/SmoothPagedView.java b/src/com/android/launcher3/SmoothPagedView.java similarity index 99% rename from src/com/android/launcher2/SmoothPagedView.java rename to src/com/android/launcher3/SmoothPagedView.java index 7e47f1a3f..1beffacb5 100644 --- a/src/com/android/launcher2/SmoothPagedView.java +++ b/src/com/android/launcher3/SmoothPagedView.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.Context; import android.util.AttributeSet; diff --git a/src/com/android/launcher2/SpringLoadedDragController.java b/src/com/android/launcher3/SpringLoadedDragController.java similarity index 98% rename from src/com/android/launcher2/SpringLoadedDragController.java rename to src/com/android/launcher3/SpringLoadedDragController.java index d96aab794..45edaef86 100644 --- a/src/com/android/launcher2/SpringLoadedDragController.java +++ b/src/com/android/launcher3/SpringLoadedDragController.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; public class SpringLoadedDragController implements OnAlarmListener { // how long the user must hover over a mini-screen before it unshrinks diff --git a/src/com/android/launcher2/UninstallShortcutReceiver.java b/src/com/android/launcher3/UninstallShortcutReceiver.java similarity index 98% rename from src/com/android/launcher2/UninstallShortcutReceiver.java rename to src/com/android/launcher3/UninstallShortcutReceiver.java index 02590c9f6..6bc289a5e 100644 --- a/src/com/android/launcher2/UninstallShortcutReceiver.java +++ b/src/com/android/launcher3/UninstallShortcutReceiver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.content.BroadcastReceiver; import android.content.ContentResolver; @@ -25,7 +25,7 @@ import android.database.Cursor; import android.net.Uri; import android.widget.Toast; -import com.android.launcher.R; +import com.android.launcher3.R; import java.net.URISyntaxException; import java.util.ArrayList; @@ -35,7 +35,7 @@ import java.util.Set; public class UninstallShortcutReceiver extends BroadcastReceiver { private static final String ACTION_UNINSTALL_SHORTCUT = - "com.android.launcher.action.UNINSTALL_SHORTCUT"; + "com.android.launcher3.action.UNINSTALL_SHORTCUT"; // The set of shortcuts that are pending uninstall private static ArrayList mUninstallQueue = diff --git a/src/com/android/launcher2/UserInitializeReceiver.java b/src/com/android/launcher3/UserInitializeReceiver.java similarity index 92% rename from src/com/android/launcher2/UserInitializeReceiver.java rename to src/com/android/launcher3/UserInitializeReceiver.java index bf3330acc..5cd518190 100644 --- a/src/com/android/launcher2/UserInitializeReceiver.java +++ b/src/com/android/launcher3/UserInitializeReceiver.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.io.IOException; import java.util.ArrayList; -import com.android.launcher.R; +import com.android.launcher3.R; import android.app.WallpaperManager; import android.content.BroadcastReceiver; @@ -36,8 +36,8 @@ public class UserInitializeReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { final Resources resources = context.getResources(); // Context.getPackageName() may return the "original" package name, - // com.android.launcher2; Resources needs the real package name, - // com.android.launcher. So we ask Resources for what it thinks the + // com.android.launcher3; Resources needs the real package name, + // com.android.launcher3. So we ask Resources for what it thinks the // package name should be. final String packageName = resources.getResourcePackageName(R.array.wallpapers); ArrayList list = new ArrayList(); diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher3/Utilities.java similarity index 99% rename from src/com/android/launcher2/Utilities.java rename to src/com/android/launcher3/Utilities.java index d3e451642..0cc29faa3 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import java.util.Random; @@ -34,7 +34,7 @@ import android.graphics.drawable.Drawable; import android.graphics.drawable.PaintDrawable; import android.util.DisplayMetrics; -import com.android.launcher.R; +import com.android.launcher3.R; /** * Various utilities shared amongst the Launcher's classes. diff --git a/src/com/android/launcher2/WallpaperChooser.java b/src/com/android/launcher3/WallpaperChooser.java similarity index 96% rename from src/com/android/launcher2/WallpaperChooser.java rename to src/com/android/launcher3/WallpaperChooser.java index 77e1e6ffb..fe81ccbb5 100644 --- a/src/com/android/launcher2/WallpaperChooser.java +++ b/src/com/android/launcher3/WallpaperChooser.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; -import com.android.launcher.R; +import com.android.launcher3.R; import android.app.Activity; import android.app.DialogFragment; diff --git a/src/com/android/launcher2/WallpaperChooserDialogFragment.java b/src/com/android/launcher3/WallpaperChooserDialogFragment.java similarity index 98% rename from src/com/android/launcher2/WallpaperChooserDialogFragment.java rename to src/com/android/launcher3/WallpaperChooserDialogFragment.java index b99d8ecb3..99de815f9 100644 --- a/src/com/android/launcher2/WallpaperChooserDialogFragment.java +++ b/src/com/android/launcher3/WallpaperChooserDialogFragment.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.app.Activity; import android.app.Dialog; @@ -41,7 +41,7 @@ import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.SpinnerAdapter; -import com.android.launcher.R; +import com.android.launcher3.R; import java.io.IOException; import java.util.ArrayList; @@ -50,7 +50,7 @@ public class WallpaperChooserDialogFragment extends DialogFragment implements AdapterView.OnItemSelectedListener, AdapterView.OnItemClickListener { private static final String TAG = "Launcher.WallpaperChooserDialogFragment"; - private static final String EMBEDDED_KEY = "com.android.launcher2." + private static final String EMBEDDED_KEY = "com.android.launcher3." + "WallpaperChooserDialogFragment.EMBEDDED_KEY"; private boolean mEmbedded; @@ -194,8 +194,8 @@ public class WallpaperChooserDialogFragment extends DialogFragment implements final Resources resources = getResources(); // Context.getPackageName() may return the "original" package name, - // com.android.launcher2; Resources needs the real package name, - // com.android.launcher. So we ask Resources for what it thinks the + // com.android.launcher3; Resources needs the real package name, + // com.android.launcher3. So we ask Resources for what it thinks the // package name should be. final String packageName = resources.getResourcePackageName(R.array.wallpapers); diff --git a/src/com/android/launcher2/WidgetPreviewLoader.java b/src/com/android/launcher3/WidgetPreviewLoader.java similarity index 99% rename from src/com/android/launcher2/WidgetPreviewLoader.java rename to src/com/android/launcher3/WidgetPreviewLoader.java index 41a8904a4..ddc478a20 100644 --- a/src/com/android/launcher2/WidgetPreviewLoader.java +++ b/src/com/android/launcher3/WidgetPreviewLoader.java @@ -1,4 +1,4 @@ -package com.android.launcher2; +package com.android.launcher3; import android.appwidget.AppWidgetProviderInfo; import android.content.ComponentName; @@ -25,7 +25,7 @@ import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.util.Log; -import com.android.launcher.R; +import com.android.launcher3.R; import java.io.ByteArrayOutputStream; import java.io.File; diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher3/Workspace.java similarity index 99% rename from src/com/android/launcher2/Workspace.java rename to src/com/android/launcher3/Workspace.java index 24d5f88d4..4f1fb0809 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.android.launcher2; +package com.android.launcher3; import android.animation.Animator; import android.animation.AnimatorSet; @@ -52,9 +52,9 @@ import android.view.animation.DecelerateInterpolator; import android.widget.ImageView; import android.widget.TextView; -import com.android.launcher.R; -import com.android.launcher2.FolderIcon.FolderRingAnimator; -import com.android.launcher2.LauncherSettings.Favorites; +import com.android.launcher3.R; +import com.android.launcher3.FolderIcon.FolderRingAnimator; +import com.android.launcher3.LauncherSettings.Favorites; import java.net.URISyntaxException; import java.util.ArrayList; diff --git a/tests/stress/AndroidManifest.xml b/tests/stress/AndroidManifest.xml index 0df3a9da3..bcca1ff53 100644 --- a/tests/stress/AndroidManifest.xml +++ b/tests/stress/AndroidManifest.xml @@ -15,7 +15,7 @@ --> + package="com.android.launcher3.stress.launcherrotation"> @@ -23,7 +23,7 @@ diff --git a/tests/stress/src/com/android/launcher2/stress/LauncherRotationStressTest.java b/tests/stress/src/com/android/launcher3/stress/LauncherRotationStressTest.java similarity index 96% rename from tests/stress/src/com/android/launcher2/stress/LauncherRotationStressTest.java rename to tests/stress/src/com/android/launcher3/stress/LauncherRotationStressTest.java index d21fd53ba..a5b85eb19 100644 --- a/tests/stress/src/com/android/launcher2/stress/LauncherRotationStressTest.java +++ b/tests/stress/src/com/android/launcher3/stress/LauncherRotationStressTest.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package com.android.launcher2.stress; +package com.android.launcher3.stress; -import com.android.launcher2.Launcher; +import com.android.launcher3.Launcher; import android.content.pm.ActivityInfo; import android.os.SystemClock;