Commit Graph

4763 Commits

Author SHA1 Message Date
Thu-Huong Vu
09846676b5 Merge "Register SimpleBroadcastReceiver permission." into main 2025-03-12 10:36:22 -07:00
Andy Wickham
ccb3a5c25c Adds all_apps_blur flag.
This enables blur both for Taskbar and Launcher, but in slightly
different ways.

For Taskbar All Apps, we apply blur to the overlay window, and
for Launcher All Apps, we utilize the existing DepthController to
blur the wallpaper window. For similicity, we currently fade out
workspace/hotseat to avoid awkward view + window blurs which
don't look that good. This is not the POR, but I think it achieves
most of the effect and will help us get some blur exposure.

Separately I will continue to investigate options such as blurring
workspace in a clever way so it feels blended with the wallpaper,
reusing the Taskbar window and connecting it to LauncherState, or
using a SurfaceView (though I spent quite some time trying this and
it seemed the same as the original issue).

In both cases, we use a 20-30% opacity scrim with a set color, and a
panel that blends 40% opacity of a dark/light color with 10% white.

Also updated some incorrect isTablet checks which really should have
been checking shouldShowAllAppsOnSheet(), which includes the
all_apps_sheet_for_handheld flag.

Demo: https://drive.google.com/file/d/1Ov9Dg3R9YHNfisfxNf97ZIhlDeEA1IWj/view?usp=sharing&resourcekey=0-l_SDpqpS4HtOb10a3b_jNg

Other upcoming improvements: interpolator tweaks, colors of things
inside the app panel (tabs, private space, search results, etc).

Bug: 400827727
Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: Ic7063cd822f39a5977715b5477f825bf11e57bdf
2025-03-11 23:34:03 +00:00
Treehugger Robot
ace69f7644 Merge "Making various model objects injectable" into main 2025-03-11 14:48:30 -07:00
Thu-Huong Vu
48dd9eee1c Register SimpleBroadcastReceiver permission.
Update SimpleBroadcastReceiver API to pass in broadcast permission and
register Growth Broadcast Receiver with permission to prevent other apps
from triggering Growth Nudge on their behalf.

Flag: EXEMPT add separately
Test: Manual
Bug: 397739323
Change-Id: I3a9d5e131ced752af0a1b35d400eed6d170fc81e
2025-03-10 23:29:33 +00:00
Sunny Goyal
42975c39db Making various model objects injectable
Bug: 361850561
Test: Updated tests
Flag: EXEMPT dagger
Change-Id: Ibb45b72c186e6aeeed7a37b0ae3f8083472019d7
2025-03-10 14:37:43 -07:00
Treehugger Robot
313d7e1ce3 Merge "Revert "Add screenrecord for uninstallWorkspaceIcon"" into main 2025-03-10 13:36:11 -07:00
Charlie Anderson
24645d732c Merge "Make sure profile badging matches shape" into main 2025-03-10 12:54:31 -07:00
Federico Baron
8dcf879c14 Revert "Add screenrecord for uninstallWorkspaceIcon"
This reverts commit 66999f0a19.

Reason for revert: no longer an issue

Change-Id: I55a045846825e6b62fac4a9ed59380620870e953
2025-03-10 11:26:15 -07:00
Charlie Anderson
567097eee8 Make sure profile badging matches shape
Bug: 398875512
Test: testing different shapes on work profile
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I5cb9e629f711f2fc607ca646d82a8523c0b43d1b
2025-03-07 21:31:11 +00:00
Sebastian Franco
aeb99f8d24 Moving zip rule to Multivalent to fix roboelectric test in A-studio
This fixes roboelectric test Running in Android Studio.

Bug: 390496167
Flag: TEST_ONLY
Test: all dumpTest
Test: Running roboelectric test in Android Studio
Change-Id: I903c6cea3c981a9c38cfcd05b54e4095b6fe2a8a
2025-03-07 11:56:45 -08:00
Federico Baron
c3ac9c1c16 Fix attempt 2 for testDragToFolder
The reason the test fails is that since the tap targets are smaller, the
drag is too fast and the hover over icon to create folder time doesn't
elapse

Bug: 383917141
Test: TaplDragTest#testDragToFolder
Flag: TEST_ONLY
Change-Id: I3ba2b621f92f94dc52eb2b7ee6cd459ab9abb894
2025-03-06 15:34:13 -08:00
Sebastián Franco
2bab5687b0 Merge "Enabling Fixed Landscape in Launcher3 tests" into main 2025-03-06 15:06:03 -08:00
Treehugger Robot
3a000d06fa Merge "Revert "Ignore the tests temporarily."" into main 2025-03-06 13:09:43 -08:00
Federico Baron
7610b9c17f Revert "Ignore the tests temporarily."
This reverts commit de0d4498c8.

Reason for revert: b/353505773 seems to have rolled out 

