summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InvariantDeviceProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Handling configuration changes at runtime instead of killing the processSunny Goyal2018-10-191-9/+62
| | | | Change-Id: I0c7f7e58ddb690f371c257b6142a4e918e9acb7f
* Migrating to android-xSunny Goyal2018-08-141-1/+2
| | | | Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
* Retiring some feature flagsSunny Goyal2018-07-101-12/+0
| | | | Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
* Lazy loading LauncherAppStateSunny Goyal2018-07-031-3/+9
| | | | | | | Separating InvarantDeviceProfile out of LauncherAppState and creating LauncherAppState only when it is actually used Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
* Adding fallback recents activitySunny Goyal2018-03-131-3/+5
| | | | | | | | > Refactoring RecentsView to a common base class > Moving some dependency form Launcher to BaseActivity > Using the Recents view in RecentsActivity Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
* Removing launcher dependency when logging quickstep interactionSunny Goyal2018-02-221-2/+2
| | | | | | as Launcher may not be ready when the touch gesture completes. Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
* Removing support for app prediction from Launcher3Sunny Goyal2018-01-301-11/+2
| | | | | | | Derivative projects can extend the FloatingHeader to add support to custom content in all-apps screen. Change-Id: I4e29221a72e5a077a756713a6774cda7ecde8f1b
* Demo mode default layout supportAdam Cohen2017-09-291-3/+8
| | | | | | 67062454 Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-13/+8
| | | | | | | | This is the just first CL to get eyes on the changes. Next CL will update the All Apps to be full width. Bug: 37015359 Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
* resolve merge conflicts of 40dfa3bf6 to ub-launcher3-masterSunny Goyal2017-03-271-18/+0
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Iee500631827ebc48c63c203fdcd0de888adcb135
| * Revert "Adding some logging around launcher grid when device profile changes"Sunny Goyal2017-03-201-18/+0
| | | | | | | | | | | | | | Bug: 35425060 This reverts commit c29de857807680bf72ebd386cbec716b33d64780. Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
* | Merge "Make landscapeProfile and protraitProfile public." into ↵Justin Cui2017-03-201-2/+2
|\| | | | | | | | | | | | | | | ub-launcher3-dorval am: b00fcd4e49 Change-Id: Ie62cdf16f27edf46e5b2bbec81873b99f124bb48
| * Make landscapeProfile and protraitProfile public.cuijiaxing2017-03-201-2/+2
| | | | | | | | | | | | This is needed to make prediction sticky: b/21654652 Change-Id: Ie8cb77ed9cbf1bf5b164828d0c4335111039e7c5
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+1
|/ | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-151-0/+18
| | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-181-0/+6
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* Defining various modes for CellLayout: Workspace, Hotseat & FolderSunny Goyal2016-11-211-0/+5
| | | | | | | > Moving the definition of modes to xml > Defining attributes in xml Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
* Initial changes to tweak layout.Winson2016-07-201-5/+1
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Defining the list of predefined device profiles in xml.Sunny Goyal2016-07-071-32/+44
| | | | | | This allows the profiles to be easily customized by derivatives. Change-Id: Iaec2b7a0eda34581c8e48b7dc44817013632dabe
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-4/+13
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* Removing dependency on wallpaper size settings from launcherSunny Goyal2016-03-171-0/+42
| | | | | | | > Moving wallpaper desired width calculation to xml Bug: 14470153 Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
* Adding support for migrating the grid between any two valid screens sizes.Sunny Goyal2016-01-201-1/+1
| | | | | | | | The grid is migrated in steps where each step consists of at max one column change and at max one row change. Adding some unit tests for GridMigrationLogic Bug: 25958224 Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
* Merge "Extending the grid migration logic to handle density changes" into ↵Sunny Goyal2016-01-071-2/+2
|\ | | | | | | ub-launcher3-master
| * Extending the grid migration logic to handle density changesSunny Goyal2016-01-061-2/+2
| | | | | | | | | | | | | | | | For hotseat migratino, we simply drop the items with least weight If the workspace row/column decreases by 2 or more, we clear the whole workspace Bug: 25958224 Change-Id: I7131b955023d185ed10955f593184b9238546dc8
* | Adding support for negative x and y in layout xml.Sunny Goyal2015-12-181-3/+3
|/ | | | | | | | | | | Fixing default configurations for some screen sizes. > Negative values for x and y are parsed as distance from end column and row respectively. e.g. (-1, -2) => (3, 2) in a 4x4 grid Bug: 26110981 Change-Id: I4ca30e225ed6e2a31610ab23235d2cd10e8d317c
* Normalizing app icons based on the standard icon guidelinesSunny Goyal2015-12-021-4/+4
| | | | | Bug: 18245189 Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a
* Adding margin to Drag layer instead of checking for right insets at every placeSunny Goyal2015-12-011-7/+0
| | | | | Bug: 25692432 Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752
* am d6b4037b: Grid adjustments, specifically for Ryu.Tony Wickham2015-10-091-3/+3
|\ | | | | | | | | * commit 'd6b4037b093445fefa7d036da339dd549fae7a9b': Grid adjustments, specifically for Ryu.
| * Grid adjustments, specifically for Ryu.Tony Wickham2015-10-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | > Less than 14% of the screen is used for left/right workspace padding. (To be clear, this means 7% for the left and 7% for the right.) > Hotseat icons are the same size as workspace icons. > Far left and right hotseat edges line up with workspace edges. > All Apps button is scaled down 8dp. Bug: 24003478 Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
* | Using 23 instead of Build.Versoin.M until the final SDK is available.Sunny Goyal2015-10-081-2/+1
| | | | | | | | Change-Id: I9f8f6fe049afcd0ceb0797ddc803a2e77bab0437
* | Merge "Fixing overscroll effect when the navigation bar is opaque" into ↵Sunny Goyal2015-10-071-1/+8
|\ \ | | | | | | | | | ub-launcher3-burnaby-polish
| * | Fixing overscroll effect when the navigation bar is opaqueSunny Goyal2015-09-221-1/+8
| |/ | | | | | | | | | | | | | | | | | | The navigation bar is opaque on mobile devices in landscape mode. Launcher should ignore the right insets and draw the edge effect appropriately. Also draw the black bar under the navigation bar, just in case we assume it to be opaque, but it was not actually opaque. Bug: 18526657 Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263
* | Merge "Fixing other missing cases of truncated sorts." into ↵Winson Chung2015-09-301-2/+2
|\ \ | | | | | | | | | ub-launcher3-burnaby-polish
| * | Fixing other missing cases of truncated sorts.Winson2015-09-291-2/+2
| |/ | | | | | | | | Bug: 24505761 Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957
* / Flipped widths of Nexus 4 and Nexus 5 in InvariantDeviceProfile.Tony Wickham2015-09-291-2/+2
|/ | | | | | | | Without this change, Nexus 4 uses the Nexus 5 device profile and vice versa. But because the profiles have exactly the same values, it didn't matter that they were flopped. Change-Id: I3fd788e040feb8de5bb5f5e336acbd4ac995dc0f
* Ensuring that we use the screen width more optimally in AllApps.Winson Chung2015-06-051-14/+22
| | | | | | | | | | | - 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
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-0/+29
| | | | | | | | | > 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
* Start adding unit tests for the invariant device profile / RefactorHyunyoung Song2015-05-281-129/+119
| | | | | | | | | | - 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
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-9/+21
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-0/+264
-> 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