OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoAdd velocity threshold so that fast pinches (flings) are detected.
Tony Wickham [Wed, 6 Apr 2016 01:31:43 +0000 (18:31 -0700)]
Add velocity threshold so that fast pinches (flings) are detected.

Bug: 27676309
Change-Id: Id3ba05c67abac8847fcff22532ea9da9ef10a5ae

8 years agoMerge "Listen on new broadcasts for profile changes." into ub-launcher3-calgary
Rubin Xu [Tue, 5 Apr 2016 16:28:16 +0000 (16:28 +0000)]
Merge "Listen on new broadcasts for profile changes." into ub-launcher3-calgary

8 years agoFixing wrong method name
Sunny Goyal [Tue, 5 Apr 2016 00:51:04 +0000 (17:51 -0700)]
Fixing wrong method name

Change-Id: Idabe5d8ee41f31d30dcbe03aa626f7b39f713c14

8 years agoMerge "Adding an upper bound to all-apps width on larger devices" into ub-launcher3...
Sunny Goyal [Mon, 4 Apr 2016 23:51:34 +0000 (23:51 +0000)]
Merge "Adding an upper bound to all-apps width on larger devices" into ub-launcher3-calgary

8 years ago[DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method mFixedSe...
Hyunyoung Song [Mon, 4 Apr 2016 23:38:07 +0000 (23:38 +0000)]
[DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method mFixedSearchBarBounds is no longer used.
am: 04907ee  -s ours

* commit '04907eea71327a5e828421eaf7e43d689e974049':
  [DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method mFixedSearchBarBounds is no longer used.

Change-Id: I1c0a30179255d21c5e0dcfc7fe83afb8ff6ef1c4

8 years agoAdding an upper bound to all-apps width on larger devices
Sunny Goyal [Mon, 4 Apr 2016 23:35:22 +0000 (16:35 -0700)]
Adding an upper bound to all-apps width on larger devices

Change-Id: I16a0d8fb7c5023045d0a6b9e8089e0ab6a476d6d

8 years ago[DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method
Hyunyoung Song [Mon, 4 Apr 2016 20:47:01 +0000 (13:47 -0700)]
[DO NOT MERGE] updateOverlayBounds no longer rely on LauncherCallback method
mFixedSearchBarBounds is no longer used.

b/25255451

Change-Id: I3e2f7511c7a418f211a8b17a62b98f2736dfc91d

8 years agoListen on new broadcasts for profile changes.
Rubin Xu [Mon, 4 Apr 2016 15:13:35 +0000 (16:13 +0100)]
Listen on new broadcasts for profile changes.

The change is due to API review comments on the platform side.

Bug: 27532254
Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0

8 years agoFixing white background under hotseat
Sunny Goyal [Sat, 2 Apr 2016 17:28:22 +0000 (10:28 -0700)]
Fixing white background under hotseat

Change-Id: I8b39bc9104dc16981e5642124cfd819da7a2f172

8 years agoAdd palette dependency to Android.mk.
Tony Wickham [Fri, 1 Apr 2016 23:05:15 +0000 (16:05 -0700)]
Add palette dependency to Android.mk.

Change-Id: I34fcfa87a35df8ec1029669d6b570c1a95029b66

8 years agoMerge "No need to differentiate package event into app or updated based on a package...
Sunny Goyal [Fri, 1 Apr 2016 22:51:54 +0000 (22:51 +0000)]
Merge "No need to differentiate package event into app or updated based on a package is being updated or not" into ub-launcher3-calgary

8 years agoMerge "Added ColorExtractionService and ExtractedColors." into ub-launcher3-calgary
Tony Wickham [Fri, 1 Apr 2016 22:44:58 +0000 (22:44 +0000)]
Merge "Added ColorExtractionService and ExtractedColors." into ub-launcher3-calgary

8 years agoMerge "Fixing the loader to bind the first screen as well as the hotseat together...
Sunny Goyal [Fri, 1 Apr 2016 22:43:28 +0000 (22:43 +0000)]
Merge "Fixing the loader to bind the first screen as well as the hotseat together" into ub-launcher3-calgary

8 years agoAdded ColorExtractionService and ExtractedColors.
Tony Wickham [Thu, 17 Mar 2016 22:39:39 +0000 (15:39 -0700)]
Added ColorExtractionService and ExtractedColors.

- Launcher has an instance of ExtractedColors, which is loaded from
  LauncherProvider in onCreate() and whenever the wallpaper changes.
  - When the wallpaper changes, the ColorExtractionService is started
    in the :wallpaper-chooser process.
  - ColorExtractionService builds an ExtractedColors instance and saves
    it as a String in LauncherProvider.
  - When the results are saved, Launcher gets a callback through
    LauncherProviderChangeListener and reloads the ExtractedColors.
- Whenever Launcher loads Extractecolors, it also re-colors items
  (currently a no-op).

Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743

8 years agoMerge "Fix a couple polish bugs with new folder previews" into ub-launcher3-calgary
Adam Cohen [Fri, 1 Apr 2016 21:51:16 +0000 (21:51 +0000)]
Merge "Fix a couple polish bugs with new folder previews" into ub-launcher3-calgary

8 years agoFix a couple polish bugs with new folder previews
Adam Cohen [Thu, 31 Mar 2016 02:28:34 +0000 (19:28 -0700)]
Fix a couple polish bugs with new folder previews

-> Don't reuse the same background object for the folder create preview
   since this can cause interruptions in the animations for previous
   creation previews.
-> When drawing the background to preview creation, don't draw the stroke
   above the icon since the icon is not yet contained by the folder.

Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc

8 years agoFix spring-loaded highlight on JB.
Tony Wickham [Thu, 31 Mar 2016 22:09:15 +0000 (15:09 -0700)]
Fix spring-loaded highlight on JB.

It was setting the panel to black when highlighting a CellLayout,
instead of just adding a white border.

Bug: 27135377
Change-Id: I879b12613b0cbfdda2a980065c66ea3ceb960f33

8 years agoFixing the loader to bind the first screen as well as the hotseat together
Sunny Goyal [Thu, 31 Mar 2016 00:31:24 +0000 (17:31 -0700)]
Fixing the loader to bind the first screen as well as the hotseat together

When the loader ran for the first time (or when called due to force-reload),
it was binding with page = -1 (invalid pageId is -1001). This was causing loader
to assume the workspace to be on a valid screen, and causing the loader to
only bind the hotseat first.

Bug: 27705838
Change-Id: Ia8eb2543d8cee1268256b2d6bccf33828937c54a

8 years agoNo need to differentiate package event into app or updated based on
Sunny Goyal [Wed, 30 Mar 2016 23:47:03 +0000 (16:47 -0700)]
No need to differentiate package event into app or updated based on
a package is being updated or not

Package update handling is a super set of package add handling  which
also updates the all-apps and package disabled state.
This also prevents addtion of a home screen icon when a managed profile
app on SD card become available.

Bug: 27877926
Change-Id: I9264e422fd30b94ce6ebb2e5adea820b3cda3063

8 years agoFixing black search bar background in search bar
Sunny Goyal [Wed, 30 Mar 2016 16:19:45 +0000 (09:19 -0700)]
Fixing black search bar background in search bar

Bug: 27919354
Change-Id: I3f43d8f39640c2db4b192ea316aebf11189982e3

8 years agoYet another RecyclerView child that needs match_parent
Adam Cohen [Tue, 29 Mar 2016 22:05:48 +0000 (15:05 -0700)]
Yet another RecyclerView child that needs match_parent

issue 27705077

Change-Id: I16bdefe37351c26897a57d314a58718cb837543d

8 years agoAdd distance threshold for dragged items before accepted by targets.
Tony Wickham [Mon, 28 Mar 2016 23:56:30 +0000 (16:56 -0700)]
Add distance threshold for dragged items before accepted by targets.

With the new spring-loaded workspace, items are often very close to
button drop targets (e.g. App Info) at the start of a drag. This
threshold makes it less likely to accidentally drop on a target.

Bug: 24099531
Change-Id: I4912ceeb0b63958816177c7bde073e825176d987

8 years agoMerge "Invalidate scrim throughout animation from overlay to workspace." into ub...
Tony Wickham [Tue, 29 Mar 2016 00:02:45 +0000 (00:02 +0000)]
Merge "Invalidate scrim throughout animation from overlay to workspace." into ub-launcher3-calgary

8 years agoRemove default app suggestions from LauncherExtension
Adam Cohen [Mon, 28 Mar 2016 23:43:12 +0000 (16:43 -0700)]
Remove default app suggestions from LauncherExtension

Change-Id: I7c3a1465aaa54ad3b988975810f29ce89e650ec1

8 years agoInvalidate scrim throughout animation from overlay to workspace.
Tony Wickham [Mon, 28 Mar 2016 23:43:20 +0000 (16:43 -0700)]
Invalidate scrim throughout animation from overlay to workspace.

Bug: 27135377
Change-Id: I19e947ac271063beaa6c5d11906631d0afcbb781

8 years agoFix alignment issue with suggested apps in all apps
Adam Cohen [Mon, 28 Mar 2016 22:48:21 +0000 (15:48 -0700)]
Fix alignment issue with suggested apps in all apps

-> New RecyclerView handles wrap_content differently
-> Add mock set of suggested apps to the LauncherExtension

issue: 27581978
Change-Id: Id080e212e0425515fa66e821d116b95284bb3526

8 years agoMerge "Fix restoring of layer type" into ub-launcher3-calgary
Sunny Goyal [Mon, 28 Mar 2016 22:50:05 +0000 (22:50 +0000)]
Merge "Fix restoring of layer type" into ub-launcher3-calgary

8 years agoFix restoring of layer type
Dmitry Kalita [Tue, 26 Jan 2016 17:30:34 +0000 (19:30 +0200)]
Fix restoring of layer type

Change-Id: I1233b846247b270644325c0ad0229a23bfb29040
Signed-off-by: Dmitry Kalita <rusmonster@gmail.com>
8 years agoMerge "Introduce IconProvider." into ub-launcher3-calgary
Annie Chin [Mon, 28 Mar 2016 21:26:45 +0000 (21:26 +0000)]
Merge "Introduce IconProvider." into ub-launcher3-calgary

8 years agoIntroduce IconProvider.
Annie Chin [Fri, 25 Mar 2016 00:12:30 +0000 (17:12 -0700)]
Introduce IconProvider.

Bug: 27506625

-Move managing of SystemState to IconProvider

Change-Id: I3417f0b7d0664c2255c7cc2a88f6c65822b5fb98

8 years agoMerge "Defining separate layouts for horizontal and vertical drop target bars instead...
Sunny Goyal [Mon, 28 Mar 2016 19:30:34 +0000 (19:30 +0000)]
Merge "Defining separate layouts for horizontal and vertical drop target bars instead of chaning the layouts in DeviceProfile" into ub-launcher3-calgary

8 years agoMerge "Added copywrite comments to pinch-related classes." into ub-launcher3-calgary
Tony Wickham [Fri, 25 Mar 2016 15:46:20 +0000 (15:46 +0000)]
Merge "Added copywrite comments to pinch-related classes." into ub-launcher3-calgary

8 years agoDefining separate layouts for horizontal and vertical drop target bars
Sunny Goyal [Fri, 25 Mar 2016 00:28:25 +0000 (17:28 -0700)]
Defining separate layouts for horizontal and vertical drop target bars
instead of chaning the layouts in DeviceProfile

Bug: 27721989
Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204

8 years agoPreventing unnecessary object creations
Sunny Goyal [Thu, 24 Mar 2016 22:27:42 +0000 (15:27 -0700)]
Preventing unnecessary object creations

> Only creating the animator when required
> Canceling a previously running animation when starting a new one
> Directly setting LinearInterpolator instead of using null

Change-Id: I4f5f25f26dfed9b5c78665af4e74dd565b4cd805

8 years agoFixing debug log
Sunny Goyal [Thu, 24 Mar 2016 20:53:22 +0000 (13:53 -0700)]
Fixing debug log

Change-Id: I85c1f7707a3ea9cae2701aa781b74d758602f643

8 years agoMerge "Embedding the icon pixel size in the cache DB version. This causes the cache...
Sunny Goyal [Thu, 24 Mar 2016 20:40:21 +0000 (20:40 +0000)]
Merge "Embedding the icon pixel size in the cache DB version. This causes the cache to get reset when the icon size changes, for eg, in case of display scale changes" into ub-launcher3-calgary

8 years agoMerge "Instead of reloading the launcher, updating items dynamically when Quiet mode...
Sunny Goyal [Thu, 24 Mar 2016 19:20:14 +0000 (19:20 +0000)]
Merge "Instead of reloading the launcher, updating items dynamically when Quiet mode changes" into ub-launcher3-calgary

8 years agoInstead of reloading the launcher, updating items dynamically when
Sunny Goyal [Sat, 19 Mar 2016 01:29:24 +0000 (18:29 -0700)]
Instead of reloading the launcher, updating items dynamically when
Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c

8 years agoSetting stable layout flags on the launcher, so that the instets do not
Sunny Goyal [Wed, 23 Mar 2016 23:56:54 +0000 (16:56 -0700)]
Setting stable layout flags on the launcher, so that the instets do not
change for launcher when going in/out of another app

Bug: 27600678
Change-Id: Ic873faba99c539025769d911bc7b0a4fed629cd7

8 years agoMerge "Fixing wrong preference file name in LauncherFiles" into ub-launcher3-calgary
Sunny Goyal [Wed, 23 Mar 2016 23:17:22 +0000 (23:17 +0000)]
Merge "Fixing wrong preference file name in LauncherFiles" into ub-launcher3-calgary

8 years agoFixing wrong preference file name in LauncherFiles
Sunny Goyal [Wed, 23 Mar 2016 17:47:15 +0000 (10:47 -0700)]
Fixing wrong preference file name in LauncherFiles

Bug: 27778623
Change-Id: I28aa6698d3caa1fc11b2e8df0733143865f9b408

8 years agoAdd FeatureFlags.LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW
Tony Wickham [Tue, 22 Mar 2016 23:20:53 +0000 (16:20 -0700)]
Add FeatureFlags.LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW

Bug: 27796974
Change-Id: Icda33fb62783cc3f7b510d627d1eeb9cf29bd2d3

8 years agoEmbedding the icon pixel size in the cache DB version.
Sunny Goyal [Tue, 22 Mar 2016 21:32:44 +0000 (14:32 -0700)]
Embedding the icon pixel size in the cache DB version.
This causes the cache to get reset when the icon size changes,
for eg, in case of display scale changes

Bug: 27701193
Change-Id: Ib11144757a93cb50fb233d855902c0b2c15afbed

8 years agoAdding support for result callback when starting uninstall-application activity
Sunny Goyal [Fri, 11 Mar 2016 09:10:19 +0000 (01:10 -0800)]
Adding support for result callback when starting uninstall-application activity

Change-Id: Ieaca4fbd0ae0156f24c8863ccbef61d4d6d30ba1

8 years agoAccount for disparity btw folder preview size and drawable size
Adam Cohen [Mon, 21 Mar 2016 21:33:02 +0000 (14:33 -0700)]
Account for disparity btw folder preview size and drawable size

-> When there is disparity between the cached icon size and the available space
   in the preview, the folder preview could appear not as intended (either
   overly crammed, or overly spacious)

issue 27701193

Change-Id: I9f97012ba569d1419b1e3f661cd26761b2a36285

8 years agoInvalidate folder drawing paramaters when top padding changes
Adam Cohen [Mon, 21 Mar 2016 20:40:02 +0000 (13:40 -0700)]
Invalidate folder drawing paramaters when top padding changes

-> This fixes issues when moving folders between the workspace
   and hotseat (which have different top paddings)

Change-Id: Iac5a4575a403ce8eadd1d3195f02ab10fe5dac23

8 years agoRemoving some unused imports
Sunny Goyal [Mon, 21 Mar 2016 20:02:29 +0000 (13:02 -0700)]
Removing some unused imports

Change-Id: I83962e467e3357db536a3e5a4a5c3071cc1268ab

8 years agoMerge "Center folders slightly less aggressively than before" into ub-launcher3-calgary
Tony Wickham [Mon, 21 Mar 2016 18:57:45 +0000 (18:57 +0000)]
Merge "Center folders slightly less aggressively than before" into ub-launcher3-calgary

8 years agoMerge "Removing dependency on wallpaper size settings from launcher" into ub-launcher...
Sunny Goyal [Mon, 21 Mar 2016 18:32:41 +0000 (18:32 +0000)]
Merge "Removing dependency on wallpaper size settings from launcher" into ub-launcher3-calgary

8 years agoMerge "Deleting the unrestored widget id synchronously" into ub-launcher3-calgary
Sunny Goyal [Sat, 19 Mar 2016 15:50:18 +0000 (15:50 +0000)]
Merge "Deleting the unrestored widget id synchronously" into ub-launcher3-calgary

8 years agoMerge "Fixing broken instrumentation tests when run from command line" into ub-launch...
Sunny Goyal [Sat, 19 Mar 2016 00:52:41 +0000 (00:52 +0000)]
Merge "Fixing broken instrumentation tests when run from command line" into ub-launcher3-calgary

8 years agoFixing broken instrumentation tests when run from command line
Sunny Goyal [Sat, 19 Mar 2016 00:42:55 +0000 (17:42 -0700)]
Fixing broken instrumentation tests when run from command line

Change-Id: I923cdbaaaf18c9b765d1e70122b92cd2c1621e06

8 years agoCenter folders slightly less aggressively than before
Adam Cohen [Sat, 19 Mar 2016 00:25:11 +0000 (17:25 -0700)]
Center folders slightly less aggressively than before

-> Some slight changes in spacing showed that we were centering
   folders a bit too eagerly
-> Once there is less than a ~4x delta between the spacing on the left
   vs. the right of the folder, center it.

issue 27671587

Change-Id: Ic2861ab375d9b9e4cf0eeb28b683073246f35c97

8 years agoDeleting the unrestored widget id synchronously
Sunny Goyal [Fri, 18 Mar 2016 23:25:05 +0000 (16:25 -0700)]
Deleting the unrestored widget id synchronously

> We are making the DB call (IO) on the UI thread which is costlier than
the AppWidgetHost call.
> The process can get killed after the broadcast receiver returns, which
can prevent these ids from getting deleted.

Change-Id: I47746cf03d0eae573b6baa25cde9e573fd1f1a60

8 years agoFixing model being updated on UI thread
Sunny Goyal [Tue, 15 Mar 2016 16:16:30 +0000 (09:16 -0700)]
Fixing model being updated on UI thread

> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08

8 years agoMerge "Removing dependency on LauncherCallbacks for getting the search bounds" into...
Sunny Goyal [Fri, 18 Mar 2016 20:19:34 +0000 (20:19 +0000)]
Merge "Removing dependency on LauncherCallbacks for getting the search bounds" into ub-launcher3-calgary

8 years agoCreating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo
Sunny Goyal [Thu, 10 Mar 2016 20:02:29 +0000 (12:02 -0800)]
Creating WidgetCellItem to wrap LauncherAppWidgetProviderInfo and resolveInfo
In PackageItemInfo,, using the user of the first item in the sub-list

Bug: 27585511
Change-Id: I8243f0e5c831af65661ae815489e53e9fcade837

8 years agoRemoving dependency on wallpaper size settings from launcher
Sunny Goyal [Fri, 18 Mar 2016 00:04:15 +0000 (17:04 -0700)]
Removing dependency on wallpaper size settings from launcher

> Moving wallpaper desired width calculation to xml

Bug: 14470153
Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa

8 years agoAdded copywrite comments to pinch-related classes.
Tony Wickham [Thu, 17 Mar 2016 18:53:26 +0000 (11:53 -0700)]
Added copywrite comments to pinch-related classes.

Maybe we should write a script that checks that this is present in
all our files? I didn't do a thorough check, but wouldn't be surprised
if others were missing.

Change-Id: I4777ff618f952b9b11fde60ebc8d897cf6449032

8 years agoRemoving dependency on LauncherCallbacks for getting the search bounds
Sunny Goyal [Thu, 17 Mar 2016 18:57:24 +0000 (11:57 -0700)]
Removing dependency on LauncherCallbacks for getting the search bounds

> Instead of handling insets in BaseContainerView, directly applying
  them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
  handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9

8 years agoMerge "Creating database without localized collators on NYC and above" into ub-launch...
Sunny Goyal [Thu, 17 Mar 2016 18:40:33 +0000 (18:40 +0000)]
Merge "Creating database without localized collators on NYC and above" into ub-launcher3-calgary

8 years agoCreating database without localized collators on NYC and above
Sunny Goyal [Tue, 15 Mar 2016 22:30:11 +0000 (15:30 -0700)]
Creating database without localized collators on NYC and above

Android automatically creates and maintains a metaData table to
store the current device locale. This is used when fetching
sorted results. Since Laucher does not require string based
sorting on its tables, we can avoid unnecessary IO by disabling
this feature

Bug: 24608776
Change-Id: I8bbf5ca3abd505be95a85cfc99dd0438966575e9

8 years agoDon't listen for the pinch gesture if the workspace is locked.
Tony Wickham [Wed, 16 Mar 2016 20:53:50 +0000 (13:53 -0700)]
Don't listen for the pinch gesture if the workspace is locked.

Bug: 27639653
Change-Id: I1f3b324a4b95cc5deaa2513dcbf4ed5a158a4866

8 years agoRemove scrim on highlighted spring-loaded panel.
Tony Wickham [Thu, 18 Feb 2016 22:37:07 +0000 (14:37 -0800)]
Remove scrim on highlighted spring-loaded panel.

Bug: 27135377
Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc

8 years agoAdding UI tests for various bind widget flows
Sunny Goyal [Thu, 10 Mar 2016 13:34:30 +0000 (05:34 -0800)]
Adding UI tests for various bind widget flows

Change-Id: I634302051886baee6b6424f69bc95db860b4823e

8 years agoMerge "Closing folder in onSaveInstanceState" into ub-launcher3-calgary
Sunny Goyal [Tue, 15 Mar 2016 16:52:06 +0000 (16:52 +0000)]
Merge "Closing folder in onSaveInstanceState" into ub-launcher3-calgary

8 years agoClosing folder in onSaveInstanceState
Sunny Goyal [Mon, 14 Mar 2016 21:08:12 +0000 (14:08 -0700)]
Closing folder in onSaveInstanceState

folderInfo.isOpened is part of static model, where is the open folder
state is part of the UI. This resets the static model, when the
UI is about to be reset
This also causes the folders to get closed when launcher gets hidden

Partial revert of: Ie1318b82b497957b99603b11ec338dd50d51b962

Bug: 275962912490049627624924
Change-Id: I30c2bb99a19fdd95a1b997d07066f80be812e2c0

8 years agoFix issue with all apps icons not being aligned
Adam Cohen [Tue, 15 Mar 2016 02:47:00 +0000 (19:47 -0700)]
Fix issue with all apps icons not being aligned

-> The new versions of LayoutManagers in the latest support lib
   has begun to respect certain layout params (where before they
   were ignoreed). match_parent is now treated as "match column",
   which is what we want here.

issue 27581978

Change-Id: If1efed15b5a93c873ff141e3c658922819c143fb

8 years ago[DO NOT MERGE] Fix widget tray clipping due to wrong padding
Hyunyoung Song [Mon, 14 Mar 2016 18:10:12 +0000 (18:10 +0000)]
[DO NOT MERGE] Fix widget tray clipping due to wrong padding
am: f4c0f7d250  -s ours

* commit 'f4c0f7d2505833fac1f5dad173282d8c73cbff5d':
  [DO NOT MERGE] Fix widget tray clipping due to wrong padding

8 years ago[DO NOT MERGE] Fix widget tray clipping due to wrong padding
Hyunyoung Song [Mon, 14 Mar 2016 18:00:07 +0000 (11:00 -0700)]
[DO NOT MERGE] Fix widget tray clipping due to wrong padding

b/27380335
padding was set wrong when the widget view hierarchy was
being refactored in this CL: ag/870011

Change-Id: I003634acded2bbe204098c0e6fefff13d154b5d6
(cherry picked from commit 58e61ac216adbc3e4e211a428692dbeb54e78b45)

8 years agoMerge "Fix widget tray clipping due to wrong padding" into ub-launcher3-calgary
Hyunyoung Song [Mon, 14 Mar 2016 18:02:47 +0000 (18:02 +0000)]
Merge "Fix widget tray clipping due to wrong padding" into ub-launcher3-calgary

8 years agoFix widget tray clipping due to wrong padding
Hyunyoung Song [Mon, 14 Mar 2016 18:00:07 +0000 (11:00 -0700)]
Fix widget tray clipping due to wrong padding

b/27380335
padding was set wrong when the widget view hierarchy was
being refactored in this CL: ag/870011

Change-Id: I003634acded2bbe204098c0e6fefff13d154b5d6

8 years agoFixing black lowres icons
Sunny Goyal [Fri, 11 Mar 2016 03:52:43 +0000 (19:52 -0800)]
Fixing black lowres icons

Bug: 27598858
Change-Id: Ib7c9b1e3abe54b94741e154bc8327d06f83e439c

8 years agoMerge "Changing the widget loading strategy" into ub-launcher3-calgary
Sunny Goyal [Thu, 10 Mar 2016 04:22:37 +0000 (04:22 +0000)]
Merge "Changing the widget loading strategy" into ub-launcher3-calgary

8 years agoChanging the widget loading strategy
Sunny Goyal [Fri, 4 Mar 2016 00:58:55 +0000 (16:58 -0800)]
Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1

8 years agoAdd getUserEventLogger to LauncherCallbacks
Hyunyoung Song [Wed, 9 Mar 2016 00:55:47 +0000 (16:55 -0800)]
Add getUserEventLogger to LauncherCallbacks
b/26494415

Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02

8 years agoFix the broken build
Hyunyoung Song [Mon, 7 Mar 2016 18:07:35 +0000 (10:07 -0800)]
Fix the broken build

Change-Id: I2750cde454a6604f33b910ac8b31fd07bba567bb

8 years agoPinch to zoom out into overview mode.
Tony Wickham [Wed, 24 Feb 2016 19:07:00 +0000 (11:07 -0800)]
Pinch to zoom out into overview mode.

There are 3 classes coordinating the gesture: PinchToOverviewListener,
PinchThresholdManager, and PinchAnimationManager.
- PTOL listens for the pinch gesture on DragLayer.
- When a pinch is detected, the PTOL keeps track of the interpolated
  progress and passes it along to both the PTM and PAM.
- The PTM uses the progress to determine whether a new threshold has
  been passed, and tells the PAM to animate it if so.
- The PAM uses the progress to animate things like workspace scale
  throughout the pinch.
- If the pinch ends early, the PTOL uses the last passed threshold to
  determine whether to animate to workspace or overview, and tells
  PAM to perform the animation at the same velocity as the pinch.

Bug: 24414635
Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0

8 years agoAdding back LAUNCHER3_ICON_NORMALIZATION feature flag to fix dependency breakage
Sunny Goyal [Fri, 4 Mar 2016 22:47:10 +0000 (14:47 -0800)]
Adding back LAUNCHER3_ICON_NORMALIZATION feature flag to fix dependency breakage

Change-Id: I65376fde1d6681c00cdf2226a94bd9872b00cc6f

8 years agoTrim down the logging class
Hyunyoung Song [Fri, 4 Mar 2016 20:16:57 +0000 (20:16 +0000)]
Trim down the logging class
am: 3650019856

* commit '3650019856ad9bd44ad8ecb591917f7f2520e8d6':
  Trim down the logging class

8 years agoTrim down the logging class
Hyunyoung Song [Fri, 4 Mar 2016 20:00:25 +0000 (12:00 -0800)]
Trim down the logging class

b/26494415

Change-Id: I9035f515e4eb54af8f8ad2f29ab294d2ac9760e8

8 years agoDefine generic logging class
Hyunyoung Song [Fri, 4 Mar 2016 19:16:49 +0000 (19:16 +0000)]
Define generic logging class
am: a9c69ce09c

* commit 'a9c69ce09c164c8ad0191e05318460d0955825a7':
  Define generic logging class

8 years agoDefine generic logging class
Hyunyoung Song [Fri, 4 Mar 2016 19:02:40 +0000 (11:02 -0800)]
Define generic logging class

b/26494415

Change-Id: I5fbf54eb5986eb49a62ba51d41aab43e00a9ca12

8 years ago[DO NOT MERGE] Upload proto file to burnaby-polish
Hyunyoung Song [Fri, 4 Mar 2016 18:36:37 +0000 (18:36 +0000)]
[DO NOT MERGE] Upload proto file to burnaby-polish
am: c619edbc72  -s ours

* commit 'c619edbc72e7ad2a77ab25d7a42258bc988c0b4b':
  [DO NOT MERGE] Upload proto file to burnaby-polish

8 years ago[DO NOT MERGE] Upload proto file to burnaby-polish
Hyunyoung Song [Fri, 4 Mar 2016 18:27:09 +0000 (10:27 -0800)]
[DO NOT MERGE] Upload proto file to burnaby-polish

b/26494415
- needed for ag/879262 getLogger function parameter
- prediction to start parsing proto instead of the bundle

Change-Id: I002ceb5faad0f2272ae5676b891f20826dbfcf3f

8 years agoresolve merge conflicts of 2494c3f168 to ub-launcher3-calgary
Sunny Goyal [Thu, 3 Mar 2016 21:52:22 +0000 (13:52 -0800)]
resolve merge conflicts of 2494c3f168 to ub-launcher3-calgary

Change-Id: I807016057da9b867ebb2c8f3ee2027a3a2688d30

8 years agoFixing mismatch comment in flags
Sunny Goyal [Thu, 3 Mar 2016 21:38:58 +0000 (13:38 -0800)]
Fixing mismatch comment in flags

Change-Id: Ie86e2ebd4f40653fb127a239b57361164ef31b07

8 years agoUsing a negative flag for icon notmalization
Sunny Goyal [Thu, 3 Mar 2016 21:19:24 +0000 (13:19 -0800)]
Using a negative flag for icon notmalization

Change-Id: Iaa94aea730d2b5cc3f15f3578f240127ca0eef63

8 years agoMoving createMarketSearchIntent to search controller to allow it to be customizable
Sunny Goyal [Thu, 3 Mar 2016 19:35:59 +0000 (11:35 -0800)]
Moving createMarketSearchIntent to search controller to allow it to be customizable

Change-Id: I3a05abf7c0357a2f92c8a3fa2dc223f9eacc221e

8 years agoStarting market search whenever the search key is pressed
Sunny Goyal [Thu, 3 Mar 2016 18:46:34 +0000 (18:46 +0000)]
Starting market search whenever the search key is pressed
am: 9e3fee1427

* commit '9e3fee1427c0baa38564e20a9f351d1a87c25761':
  Starting market search whenever the search key is pressed

8 years agoStarting market search whenever the search key is pressed
Sunny Goyal [Wed, 2 Mar 2016 19:32:18 +0000 (11:32 -0800)]
Starting market search whenever the search key is pressed

Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
(cherry picked from commit 992a5f566e7f1b1fc8bd766f1fd00bee7ea2a634)

8 years agoSwitch all folder preview rendering to be programmatic (ie. no assets)
Adam Cohen [Thu, 25 Feb 2016 03:19:06 +0000 (19:19 -0800)]
Switch all folder preview rendering to be programmatic (ie. no assets)

-> Refactored the preview background rendering to be much more self-contained.
   This cleans up a lot of code in the CellLayout, and keeps the logic in the
   right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
   and the CellLayout. Unfortunately, CellLayout rendering is still required
   to work around clipping issues (due to use of software layer). We also
   need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51

8 years agoStarting market search whenever the search key is pressed
Sunny Goyal [Wed, 2 Mar 2016 19:32:18 +0000 (11:32 -0800)]
Starting market search whenever the search key is pressed

Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef

8 years agoMerge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby...
Hyunyoung Song [Tue, 1 Mar 2016 19:59:45 +0000 (19:59 +0000)]
Merge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby-polish
am: 5cc55a143a

* commit '5cc55a143a2ed35d6f2ac1fe57a4e8b3e26d47a0':
  Prevent work profile widget DnD crash b/26079469

8 years agoMerge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby...
Hyunyoung Song [Tue, 1 Mar 2016 19:58:44 +0000 (19:58 +0000)]
Merge "Prevent work profile widget DnD crash b/26079469" into ub-launcher3-burnaby-polish

8 years agoPrevent work profile widget DnD crash
Hyunyoung Song [Tue, 1 Mar 2016 19:57:44 +0000 (11:57 -0800)]
Prevent work profile widget DnD crash
b/26079469

Change-Id: I3d49ac498bbaaef8ca8a3051f5ab4b35ef771410

8 years agoMerge "Fixing homescreen getting blank when returning from the overlay" into ub-launc...
Sunny Goyal [Tue, 1 Mar 2016 01:07:38 +0000 (01:07 +0000)]
Merge "Fixing homescreen getting blank when returning from the overlay" into ub-launcher3-calgary

8 years agoFixing scrollTo getting called even though the gesture was handled by an overlay
Sunny Goyal [Mon, 29 Feb 2016 23:15:03 +0000 (15:15 -0800)]
Fixing scrollTo getting called even though the gesture was handled by an overlay

Change-Id: Ia46c4ef3db8a3ae4fa615625b7b983d7e461c797

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 29 Feb 2016 13:34:05 +0000 (13:34 +0000)]
Import translations. DO NOT MERGE
am: 645bdb373a  -s ours

* commit '645bdb373a8f8449bb9b2d45556fd6babc4d16a3':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 29 Feb 2016 13:25:50 +0000 (05:25 -0800)]
Import translations. DO NOT MERGE

Change-Id: I71aa07c1d967ec80f35cf30a15bbd8306a3c9ba8
Auto-generated-cl: translation import