Change-Id: I3ddcdb1b2de2cfd07e12af284f1f784996f82623
2025-03-06 10:58:12 -08:00
Treehugger Robot
872ef49247 Merge "Add TaskContentView parent to TaskThumbnailViewHeader and TTV" into main 2025-03-06 03:37:25 -08:00
Sebastián Franco
c55194343a Merge "Add all the dumpt test results into a zip in artifacts" into main 2025-03-05 16:08:57 -08:00
Sunny Goyal
84e0e6a188 Making ActivityContext extend SavedStateRegistryOwner
Bug: 390572144
Test: Presubmit
Flag: EXEMPT refactor

Change-Id: I8272e95a8d2da95b3c93ec616fdf877b89db5b26
2025-03-05 09:22:47 -08:00
Treehugger Robot
57cab7794a Merge "Simplifying some view iteration methods" into main 2025-03-04 18:42:06 -08:00
Sebastian Franco
c9f6668ab1 Add all the dumpt test results into a zip in artifacts
Bug: 390496167
Flag: TEST_ONLY
Test: all dumpTest
Test: dump files should now be available in test artifacts
Change-Id: Ic77b75f7792bc511e364a6af697eb1282ad49ab3
2025-03-04 13:16:47 -08:00
Sebastian Franco
331fd2dac6 Enabling Fixed Landscape in Launcher3 tests
Bug: 398279312
Test: Any test using PortraitLandscapeRunner
Test: IntegrationFixedLandscape
Flag: com.android.launcher3.one_grid_specs
Change-Id: I5a1801374f39381e678e764f8e417cf0f8bf6ad7
2025-03-04 13:15:26 -08:00
Sunny Goyal
476d926972 Simplifying some view iteration methods
Bug: 393703968
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ieffa3a66fbf8595d542995c348df578a3aec9083
2025-03-04 10:39:55 -08:00
Sunny Goyal
372c483eda Merge "Moving widgetFilter to dagger" into main 2025-03-04 09:03:10 -08:00
Treehugger Robot
f42f516621 Merge "Remove unused spec in device_profiles.xml" into main 2025-03-03 17:24:20 -08:00
Treehugger Robot
19e93afd91 Merge "Test all apps -> workspace drag for taskbar on home" into main 2025-03-03 11:59:21 -08:00
David Saff
e7c9940df4 Merge "Rename to uiautomatorhelpers" into main 2025-03-03 10:48:03 -08:00
Federico Baron
d8f0bed596 Remove unused spec in device_profiles.xml
Bug: 395912263
Flag: com.android.launcher3.one_grid_specs
Test: n/a, code cleanup
Change-Id: Ifd1ecf905427902f895a1b4e16711874fd52ddf3
2025-03-03 18:35:10 +00:00
Sunny Goyal
5025b9ab04 Moving widgetFilter to dagger
Moving widget filtering to UI layer as it changes with surface

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I9d9377540ca36873659cea4ecc91fb162d82cd44
2025-03-03 10:27:14 -08:00
Treehugger Robot
c032512a82 Merge "Add screenrecord for uninstallWorkspaceIcon" into main 2025-02-28 17:19:37 -08:00
Treehugger Robot
dad3394772 Merge "Fix LauncherPrefs crash by allowing sub-types of Set" into main 2025-02-28 16:49:02 -08:00
Toni Barzic
a5c5536d7d Test all apps -> workspace drag for taskbar on home
Adds TAPL test that verifies users are able to drag app items from all
apps to workspace when all apps is opened on from a pinned taskbar shown
on the home screen, as may be the case when a desktop mode taskbar is
shown on home screen.

Adapts LauncherInstrumentation to handle the case where taskbar is shown
on home - when verifying launcher states, it sets taskbar visibility
expectations to account for a posibility that taskbar is visible in
home, or workspace states. Adds a request to the test protocol to
determine whether taskbar should be visible on home.

Bug: 392118517
Flag: com.android.window.flags.enter_desktop_by_default_on_freeform_displays
Test: Ran TaplTestLockedTaskbar tests
Change-Id: I40b06da70aaa49b0a3e0673797e6c18773a72238
2025-03-01 00:31:46 +00:00
Sihua Ma
2e964781ad Merge "Enable forced theme icon in Launcher3 tests" into main 2025-02-28 16:06:04 -08:00
Brian Isganitis
fbe72436c8 Merge "Remove TYPE_TASKBAR_OVERLAY_PROXY from TYPE_ACCESSIBLE." into main 2025-02-28 14:58:30 -08:00
Charlie Anderson
4e4ad89696 Fix LauncherPrefs crash by allowing sub-types of Set
Bug: 396616795
Test: LauncherPrefsTest
Flag: EXEMPT bugfix
Change-Id: Id380a6e4bb5eb809978070ff1b523c9e98e6b869
2025-02-28 21:57:43 +00:00
Federico Baron
66999f0a19 Add screenrecord for uninstallWorkspaceIcon
Bug: 399756302
Flag: EXEMPT TEST_ONLY
Test: TaplUninstallRemoveTest
Change-Id: I4bdf8087276a93f8f736c23ba95f35acb7f05c3a
2025-02-28 21:27:07 +00:00
Sam Cackett
e0cc96df62 Add TaskContentView parent to TaskThumbnailViewHeader and TTV
- Add TaskContentView parent view
- Extract TaskThumbnailViewHeader logic and any related state out of
TaskThumbnailView and move to TaskContentView
- Use vertical LinearLayoutManager to hold the TaskThumbnailViewHeader
and TaskThumbnailView
- Rename TaskThumbnailViewHeader to TaskHeaderView. Rename xml and state
 similarly

