summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Scale icons in portrait if using condensed gridcretin452016-02-291-2/+5
| | | | | | Issue-id: CYNGNOS-1993 Change-Id: I4b74402ebf61a7faed28a74683d87592121bb090
* Refactor Launcher settings.Artem Shvadskiy2016-02-111-1/+0
| | | | | Change-Id: If5dcaaa9f4dad1a3eb151627622357331e8ad4da issue-id: CYNGNOS-1987
* Trebuchet: Fix landscape spacing issuecretin452016-01-181-3/+7
| | | | | | | | Don't keeping adding padding for the qsb on every orientation change. Issue-id: CYNGNOS-1640 Change-Id: Ibe1c8de8d5af2da1ba5e53648a468785db77a5ba
* Trebuchet: Fix page indicator bottom padding on setting changecretin452016-01-041-1/+1
| | | | | | Issue-id: CYNGNOS-1423 Change-Id: I1e5f21a215d9a8ba1679a1c700dd326ffc1441ac
* Reimplement CM Settings Overview Panel Part 3Yvonne Wong2015-12-031-1/+0
| | | | | | - Enable dynamic grid resizing Change-Id: I95a7f20da48e037a94ce5b6191c5597490d91d9d
* Reimplement CM Settings Overview Panel in the new Launcher Part 2Yvonne Wong2015-11-301-10/+60
| | | | | | | - Enables hiding the search bar from the workspace - Adds a reload launcher flag to reload only during onResume or newIntent if needed Change-Id: I0feb279f9003b268b5a129cef40d3665787ee451
* Reimplement CM Settings Overview Panel in the new Launcher Part 1Yvonne Wong2015-11-301-2/+2
| | | | | | | | | - Adds vertical sliding panel and animations associated with opening and closing the panel - Adds the views for settings and animation for the drawer arrow - Enables hiding workspace icon labels, hiding drawer icon labels, scrolling wallpaper, and larger icons - Changes how ragged grid custom icon sizes gets defined Change-Id: I1a82215a09486b4770494e665e598efdbabd1d3e
* Reimplement the CM scrubber against the new Launchercretin452015-11-231-5/+9
| | | | | | PS4: Implement RTL support Change-Id: I4456d54b5924913d1b36e1cfa9a2269150f6fb3e
* Refactoring search bar animations.Winson Chung2015-08-051-2/+1
| | | | | | | | | | - This refactoring ensures that LauncherStateTransition does not do its own animation on the QSB, and that all animations to the SearchDropTargetBar go through its own animators. Bug: 22515084 Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
* Merge "Fixing overview mode scale calculations." into ub-launcher3-burnabyWinson Chung2015-07-281-14/+5
|\
| * Fixing overview mode scale calculations.Winson Chung2015-07-101-14/+5
| | | | | | | | | | | | | | - Making the overview scale apply just like the spring loaded scale factor - Tweaking overview scale to make it not so small Change-Id: If93bac08609b0cfd9c9d9f8f6057498957378b56
* | Fixing regression in calculating workspace padding.Winson Chung2015-07-131-7/+15
|/ | | | | Bug: 22340087 Change-Id: I28d599fbb8f136b8b5aa4aeffaa0fba5661ab73c
* Refactoring all apps search to support external search bar.Winson Chung2015-06-151-11/+7
| | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* Ensuring that we use the screen width more optimally in AllApps.Winson Chung2015-06-051-4/+4
| | | | | | | | | | | - 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 issue with hotseat being on the wrong side of the screen in RTL.Winson Chung2015-06-031-3/+5
| | | | | | Bug: 21499466 Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab
* Moving all apps code into sub package.Winson Chung2015-05-221-21/+12
| | | | | | | - Renaming resources, dimens, etc to be more consistent - Removing old AppsCustomize resources and other unused code Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-275/+111
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-208/+37
| | | | | | | | | | | | | | | | | | | | -> 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
* Merge "Various lint error fixes." into ub-launcher3-burnabySunny Goyal2015-05-141-5/+1
|\
| * Various lint error fixes.Sunny Goyal2015-05-141-5/+1
| | | | | | | | | | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* | Limiting number of predictions on phones.Winson Chung2015-05-141-1/+1
|/
* Fixing issue with touch scrolling the prediction bar.Winson Chung2015-05-131-1/+1
| | | | Change-Id: Ie15ca96e5ea33a54508285aa76fb6aea81b2376d
* Pulling out predictions into another row view.Winson Chung2015-05-131-4/+8
| | | Change-Id: Iba0d74457a1314cf0c00a88f9b07df049334e542
* Tweaking section processing for different languagesWinson Chung2015-05-121-7/+0
| | | | | | | | | | - Ensuring that apps with non-letter/digit characters are ordered last in the misc bucket - Removing duplicate latin-alphabet sections for Simplified Chinese - Adding more appropriate misc bucket label for Japanese Bug 21022854 Change-Id: I62c7b219820ef88787fcfa83f1bd4202f16f9c0c
* Merge "Updating folder grid sizes for various devices" into ub-launcher3-burnabySunny Goyal2015-05-111-6/+16
|\
| * Updating folder grid sizes for various devicesSunny Goyal2015-05-111-6/+16
| | | | | | | | Change-Id: Ifd5930a4d6f54428500c0ef61ef21c0fc6a6f5cd
* | Ensure that clipping widget size is 20~40% of its width on every devicesHyunyoung Song2015-05-111-3/+2
|/ | | | | | | b/20338324 b/20763871 Change-Id: I69114cb6dfec95c473313a440a6db76a052e5601
* Explorations in dense grids for all apps.Winson Chung2015-05-061-0/+7
| | | | | | | | | | | - Adds sticky section headers - Removing AppsListAdapter - Adding search bar field - Subtitle filtering Bug: 20222023 Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
* Merge "Making QSB alingment match with that of recents" into ↵Sunny Goyal2015-04-271-5/+9
|\ | | | | | | ub-launcher3-burnaby
| * Making QSB alingment match with that of recentsSunny Goyal2015-04-231-5/+9
| | | | | | | | Change-Id: I6be59c721cbd163641013ca6c5e1776cf2162a0d
* | Removing some unused method params from CellLayoutSunny Goyal2015-04-241-2/+1
|/ | | | | | | > Replacing various distance calculations with Math.hypot > Moving findVacantCell to Utilities Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
* Focus handling - RTL supportHyunyoung Song2015-04-131-1/+1
| | | | | | | | | | | - Support LEFT and RIGHT keys to work across workspaces when in RTL mode. - Folder icons navigate correctly on DPAD_LEFT/RIGHT events - Folder navigation across pages also works correctly - Deleted dead code inside FocusHelper b/20120358 Change-Id: I7f851cb7ed31f666a91b2f856458d7966ea5f712
* Initial changes to support a fixed all-apps layout.Winson Chung2015-04-091-4/+12
| | | | | | | | | | - Dynamically update padding and background depending on fixed bounds and searchbar - Fixes issue with drag layer bg getting clobbered when rotating launcher - Tapping outside the bounds of all apps should close all apps - Fixing typo causing widgets to not show in sw720dp devices Bug: 20127840 Change-Id: I29c3f905bdee940f938ffe054f58434887073092
* WidgetTray revamp workHyunyoung Song2015-04-081-60/+2
| | | | | | | | | | | | | | | | | | | | | | | - RecyclerView is rendering - Animation is connected - Drag and drop is now handled - UI tweaking: background, margins, more to come. - Flicker and preview not loading issue: fixed height for the horizontal scroll view. - Shortcuts are added - Widget Preview loading should support shortPress for drop - UI tweaks left: overlay of arrow when there are more items to scroll - icons are added in the section header - Sorting of widget sections and widget horizontal list - Adding all the padding constants to dimen.xml file - RecyclerView should only support one view type For items to be addressed in follow up patches OR CLs, TODO is added to the comment. b/19897708 Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
* Merge "Temporarily tweaking the all apps layout to fit the screen on ↵Winson Chung2015-04-081-1/+1
|\ | | | | | | tablets." into ub-launcher3-burnaby
| * Temporarily tweaking the all apps layout to fit the screen on tablets.Winson Chung2015-04-081-1/+1
| | | | | | | | Change-Id: I2f8fe8e39a39cd6a055f22696881c51be7624832
* | Merge "Revert "Setting hotseat padding to the container for symmetry"" into ↵Sunny Goyal2015-04-071-1/+2
|\ \ | |/ |/| | | ub-launcher3-burnaby
| * Revert "Setting hotseat padding to the container for symmetry"Sunny Goyal2015-04-061-1/+2
| | | | | | | | | | | | | | This reverts commit d81992b6e70e05a3c208e02d019e606b7cb8a0b7. Bug:20087585 Change-Id: I4949ec9e0e27afa218597b943001e7240cfdc548
* | Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* | key event focus logic should support large tabletsHyunyoung Song2015-03-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | TL;DR;; On smaller tablets, landscape = vertical hotseat bar, and portrait = horizontal hotseat bar. However, in larger tablets, hotseat bar is always horizontal. This is now correctly handled using DeviceProfile.isVerticalBar method. b/19732584 Change-Id: I1035c89b4685be12dbc863f8a1465047a5fec6a6
* | Adding app grid layout with fastscroller.Winson Chung2015-03-121-11/+17
| | | | | | | | | | | | - Adding filtering and using alphabetic index for app grouping. Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
* | Initial changes to break out AllApps into its own view.Winson Chung2015-03-101-0/+2
|/ | | | | | | | - Moves launcher state-transition code into its own class - Moves all-apps related code into a separate view/set of classes - Implements a basic list view for all apps Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
* Setting hotseat padding to the container for symmetrySunny Goyal2015-03-051-2/+1
| | | | Change-Id: I953aa4e8d729db88dae29f51af28c6cf01891bd6
* Removed disableAllApps flagSunny Goyal2015-02-261-1/+1
| | | | Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-7/+18
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Using the default search widget in Launcher3Sunny Goyal2014-11-111-31/+4
| | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* Adding some spacing between overview panel itemsSunny Goyal2014-11-071-7/+31
| | | | | Bug: 18293488 Change-Id: I8731c4d2ad34571a4a3a21b03a5fbae0ba66332f
* Adding ability to list folder items in separate fileAdam Cohen2014-10-171-6/+1
| | | | | | | -> remove all apps default layouts Bug 17569015 Change-Id: I39b899b61d5b1cff2d7801d281dacfc804c403c5
* Add ability for Partner customization apk to override certain DeviceProfile ↵Adam Cohen2014-09-041-7/+49
| | | | | | | | | | | params -> Workspace row / col counts -> All apps row / col counts -> Workspace icon size issue 17208277 Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
* Further refinement of all apps / widgets transitionAdam Cohen2014-08-131-0/+13
| | | | Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab