92 Commits

Author SHA1 Message Date
MrSluffy
77e0a795b5 Fix 2024-09-15 08:50:28 +08:00
MrSluffy
eeb7416bfe Merge branch 'android15-release' into merge-aosp15 2024-09-14 17:29:57 +08:00
Vadim Tryshev
c63c0f7f47 Reformatting a comment.
"b/197780098" can be mistaken for an indication that the code is
temporary and requires cleanup.

This is not the case here, so reformatting the code so that the query
searching for cleanup candidates doesn't see it.

Bug: 197780098
Test: presubmit
Flag: N/A
Change-Id: I076267dc8878763632b52d3449cb20cac331ed04
2024-05-10 12:27:39 -07:00
Sunny Goyal
29586169aa Using applicationId instead of packageName for xml substitution for increased compatibility
Bug: 335280439
Test: Presubmit
Flag: None
Change-Id: Ic0932224b964bfb57571adfc27ffdfd1ab716b45
2024-04-17 23:24:17 -07:00
Sebastian Franco
9ae403298d Updating launcher settings so that they become split-screen
Following this guide:
https://developer.android.com/guide/topics/large-screens/activity-embedding#extract_an_activity_from_a_split_to_full_window

Bug: 204463748
Test: Open the settings app and open multiple settings, for now
only the options inside of the launcher3 package work
Flag: ACONFIG com.android.launcher3.Flags.enableTwoPaneLauncherSettings DEVELOPMENT

Change-Id: Ie6a9eb3760171da92d94cf06376127b02afff8df
2024-01-19 22:33:20 +00:00
MrSluffy
32700b0100 Merge branch 'android14-release' into 14-dev 2023-12-13 18:47:55 +08:00
MrSluffy
19bf26dd5a Merge branch 'aosp-13' into 13-wip 2023-10-21 09:52:01 +08:00
Sunny Goyal
79085dafd4 Fixing main process initialization code
Content Provider is no longer the 1st entry point for an app.
Moving it to a custom application class instead

Bug: 301442482
Test: Verified that the startup code gets called
Flag: N/A
Change-Id: Ibedcc7bfb0294acd9252e1d6a2a1294df32524e9
2023-10-18 11:53:29 -07:00
Pinyao Ting
6f7a11861f Revert "Grant Launcher permission to access AppSearch"
This reverts commit 0bae1f55e3.

Reason for revert: no product dependencies and it's causing problems in automation tests

Bug: 263504888
Change-Id: I831e563c41a368d981af3a05063bf3a868c24b79
2023-05-16 23:01:29 +00:00
Brandon Dayauon
e8daa3052f Merge "Implement diff haptics going into all apps" into tm-qpr-dev am: f4437f742e am: 004104d3a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20342908

Change-Id: I0fa8362a286e7676af65cdcc69785331f1e5d2f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 02:04:23 +00:00
Brandon Dayauon
12c193e6c5 Implement diff haptics going into all apps
Notes:
* the reason why 0.6 -> 1 never happened was because of AllAppsSwipeController where
it had a clampToProgress. By changing lowerbound to 0 the progress actually shows fully 0->1

- composed the haptics in the constructor
- added new listener class in AATransitionController

Added featureflag

bug: 233751149
test: Manually - presubmit, ran “make -j7 Launcher3” from master branch  photo: https://screenshot.googleplex.com/8r5FZh6buzkQMjk
Change-Id: I5e1a24170fdbfdd35b8d8f24af0ec5e8586641a2
2023-02-07 11:36:42 -08:00
Goooler
2e3eae286a Mark the root project's namespace as com.android.launcher3 (#3242) 2023-01-12 21:15:13 +08:00
Vishnu Nair
7b3eb35e8e Launcher: Add WAKEUP_SURFACE_FLINGER permission
Allow launcher to use eEarlyWakeupStart & eEarlyWakeupEnd
flags to hint SF to wake up earlier for expensive
composition.

Test: presubmit
Fixes: 261103978

Change-Id: I44ce200a8c8f0dddc597082f0a1b6053c974dece
2022-12-01 17:21:18 -08:00
Pinyao Ting
0bae1f55e3 Grant Launcher permission to access AppSearch
This CL grants aosp launcher the permission to access appsearch to fetch
data that are explicitly made visible to the app that uses the HOME
role. One concrete example are shortcuts, with this CL aosp launchers
will now have the permission to query shortcuts directly from appsearch.

Bug: 254383738
Test: manual
Change-Id: I1a2260c7bde0d52fedff38ae56572101d51abdef
2022-10-31 10:51:31 -07:00
Zilberto Junior
657bcd37c5 Add permission ACCESS_RESTRICTED_SETTINGS
This will allow modify restricted settings on Android 13
2022-10-17 15:01:46 +03:30
Yasan Ghaffarian
74731de6f1 Add samanzamani/PersianDate dependency
Co-authored-by: Daria Hamrah Paytakht <info@dariarnd.ir>
2022-05-23 11:16:13 +04:30
Suphon Thanakornpakapong
11e1a2fdc8 Merge remote-tracking branch 'aosp/android12L-release' into 12.1-dev 2022-05-08 20:29:17 +07:00
Steve Elliott
43c2c6c05c add post_notification permission to manifest
so the package can send notifications on T+

