OSDN Git Service

android-x86/packages-apps-Launcher3.git
9 years agoMerge "Removing developer options check for app info target" into ub-launcher3-burnaby
Sunny Goyal [Fri, 12 Jun 2015 19:28:34 +0000 (19:28 +0000)]
Merge "Removing developer options check for app info target" into ub-launcher3-burnaby

9 years agoRemoving developer options check for app info target
Sunny Goyal [Fri, 12 Jun 2015 19:25:45 +0000 (12:25 -0700)]
Removing developer options check for app info target

Bug: 21626561
Change-Id: Ic65155ca5b1e5268ccdf2b20295a5067d5d3fa5d

9 years agoMerge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher...
Sunny Goyal [Thu, 11 Jun 2015 18:43:26 +0000 (18:43 +0000)]
Merge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher3-burnaby

9 years agoFix a small UI nit with screen reordering
Adam Cohen [Thu, 11 Jun 2015 01:40:05 +0000 (18:40 -0700)]
Fix a small UI nit with screen reordering

-> When in overview mode, flinging the pages can leave the scroller
   running (invisibly) for much additional time, since the scroller
   fling bounds far exceed the alloawble scroll bounds (in order to
   achieve a hard wall type effect)
-> When this is happening, user couldn't pick up a page for reordering
-> Ended the scroller early in this case to avoid the problem

Change-Id: I8b6f140d9a87bb742e57625e90ca7d76a2158e28

9 years agoam 0c979d1f: Catch TransactionTooLargeException when loading widget provider list...
Hyunyoung Song [Wed, 10 Jun 2015 19:08:49 +0000 (19:08 +0000)]
am 0c979d1f: Catch TransactionTooLargeException when loading widget provider list b/19904873

* commit '0c979d1f2fda45b9d098f9399e1079e6bc22c2b0':
  Catch TransactionTooLargeException when loading widget provider list b/19904873

9 years agoMerge "Fixing crash in restore" into ub-launcher3-burnaby
Sunny Goyal [Wed, 10 Jun 2015 18:36:07 +0000 (18:36 +0000)]
Merge "Fixing crash in restore" into ub-launcher3-burnaby

9 years agoCatch TransactionTooLargeException when loading widget provider list
Hyunyoung Song [Tue, 9 Jun 2015 01:41:04 +0000 (18:41 -0700)]
Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
(cherry picked from commit 3abd5488cca5b06c97251db453a5a6ed61e33ce8)

9 years agoTying accessibility drag lifecycle to that of dragController
Sunny Goyal [Mon, 8 Jun 2015 23:52:41 +0000 (16:52 -0700)]
Tying accessibility drag lifecycle to that of dragController

Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65

9 years agoMerge "Catch TransactionTooLargeException when loading widget provider list b/1990487...
Hyunyoung Song [Tue, 9 Jun 2015 01:53:35 +0000 (01:53 +0000)]
Merge "Catch TransactionTooLargeException when loading widget provider list b/19904873" into ub-launcher3-burnaby

9 years agoCatch TransactionTooLargeException when loading widget provider list
Hyunyoung Song [Tue, 9 Jun 2015 01:41:04 +0000 (18:41 -0700)]
Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..

9 years agoMerge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby
Hyunyoung Song [Tue, 9 Jun 2015 01:18:56 +0000 (01:18 +0000)]
Merge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby

9 years agoMake WidgetsRecyclerView not crash on MNC support lib
Hyunyoung Song [Tue, 9 Jun 2015 01:17:13 +0000 (18:17 -0700)]
Make WidgetsRecyclerView not crash on MNC support lib

Change-Id: Ia7bee39752ad0c0b58e74df4507caaf7a3cd8c29

9 years agoMerge "Removing LauncherApplication to enable us to easily catch LauncherAppState...
Sunny Goyal [Mon, 8 Jun 2015 23:05:22 +0000 (23:05 +0000)]
Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby

9 years agoMerge "Fixing preloaded widget not getting used for animation" into ub-launcher3...
Sunny Goyal [Mon, 8 Jun 2015 22:32:48 +0000 (22:32 +0000)]
Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby

9 years agoMerge "Fixing touch feedback clipped on SetWallpaper button" into ub-launcher3-burnaby
Sunny Goyal [Mon, 8 Jun 2015 00:19:29 +0000 (00:19 +0000)]
Merge "Fixing touch feedback clipped on SetWallpaper button" into ub-launcher3-burnaby

9 years agoMerge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3...
Hyunyoung Song [Fri, 5 Jun 2015 21:14:32 +0000 (21:14 +0000)]
Merge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3-burnaby

9 years agoFixing touch feedback clipped on SetWallpaper button
Sunny Goyal [Fri, 5 Jun 2015 20:41:23 +0000 (13:41 -0700)]
Fixing touch feedback clipped on SetWallpaper button

Bug: 19534312
Change-Id: I97dfd92c560caaf83e525f7e94286a7a77d2ba0b

9 years agoImprove AyncTask throughput inside WidgetPreviewLoader
Hyunyoung Song [Fri, 5 Jun 2015 20:30:19 +0000 (13:30 -0700)]
Improve AyncTask throughput inside WidgetPreviewLoader

b/21133230
> Synchronized block was creating a bottleneck for the AsyncTasks.
> Remove calls that doesn't need to be synchronized outside synchronized block.
> Also removed setAlpha call as after the bottleneck was removed,
Inefficient alpha view usage alert started popping up in traceview.
Due to less jankness, removing the fadein animation doesn't have any
visible effect.

Link to lock congestion visualization:
https://x20web.corp.google.com/~hyunyoungs/no_crawl/traceview/traceview_lockcontention.html

Result: gfx-avg-jank delta = "-1"
Change-Id: If12817df0730f346cdba7e2f38f232eb9a4336c0

9 years agoFixing crash in restore
Sunny Goyal [Fri, 5 Jun 2015 18:14:01 +0000 (11:14 -0700)]
Fixing crash in restore

> LauncherAppState cannot be initialized during restore, as it is not
called from a looper thread.

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e

9 years agoMerge "Ensuring that we use the screen width more optimally in AllApps." into ub...
Winson Chung [Fri, 5 Jun 2015 18:09:35 +0000 (18:09 +0000)]
Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby

9 years agoEnsure that we use the system long press duration when dragging from AllApps.
Winson Chung [Tue, 2 Jun 2015 18:24:28 +0000 (11:24 -0700)]
Ensure that we use the system long press duration when dragging from AllApps.

- Removing some old code out of LauncherAppState

Bug: 21559400
Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2

9 years agoMerge "Code cleanup" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:40:26 +0000 (17:40 +0000)]
Merge "Code cleanup" into ub-launcher3-burnaby

9 years agoMerge "Updating assets" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:40:00 +0000 (17:40 +0000)]
Merge "Updating assets" into ub-launcher3-burnaby

9 years agoMerge "Removing unused animation style" into ub-launcher3-burnaby
Sunny Goyal [Fri, 5 Jun 2015 17:39:48 +0000 (17:39 +0000)]
Merge "Removing unused animation style" into ub-launcher3-burnaby

9 years agoEnsuring that we use the screen width more optimally in AllApps.
Winson Chung [Mon, 1 Jun 2015 21:38:24 +0000 (14:38 -0700)]
Ensuring that we use the screen width more optimally in AllApps.

- Fixing issue with prediction bar height being calculated incorrectly
- Fixing issue where the prediction bar divider was not drawn exactly
  between the bar and the first row of apps
- Removing padding to allow scrollbars to reach full height

Bug: 20222023
Bug: 21335377
Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e

9 years agoUpdating assets
Sunny Goyal [Fri, 5 Jun 2015 05:40:14 +0000 (22:40 -0700)]
Updating assets

Bug: 21304080
Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be

9 years agoCode cleanup
Sunny Goyal [Fri, 5 Jun 2015 07:13:25 +0000 (00:13 -0700)]
Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb

9 years agoRemoving LauncherApplication to enable us to easily catch LauncherAppState errors
Sunny Goyal [Fri, 5 Jun 2015 04:19:02 +0000 (21:19 -0700)]
Removing LauncherApplication to enable us to easily catch LauncherAppState errors

Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60

9 years agoMerge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 23:47:34 +0000 (23:47 +0000)]
Merge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby

9 years agoPreventing overdraw in custom content screen
Sunny Goyal [Thu, 4 Jun 2015 23:29:51 +0000 (16:29 -0700)]
Preventing overdraw in custom content screen

> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b

9 years agoUse a broadcast receiver instead of a settings observer.
Rahul Chaturvedi [Tue, 2 Jun 2015 01:26:41 +0000 (21:26 -0400)]
Use a broadcast receiver instead of a settings observer.

Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3

9 years agoUpdating widget list when iconCache updates
Sunny Goyal [Thu, 4 Jun 2015 22:19:31 +0000 (15:19 -0700)]
Updating widget list when iconCache updates

> Fixing bug where items were not getting removed from the memcache
> Fixing bug where package entries were not getting removing because
of component mismatch.

Bug: 21612532
Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02

9 years agoMerge "Adding back icon size dimen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 19:37:45 +0000 (19:37 +0000)]
Merge "Adding back icon size dimen" into ub-launcher3-burnaby

9 years agoAdding back icon size dimen
Sunny Goyal [Thu, 4 Jun 2015 19:19:51 +0000 (12:19 -0700)]
Adding back icon size dimen

Bug: 21638256
Change-Id: I522a8e59e63e4a49a087e4fb3aac102595ea6818

9 years agoMerge "Consistent scrolling experience for All apps and widget tray" into ub-launcher...
Hyunyoung Song [Thu, 4 Jun 2015 18:39:44 +0000 (18:39 +0000)]
Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby

9 years agoConsistent scrolling experience for All apps and widget tray
Hyunyoung Song [Thu, 4 Jun 2015 18:37:46 +0000 (11:37 -0700)]
Consistent scrolling experience for All apps and widget tray

b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0

9 years agoFixing different bitmap sizes in different orientations
Sunny Goyal [Fri, 22 May 2015 19:25:45 +0000 (12:25 -0700)]
Fixing different bitmap sizes in different orientations

> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585

9 years agoMerge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into...
Winson Chung [Wed, 3 Jun 2015 19:03:12 +0000 (19:03 +0000)]
Merge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into ub-launcher3-burnaby

9 years agoFixing issue with hotseat being on the wrong side of the screen in RTL.
Winson Chung [Wed, 3 Jun 2015 18:27:26 +0000 (11:27 -0700)]
Fixing issue with hotseat being on the wrong side of the screen in RTL.

Bug: 21499466

Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab

9 years agoMerge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby
Mady Mellor [Wed, 3 Jun 2015 16:46:42 +0000 (16:46 +0000)]
Merge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby

9 years agoMerge "Stylus support: creating and setting listeners for stylus button press" into...
Mady Mellor [Wed, 3 Jun 2015 16:26:34 +0000 (16:26 +0000)]
Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby

9 years agoMerge "Adding context for app launches." into ub-launcher3-burnaby
Winson Chung [Tue, 2 Jun 2015 23:59:42 +0000 (23:59 +0000)]
Merge "Adding context for app launches." into ub-launcher3-burnaby

9 years agoAdding context for app launches.
Winson Chung [Fri, 29 May 2015 00:33:40 +0000 (17:33 -0700)]
Adding context for app launches.

Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10

9 years agoStylus support: creating and setting listeners for stylus button press
Mady Mellor [Tue, 2 Jun 2015 22:35:07 +0000 (15:35 -0700)]
Stylus support: creating and setting listeners for stylus button press

This updates almost(*) all locations that use a long press listener to
also set a custom touch listener that recognizes the stylus button press
action.

The stylus button press action is: when a stylus touches a view while the
primary stylus button is pressed which may occur on a DOWN or MOVE event.

*The location this is *not* enabled for is: Longpress to enter "overview"
mode -- this isn't really a selection or drag n drop action; it is also
easy to accidentally do this while using the stylus gesture to drag n drop
items which is not an ideal interaction. Also not set for the "cling" that
demonstrates this.

Bug: 20430722
Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca

9 years agoFixing preloaded widget not getting used for animation
Sunny Goyal [Tue, 2 Jun 2015 01:37:32 +0000 (18:37 -0700)]
Fixing preloaded widget not getting used for animation

> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2

9 years agoStylus support: handling drag n drop for widgets
Mady Mellor [Tue, 2 Jun 2015 22:02:14 +0000 (15:02 -0700)]
Stylus support: handling drag n drop for widgets

This alters the widget host view code to consider stylus button presses
allowing the user to pick up widgets with a stylus button press, and drop
them by releasing the button.

Bug: 20430722
Change-Id: I359f72bd80016f4b313aab1325cc92d7c6fd2a8c

9 years agoRemove use of API level 19 classes.
Winson Chung [Tue, 2 Jun 2015 17:29:30 +0000 (10:29 -0700)]
Remove use of API level 19 classes.

Bug: 21583308

9 years agoRemoving some synthetic method creation
Sunny Goyal [Tue, 2 Jun 2015 16:38:28 +0000 (09:38 -0700)]
Removing some synthetic method creation

> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174

9 years agoRemoving unused animation style
Sunny Goyal [Tue, 2 Jun 2015 05:02:11 +0000 (22:02 -0700)]
Removing unused animation style

Change-Id: Ib8031eb9604cb2c10d4ac07e22b94772f7967a89

9 years agoBuild fix: Removing FastOutSlowIn interpolator
Sunny Goyal [Tue, 2 Jun 2015 00:15:34 +0000 (17:15 -0700)]
Build fix: Removing FastOutSlowIn interpolator

Change-Id: Ia84445285d013fe8da3c895f5264f329f2403890

9 years agoFolder UI fixes
Sunny Goyal [Mon, 1 Jun 2015 18:00:38 +0000 (11:00 -0700)]
Folder UI fixes

> Fixing top padding (b/21304523)
> Alinging the label and page indicators to the icons
> Fixing folder label alingment in RTL (b/21445821)
> Updating footer animation (b/21336853)

Bug: 213045232144582121336853
Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094

9 years agoEnabling resumeWhilePausing for the Launcher activity.
Winson Chung [Mon, 1 Jun 2015 19:38:30 +0000 (12:38 -0700)]
Enabling resumeWhilePausing for the Launcher activity.

Bug: 21342101

9 years agoAdding an asynchronous search interface for apps search
Sunny Goyal [Fri, 29 May 2015 21:54:40 +0000 (14:54 -0700)]
Adding an asynchronous search interface for apps search

Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e

9 years agoFixing crash on tablets from merging scheme changes.
Winson Chung [Mon, 1 Jun 2015 22:42:37 +0000 (15:42 -0700)]
Fixing crash on tablets from merging scheme changes.

9 years agoMerge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby
Rahul Chaturvedi [Mon, 1 Jun 2015 20:56:14 +0000 (20:56 +0000)]
Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby

9 years agoAdd the Allow Rotation setting to Launcher3.
Rahul Chaturvedi [Wed, 20 May 2015 01:02:16 +0000 (18:02 -0700)]
Add the Allow Rotation setting to Launcher3.

This CL adds a Settings activity along with the code needed to provide
a "Allow Rotation" setting to all phones and tablets. This setting is
set to false for phones and true for tablets. On changing the setting
from unlocked to locked, the launcher (and the Settings activity)
will get locked to the orientation the user was in when he disabled
"Allow Rotation". This is consistent with how the natural rotation
feature of Android works.

Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344

9 years agoAvoid merging app sections across scripts.
Winson Chung [Mon, 1 Jun 2015 19:35:17 +0000 (12:35 -0700)]
Avoid merging app sections across scripts.

Bug: 20222023
Change-Id: I171d75a33694fc2cb347a32cff209f64fe3bf7c3

9 years agoMerge "Revert "Avoid merging sections across scripts."" into ub-launcher3-burnaby
Winson Chung [Mon, 1 Jun 2015 19:20:48 +0000 (19:20 +0000)]
Merge "Revert "Avoid merging sections across scripts."" into ub-launcher3-burnaby

9 years agoRevert "Avoid merging sections across scripts."
Winson Chung [Mon, 1 Jun 2015 19:20:23 +0000 (19:20 +0000)]
Revert "Avoid merging sections across scripts."

