summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
Commit message (Collapse)AuthorAgeFilesLines
* Merging ScrimView into GradientViewMario Bertschler2017-07-261-24/+0
| | | | | | | | Less banding, less drawing for All Apps Transition. Bug: 63873246 Change-Id: I6c7c856e2939a10db7e44b266c1d6d51334fd152
* Removing some support lib dependenciesSunny Goyal2017-06-091-2/+1
| | | | Change-Id: I028ed591cc9cf0af94fe6e09fadcd255f07cdee5
* Updating the WallpaperManagerCompatVL to use JobSchedular instead of intent ↵Sunny Goyal2017-06-081-0/+1
| | | | | | | service Bug: 62065291 Change-Id: I5872cea1b110268e9593eeb6397e94ecea1bc03d
* Adding a utility method for getting device prefsSunny Goyal2017-06-081-0/+5
| | | | Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
* resolve merge conflicts of 629a67c5a to ub-launcher3-dorval-polishTony2017-06-021-0/+2
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I5aed3f0c978976c499b532c816d81196cb11e3a1
| * Migrate ColorExtractionService to JobServiceTony2017-06-021-1/+2
| | | | | | | | | | | | | | | | | | IntentService cannot be run in the background, so moving to JobService prevents us from crashing if the wallpaper is changed while we aren't running. Bug: 62065291 Change-Id: Ie0c887e36d0ced43a0b9ab8136bf55eb37697489
* | Defining a dark theme for launcherSunny Goyal2017-05-241-2/+2
| | | | | | | | | | | | | | | | > Removing the code for LIGHT_STATUS_BAR as that will be controlled by the theme > Updating icon cache to always use transparent background for low-res, as the theme can change the bg color Change-Id: Iab64ec29cab629ee515af22ec15b95d3f40a9df5
* | Making some methods accessibleSunny Goyal2017-05-191-1/+1
| | | | | | | | | | Bug: 37616877 Change-Id: I22ed43d9a39d321757d7c2fde7754b95a44780e2
* | All Apps transition with gradient and scrim.Mario Bertschler2017-05-031-0/+25
| | | | | | | | | | | | | | The transition is behind a feature flag and turned off by default. Change-Id: I155840ba82b5a573d874376797db5f739a52d706
* | Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+0
| | | | | | | | | | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* | Merge "Removing the profile extra from intent and using the profile id from ↵Sunny Goyal2017-03-211-7/+2
|\| | | | | | | | | | | | | | | the profile column" into ub-launcher3-dorval am: 77ff9a4343 Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
| * Removing the profile extra from intent and using the profile id from the ↵Sunny Goyal2017-03-211-7/+2
| | | | | | | | | | | | | | | | | | profile column The intent extra is not always correct as the profile id can change during backup restore. This allows us to use a consistant behavior everywhere. Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+2
|/ | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* Simplifying some launcher themesSunny Goyal2017-02-161-12/+0
| | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* Merge "Create a singleton HashMap instead of using Collections.singleton()" ↵TreeHugger Robot2017-02-091-0/+11
|\ | | | | | | into ub-launcher3-master
| * Create a singleton HashMap instead of using Collections.singleton()Tony Wickham2017-02-091-0/+11
| | | | | | | | | | | | | | | | 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
* | Updating widget tray themeSunny Goyal2017-02-091-1/+5
|/ | | | | | | | | | 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
* Adding support for new APIs in O related to configurable shortcutsSunny Goyal2017-01-191-17/+0
| | | | | | | | > Config activities can now return PinItemRequest which can be used to pin deep shortcuts Bug: 33584624 Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
* FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-131-1/+1
| | | | | | | | | | | | | - Added BadgeInfo to contain data to be shown in a badge (currently just notification count). - Added BadgeRenderer in DeviceProfile to contain things relevant to drawing the badge, such as size and Paint's. - Added IconPalette to compute colors for the badge based on a dominant color (will also be used for notifications) - FastBitmapDrawable uses these classes to draw the badge. Bug: 32410600 Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
* Adding some logging around launcher restoreSunny Goyal2017-01-091-0/+6
| | | | | | | | > Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-37/+8
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Using support lib for isAtleastO checkSunny Goyal2016-12-161-3/+2
| | | | | Bug: 32610406 Change-Id: I89b3c4f0c99ac605883677cf0becaab0fbf48a86
* Restore original scaleRectAboutCenter method.Jon Miranda2016-12-151-1/+16
| | | | Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
* Smooth animation when dropping a widget in multi-window mode.Jon Miranda2016-12-141-12/+11
| | | | | | | | | | Factored in app widget scaling in methods related to estimating widget size and positions. ie. Dropping a widget that needs to be resized to fit in the workspace. Bug: 32176631 Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
* Adding a generic method to initiate overridable objectsSunny Goyal2016-12-121-0/+20
| | | | Change-Id: Ia433427c65ad38804f2eed9c6bc209df232758c0
* Merge "Catching TransactionTooLargeException when binding widget." into ↵Sunny Goyal2016-11-151-0/+7
|\ | | | | | | ub-launcher3-master
| * Catching TransactionTooLargeException when binding widget.Sunny Goyal2016-11-091-0/+7
| | | | | | | | | | | | | | | | | | A widget can potentially bypass binder size limit with remote views when using partual updates (as the merging happens on the system service). In such a case, show the widget in error state. Bug: 32365088 Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
* | Merge "Enabling async inflation for AppWidgets" into ub-launcher3-masterSunny Goyal2016-11-101-0/+6
|\ \
| * | Enabling async inflation for AppWidgetsSunny Goyal2016-11-031-0/+6
| | | | | | | | | | | | | | | Bug: 22839968 Change-Id: Id622053c2882f478b3a3ab3918a9f76750ead8c6
* | | Merge "Simplifying mapCoordInSelfToDescendant" into ub-launcher3-masterSunny Goyal2016-11-071-40/+26
|\ \ \ | |_|/ |/| |
| * | Simplifying mapCoordInSelfToDescendantSunny Goyal2016-10-281-40/+26
| | | | | | | | | | | | | | | | | | | | | > Removing new object creation (during draw and touch handling) > Simplifying matrix operation to call invert only once at the end Change-Id: Iffadd6e9d84997baa36719ed688a7c3c1027e839
* | | Remove unused Utilities methods related to motion event translationTony Wickham2016-11-031-25/+0
| |/ |/| | | | | | | | | | | | | These were necessary when we had the ShortcutsContainerListener with touch forwarding, but they are no longer used since we removed that listener when we moved to the pre-drag model. Change-Id: I845d4a1a73fa1a675cef1c52fe304357674a2f68
* | Updating version check method namesSunny Goyal2016-11-021-8/+6
|/ | | | Change-Id: If98851677545a9bbb9de308c23ff5c155a61a8bf
* Code sanitizationHyunyoung Song2016-10-061-1/+1
| | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* Updating the paddings in folder cellSunny Goyal2016-09-191-2/+2
|\ | | | | | | | | | | am: baec6ffae2 Change-Id: I4bfa78ade93639d3864baeeb5028b9caa3935c29
| * Updating the paddings in folder cellSunny Goyal2016-09-161-2/+2
| | | | | | | | | | | | | | | | | | > Updating overall padding for the cell and adding drawable padding > Ensuring that the folder cell is always rendered properly based on available vertical space Bug: 30605958 Change-Id: I8ceb9fea5a25052b0d7461f52edca0e6a33fa085
* | Moving some image handling classes to .graphics packageSunny Goyal2016-09-021-236/+0
|/ | | | Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
* Fixing topView not being considered in all places when calculating accessibleSunny Goyal2016-09-021-0/+13
| | | | | | | and focusable views Bug: 30563273 Change-Id: I6253ce33ee5c328efdde2ea733029975b31e5eb8
* Removing some reflection codeSunny Goyal2016-09-011-23/+8
| | | | Change-Id: I8a0a707d69999e5f9911e7d8df7d4a659b3dfb8f
* Preventing unnecessary setLayout calls in workspaceSunny Goyal2016-08-301-4/+9
| | | | | | Separating getSystemProperty in a separate method Change-Id: I88716e796e29ac27ef25afa41077a8f29eb65f25
* Starting the settings activity with same animation as wallpaper (and widgets ↵Sunny Goyal2016-08-251-4/+0
| | | | | | tray) Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526
* Updating version check to use SDK_INTSunny Goyal2016-08-151-6/+1
| | | | Change-Id: Idb46053e7304bc8d0cab03a17a6fe73013e4f092
* Badging shortcuts with app iconsSunny Goyal2016-07-291-19/+28
| | | | Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
* Removing shadow and badging from the icon which is shown in the menuSunny Goyal2016-07-261-6/+13
| | | | | | | These are added as soon as the icon is added to the workspace Bug: 28980830 Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
* Fixing issue with shadow drawing over search bar.Winson2016-07-201-2/+2
| | | | | | - Adding notion of clip-against view for click shadow alignment. Bug: 30255227 Change-Id: Id5716a3484051a55690025d61f709e3d96cbe024
* Adding support for dynamically adding shadows to the iconSunny Goyal2016-07-201-1/+31
| | | | Change-Id: I94d98750aea1faef8879e25990aa5c41a4894708
* Long-press on an app to reveal its shortcuts.Tony Wickham2016-06-291-1/+33
| | | | | | | | | | | | | | | - Add ShortcutsContainerListener to icons on workspace, folders, and all apps. This handles long-press and forwards following touches to the DeepShortcutsContainer that is created. - Drag over shortcut before lifting finger to launch it. - Shortcuts are rendered in pill-shaped DeepShortcutViews, which are inside DeepShortcutContainer on DragLayer. - The shortcut container orients above or below the icon, and left or right-aligns with it. Biases for above + left-align. - Long press a DeepShortcutPill to drag and pin it to the workspace. Bug: 28980830 Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
* Merge "Making some shortcut manager calls protected by MR1 version check" ↵Sunny Goyal2016-06-231-0/+8
|\ | | | | | | into ub-launcher3-calgary
| * Making some shortcut manager calls protected by MR1 version checkSunny Goyal2016-06-231-0/+8
| | | | | | | | Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
* | Merge "Removing unnecessary object creation and double loop during ↵Sunny Goyal2016-06-231-20/+12
|\ \ | |/ |/| | | getDescendantCoordRelativeToAncestor" into ub-launcher3-calgary