summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AutoInstallsLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-091-22/+19
| | | | | | | | | AutoInstallsLayout, DefaultLayoutParser, ImportDataTask classes. Change-Id: Idcf1f5f020132ddf43751067a38a64bfc088800e Bug: 62466540 (cherry picked from commit 26453a297b622011258dc6b32403ba6586f00996)
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+1
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Removing some unnecessary stacktraces from the logSunny Goyal2017-03-271-2/+2
| | | | | Bug: 36604650 Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-2/+2
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Adding a utility class to enforce that icons are always flattened onSunny Goyal2016-11-191-2/+2
| | | | | | | the background thread. Bug: 21325319 Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
* Moving some image handling classes to .graphics packageSunny Goyal2016-09-021-1/+2
| | | | Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
* Adding support for pending widgets in AutoInstall layoutSunny Goyal2016-08-161-47/+25
| | | | | | | | | | | | | | > Pending widgets whill show a loading progress while the app is being installed. > Extra bind options can be defined using the tub tags <extra key="key-name" value="key-value" /> These are sent as widget options when the widget is bound. > If the widget has any config activity, it is not shown > Required attributes: className, packageName, x, y, spanY, spanY & screen Bug: 30279609 Change-Id: I1338618bfa5d86967339dffb68c12b1add6eb5d7
* Adding a flag (enabled by default) to remove the all-apps button.Sunny Goyal2016-06-171-6/+7
| | | | | | | All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
* Removing icon_type columnSunny Goyal2016-05-111-1/+0
| | | | | | | | | Icon type is not used consistently. It is used initially during the loader. Afterwards, we save both the icon and resource to the db. Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available, always write the bitmap to DB whenever the shortcut is edited. Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
* Removing LauncherProvider dependency in DatabaseHelerSunny Goyal2016-05-101-1/+1
| | | | | | This will allow DatabaseHeler to easily be moved to an independent class Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0
* Fixing syntax errorSunny Goyal2016-01-061-2/+2
| | | | Change-Id: I8fbcd34d891b1d020436e9aa430fd26372910a63
* Adding support for negative x and y in layout xml.Sunny Goyal2015-12-181-10/+26
| | | | | | | | | | | 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
* Always log if Package is missing while loading default workspaceAdam Cohen2015-08-061-2/+2
| | | | Change-Id: I7f2e5a9aabdf1fc192ad7912aaefa3f41c059ff1
* Adding item rank when parsing a folderSunny Goyal2015-07-061-0/+3
| | | | | Bug: 22059402 Change-Id: Ie57f2dd58d2b4bc2eb277f10e93a25d026d1cdd2
* Refactoring DeviceProfileAdam Cohen2015-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | -> 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
* Removing ContentObserver from LauncherModel, and calling reloadSunny Goyal2015-04-011-1/+1
| | | | | | whereever necessary Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
* Configuration of workspace through app restrictionsSunny Goyal2015-03-271-4/+34
| | | | | | > Checking for a grid specific layout before loading the default layout Change-Id: I1e8d4176341e61d0876b0a9bea9ad8010e3a0f6a
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-4/+5
| | | | | | | | | | | 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
* resolved conflicts for merge of b564efb0 to ub-launcher3-masterSunny Goyal2015-01-231-0/+15
|\ | | | | | | Change-Id: I4321522dd1b6b3f96e21232d113fad5144b630bc
| * Adding support for <include> tag in AutoInstall layoutSunny Goyal2015-01-231-0/+15
| | | | | | | | | | Bug: 19121893 Change-Id: I760fa76d6e63c1aa0152e8cd710aba0d6ef4462a
* | Replacing hotseat icon to an appropriate system appSunny Goyal2015-01-221-4/+10
|/ | | | | | | | | | | > During backupi, store the hotseat target app type, based on some predefined common system apps > During restore, save this app type in the restore flag, if it is a hotseat app > During first launcher load, if an app is not being restored, try to replace it with an appropriate replacement for that type, otherwise delete it. Bug: 18764649 Change-Id: Ic49e40bd707bd8d7de18bbab8b1e58a0a36426a2
* Refactoring layout parsing codeSunny Goyal2014-10-171-88/+157
| | | | Change-Id: Iee5b2280cb1e841bcfe91fdcf523de6fa7f7f3b8
* Source change to get code compiling on google3Sameer Padala2014-09-221-1/+1
| | | | Change-Id: Ib16df8dd9caa04903a664d8cf92767107fe57628
* Changing intent action for auto installsSunny Goyal2014-09-191-1/+1
| | | | | Bug: 17425805 Change-Id: I12e94860206ed62d6ba04f0b5734cc55ba414e45
* Handling label and icon from SessionInfo.Sunny Goyal2014-09-041-1/+1
| | | | | | | | | > The ShortcutInfo stores state as bit flags and not as ints > Intents of auto-install shortcut are automatically updated upon installation > Icons/titles for active sessions are cached in IconCache Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
* Autoinstalls loading xmlSunny Goyal2014-08-121-0/+564
> Launcher checkes for an apk in the system image with a broadcast receiver for action: com.android.launcher3.action.LAUNCHER_CUSTOMIZATION > Default layout is parsed from that apk, which can also contain icons and string resources used in the layout config Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445