Bug: 194833441
Change-Id: I9e93e64939c1bb8281519ad2a959165e74556ab2
2021-12-08 19:15:40 +00:00
Schneider Victor-tulias
e8b4ccddff Update Android manifests to allow using android studio with android 12
Bug: none
Test: Started launcher
Change-Id: Ib925cdfcf225b59492f9e69254728d97dd95346d
2021-11-17 12:07:17 -08:00
Suphon Thanakornpakapong
1f095eb8cc Merge remote-tracking branch 'aosp/master' into 12-dev 2021-10-17 20:51:49 +07:00
Patryk Michalik
5b4cac099b Address selected compiler warnings 2021-10-10 10:16:34 +02:00
Suphon Thanakornpakapong
cc2bd15873 Merge remote-tracking branch 'aosp/android12-release' into 12-dev 2021-10-05 14:13:08 +07:00
Alan Viverette
94b8f0f6e4 Disable eager initialization of Jetpack libraries
Bug: 197780098
Test: Launcher3 tests
Change-Id: I8f921ae26e873822ac2340ad78449cf1040af4cf
Merged-In: I8f921ae26e873822ac2340ad78449cf1040af4cf
(cherry picked from commit a88802ee92)
2021-09-09 14:41:03 -07:00
Becky Qiu
5c1d3389d5 Merge "[AA+ Search] Create the plugin interface for search suggest. Also removed the internet permission for Launcher3 and moved it to the plugin." into sc-v2-dev am: f128563d4b am: 46a12273fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15614506

Change-Id: I0b566a8ba163be76f3045cd495339f2d4a26fdb2
2021-08-27 17:21:46 +00:00
Alan Viverette
a88802ee92 Disable eager initialization of Jetpack libraries
Bug: 197780098
Test: Launcher3 tests
Change-Id: I8f921ae26e873822ac2340ad78449cf1040af4cf
2021-08-26 03:12:07 +00:00
Becky Qiu
f5eea6c1ac [AA+ Search] Create the plugin interface for search suggest.
Also removed the internet permission for Launcher3 and moved it to the plugin.

Bug: 196586652
Test: tested with plugin

Change-Id: Id36e037d7520e29c1989adf9c451488d7e9c96e1
2021-08-25 16:09:13 -07:00
Suphon Thanakornpakapong
40804560bb Remove GMS license activity 2021-06-20 22:43:42 +07:00
Brian Isganitis
93031bc2ae Revert "Revert "Update preferences to Material Next styling""
There should be enough free space to merge this change into S V2.

This reverts commit 19d623d921.

Test: Settings root, all apps, and about have new style on S
Bug: 187732263
Fix: 188254205, 188012913
Change-Id: I346bbf819f3fe1eb13b47125b53c15baab11e439
2021-06-11 16:04:35 -04:00
Weilun Du
19d623d921 Revert "Update preferences to Material Next styling"
Revert "Add dependency for settings activity collapsing toolbar"

Revert submission 14740617-collapse3

Reason for revert: Build breakage
Reverted Changes:
I5ef658979:Add dependency for settings activity collapsing to...
I0ca55eecb:Update preferences to Material Next styling

Bug: 189919452
Change-Id: I4aa0bfc473334266a951d84064b4e8e406fff0a4
2021-06-02 22:04:44 +00:00
Brian Isganitis
9b8ab05a17 Update preferences to Material Next styling
Styles are forked from SettingsLib to avoid using any private APIs.

Test: Settings root, all apps, and about have new style on S
Bug: 187732263
Fix: 188254205, 188012913
Change-Id: I0ca55eecbc82cfa5d0b8707beb4bb7c82b2aa2b1
2021-06-01 19:44:19 -04:00
Suphon Thanakornpakapong
cf034519b9 Fix incorrect theme in OssLicensesActivity 2021-05-18 13:56:43 +07:00
Alina Zaidi
d80cec62b4 Modify pin widget dialog open-close animation.
Pin widget sheet should open from bottom up and close on drag down.
Behaviour with navigation bar is similar to that of widgets bottom sheet.

Add a drag layer and reuse AbstractSlideInView for open-close
animation.

Test: Tested manually- opening, closing through dragging/ cancel button/
back button. Adding widget to screen by dragging/ add to home screen
button.
Bug: 186124244

