Commit Graph

119 Commits

Author SHA1 Message Date
Peter Kalauskas 0842cf5f9d Remove Launcher3GoIconRecents
Bug: 144129431
Test: Build and check that Launcher3QuickStepGo is used instead
Change-Id: Ib2a30c9e1e78de7792f34c3505372c8af1cb307d
2019-12-11 12:18:52 -08:00
Jeongik Cha 6af66b01c7 Move the app to /system_ext
As mentioned in go/partitions-in-r, we plan to forbid hidden API in
product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Change-Id: Ida940a2e1bb832cf5c3d147297e7ed65fa6921d5
2019-12-05 11:18:52 +00:00
Sunny Goyal 210e174c9c Subclassing Launcher instead of using UiFactory
Allows us to override only the required methods, instead of providing
a proxy method for everything

Change-Id: I816dcdb2a8d5432496050118ded0f2bbe7122cf7
2019-10-21 11:10:21 -07:00
Sunny Goyal cd0acdb9ad Including wrapper code in Launcher builds
Change-Id: Id34cb77ffd29f68e4f286d83840989ca0d96b9d7
2019-09-26 00:26:03 -07:00
Sunny Goyal 3e3d759db2 Removing flag overrides. All flags should be defined as togglable flags instead.
Change-Id: Ia7b9ff84413096cd5b0c4a9a81a232019f2522d2
2019-09-12 10:17:14 -07:00
Hyunyoung Song a68fba3abf Build rule cleanup
Bug: 122333437
Change-Id: Iabb6dcc4e6615112fdf730f41fe39d34fdac8737
2019-08-08 02:02:20 -07:00
Greg Kaiser 6aabe679c5 Android.mk: Strictly order QuickStepGo and GoIconRecents
We had Launcher3QuickStepGo adding Launcher3GoIconRecents to
LOCAL_OVERRIDES_PACKAGES, and also had Launcher3GoIconRecents
adding Launcher3QuickStepGo to LOCAL_OVERRIDES_PACKAGES.  As
a result, if both of these got added to PROJECT_PACKAGES, we
would end up with neither launcher, since they both overrode
each other.

To fix this, we declare a strict hierarchy.  Since
Launcher3GoIconRecents is the default, we put Launcher3QuickStepGo
to be higher in the hierarchy.  While that might seem a
counter-intuitive choice, it makes it much easier for folks
to override the default, without needing to modify the file
containing the default.

Test: Various clean builds which revealed this root issue, and this fix.
Bug: 135161289
Change-Id: If718a7030aa6ee4b6b952406006abda77b1eb8e5
2019-06-18 17:36:53 +00:00
Tim Joines 31d569e324 Launcher3GoIconRecents should override Launcher3Go
The default recommended launcher should be Launcher3GoIconRecents for
low_ram devices.

Bug: 131434765
Test: manual, check out dir
2019-04-29 10:32:49 -07:00
Rajeev Kumar 30e5ce7cba Move Launcher3GoIconRecents to /product partition and update local override package.
This move resolves privapp-permissions whitelist issue and multiple Launcher3 apks on the device.  

Bug: 131102753
Test: Built, flashed crosshatch_svelte-eng target on a Pixel 3 device and the device boots successfully. 
Change-Id: Iee0e12737cd26acddf8d1d3e057a613febb3d7e0
2019-04-23 19:35:50 +00:00
Hyunyoung Song 3f8544af9a Move PlubinLib to prebuilts/frameworks_intermediates
Bug: 129423457
Change-Id: I7ed06609efa33ae98ffcd6f937a76a6b772c3fc1
2019-04-03 23:07:13 -07:00
Hyunyoung Song cbf82cc062 Reconcile difference between master and ub-launcher3-master
b/129423457

