summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Simplifying some launcher themesSunny Goyal2017-02-1616-42/+88
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-1610-329/+119
| | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* Merge "Fixing wrong check for grid migration" into ub-launcher3-masterTreeHugger Robot2017-02-161-1/+1
|\
| * Fixing wrong check for grid migrationSunny Goyal2017-02-151-1/+1
| | | | | | | | Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840
* | Merge "Adding some logging around launcher grid when device profile changes" ↵Sunny Goyal2017-02-163-0/+39
|\ \ | | | | | | | | | into ub-launcher3-master
| * | Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-153-0/+39
| |/ | | | | | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* | Merge "Animate notification background color directly" into ub-launcher3-masterTony Wickham2017-02-161-10/+11
|\ \
| * | Animate notification background color directlyTony2017-02-151-10/+11
| |/ | | | | | | | | | | | | | | Before we were calling setBackgroundColor() in the update listener, which is less efficient because it creates a new ColorDrawable; now we reuse one throughout. Change-Id: I0cd87e5ee72af41d2dae4375ce3df9fd6e92bd82
* | Merge "Ignore touches before notification is populated" into ub-launcher3-masterTony Wickham2017-02-161-0/+8
|\ \
| * | Ignore touches before notification is populatedTony Wickham2017-02-151-0/+8
| |/ | | | | | | | | Bug: 35398757 Change-Id: I24f1b66787af7c7caeb325e9a1f3e6ef86e62b81
* / Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is nullTony Wickham2017-02-151-2/+2
|/ | | | | Bug: 34521181 Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
* Merge "Hide legacy icon treatment behind a flag." into ub-launcher3-masterHyunyoung Song2017-02-141-1/+1
|\
| * Hide legacy icon treatment behind a flag.Hyunyoung Song2017-02-141-1/+1
| | | | | | | | Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
* | Merge "Initializing LauncherAppState only on the main thread" into ↵Sunny Goyal2017-02-142-46/+59
|\ \ | |/ |/| | | ub-launcher3-master
| * Initializing LauncherAppState only on the main threadSunny Goyal2017-02-132-46/+59
| | | | | | | | | | Bug: 33032833 Change-Id: I7992a5358142dde80aeaf8c6b7a6c7bfef2c8a00
* | Fixing bug in AnimationLayerSet where it sets the layer type to softwareSunny Goyal2017-02-131-6/+14
| | | | | | | | | | | | at the end of the animation instead fo setting it back to the original value Change-Id: I528dc41fb896ae57905d5ceab7256a53bdb81489
* | Merge "Making methods in PaackageManagerHelper non-static" into ↵TreeHugger Robot2017-02-095-28/+48
|\ \ | | | | | | | | | ub-launcher3-master
| * | Making methods in PaackageManagerHelper non-staticSunny Goyal2017-02-025-28/+48
| |/ | | | | | | | | Bug: 34112546 Change-Id: Ia3db3e2f56d26e314000e302b51e6d38607c525d
* | Merge "Create a singleton HashMap instead of using Collections.singleton()" ↵TreeHugger Robot2017-02-092-2/+15
|\ \ | | | | | | | | | into ub-launcher3-master
| * | Create a singleton HashMap instead of using Collections.singleton()Tony Wickham2017-02-092-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | The Set returned by Collections.singleton() doesn't support all operations, causing crashes in certain situations (namely, whenever a notification is updated rather than added or removed). Change-Id: Ie104b7f99c4a32db5f1f7e43ec3775d34dc26ce1
* | | Merge "Updating the default widget preview generation logic" into ↵Sunny Goyal2017-02-094-68/+68
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Updating the default widget preview generation logicSunny Goyal2017-02-084-68/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We draw a while round rect box which is divided into the cells to represent the widget size. The app icon is drawn in the center for this white box. Bug: 34819119 Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
* | | | Merge "Updating widget tray theme" into ub-launcher3-masterTreeHugger Robot2017-02-094-23/+38
|\ \ \ \
| * | | | Updating widget tray themeSunny Goyal2017-02-094-23/+38
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using standard theme attributes rather than custom color codes, so that it plays nice with system theme changes. Bug: 34819119 Bug: 34897402 Bug: 21446746 Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
* | / / Add basic logs for tap outside action.Jon Miranda2017-02-076-1/+31
| |/ / |/| | | | | | | | Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
* | | Merge "Animate badges when they are added or removed" into ub-launcher3-masterTony Wickham2017-02-075-47/+117
|\ \ \
| * | | Animate badges when they are added or removedTony Wickham2017-02-075-47/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Scale the badge and text or icon up or down, respectively. - Only animate if the badge is visible, and don't animate when applying shortcut or app info. - Animate folder badge out when folder enters accepting state. Bug: 34838365 Bug: 32410600 Change-Id: Ie60cb1fc54fe60d72734d833040545d27660d645
* | | | Merge "Update PreviewLayoutRule API to prepare for new folder animation." ↵Jonathan Miranda2017-02-073-20/+59
|\ \ \ \ | |/ / / |/| | | | | | | into ub-launcher3-master
| * | | Update PreviewLayoutRule API to prepare for new folder animation.Jon Miranda2017-02-063-20/+59
| |/ / | | | | | | | | | | | | | | | | | | Also created a new FeatureFlag to start building behind. Bug: 35064148 Change-Id: I4a7d30bf1e1f49f1012eb963695d44d67096a5bc
* | | Merge "Add logging for notifications." into ub-launcher3-masterTony Wickham2017-02-077-13/+48
|\ \ \
| * | | Add logging for notifications.Tony Wickham2017-02-077-14/+48
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Log notification launches - Log notification swipes - Fix logDragNDrop() to only log if the pre-drag ends (so it doesn't log a long-press that only shows shortcuts without dragging). - Add shortcut rank to logs when launching deep shortcuts, where 0 is the shortcut closest to the app icon (highest rank). Bug: 34770729 Bug: 32410600 Change-Id: I99dcef9b6a71da2ef58e32397702bb137407b10f
* | | Merge "Add badges to folders" into ub-launcher3-masterTony Wickham2017-02-074-0/+108
|\ \ \
| * | | Add badges to foldersTony Wickham2017-02-074-0/+108
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | - The folder badge contains the sum of the badge counts within. - This is represented by FolderBadgeInfo, a subclass of BadgeInfo. Bug: 34828806 Bug: 32410600 Change-Id: I977a69cc7baf80a7207af9adf98dddb0a3509c47
* | | Merge "Show notification icon in place of "1" in badge." into ↵Tony Wickham2017-02-077-28/+206
|\ \ \ | |/ / |/| | | | | ub-launcher3-master
| * | Show notification icon in place of "1" in badge.Tony Wickham2017-02-077-28/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When notifications update, add the NotificationInfo to the BadgeInfo if there is only one for an app. BadgeRenderer will use the NotificationInfo to get the icon to draw. - When retrieving the icon from the NotificationInfo, we draw it into a shader (similar to MaskableIconDrawable), which is rendered by BadgeRenderer. - For now, we only use the notification icon if it is large. Bug: 34839959 Bug: 32410600 Bug: 33553066 Change-Id: I31851804008dd15bab75d2759441187830c3265e
* | | Merge "Updating the PreloadIconDrawable" into ub-launcher3-masterSunny Goyal2017-02-0712-330/+421
|\ \ \
| * | | Updating the PreloadIconDrawableSunny Goyal2017-02-0612-330/+421
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | > The drawable gets the path from MaskIconDrawable path, instead of using a circle > The progress changes are animated as well Bug: 34831873 Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
* | | Merge "Add ActivityOptions for clip reveal animation for notifications" into ↵Tony Wickham2017-02-071-1/+5
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Add ActivityOptions for clip reveal animation for notificationsTony Wickham2017-02-011-1/+5
| | | | | | | | | | | | | | | | Change-Id: Ib621e3ae73eecf047568b85112cddaf3ae60bb0f
* | | | Remove unused View parameter from ofFloat method.Jon Miranda2017-02-065-8/+8
| |/ / |/| | | | | | | | Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
* | | Merge "Gracefully ignore items that don't support notifications" into ↵Tony Wickham2017-02-033-7/+14
|\ \ \ | | | | | | | | | | | | ub-launcher3-master
| * | | Gracefully ignore items that don't support notificationsTony Wickham2017-02-023-7/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PackageUserKey is only meant to be used for items that support notifications, so when trying to update it for an item that doesn't, we don't use it to check if the item has notifications. This fixes a crash that happens when trying to update notifications for a legacy shortcut, as such a shortcut doesn't have a component on its intent, which we were trying to use to populate PackageUserKey. Bug: 34842278 Change-Id: I8c69ccebbf9d93505d5b29ecd25d76c65610ddc4
* / / Clean up around 1) Log.VERBOSE and 2) dumpHyunyoung Song2017-02-018-92/+109
|/ / | | | | | | | | | | | | | | | | b/31772480 Note: in the follow up CL, I will add the dump result of the bgDataModel to a proto Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
* | Merge "Ensure getNotificationKeysForItem() returns empty on unsupported ↵Tony Wickham2017-02-011-1/+1
|\ \ | |/ |/| | | items." into ub-launcher3-master
| * Ensure getNotificationKeysForItem() returns empty on unsupported items.Tony Wickham2017-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | We were bypassing the check in getBadgeInfoForItem(), which meant we would return notifications based on package/user regardless of the item type. In particular, deep shortcuts would show notifications when long-pressed. Bug: 34866646 Change-Id: I6575a28539313c0c5d0eea1cbf7b7726f747bcd5
* | Fixes a bug where the workspace doesn't properly enter into freescroll modeMario Bertschler2017-01-311-4/+8
|/ | | | | | | | | | | | hence the overscroll will appear and you can wrongly enter into the -1 screen. The problem was that the state value in the workspace was set after enabling free scroll, but enabling free scroll checks the current state for validation. This bug was introduced by Icc3005fd431569e2b9e3f52d2249de8ba8d13eab. Bug: 34817798 Change-Id: I46802c93c49a2ae8ee5c40ef24e465d7fe63c4bb
* Merge "Use notification icon views' tags to store NotificationInfo." into ↵Tony Wickham2017-01-311-8/+3
|\ | | | | | | ub-launcher3-master
| * Use notification icon views' tags to store NotificationInfo.Tony Wickham2017-01-271-8/+3
| | | | | | | | | | | | | | | | Previously we had a mapping from View to NotificationInfo, but this way we don't have to maintain that separate mapping and can follow the pattern used throughout the rest of launcher. Change-Id: Ia988f822613b9978bab3d0127226de920a3e73c9
* | Changes required to use MaskableIconDrawable inside Launcher3Hyunyoung Song2017-01-302-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL will bake the legacy icons inside a grey background Note: There will be follow up CL to change the color and shadow of the legacy icon. The idea of this CL is to first test if MaskableIconDrawable methods and class work properly. Bug: 32063838 Bug: 33553066 Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
* | Merge "Ensure notification icons have enough contrast with background." into ↵Tony Wickham2017-01-275-18/+148
|\ \ | | | | | | | | | ub-launcher3-master