Change-Id: I4b77d5bdd4ed1689b651847dfed69d19cafa7456
2021-05-14 17:59:50 +01:00
Suphon Thanakornpakapong
fdca92509a Theme the acknowledgements activity 2021-05-03 20:28:31 +07:00
Sunny Goyal
4ed0fb5074 Removing dependency on wallpaper colors and using theme resources
Bug: 184676715
Test: Manual
Change-Id: Ie9a9a784c4a8a8cd484bfd8ea463deedcd4deed6
2021-04-27 16:29:08 -07:00
Patryk Michalik
aab6b80fa0 Relicense to and fix compliance with Apache 2.0
[skip ci]
2021-04-24 09:48:35 +02:00
Patryk Michalik
86a575c568 Refine Settings, continue work on About page 2021-03-24 12:08:35 +01:00
Kshitij Gupta
40c324cda4 Lawnchair: Swipe down on Workspace to expand statusbar 2021-03-24 04:03:06 +05:30
Alina Zaidi
6d97d893e0 Update Pin widget dialog UI according to mocks.
Test: Tested manually and RequestPinItemTest passed
Bug: 182982143
Bug: 182994819
Bug: 182929673
Change-Id: I905ea0c1860d28ee9fbb456ddf6abd728b65bac4
2021-03-23 13:36:48 +00:00
Patryk Michalik
4b1884816c Add open-source notices 2021-03-22 19:05:52 +01:00
Patryk Michalik
d48acc70e0 Open Lawnchair settings when ‘Home settings’ is tapped 2021-02-28 19:46:54 +01:00
Tracy Zhou
0455d146a1 Fix missing grid for devices that upgrade from R
Fixes: 178435615
Test: TODO
Change-Id: I9894b88485daf5b641b4674a5abff05e0f53138b
2021-01-27 22:18:13 +00:00
Hongwei Wang
f4b60d5f9c Add ROTATE_SURFACE_FLINGER permission to Launcher
This permission is requried for arbitrary rotation (other than 90
degreee) on a Surface. Which is useful for Launcher to rotate the app
leash when animating from fullscreen landscape to PiP window onto home
in portrait mode.

Bug: 171802909
Test: m -j
Change-Id: I09e3b2915c17154ef3c91aff888a391dc337a18a
2020-12-04 16:40:13 -08:00
Samuel Fufa
314761a808 Setup SearchResultIcon for single cell results
SearchResultIcon will be able to render apps, shortcuts and remote actions. It can also handle its own focused state drawing.

Screenshot: https://screenshot.googleplex.com/C3KgjJtLQTBPgaf

Bug: 170752716
Test: Manual
Change-Id: I460a9c128ea3f5814784e342c5d5fa5b7e310882
2020-10-15 14:32:19 -07:00
Sunny Goyal
eaf7a95546 Changing minimum supported Launcher version to 26
Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da
2020-07-29 17:30:19 -07:00
Hyunyoung Song
0a4a4d920e Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"
Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert submission 12190253-merge_ub-launcher3-rvc-qpr-dev_6690853

Reason for revert: Build ID picked from ub-launcher3-master and not ub-launcher3-rvc-qpr-dev

Reverted Changes:
I9e658ece0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
I2a47fe180:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ie86b0a2e0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Id3ca76da6:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ib6a63da0f:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Bug: 162366734


Change-Id: Ie81853a34c9a48d5b3fd922c65483a9ff639e0ce
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-28 23:43:43 +00:00
Vinit Nayak
b0fd136084 Remove WRITE_SECURE_SETTINGS permission used for rotation flag
Fixes: 150802536
Change-Id: Iaa2fd079a43696e24bf6702dd974446fa39eceeb
2020-07-06 18:34:20 +00:00
Ashwini Oruganti
aa902e859b Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Bug: 158198882
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I083a7bcab968c881f7cdff7152a249691ffac316
2020-06-23 13:58:18 -07:00
Tracy Zhou
9dd8f411e5 Remove grid options pref key
Fixes: 154154093
Test: manual testing of the feature
Change-Id: I48fa2788c163ebfe4b925e05d1526c0c1f3e3926
2020-04-28 15:33:30 -07:00
Hyunyoung Song
25a78400d5 Delete AndroidManifest meta-data for dump_provider
Bug: 144953948

Change-Id: I3c625eae7e4b20a34c9e471d55a339442a6b36b8
2020-03-30 11:16:59 -07:00
Vinit Nayak
b9ec9319c5 Add fixed_rotation_transform to home settings
This sets the feature flag on launcher side
and also updates the setting in Settings.Global
Launcher DOES NOT listen to the Settings.Global
change from adb anymore. This should take
preference over setting it from command line.

Also fix a related swipe to home animation bug
that happened w/ merge conflict.

Fixes: 150260456
Test: Set and unset, visually verified behavior.
Tested w/ autorotate on and off.
Checked Settings.Global value correctly updated
via "adb shell settings get global
fixed_rotation_transform"
TODO: Update tests to reflect this new
default-on fixed rotation behavior.

Change-Id: Id95f006eb1e92a59e24b05567298fd21b1409b13
2020-03-11 19:38:33 -07:00