Change-Id: I63e2a1a6b40ced849e852f1b7bffa4e9fa177f18
2019-03-27 22:02:35 +00:00
Hyunyoung Song 40bea55b75 Move plugin_core.jar back to Launcher3 to unblock code merge
Change-Id: Ic9d6ab16ac7a8c5c1f528bdcac06e56f718a3f91
2019-03-22 14:45:56 -07:00
Hyunyoung Song 896a715a1c Reconcile difference btw master and ub-launcher3-master
Change-Id: I33dcd6a062b754edbe2da9c7fcf2a8ccfb41b661
2019-03-21 14:06:02 -07:00
Hyunyoung Song 319b5a6ace Remove f/b based jars out of the Android.mk
Benefit! we would not get merge conflict when one of these jars update
and we need to do code merge.

Change-Id: Ia6a4a632474a7b19aaede1d20d1373902da1400c
2019-03-14 13:44:14 -07:00
Kevin dd50f6a7dc Fix build break for Launcher3GoIconRecents
The make rule for recents Go was called Launcher3QuickStepGoIconRecents
in the make file while the one in the presubmit build rule is called
Launcher3GoIconRecents.  I opted to change the one in the make file
since the one in presubmit is shorter.

Test: Builds
Change-Id: I740534707206d79d364312bfaf3a623a3c429f52
2019-02-26 17:08:49 -08:00
Anton Hansson 3e75460459 Require privapp grants for all launcher3 apps
The privapp permission grant file for launcher3 was previously only
installed for Launcher3QuickStep, which is the default launcher app
in the AOSP product config.

Make other apps use it too for products that override
Launcher3QuickStep (or use one of the other variants).

Bug: 123300025
Test: build/boot product with Launcher3QuickStepGo
Change-Id: I295ed7f1d65d1e6b4ba6364b2468182353340bbb
2019-02-06 16:51:30 +00:00
Hyunyoung Song 6163624666 Change the location of Launcher apks from /system to /product
Bug: 123777579
Change-Id: If0ee9099aec223394d60ad4dbcd2c6f80f33067b
2019-02-01 17:43:40 -08:00
Chilun ed0a112fdb Add SecondaryDisplayLauncherLib in Launcher3QuickStep
Add the secondary launcher activity in Launcher3QuickStep to support
secondary display.

Bug: 118206886
Test: Manual test on cf_x86_phone-userdebug
Change-Id: I4787f92fe32bb89f5f4c4fc3f93a4d3f27d5d2e6
2019-01-08 14:31:56 +08:00
Kevin 2857871b7f Add build variant for go-specific recents.
This CL sets up the source directories to build a Go version of
quickstep recents/icon recents. This is accomplished by splitting the
quickstep resources/sources into two groups: the base source and
sources that should be overridden (recents_ui_overrides). The new Go
recents variant then takes the base and combines it with the sources
in go/quickstep which should replace the ones in recents_ui_overrides.

As of now, no classes have been moved yet, so there
are only placeholder files.

In addition, this modifies the make and gradle files to reflect the new
sources.

Bug: 114136250
Test: build all targets via tapas, build all APKs from IDE
Change-Id: I6d0a4d93ab1c38d4ffc28fd21823caadd96d23f7
2019-01-07 14:37:02 -08:00
Chilun 3516bd89d9 Add a secondary launcher activity (1/2)
This secondary launcher activity with new category SECONDARY_HOME and
multiple instance supporrted could be used on sencondary display.

Bug: 118206886
Bug: 114329798
Test: Manual
Change-Id: Ibaecf8ef7614389760d0fcc547ef6d378a921583
2018-12-13 09:21:47 +00:00
Sunny Goyal 4276e7b649 Moving autority definition to a separate file, so
that it can be easily customized using android studio

Change-Id: I17f4f4511c2af5d382727769d1b74413f233d500
Bug: 120079798
2018-11-27 23:20:32 +00:00
Sunny Goyal 202fabfe10 Adding reusable version of IconCache and IconFactory
> Adding resource based allowing projects to control cache behavior
> Fixing missing comments from ag/5470467
> Adding support for no-immemory cache

