summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Scale Icon badges for shortcut and widgetsSamuel Fufa2019-10-041-4/+3
| | | | | | Test: Manual Bug: 141262820 Change-Id: I03edc986e3fe1876b6b7ed179b96864d587cb137
* Drag and drop preview size for BubbleTextViewSamuel Fufa2019-09-261-0/+7
| | | | | | Test:Manual Bug:141260670,141263002 Change-Id: If08dba28cce3ae07bb39ddad3743dd5eea92cb90
* Moving various common executors to a single locationSunny Goyal2019-08-202-7/+7
| | | | Change-Id: I44bca49b8adb6fa22c3b48d10f674e42c28d792c
* Adding support for storing keywords in iconCacheSunny Goyal2019-08-071-4/+4
| | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9
* Add OverviewScrim to show below overview but above workspaceTony Wickham2019-07-313-55/+186
| | | | | | | | | | | | - Refactor some basic scrim logic to Scrim class and have WorkspaceAndHotseatScrim and OverviewScrim extend it - Draw OverviewScrim under recents unless predictions are disabled, in which case draw it under hotseat (since that is in recents) - Remove sysui scrim (behind status bar and nav bar) when overview is peeking Bug: 132455160 Change-Id: Ia5d6f54582a4c5a70e3b2d4a98281567edd68519
* Set FastBitmapDrawable scale=1 before drawing it in DragViewTony Wickham2019-07-231-0/+4
| | | | | | | | | | When we draw the icon to the DragView, we draw it with the current scale, which is > 1 when animating the icon down. Instead, we should always draw the icon with scale 1 since the DragView itself is scaled. Bug: 138236583 Change-Id: I6bca5cf28c54d58476240e0e68900a8f08ffe60b
* Optimizing some layouts in taskviewSunny Goyal2019-06-131-1/+1
| | | | | | | | | > Recycling DigitalWellBeingToast so that the view is not inflated everytime > Simplifying DigitalWellBeingToast to use a single text view > Adding support for footers in taskView without creating additional layout Bug: 122345781 Change-Id: Ia889819b93eb8644532ea95c6767554874d5e2d1
* Add shape detection logic only for circle iconsHyunyoung Song2019-06-031-0/+9
| | | | | | b/119330044 Change-Id: I93042effa8417167d844f073275e8b941e861e60
* Fixing insets mapping in 3-button and 2-button modeSunny Goyal2019-05-131-21/+10
| | | | | Bug: 131360075 Change-Id: If6e3a4fbb011fc313efeb91686a9d787761862c5
* Not using magic constants for navbar heightvadimt2019-05-081-4/+4
| | | | Change-Id: I6783b8a2ebb059ce35748d8c3e818cbe732ff40d
* Adding utility method to get adaptive icon scaleSunny Goyal2019-05-033-43/+481
| | | | Change-Id: I5ff190c3b794bb13309375782ccd420e85b59091
* Initial changes to creating a fake landscape Launcher UISunny Goyal2019-05-021-0/+59
| | | | | | | | Workspace and hotseat are drawn in rotated UI giving the impression that the device is in Portrait, even though it is in landscape Bug: 131360075 Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
* ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal2019-04-161-12/+10
| | | | | | Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
* Using the extracted color for plaecholder loading iconsSunny Goyal2019-04-041-1/+4
| | | | | Bug: 111142970 Change-Id: Id274ddcd20d8042a4cc24bff9d65bea79846e9af
* Make QSB_ON_FIRST_SCREEN a boolean.Jon Miranda2019-03-151-1/+1
| | | | | Bug: 118140522 Change-Id: Ic8e47e71f538b0b0caff6f630566665d05a65522
* Fix bugs related to swipe up to home animation.Jon Miranda2019-03-121-0/+31
| | | | | | | | | | - Added ConstantState support for FolderAdaptiveIcon and ShiftedBitmapDrawable. - Quick fix for NPE in Workspace#mapOverCellLayout while I investigate further. Bug: 128460496 Change-Id: I5ec02e25dcf9f17aeb37928e675a033bdc8819ae
* Fix app to folder icon animation.Jon Miranda2019-03-051-0/+74
| | | | | | | | | | - Needed to account for the preview bounds (similar to BubbleTextView icon bounds) - Also needed to update the bitmap shift amount so that it is re-centered - Moved ShiftedBitmapDrawable to its own class in graphics package Bug: 123900446 Change-Id: Ifa9e3f688e55d017cf86a0285f5cdb1b014f01e6
* Revert "Add remote animation for unlocking device."Jon Miranda2019-02-281-0/+30
| | | | | | | | | This reverts commit 55a32272be2e2369ec25bdca3ef0e5724430b9c5. Reverting until we can revisit this animation. Bug: 123906429 Change-Id: Ic2d6e5a8198900fb15abd60dd140091681f828dd
* Don't render background in PreviewRendererSantiago Etchebehere2019-01-171-1/+2
| | | | | | | ThemePicker will add the current wallpaper as background instead. Bug: 122262084 Change-Id: Ib0781abd09afc98a56649888c59074888af1740e
* Adding API to set the current gridSunny Goyal2019-01-111-15/+49
| | | | | Bug: 122262084 Change-Id: Ie356d4a90cf1e5a3715fde62cd3502384856e8b5
* Fix crash when rendering pending widget previewWinson Chung2019-01-101-3/+10
| | | | | | | | | | - The pending widget disabled icon drawable is created from the icon backed by a hw bitmap, and when a user long presses the widget, we attempt to draw the drawable using a canvas backed by a software bitmap. Bug: 112324288 Test: Pick up a pending app widget Change-Id: Ied49112a2b03d54691f6db7c65e9267c8bd8e91f
* Adding content provider for exposing launcher grid settingsSunny Goyal2019-01-092-2/+161
| | | | | Bug: 122262084 Change-Id: I3e89e0a9400fb3e81f932af3606eb49c36d34894
* Add remote animation for unlocking device.Jon Miranda2019-01-091-30/+0
| | | | | | | | Removed the workaround we had for animating sysui scrim based on SCREEN_OFF and USER_PRESENT, since it is now properly handled via the unlock animation. Bug: 65162781 Change-Id: I5341cc1d3b4f0761b8cf58fdc9fc1b895f2a128e
* Remove IconShapeOverrideHyunyoung Song2018-12-191-214/+0
| | | | | Bug: 120736782 Change-Id: Iee44f10ff2b9ec447ae74d9ad6a0aa3668c401d6
* Adding support for launcher preview generationSunny Goyal2018-12-042-0/+340
| | | | | | | | Creating a utility class which generates a launcher preview for a provided InvariantDeviceProfile Bug: 118758696 Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff
* Moving some utility classes to icon libSunny Goyal2018-11-073-52/+2
| | | | Change-Id: I0cc19ea02fb0732e9e1778a18c0d2c229232d179
* Replacing setAlphaComponent with setAlphaComponentBound for better animation ↵Sunny Goyal2018-11-062-3/+7
| | | | | | | | | | interpolation setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot interpolation Bug: 118390004 Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
* Removing separate hotseat widget, instead using a QSB acroll all UI.Sunny Goyal2018-11-051-1/+1
| | | | | | | The QSB is responsible for updating its UI according to various states. Bug: 109828640 Change-Id: Ic8cbf3d404d5870de0f6b8fe25a332b8d21bae20
* Simplifying scrim drawable initialization.Sunny Goyal2018-10-311-23/+17
| | | | | | | | | Scrim drawable is initialized as null in certain cases in code, but it is also initialized as null in sytle. Only using the style definition as source of truth to avoid missing null checks Bug: 118450709 Change-Id: I9dab18405932d1b5c0e697838738a1392f97021c
* Using support lib implementation for launcher preferenceSunny Goyal2018-10-191-3/+3
| | | | | Bug: 117519297 Change-Id: Icea5e022a337436e48db9376fd441f805dc34e54
* Move IconNormalizer/ShadowGenerator/LauncherIcons to icons packageHyunyoung Song2018-09-268-1256/+2
| | | | | | | | | Bug: 115891474 Sending out the package name changing CL first before I make LauncherIconsHandler and tests around it. Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
* Extracting icon caching logic into a base class.Sunny Goyal2018-09-252-2/+6
| | | | | | | This will allow using the cache cache for other type of objects, like shortcuts and widgets. Change-Id: I38616d031cb051f93e724d9cc0e8fe9a822b9e3a
* Removing additional rpc due to icon cache updateSunny Goyal2018-09-211-1/+1
| | | | | | | | | | When launcher loads, it fetches the list of apps twice, once for loading all-apps and again for updating icons. Instead reusing the previously fetched apps list. Also moving the icon loading in a separate package for further generalization Change-Id: Ibd2dae56e6027a31b633da030bc6b43a90b27e1b
* Removing ViewScrim and cutom drawing codeSunny Goyal2018-09-182-142/+0
| | | | | Bug: 109828640 Change-Id: I2cab0215a32c2ca6bc331d48083fcc00ada05c3b
* Using a placeholder icon shape instead of low-res/blurry iconSunny Goyal2018-08-273-44/+103
| | | | | Bug: 111142970 Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
* Migrating to android-xSunny Goyal2018-08-149-11/+21
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Skip logic to find the dominant color when loading recent task iconsWinson Chung2018-08-143-11/+43
| | | | | | | | - Also move some allocations in ColorExtractor into thread locals to reduce allocations Bug: 78777731 Change-Id: I8819106d476a9af02e864135a2f44b55fe9219cd
* Merge "Adjust notification dots" into ub-launcher3-masterTreeHugger Robot2018-08-091-1/+1
|\
| * Adjust notification dotsTony2018-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Use consistent bounds for folders as other icons, to ensure dot has a consistent placement (moved right+up a bit) - Strengthen the ambient shadow to improve contrast - Increased blur size and opacity - Use a dark gray rather than black for dots on dark folders Bug: 73331123 Change-Id: I888f4645d3a48465af93f5003dda8f8b7c3129f3
* | Using proper checks for hardware bitmap usageSunny Goyal2018-08-061-2/+1
| | | | | | | | Change-Id: Ic8efef8ac54ee4c7887860c404060da3c00f4024
* | Fix All-apps search box background pixelationStan Iliev2018-08-021-1/+3
| | | | | | | | | | | | | | | | | | Enable bitmap filter for search box background. This avoids jagged line, when bitmap is translated by half screen pixel. Bug: 77841258 Test: Ran launcher on a device Change-Id: I9293669da5db8be16ebe55ce01ab0e9735932c12
* | [automerger] Fix gap between notification dots and their shadows am: dfb785afc1Android Build Merger (Role)2018-07-221-3/+3
|\ \ | |/ |/| | | Change-Id: I9856c789e5d2f79690e69209145ee1a36a6cfec4
| * Fix gap between notification dots and their shadowsTony2018-07-221-3/+3
| | | | | | | | | | | | | | There was a rounding issue due to usnig integer division when we meant float Bug: 73331123 Change-Id: Ic3deb1c26aa00808a929e1303602656ce532963d
* | Moving some abstract classes to interfaces, to better use java-8 featuresSunny Goyal2018-07-091-28/+26
| | | | | | | | Change-Id: I862af4931c95cbde052130d8b7d4ac3375db782f
* | Cleaning up build rules to simplify customizing derivative projectsSunny Goyal2018-07-021-2/+3
| | | | | | | | | | | | | | | | | | > Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml for strings which are dependent on packageName > Adding proguard rule to prevent obfuscating any overridable class > Making it easier to extend SettingsActivity by overriding the fragment class Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
* | Fix clipping issue on adaptive iconsHyunyoung Song2018-06-281-4/+3
| | | | | | | | | | | | | | | | Bug: 62372639 Verified the one last device, b***line. Change-Id: I1d97d0cbe0afe76ee21de5964abf639fb4c0fceb
* | Fix clipping issue on adaptive iconsHyunyoung Song2018-06-281-2/+3
|/ | | | | | Bug: 62372639 Change-Id: Ie9dcf18f61c45225823dfbbf85578edcbffd86b9
* Merge "Apply legacy treatment on all non adaptive icons Bug: 110123894 Bug: ↵TreeHugger Robot2018-06-201-1/+2
|\ | | | | | | 62372639" into ub-launcher3-edmonton-polish
| * Apply legacy treatment on all non adaptive iconsHyunyoung Song2018-06-201-1/+2
| | | | | | | | | | | | | | Bug: 110123894 Bug: 62372639 Change-Id: I3bcaa3b9886942b4f1d45aaeebc8b8022e1319f8
* | Create a param to return scale used for bitmap creationHyunyoung Song2018-06-141-3/+10
|/ | | | | | Bug: 110082040 Change-Id: I35254289a216be4db96f452db184454581a59b32