This reverts commit 595395d84f0507a1c5c163ad4722fa4345376079.

Change-Id: I44913141f6cb3af29b4509d6b7c317247d1f24c9

9 years agoMerge "Avoid merging sections across scripts." into ub-launcher3-burnaby
Winson Chung [Mon, 1 Jun 2015 18:27:20 +0000 (18:27 +0000)]
Merge "Avoid merging sections across scripts." into ub-launcher3-burnaby

9 years agoAvoid merging sections across scripts.
Winson Chung [Mon, 1 Jun 2015 18:18:12 +0000 (11:18 -0700)]
Avoid merging sections across scripts.

Bug: 20222023
Change-Id: I6f6577112845fec14ae2e9c6e88ff3569bd2f1af

9 years agoNull check in accessibility delegate
Sunny Goyal [Mon, 1 Jun 2015 17:09:06 +0000 (10:09 -0700)]
Null check in accessibility delegate

bug: 21338696
Change-Id: I00d67e53e03e33b26a8eadb669b60fec47553f26

9 years agoMerge "Start adding unit tests for the invariant device profile / Refactor" into...
Hyunyoung Song [Fri, 29 May 2015 22:47:37 +0000 (22:47 +0000)]
Merge "Start adding unit tests for the invariant device profile / Refactor" into ub-launcher3-burnaby

9 years agoMerge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby
Sunny Goyal [Fri, 29 May 2015 22:03:10 +0000 (22:03 +0000)]
Merge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby

9 years agoFixing screen jumps when performing DnD in rtl mode
Sunny Goyal [Thu, 28 May 2015 17:06:43 +0000 (10:06 -0700)]
Fixing screen jumps when performing DnD in rtl mode

Bug: 21445825
Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d

9 years agoMove fast scrolling logic to BaseRecyclerView
Hyunyoung Song [Fri, 29 May 2015 19:00:44 +0000 (12:00 -0700)]
Move fast scrolling logic to BaseRecyclerView

- This change has no effect on actual functionality but to make it easier
for widget tray to inherit the goodness of the 1) fast scroller
functionality 2) unify the scroll look and feel with the all apps view

b/21375339

Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8

9 years agoMerge "Ensuring that each CacheEntry has a default title and content description...
Winson Chung [Thu, 28 May 2015 22:48:50 +0000 (22:48 +0000)]
Merge "Ensuring that each CacheEntry has a default title and content description." into ub-launcher3-burnaby

9 years agoStart adding unit tests for the invariant device profile / Refactor
Hyunyoung Song [Thu, 28 May 2015 22:33:40 +0000 (15:33 -0700)]
Start adding unit tests for the invariant device profile / Refactor

- removed redundant code to sort the device profiles
- removed DeviceProfileQuery class
- Added a helper method inside the test to easily generate
interpolation graph looks like:
https://docs.google.com/a/google.com/spreadsheets/d/1a1fdemrOqIDixiql77h0anWzUD3GlYfGsbP2FfIhyPM/edit?usp=sharing

Change-Id: Ia4c54a8d59a049c418c08d1b766f07ac6e1d0944

9 years agoEnsuring that each CacheEntry has a default title and content description.
Winson Chung [Thu, 28 May 2015 19:53:44 +0000 (12:53 -0700)]
Ensuring that each CacheEntry has a default title and content description.

- Also defer adding entry to cache until we know that it has correctly loaded

Bug: 21446070

Change-Id: Ia7aae65ecdc5d9d7741f75d3fb6e7b85daeafeff

9 years agoMerge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event."...
Vadim Tryshev [Thu, 28 May 2015 22:07:56 +0000 (22:07 +0000)]
Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event." into ub-launcher3-burnaby

9 years agoSetting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.
Vadim Tryshev [Thu, 21 May 2015 21:06:35 +0000 (14:06 -0700)]
Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.

Change-Id: Idec0e333a0d3c3a0c232d3e2240f18174e0ea88c

9 years agoam a14cb230: (-s ours) Merge "Guard against monkey actor test NPE inside FocusHelper...
Hyunyoung Song [Thu, 28 May 2015 22:01:35 +0000 (22:01 +0000)]
am a14cb230: (-s ours) Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte

* commit 'a14cb230dad35fc4ad54dae9f5c5d4f71b89ff12':
  Guard against monkey actor test NPE inside FocusHelper b/19626762

9 years agoMerge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub...
Hyunyoung Song [Thu, 28 May 2015 21:48:24 +0000 (21:48 +0000)]
Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte

9 years agoGuard against monkey actor test NPE inside FocusHelper
Hyunyoung Song [Thu, 28 May 2015 21:45:59 +0000 (14:45 -0700)]
Guard against monkey actor test NPE inside FocusHelper
b/19626762

Change-Id: Icaff5931f4076323855f23e7165b0e78a11241b6

9 years agoMerge "Fixing non-scrolling of workspace view after opening/closing AllApps vew....
Vadim Tryshev [Thu, 28 May 2015 21:42:15 +0000 (21:42 +0000)]
Merge "Fixing non-scrolling of workspace view after opening/closing AllApps vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby

9 years agoFixing non-scrolling of workspace view after opening/closing AllApps vew.
Vadim Tryshev [Fri, 15 May 2015 15:48:11 +0000 (08:48 -0700)]
Fixing non-scrolling of workspace view after opening/closing AllApps vew.
The reason for non-scrolling was excluding the pages view from the
accessibility hierarchy by marking it as non-important. So, I just
removed the code manipulating [non]importance of the PagedView.

However, this would make the PagesView accessibility-focusable, which is
undesirable. It becomes focusable because it supports long clicks in "normal"
mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is
fetched NOT via accessibility long-click), I just disabled accessibility
long-clickability, which made PageView non-focusable, and it started to behave
correctly.

Bug: 21281859
Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d

9 years agoFixing page background not displayed when dragging from all apps
Sunny Goyal [Wed, 27 May 2015 01:56:52 +0000 (18:56 -0700)]
Fixing page background not displayed when dragging from all apps

> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101

9 years agoMerge "Removing file IO used for checking configuration change" into ub-launcher3...
Sunny Goyal [Thu, 28 May 2015 00:16:08 +0000 (00:16 +0000)]
Merge "Removing file IO used for checking configuration change" into ub-launcher3-burnaby

9 years agoMerge "Make sure all transition components run on the same thread" into ub-launcher3...
Adam Cohen [Wed, 27 May 2015 21:16:29 +0000 (21:16 +0000)]
Merge "Make sure all transition components run on the same thread" into ub-launcher3-burnaby

9 years agoMake sure all transition components run on the same thread
Adam Cohen [Wed, 27 May 2015 06:03:31 +0000 (23:03 -0700)]
Make sure all transition components run on the same thread

-> The framework circular reveal transition runs on the render
   thread which can cause problems when mixed in an AnimatorSet
   with transitions that don't run on the render thread
-> See issue 17556455

issue 21445293

Change-Id: Ie19c184c55060651e817d426ec83049b06af56ba

9 years agoFixing build breakage
Sunny Goyal [Wed, 27 May 2015 18:14:01 +0000 (11:14 -0700)]
Fixing build breakage

Change-Id: I2d8ac9a92d2da3d6b0f52ff8a6e3683b05663aec

9 years agoRemoving SmoothPagedView as all its methods are disabled
Sunny Goyal [Wed, 27 May 2015 17:24:24 +0000 (10:24 -0700)]
Removing SmoothPagedView as all its methods are disabled

Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6

9 years agoMerge "Introduce LauncherSearchCallback to handle search overlay status." into ub...
Jun Mukai [Wed, 27 May 2015 00:41:28 +0000 (00:41 +0000)]
Merge "Introduce LauncherSearchCallback to handle search overlay status." into ub-launcher3-burnaby

9 years agoFixing workspace scrim not being drawn
Sunny Goyal [Wed, 27 May 2015 00:20:07 +0000 (17:20 -0700)]
Fixing workspace scrim not being drawn

Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71

9 years agoRemoving file IO used for checking configuration change
Sunny Goyal [Tue, 26 May 2015 16:14:49 +0000 (09:14 -0700)]
Removing file IO used for checking configuration change

> This check was used for flushing the cache, but since the cache
is backed by a DB, this has no effect as same icons are loaded again

Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a