Bug: 115891474
Change-Id: I691206805430cd93d3be78119bc249cefd79790a
2018-11-09 15:44:07 -08:00
TreeHugger Robot 8ac8d73530 Merge "Split out launcherProtos from sysui_shared.jar" into ub-launcher3-master 2018-11-06 01:14:56 +00:00
Hyunyoung Song 0ae3888ad1 Split out launcherProtos from sysui_shared.jar
Bug: 113043444
Change-Id: I3115cdc7871b0f77601e399df01cdde0dde87c6e
2018-11-05 17:01:54 -08:00
Hyunyoung Song 719eee2be2 Create iconloader library
Bug: 115891474
Test: Builds everything

Change-Id: I1d75702d4e5a10d694eeb839784a629de2f74dd2
2018-11-02 14:18:45 -07:00
Rajeev Kumar 51ca603ac4 Create a deep shortcuts override.
This change disables deep shortcuts on Android Go devices.
Bug: 112904271
Test: Manual test

Change-Id: I6150a3500f67d8a8412b51796cc442e3384c2cbb
2018-10-31 13:52:38 -07:00
Rajeev Kumar c00a259701 Rename go/src_flags directory as go/src
This CL is preparation work to implement Modular shortcuts component in launcher using  java/code swap.

Bug: 112904271
Test: Manual test
Change-Id: I35cf81e95fe487a384d4e9f17ea303093197318f
2018-10-30 17:16:25 -07:00
TreeHugger Robot a934b2bbca Merge "Using support lib implementation for launcher preference" into ub-launcher3-master 2018-10-19 20:36:31 +00:00
Sunny Goyal b2498b2790 Using support lib implementation for launcher preference
Bug: 117519297
Change-Id: Icea5e022a337436e48db9376fd441f805dc34e54
2018-10-19 18:09:40 +00:00
Tony Wickham 5c5c118c48 Add AllAppsRow plugin interface
Bug: 115877296
Change-Id: I750941f220d08ca9ee14067253253f6d81417101
2018-10-16 17:22:09 -07:00
Tony Wickham 76cce29d66 Add plugin support
- Add libs/plugin_core.jar
- Include plugin_core in Launcher3 build (it is already present other
  builds as part of the updated shared lib)
- Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin
  components
- Add src_plugins, where plugin interfaces will live. It has a build
  rule to create a jar that plugin projects will depend on.
- Copy PluginPreferencesFragment from sysui but using our implementation
  for PluginEnabler

Bug: 115877296
Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
2018-10-10 14:02:56 -07:00
Sunny Goyal 4548a7d48d Disabling proguard on Launcher3 as it is a test target
Bug: 117527405
Change-Id: I4d32cf060eebaa0d8efe4f0a3a5c924eadcffa4a
2018-10-10 10:03:02 -07:00
Hyunyoung Song f120e0a626 Link SystemUISharedLib from source if it exists
Bug: 113683301

Test: mmma -j31 packages/apps/Launcher3
Change-Id: I93671a788a322b474fd5bd4750e188faad958060
2018-08-31 13:57:30 -07:00
Hyunyoung Song 74176d6ba7 Link SysUISharedLib from source if it exists
Bug: 113128349

Test: mmma -j31 packages/apps/Launcher3
Change-Id: I4bee3d59df403db46ed848d839b09c3df4ec874b
2018-08-31 10:48:46 -07:00
Sunny Goyal d230307a95 Migrating to android-x
Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
2018-08-14 15:22:12 -07:00
Rajeev Kumar dedecd8cf3 Specify proguard.flags file explicitly in the Launcher3QuickStepGo make rule
This change makes sure that following build command doesn't error out:
tapas Launcher3QuickStepGo
make -j45

Bug: 112274857
Test: Built source with tapas Launcher3QuickStepGo and it built successfully.
Change-Id: Icd788e4e119efd386bec6646627c2d9dd485af60
2018-08-06 21:37:53 +00:00
Rajeev Kumar 02c33da4d2 Enable code shrinking (dead code removal) on Launcher3QuickStepGo app
Bug: 112042795
Test: Manual testing

