#
-# 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.
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
-->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.launcher">
-
- <original-package android:name="com.android.launcher2" />
+ package="com.android.launcher3">
<permission
- android:name="com.android.launcher.permission.PRELOAD_WORKSPACE"
+ android:name="com.android.launcher3.permission.PRELOAD_WORKSPACE"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="system|signature" />
<permission
- android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
+ android:name="com.android.launcher3.permission.INSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="dangerous"
android:label="@string/permlab_install_shortcut"
android:description="@string/permdesc_install_shortcut" />
<permission
- android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
+ android:name="com.android.launcher3.permission.UNINSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="dangerous"
android:label="@string/permlab_uninstall_shortcut"
android:description="@string/permdesc_uninstall_shortcut"/>
<permission
- android:name="com.android.launcher.permission.READ_SETTINGS"
+ android:name="com.android.launcher3.permission.READ_SETTINGS"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal"
android:label="@string/permlab_read_settings"
android:description="@string/permdesc_read_settings"/>
<permission
- android:name="com.android.launcher.permission.WRITE_SETTINGS"
+ android:name="com.android.launcher3.permission.WRITE_SETTINGS"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal"
android:label="@string/permlab_write_settings"
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.BIND_APPWIDGET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
- <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
- <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
+ <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
+ <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
<application
- android:name="com.android.launcher2.LauncherApplication"
+ android:name="com.android.launcher3.LauncherApplication"
android:label="@string/application_name"
android:icon="@mipmap/ic_launcher_home"
android:hardwareAccelerated="true"
android:largeHeap="@bool/config_largeHeap"
android:supportsRtl="true">
<activity
- android:name="com.android.launcher2.Launcher"
+ android:name="com.android.launcher3.Launcher"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
</activity>
<activity
- android:name="com.android.launcher2.WallpaperChooser"
+ android:name="com.android.launcher3.WallpaperChooser"
android:theme="@style/Theme.WallpaperPicker"
android:label="@string/pick_wallpaper"
android:icon="@mipmap/ic_launcher_wallpaper"
<!-- Intent received used to prepopulate the default workspace. -->
<receiver
- android:name="com.android.launcher2.PreloadReceiver"
- android:permission="com.android.launcher.permission.PRELOAD_WORKSPACE">
+ android:name="com.android.launcher3.PreloadReceiver"
+ android:permission="com.android.launcher3.permission.PRELOAD_WORKSPACE">
<intent-filter>
- <action android:name="com.android.launcher.action.PRELOAD_WORKSPACE" />
+ <action android:name="com.android.launcher3.action.PRELOAD_WORKSPACE" />
</intent-filter>
</receiver>
<!-- Intent received used to install shortcuts from other applications -->
<receiver
- android:name="com.android.launcher2.InstallShortcutReceiver"
- android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
+ android:name="com.android.launcher3.InstallShortcutReceiver"
+ android:permission="com.android.launcher3.permission.INSTALL_SHORTCUT">
<intent-filter>
- <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
+ <action android:name="com.android.launcher3.action.INSTALL_SHORTCUT" />
</intent-filter>
</receiver>
<!-- Intent received used to uninstall shortcuts from other applications -->
<receiver
- android:name="com.android.launcher2.UninstallShortcutReceiver"
- android:permission="com.android.launcher.permission.UNINSTALL_SHORTCUT">
+ android:name="com.android.launcher3.UninstallShortcutReceiver"
+ android:permission="com.android.launcher3.permission.UNINSTALL_SHORTCUT">
<intent-filter>
- <action android:name="com.android.launcher.action.UNINSTALL_SHORTCUT" />
+ <action android:name="com.android.launcher3.action.UNINSTALL_SHORTCUT" />
</intent-filter>
</receiver>
<!-- New user initialization; set up initial wallpaper -->
<receiver
- android:name="com.android.launcher2.UserInitializeReceiver"
+ android:name="com.android.launcher3.UserInitializeReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.USER_INITIALIZE" />
</intent-filter>
</receiver>
- <receiver android:name="com.android.launcher2.PackageChangedReceiver" >
+ <receiver android:name="com.android.launcher3.PackageChangedReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_CHANGED"/>
<action android:name="android.intent.action.PACKAGE_REPLACED"/>
<!-- The settings provider contains Home's data, like the workspace favorites -->
<provider
- android:name="com.android.launcher2.LauncherProvider"
- android:authorities="com.android.launcher2.settings"
+ android:name="com.android.launcher3.LauncherProvider"
+ android:authorities="com.android.launcher3.settings"
android:exported="true"
- android:writePermission="com.android.launcher.permission.WRITE_SETTINGS"
- android:readPermission="com.android.launcher.permission.READ_SETTINGS" />
+ android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
+ android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
<meta-data android:name="android.nfc.disable_beam_default"
android:value="true" />
--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);
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();
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);
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);
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();
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 {
*;
}
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#0000" android:endColor="#D0000000"
android:angle="270"/>
-</shape>
\ No newline at end of file
+</shape>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="all_apps_landscape">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissAllAppsCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
limitations under the License.
-->
-<com.android.launcher2.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher3.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/WorkspaceIcon.Landscape"
android:focusable="true"
android:background="@drawable/focusable_view_bg" />
limitations under the License.
-->
-<com.android.launcher2.PagedViewIcon
+<com.android.launcher3.PagedViewIcon
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
style="@style/WorkspaceIcon.Landscape.AppsCustomize"
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="folder_landscape">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissFolderCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
limitations under the License.
-->
-<com.android.launcher2.FolderIcon
+<com.android.launcher3.FolderIcon
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="@dimen/folder_preview_size"
android:layout_height="@dimen/folder_preview_size"
android:src="@drawable/portal_ring_inner_holo"/>
- <com.android.launcher2.BubbleTextView
+ <com.android.launcher3.BubbleTextView
android:id="@+id/folder_icon_name"
style="@style/WorkspaceIcon.Landscape.Folder"/>
-</com.android.launcher2.FolderIcon>
+</com.android.launcher3.FolderIcon>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Hotseat
+<com.android.launcher3.Hotseat
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:cellCountX="1"
launcher:cellCountY="@integer/hotseat_cell_count">
- <com.android.launcher2.CellLayout
+ <com.android.launcher3.CellLayout
android:id="@+id/layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
launcher:widthGap="@dimen/hotseat_width_gap"
launcher:heightGap="@dimen/hotseat_height_gap"
launcher:maxGap="@dimen/workspace_max_gap" />
-</com.android.launcher2.Hotseat>
+</com.android.launcher3.Hotseat>
<!-- Full screen view projects under the status bar and contains the background -->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:id="@+id/launcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/workspace_bg">
- <com.android.launcher2.DragLayer
+ <com.android.launcher3.DragLayer
android:id="@+id/drag_layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<!-- The workspace contains 5 screens of cells -->
- <com.android.launcher2.Workspace
+ <com.android.launcher3.Workspace
android:id="@+id/workspace"
android:layout_width="match_parent"
android:layout_height="match_parent"
<include android:id="@+id/cell3" layout="@layout/workspace_screen" />
<include android:id="@+id/cell4" layout="@layout/workspace_screen" />
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
- </com.android.launcher2.Workspace>
+ </com.android.launcher3.Workspace>
<include
android:id="@+id/qsb_divider"
android:layout_height="match_parent"
android:visibility="gone" />
- <com.android.launcher2.DrawableStateProxyView
+ <com.android.launcher3.DrawableStateProxyView
android:id="@+id/voice_button_proxy"
android:layout_width="@dimen/qsb_bar_height"
android:layout_height="@dimen/app_icon_size"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
- </com.android.launcher2.DragLayer>
-</FrameLayout>
\ No newline at end of file
+ </com.android.launcher3.DragLayer>
+</FrameLayout>
android:layout_height="match_parent"
android:orientation="vertical">
<!-- Global search icon -->
- <com.android.launcher2.HolographicImageView
+ <com.android.launcher3.HolographicImageView
style="@style/SearchButton"
android:id="@+id/search_button"
android:layout_width="match_parent"
android:contentDescription="@string/accessibility_search_button" />
<!-- Voice search icon -->
- <com.android.launcher2.HolographicImageView
+ <com.android.launcher3.HolographicImageView
style="@style/SearchButton"
android:id="@+id/voice_button"
android:layout_width="match_parent"
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
launcher:drawIdentifier="workspace_landscape">
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissWorkspaceCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="all_apps_portrait">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissAllAppsCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
limitations under the License.
-->
-<com.android.launcher2.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher3.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/WorkspaceIcon.Portrait"
android:focusable="true"
android:background="@drawable/focusable_view_bg" />
limitations under the License.
-->
-<com.android.launcher2.PagedViewIcon
+<com.android.launcher3.PagedViewIcon
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
style="@style/WorkspaceIcon.Portrait.AppsCustomize"
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="folder_portrait">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissFolderCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
limitations under the License.
-->
-<com.android.launcher2.FolderIcon
+<com.android.launcher3.FolderIcon
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="@dimen/folder_preview_size"
android:layout_height="@dimen/folder_preview_size"
android:src="@drawable/portal_ring_inner_holo"/>
- <com.android.launcher2.BubbleTextView
+ <com.android.launcher3.BubbleTextView
android:id="@+id/folder_icon_name"
style="@style/WorkspaceIcon.Portrait.Folder"/>
-</com.android.launcher2.FolderIcon>
+</com.android.launcher3.FolderIcon>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Hotseat
+<com.android.launcher3.Hotseat
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:cellCountX="@integer/hotseat_cell_count"
launcher:cellCountY="1">
- <com.android.launcher2.CellLayout
+ <com.android.launcher3.CellLayout
android:id="@+id/layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
launcher:widthGap="@dimen/hotseat_width_gap"
launcher:heightGap="@dimen/hotseat_height_gap"
launcher:maxGap="@dimen/workspace_max_gap" />
-</com.android.launcher2.Hotseat>
+</com.android.launcher3.Hotseat>
<!-- Full screen view projects under the status bar and contains the background -->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:id="@+id/launcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/workspace_bg">
- <com.android.launcher2.DragLayer
+ <com.android.launcher3.DragLayer
android:id="@+id/drag_layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/button_bar_height" />
<!-- The workspace contains 5 screens of cells -->
- <com.android.launcher2.Workspace
+ <com.android.launcher3.Workspace
android:id="@+id/workspace"
android:layout_width="match_parent"
android:layout_height="match_parent"
<include android:id="@+id/cell3" layout="@layout/workspace_screen" />
<include android:id="@+id/cell4" layout="@layout/workspace_screen" />
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
- </com.android.launcher2.Workspace>
+ </com.android.launcher3.Workspace>
<include layout="@layout/hotseat"
android:id="@+id/hotseat"
android:layout_height="match_parent"
android:visibility="gone" />
- <com.android.launcher2.DrawableStateProxyView
+ <com.android.launcher3.DrawableStateProxyView
android:id="@+id/voice_button_proxy"
android:layout_width="80dp"
android:layout_height="@dimen/qsb_bar_height"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
- </com.android.launcher2.DragLayer>
+ </com.android.launcher3.DragLayer>
</FrameLayout>
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
style="@style/SearchDropTargetBar"
android:layout_width="match_parent"
android:layout_height="@dimen/search_bar_height"
android:layout_gravity="bottom|center_horizontal"
android:background="@drawable/search_frame">
<!-- Global search icon -->
- <com.android.launcher2.HolographicLinearLayout
+ <com.android.launcher3.HolographicLinearLayout
style="@style/SearchButton"
launcher:sourceImageViewId="@+id/search_button"
android:id="@+id/search_button_container"
android:scaleType="fitStart"
android:src="@drawable/ic_home_search_normal_holo"
android:adjustViewBounds="true" />
- </com.android.launcher2.HolographicLinearLayout>
+ </com.android.launcher3.HolographicLinearLayout>
<!-- Voice search icon -->
- <com.android.launcher2.HolographicLinearLayout
+ <com.android.launcher3.HolographicLinearLayout
style="@style/SearchButton"
launcher:sourceImageViewId="@+id/voice_button"
android:id="@+id/voice_button_container"
android:scaleType="fitEnd"
android:src="@drawable/ic_home_voice_search_holo"
android:adjustViewBounds="true" />
- </com.android.launcher2.HolographicLinearLayout>
+ </com.android.launcher3.HolographicLinearLayout>
</RelativeLayout>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
launcher:drawIdentifier="workspace_portrait">
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissWorkspaceCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="all_apps_portrait">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="36dp"
android:layout_gravity="top|end"
android:onClick="dismissAllAppsCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="folder_portrait">
<FrameLayout
android:layout_width="match_parent"
android:layout_marginEnd="36dp"
android:layout_gravity="bottom|end"
android:onClick="dismissFolderCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="folder_large">
<FrameLayout
android:layout_width="match_parent"
android:onClick="dismissFolderCling" />
</LinearLayout>
</FrameLayout>
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="all_apps_large">
<FrameLayout
android:layout_width="match_parent"
android:onClick="dismissAllAppsCling" />
</LinearLayout>
</FrameLayout>
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:drawIdentifier="folder_large">
<FrameLayout
android:layout_width="match_parent"
android:onClick="dismissFolderCling" />
</LinearLayout>
</FrameLayout>
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Hotseat
+<com.android.launcher3.Hotseat
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
launcher:cellCountX="@integer/hotseat_cell_count"
launcher:cellCountY="1">
- <com.android.launcher2.CellLayout
+ <com.android.launcher3.CellLayout
android:id="@+id/layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
launcher:widthGap="@dimen/hotseat_width_gap"
launcher:heightGap="@dimen/hotseat_height_gap"
launcher:maxGap="@dimen/hotseat_width_gap" />
-</com.android.launcher2.Hotseat>
+</com.android.launcher3.Hotseat>
<!-- Full screen view projects under the status bar and contains the background -->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:id="@+id/launcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/workspace_bg">
- <com.android.launcher2.DragLayer
+ <com.android.launcher3.DragLayer
android:id="@+id/drag_layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/button_bar_height_plus_padding" />
<!-- The workspace contains 5 screens of cells -->
- <com.android.launcher2.Workspace
+ <com.android.launcher3.Workspace
android:id="@+id/workspace"
android:layout_width="match_parent"
android:layout_height="match_parent"
<include android:id="@+id/cell3" layout="@layout/workspace_screen" />
<include android:id="@+id/cell4" layout="@layout/workspace_screen" />
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
- </com.android.launcher2.Workspace>
+ </com.android.launcher3.Workspace>
<include layout="@layout/hotseat"
android:id="@+id/hotseat"
android:layout_height="match_parent"
android:visibility="gone" />
- <com.android.launcher2.DrawableStateProxyView
+ <com.android.launcher3.DrawableStateProxyView
android:id="@+id/voice_button_proxy"
android:layout_width="80dp"
android:layout_height="@dimen/qsb_bar_height"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
- </com.android.launcher2.DragLayer>
+ </com.android.launcher3.DragLayer>
</FrameLayout>
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
style="@style/SearchDropTargetBar"
android:layout_width="match_parent"
android:layout_height="@dimen/search_bar_height"
android:layout_gravity="bottom|center_horizontal"
android:background="@drawable/search_frame">
<!-- Global search icon -->
- <com.android.launcher2.HolographicLinearLayout
+ <com.android.launcher3.HolographicLinearLayout
style="@style/SearchButton"
launcher:sourceImageViewId="@+id/search_button"
android:id="@+id/search_button_container"
android:layout_height="match_parent"
android:src="@drawable/ic_home_search_normal_holo"
android:adjustViewBounds="true" />
- </com.android.launcher2.HolographicLinearLayout>
+ </com.android.launcher3.HolographicLinearLayout>
<!-- Voice search icon -->
- <com.android.launcher2.HolographicLinearLayout
+ <com.android.launcher3.HolographicLinearLayout
style="@style/SearchButton"
launcher:sourceImageViewId="@+id/voice_button"
android:id="@+id/voice_button_container"
android:layout_height="match_parent"
android:src="@drawable/ic_home_voice_search_holo"
android:adjustViewBounds="true" />
- </com.android.launcher2.HolographicLinearLayout>
+ </com.android.launcher3.HolographicLinearLayout>
</RelativeLayout>
android:layout_height="@dimen/wallpaper_chooser_grid_height"
android:scaleType="centerCrop"
android:focusable="true" />
-</FrameLayout>
\ No newline at end of file
+</FrameLayout>
<!-- The workspace contains 5 screens of cells -->
-<com.android.launcher2.Workspace
+<com.android.launcher3.Workspace
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:paddingStart="@dimen/workspace_left_padding"
android:paddingEnd="@dimen/workspace_right_padding"
android:paddingTop="@dimen/workspace_top_padding"
<include android:id="@+id/cell3" layout="@layout/workspace_screen" />
<include android:id="@+id/cell4" layout="@layout/workspace_screen" />
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
-</com.android.launcher2.Workspace>
\ No newline at end of file
+</com.android.launcher3.Workspace>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
launcher:drawIdentifier="workspace_portrait">
android:layout_marginEnd="10dp"
android:layout_gravity="bottom|end"
android:onClick="dismissWorkspaceCling" />
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.AppsCustomizeTabHost
+<com.android.launcher3.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:background="#FF000000">
<LinearLayout
android:id="@+id/apps_customize_content"
android:layout_height="@dimen/apps_customize_tab_bar_height"
android:layout_marginTop="@dimen/apps_customize_tab_bar_margin_top"
android:layout_gravity="center_horizontal">
- <com.android.launcher2.FocusOnlyTabWidget
+ <com.android.launcher3.FocusOnlyTabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent">
- <com.android.launcher2.AppsCustomizePagedView
+ <com.android.launcher3.AppsCustomizePagedView
android:id="@+id/apps_customize_pane_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
-</com.android.launcher2.AppsCustomizeTabHost>
+</com.android.launcher3.AppsCustomizeTabHost>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.PagedViewWidget
+<com.android.launcher3.PagedViewWidget
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true">
<!-- The preview of the widget or shortcut. -->
- <com.android.launcher2.PagedViewWidgetImageView
+ <com.android.launcher3.PagedViewWidgetImageView
android:id="@+id/widget_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
</LinearLayout>
-</com.android.launcher2.PagedViewWidget>
+</com.android.launcher3.PagedViewWidget>
limitations under the License.
-->
<!-- dummy layout, to be replaced in overlays -->
-<com.android.launcher2.Cling
+<com.android.launcher3.Cling
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="match_parent"
android:layout_height="match_parent"
launcher:drawIdentifier="workspace_custom">
android:gravity="start"
android:layout_gravity="bottom|start"
/>
-</com.android.launcher2.Cling>
+</com.android.launcher3.Cling>
style="@style/DropTargetButtonContainer"
android:layout_weight="1">
<!-- Delete target -->
- <com.android.launcher2.DeleteDropTarget
+ <com.android.launcher3.DeleteDropTarget
style="@style/DropTargetButton"
android:id="@+id/delete_target_text"
android:text="@string/delete_zone_label_workspace"
style="@style/DropTargetButtonContainer"
android:layout_weight="1">
<!-- Info target -->
- <com.android.launcher2.InfoDropTarget
+ <com.android.launcher3.InfoDropTarget
style="@style/DropTargetButton"
android:id="@+id/info_target_text"
android:text="@string/info_target_label"
android:drawableStart="@drawable/info_target_selector" />
</FrameLayout>
-</merge>
\ No newline at end of file
+</merge>
See the License for the specific language governing permissions and
limitations under the License.
-->
-<com.android.launcher2.SearchDropTargetBar
+<com.android.launcher3.SearchDropTargetBar
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/QSBBar"
android:focusable="false">
<include
layout="@layout/drop_target_bar" />
</LinearLayout>
-</com.android.launcher2.SearchDropTargetBar>
+</com.android.launcher3.SearchDropTargetBar>
limitations under the License.
-->
-<com.android.launcher2.AccessibleTabView
+<com.android.launcher3.AccessibleTabView
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TabIndicator.AppsCustomize" />
limitations under the License.
-->
-<com.android.launcher2.Folder
+<com.android.launcher3.Folder
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/portal_container_holo">
- <com.android.launcher2.CellLayout
+ <com.android.launcher3.CellLayout
android:id="@+id/folder_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
launcher:cellWidth="@dimen/folder_cell_width"
launcher:cellHeight="@dimen/folder_cell_height" />
- <com.android.launcher2.FolderEditText
+ <com.android.launcher3.FolderEditText
android:id="@+id/folder_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:singleLine="true"
android:imeOptions="flagNoExtractUi"/>
-</com.android.launcher2.Folder>
+</com.android.launcher3.Folder>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
- <fragment class="com.android.launcher2.WallpaperChooserDialogFragment"
+ <fragment class="com.android.launcher3.WallpaperChooserDialogFragment"
android:id="@+id/wallpaper_chooser_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
limitations under the License.
-->
-<com.android.launcher2.CellLayout
+<com.android.launcher3.CellLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
launcher:cellHeight="@dimen/workspace_cell_height"
launcher:widthGap="@dimen/workspace_width_gap"
launcher:heightGap="@dimen/workspace_height_gap"
- launcher:maxGap="@dimen/workspace_max_gap" />
\ No newline at end of file
+ launcher:maxGap="@dimen/workspace_max_gap" />
<resources>
<string-array name="wallpapers" translatable="false">
- <item>wallpaper_00</item>
- <item>wallpaper_01</item>
- <item>wallpaper_02</item>
- <item>wallpaper_03</item>
- <item>wallpaper_04</item>
- <item>wallpaper_05</item>
- <item>wallpaper_06</item>
- <item>wallpaper_07</item>
- <item>wallpaper_08</item>
- <item>wallpaper_09</item>
- <item>wallpaper_10</item>
</string-array>
</resources>
<!-- General -->
<skip />
<!-- Application name -->
- <string name="application_name">Launcher</string>
+ <string name="application_name">Launcher3</string>
<!-- Accessibility-facing application name -->
<string name="home">Home</string>
<!-- Name for all applications running as this uid. -->
<resources>
<string-array name="wallpapers" translatable="false">
- <item>wallpaper_01</item>
- <item>wallpaper_02</item>
- <item>wallpaper_03</item>
- <item>wallpaper_04</item>
- <item>wallpaper_05</item>
- <item>wallpaper_06</item>
- <item>wallpaper_07</item>
- <item>wallpaper_08</item>
- <item>wallpaper_09</item>
- <item>wallpaper_10</item>
- <item>wallpaper_11</item>
- <item>wallpaper_12</item>
</string-array>
</resources>
limitations under the License.
-->
-<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
+<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<!-- Far-left screen [0] -->
<!-- Left screen [1] -->
limitations under the License.
-->
-<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
+<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<!-- Far-left screen [0] -->
<!-- Left screen [1] -->
limitations under the License.
-->
-<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
+<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<!-- Far-left screen [0] -->
<!-- Left screen [1] -->
limitations under the License.
-->
-<favorites xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
+<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<!-- Update the db with new hotseat items. Note that we reference the browser's original
package name. -->
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
<wallpaper-preview
xmlns:android="http://schemas.android.com/apk/res/android"
android:staticWallpaperPreview="@drawable/wallpaper_picker_preview">
-</wallpaper-preview>
\ No newline at end of file
+</wallpaper-preview>
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.util.AttributeSet;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
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}.
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.os.Handler;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.ArrayList;
import java.util.List;
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.ComponentName;
import android.content.Intent;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.widget.TabWidget;
import android.widget.TextView;
-import com.android.launcher.R;
+import com.android.launcher3.R;
import java.util.ArrayList;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.widget.TextView;
-import com.android.launcher.R;
+import com.android.launcher3.R;
/**
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.view.View;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.widget.FrameLayout;
-import com.android.launcher.R;
+import com.android.launcher3.R;
public class Cling extends FrameLayout {
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.os.Handler;
import android.os.Looper;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
import android.view.ViewConfiguration;
import android.view.inputmethod.InputMethodManager;
-import com.android.launcher.R;
+import com.android.launcher3.R;
import java.util.ArrayList;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.widget.FrameLayout;
import android.widget.TextView;
-import com.android.launcher.R;
+import com.android.launcher3.R;
import java.util.ArrayList;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
/**
* Handles scrolling while dragging
* 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.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.TypedArray;
import android.view.View;
import android.widget.LinearLayout;
-import com.android.launcher.R;
+import com.android.launcher3.R;
public class DrawableStateProxyView extends LinearLayout {
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.graphics.PointF;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.graphics.Bitmap;
import android.graphics.Canvas;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.res.Configuration;
import android.view.KeyEvent;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.util.AttributeSet;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
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;
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.util.AttributeSet;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.ArrayList;
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.TypedArray;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.view.View;
import android.view.ViewGroup;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.graphics.Canvas;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.TypedArray;
import android.widget.ImageView;
import android.widget.LinearLayout;
-import com.android.launcher.R;
+import com.android.launcher3.R;
public class HolographicLinearLayout extends LinearLayout {
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.graphics.Bitmap;
import android.graphics.BlurMaskFilter;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Configuration;
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")
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.app.ActivityManager;
import android.content.ComponentName;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.ComponentName;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
-import com.android.launcher.R;
+import com.android.launcher3.R;
public class InfoDropTarget extends ButtonDropTarget {
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.BroadcastReceiver;
import android.content.Context;
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;
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";
// 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();
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.List;
import android.widget.ListAdapter;
import android.widget.TextView;
-import com.android.launcher.R;
+import com.android.launcher3.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.
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.ContentValues;
import android.content.Intent;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.accounts.Account;
import android.accounts.AccountManager;
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;
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;
// 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";
// 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 };
// 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;
}
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;
}
* 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);
if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.dumpState();
}
- Log.d(TAG, "END launcher2 dump state");
+ Log.d(TAG, "END launcher3 dump state");
}
@Override
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorSet;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetHostView;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetHostView;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.RemoteViews;
-import com.android.launcher.R;
+import com.android.launcher3.R;
/**
* {@inheritDoc}
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetHostView;
import android.content.ComponentName;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.app.Application;
import android.app.SearchManager;
import android.database.ContentObserver;
import android.os.Handler;
-import com.android.launcher.R;
+import com.android.launcher3.R;
import java.lang.ref.WeakReference;
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<LauncherProvider> mLauncherProvider;
@Override
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.app.SearchManager;
import android.appwidget.AppWidgetManager;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.app.SearchManager;
import android.appwidget.AppWidgetHost;
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;
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";
"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
// 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).
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.net.Uri;
import android.provider.BaseColumns;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.BroadcastReceiver;
import android.content.Context;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.animation.Interpolator;
import android.widget.Scroller;
-import com.android.launcher.R;
+import com.android.launcher3.R;
import java.util.ArrayList;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
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
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.graphics.Rect;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.view.MotionEvent;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.graphics.Bitmap;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.ArrayList;
import java.util.HashMap;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
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
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.graphics.Canvas;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.util.AttributeSet;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetHostView;
import android.appwidget.AppWidgetProviderInfo;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.BroadcastReceiver;
import android.content.Context;
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) {
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);
}
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
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
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.app.WallpaperManager;
import android.content.Context;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.ArrayList;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.Context;
import android.util.AttributeSet;
* 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
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
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;
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<PendingUninstallShortcutInfo> mUninstallQueue =
* 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;
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<Integer> list = new ArrayList<Integer>();
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import java.util.Random;
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.
* 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;
* 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;
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;
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;
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);
-package com.android.launcher2;
+package com.android.launcher3;
import android.appwidget.AppWidgetProviderInfo;
import android.content.ComponentName;
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;
* limitations under the License.
*/
-package com.android.launcher2;
+package com.android.launcher3;
import android.animation.Animator;
import android.animation.AnimatorSet;
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;
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.launcher.stress.launcherrotation">
+ package="com.android.launcher3.stress.launcherrotation">
<application>
<uses-library android:name="android.test.runner" />
<instrumentation
android:name="android.test.InstrumentationTestRunner"
- android:targetPackage="com.android.launcher"
+ android:targetPackage="com.android.launcher3"
android:label="Rotation stress test using Launcher2">
</instrumentation>
</manifest>
* 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;