9 years agoam c3d4553d: (-s ours) [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instea...
Adam Cohen [Fri, 22 May 2015 23:26:45 +0000 (23:26 +0000)]
am c3d4553d: (-s ours) [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

* commit 'c3d4553d462521bc77b719109ea8cf5b5812d471':
  [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

9 years ago[DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
Adam Cohen [Fri, 22 May 2015 21:36:14 +0000 (14:36 -0700)]
[DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c

9 years agoMerge "Decrease elevation for the reveal view." into ub-launcher3-burnaby
Sunny Goyal [Fri, 22 May 2015 22:26:41 +0000 (22:26 +0000)]
Merge "Decrease elevation for the reveal view." into ub-launcher3-burnaby

9 years agoDecrease elevation for the reveal view.
Sunny Goyal [Fri, 22 May 2015 22:14:01 +0000 (15:14 -0700)]
Decrease elevation for the reveal view.

> During the end of allApps animation, the shadow suddenly changes from 15dp to 0

Change-Id: I93bcf1220396b2bda3efea7febc2195ef556938b

9 years agoMerge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub...
Hyunyoung Song [Fri, 22 May 2015 21:50:17 +0000 (21:50 +0000)]
Merge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub-launcher3-burnaby

9 years agoFix widget tray crash on screen rotation introduced by
Hyunyoung Song [Fri, 22 May 2015 21:49:23 +0000 (14:49 -0700)]
Fix widget tray crash on screen rotation introduced by
ag/694693

b/21402209

Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d

9 years agoMoving all apps code into sub package.
Winson Chung [Fri, 22 May 2015 18:12:27 +0000 (11:12 -0700)]
Moving all apps code into sub package.

- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a

9 years agoCreating landscape and portrait device profiles at app initialization
Sunny Goyal [Fri, 22 May 2015 03:46:33 +0000 (20:46 -0700)]
Creating landscape and portrait device profiles at app initialization

Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e

9 years agoAnimating workspace active background change
Sunny Goyal [Wed, 20 May 2015 22:35:32 +0000 (15:35 -0700)]
Animating workspace active background change

> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0

9 years agoMerge "Enabling setWallpaper button only if the image was loaded successfully" into...
Sunny Goyal [Thu, 21 May 2015 23:19:24 +0000 (23:19 +0000)]
Merge "Enabling setWallpaper button only if the image was loaded successfully" into ub-launcher3-burnaby

9 years agoRefactoring DeviceProfile
Adam Cohen [Wed, 6 May 2015 18:42:25 +0000 (11:42 -0700)]
Refactoring DeviceProfile

-> Pulling out the parts of device profile which can (and need to be)
   initialized and accessed without access to an Activity context,
   ie. the invariant bits.
-> The invariant bits are stored in InvariantDeviceProfile which is
   initialized statically from LauncherAppState.
-> The DeviceProfile contains the Activity context-dependent bits,
   and we will create one of these for each Activity instance, and
   this instance is accessed through the Launcher activity.
-> It's possible that we can continue to refactor this such that
   all appropriate dimensions can be computed without an Activity
   context (by only specifying orientation). This would be an
   extension of this CL and allow us to know exactly how launcher
   will look in both orientations from any context.

Sets the stage for some improvements around b/19514688

Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892

9 years agoEnabling setWallpaper button only if the image was loaded successfully
Sunny Goyal [Thu, 21 May 2015 22:54:58 +0000 (15:54 -0700)]
Enabling setWallpaper button only if the image was loaded successfully

Bug: 20187333
Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686

9 years agoMerge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby
Hyunyoung Song [Thu, 21 May 2015 23:00:17 +0000 (23:00 +0000)]
Merge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby

9 years agoMerge "Tweaking method name." into ub-launcher3-burnaby
Winson Chung [Thu, 21 May 2015 22:46:07 +0000 (22:46 +0000)]
Merge "Tweaking method name." into ub-launcher3-burnaby

9 years agoTweaking method name.
Winson Chung [Thu, 21 May 2015 22:45:24 +0000 (15:45 -0700)]
Tweaking method name.

Change-Id: I2f4f9dc58c8148059914a106526995e80a82376f