I found following effect of shrinking on the apk:

Launcher3QuickStepGo.apk            4925099 bytes
Launcher3QuickStepGo_Proguard.apk   2619051 bytes

We get total saving of 2306048 bytes in apk size.

Change-Id: I75abedc05e5d04967928e73f02bcc78608f52ac0
2018-08-03 13:33:18 -07:00
Tim Joines 56ded9c4ea Allow Launcher3Go to override Launcher3QuickStep
Go devices will not want QS.

Bug: 77490347, 110425849, 109932837
Test: Manual, Launcher is no longer crashing
Change-Id: I1a1e0540beeab04927802156be26098139710f30
2018-06-21 06:21:00 +00:00
Sunny Goyal 9fc97976e0 Creating some common launcher targets
Bug: 110336301
Change-Id: I4de635c9a2acd9dee0a8cd2396d6cfa23eefb2db
2018-06-18 01:12:55 -07:00
Sunny Goyal c551927ce0 Adding Launcher3QuickstepGo target
Bug: 77490347
Change-Id: Ie280619921027759abfc2be3b002a05291f74816
2018-05-24 18:44:45 -07:00
TreeHugger Robot 00b8ac8371 Merge "Revert "Re-enabling Widgets in Launcher3Go"" into ub-launcher3-master 2018-04-05 18:31:54 +00:00
Rajeev Kumar ff8699e411 Revert "Re-enabling Widgets in Launcher3Go"
This reverts commit 2eb7f0a34b.

Bug: 74039047
Test: Manual tests
Change-Id: Ifa38f7b1b805d781fbfc63cd71b01609f0a85d9e
2018-04-05 18:25:54 +00:00
Jiyong Park 1bb730c5e9 Fix link-type check warning on libSharedSystemUI
There has been a link-type check warning on libSharedSystemUI
the prebuilt lib is built without SDK but the app using it
(Launcher3QuickStep) is built with SDK. Since this effectively prevents
the app from being unbundled, such warning will turn into errors soon.

However, the lib isn't ready to be built with SDK yet. So, in order to
suppress the link-type check warning until then, the prebuilt lib is
added with LOCAL_SDK_VERSION := current.

Bug: 69899800
Bug: 73327733
Test: m -j Launcher3QuickStep is successful and does not show any
link-type check warning

Change-Id: Ifd74bfee8c608e099737bd46569b05f007c1e86b
2018-02-23 18:03:17 +00:00
Rajeev Kumar 2eb7f0a34b Re-enabling Widgets in Launcher3Go
Bug: 72876955
Test: Tested manually
Change-Id: I19e8696cf41cc00832b571e778bbc4c4774fa112
2018-02-05 13:57:24 -08:00
Sunny Goyal a783400823 Fixing quickstep build
Change-Id: I1db1ce636c52cb02dd248dd843de8c886ad34604
2017-11-07 16:43:24 -08:00
Sunny Goyal 85525173ce Rearranging the code structure to allow replacing state logic.
Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
2017-11-06 14:57:50 -08:00
Sunny Goyal 73133391e5 Adding a placeholder recents activity
Change-Id: Idde86b4008559cde8bcf13fba90a8c72c3f1f591
2017-11-02 11:23:31 -07:00
Sunny Goyal 9d341964a0 Setting up build rules and placeholder code for QuickStep
Change-Id: Ib4ad5c6082b293fc9f9455d70e2b21462b4ab76d
2017-10-30 10:04:24 -07:00
Sunny Goyal f2dd4216c1 Removing extraction service and palette api dependency
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Sunny Goyal 64a75aa305 Adding A feature flag to disable widgets and a corresponding build
target Launcher3Go without widgets support

Bug: 62353159
Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
2017-07-21 14:10:13 -07:00