The reason is because WorkManager doesn't reset when user searches (which is why the apps gray out when you go to toast, turn off work profile then back gesture to all apps)
Added test for ActivityAllAppsContainerView that test onAppsUpdated() and check for if there are work apps.
From the test environment, onAppsUpdated() needs to be public because the method is outside the package. However, I've wrapped onAppsUpdated package private so I can test it with a boolean parameter.
bug: 298492729
test: video:
before: https://drive.google.com/file/d/1D0VlGeJEI5lGbYgP5Tnu5UO_Dv61X8Dv/view?usp=sharing
after: https://drive.google.com/file/d/1D0qsq7sX_kAp2t92xser7YI4ADBhQfHY/view?usp=sharing
Change-Id: I4eb7cf21e273e29171fcd62a4762e8bb1778e720
Used by flicker to disable and then reset this value when performing certain actions that require ExpectedRotationCheckEnabled to be false but then we want to restore to the initial value.
Bug: 300065764
Test: n/a
Change-Id: I650e15b206984b5fd7a2313fb63308e4c551c30a
It orders the breakpoint list to guarantee that the smallest breakpoint is always returned for a given availableWidth or availableHeight.
Fix: 301396419
Flag: ENABLE_RESPONSIVE_WORKSPACE
Test: CalculatedWorkspaceSpecTest
Change-Id: Ia545e84150027bd8daa8d0dde58ff6fc579c3b6a
Renaming the following test names:
- testDragAppIconToWorkspaceCell to testDragAppIconToMultipleWorkspaceCells
- testDragShortcutToMultipleWoCells to testDragShortcutToMultipleWorkspaceCells
Bug: 298234173
Test: atest OopTaplDragTest
Change-Id: I16707e0a882164c7a5acec6a4197bd0bea8514a7
See tearDown method in RestoreDbTaskTest for fix.
This reverts commit 2d86f3337a.
Reason for revert: fixing the issues for revert b/298077774
Test: running presubmit and affected test suite on CL
Change-Id: I94c643f38259c4e920869c231f706229390c7c2a
This will help to fail the test causing the leak, not the next one
Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: I07e2457a9c8b9794d9c3ecc4764500dcdd3bbb10
We do this when starting apps from Launcher in other places.
Bug: 298114205
Test: presubmit
Flag: N/A
Change-Id: I1ff4466a2daa78b618cdc24910f90b8d4306d8b8
It's important to keep presubmits fast even if we will occasionally miss
regressions in presubmit.
Bug: 295939967
Test: presubmit
Flag: N/A
Change-Id: I9b65a2dc1e912fbfe834d7eee67815cb05f30bb2
I hope that this will lock bugs like b/298114205 in the test that created the bad condition, not the next one.
Bug: 298114205
Test: presubmit
Flag: N/A
Change-Id: I6ad3598fb675d8b24ec0f273d255b7f2464dc53f
The next steps will be changing config files to point at this test, and removing it in integration tests.
Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: Ib2a590b7d6aa99a89973a77ca43b1ab762c79fdb
This is useful for tests where the keyboard is open, which can take up
about half the screen.
Test: Tapl
Fix: 299514609
Flag: No
Change-Id: I47e2fe7555140b4b54046d4d8ba6de1ebd38c6a4
This cl is 1/2 part change
We are currently getting StaleObjectException when running this test.
We want to implment a synchoronized event beetween test and launcher,
so we know that search result adapter is done updating and page will
get no more updates of search results.
Test: Presubmit
Bug: 232008758
Flag: not needed
Change-Id: I40cf9b83d231a2487220aabc8f8e8c3ca71f255c
ENABLE_TWO_PANEL_HOME is no longer used so I will also
remove it.
TwoPanelWorkspaceTest was expecting an icon on the hotseat
which no longer exist.
We will use the new flag system in main for this
feature.
Test: atest ReorderWidgets
Test: atest FoldableIntegrity
Bug: 270395274
Change-Id: I122a924a81ae989ff5636d8e276d6d31bbe0877d
This will help to demote tests derived from it from presubmit
Bug: 298077774
Test: presubmit
Flag: N/A
Change-Id: Ieb842b3fb92db2aeb6ed84cf2576888d7ee68016
When using apps that switch to car mode (e.g. Maps) while in 3 button
navigation mode, the default navbar is not visible and instead the
overlay from Assistant is being rendered that also has the Home button.
For tests that involve apps switching to car mode, when we want to go
home we want to be able to press that button.
Bug: 282758103
Test: n/a
Change-Id: I88c420f321dcfd39164e20e97d39f90bf1e5d8d8