Bug: 397889146
Flag: EXEMPT. Refactor
Test: Refactoring CL. Existing unit tests still pass.

Change-Id: Ie31f35c6617aab272f984a6beb3e4cb8f58e3ce9
2025-02-28 12:19:26 +00:00
Brian Isganitis
8bab8eb171 Remove TYPE_TASKBAR_OVERLAY_PROXY from TYPE_ACCESSIBLE.
The invisible proxy view was preventing anything below it from being
accessible.

Flag: EXEMPT bugfix
Fix: 377526512
Test: #14 in bug.
Change-Id: I9d4596ebbbc4317a9ff7ded37b43b5fa1885e6ea
2025-02-27 19:41:48 -05:00
Treehugger Robot
1e8125c76b Merge "Merging some notification dots implementation" into main 2025-02-27 16:08:10 -08:00
Treehugger Robot
9a5cd11da5 Merge "Move MainThreadInitializedObject to Launcher3 Go." into main 2025-02-27 13:03:12 -08:00
Charlie Anderson
f22128e5f4 Merge "Make ModelTestExtensions default to process userhandle for HSUM" into main 2025-02-27 12:59:26 -08:00
David Saff
b9fabb10dd Rename to uiautomatorhelpers
Bug: 376676853
Change-Id: I2d3f4e259da721336b0736abc45d393f0dd9145a
Test: AppWidgetsRestoredReceiverTest
Flag: TEST_ONLY
2025-02-27 11:26:52 -08:00
Sunny Goyal
39063bf167 Merging some notification dots implementation
Bug: 393703968
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ie02311afba85f06fbafd265a5015cd23bd356a36
2025-02-27 08:50:26 -08:00
Anushree Ganjam
e6065f5a94 Move MainThreadInitializedObject to Launcher3 Go.
Move SandboxContext to a separate class.
Remove all MainThreadInitializedObject references in Launcher3 and tests.
Remove ObjectSandbox interface and make RoboApplication extend
SandboxContext

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I1a8af5e6ae59df44d8ad6732b4d6e949ac402d6c
2025-02-26 16:49:08 -08:00
Vadim Tryshev
684233e257 resolve merge conflicts of 6df1743d23 to main
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I92c19785709187592c5aaa9f5ee8141d3af0e194
2025-02-26 11:08:36 -08:00
Owner Cleanup Bot
cd33516a5c [owners] Remove mateuszc@google.com from tests/multivalentTests/shared/com/android/launcher3/testing/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.

Please approve this change and vote the highest CR. This will keep the OWNERs
file tidy.  We ask that you do not ignore this change and approve it
unless you know a reason the OWNER should remain.  It can always be
reverted if needed.

If this change is in error, vote the lowest CR value (i.e. reject the CL)
and the bot will abandon it.

See the owner's recent review activity for context:
https://android-review.googlesource.com/q/mateuszc@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: Ib310e8949235516783ea820d35fa113e06cd34c3
2025-02-26 09:44:59 -08:00
Charlie Anderson
87ed2ec7dd Make ModelTestExtensions default to process userhandle for HSUM
Bug: 398857280
Test: BackupAndRestoreTest
Flag: EXEMPT test fix
Change-Id: I1781ffd0a04c31ee01108fb5802278051cdff4dc
2025-02-26 11:00:18 -05:00
Alex Chau
865982c634 Merge "Pulling secondary user artifacts from tests" into main 2025-02-26 02:47:54 -08:00
Charlie Anderson
dfb45d9c03 Simplify ShapesProvider and use constants
Bug: 398689048
Bug: 372884380
Test: presubmit and locally
Flag: com.android.launcher3.enable_launcher_icon_shapes

Change-Id: I102265ef4b25d84bb7a0b1f9642a9c19a7200e22
2025-02-25 20:17:54 -08:00
Vadim Tryshev
52bf5cd945 Pulling secondary user artifacts from tests
Bug: 396447643
Test: abtd run
Flag: NONE Not production code
Change-Id: I884a787f350ffb646827a32749c45fde8e93f53f
2025-02-25 19:20:15 -08:00
Owner Cleanup Bot
c383866630 Merge "[owners] Remove zakcohen@google.com from tests/multivalentTests/src/com/android/launcher3/widget/picker/OWNERS" into main am: bbda0821a6 am: c8abc144b7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3490671

Change-Id: I9a0698da781bae7365ed46bc52fee13f46aaba2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-25 15:37:31 -08:00
Owner Cleanup Bot
bbda0821a6 Merge "[owners] Remove zakcohen@google.com from tests/multivalentTests/src/com/android/launcher3/widget/picker/OWNERS" into main 2025-02-25 14:47:00 -08:00