Commit Graph

34630 Commits

Author SHA1 Message Date
TreeHugger Robot 9779405023 Merge "[Overview Actions] Add ControlType for overview action buttons." into ub-launcher3-master 2020-02-21 20:36:35 +00:00
Hyunyoung Song 621c1a8be7 Merge "Update the suggestFolderName when items are added and deleted from folders" into ub-launcher3-master 2020-02-21 20:08:20 +00:00
TreeHugger Robot b47a08ad1e Merge "Fixes NPE when creating folder with null suggestedFolderNames." into ub-launcher3-master 2020-02-21 20:05:38 +00:00
thiruram 888b516a22 Fixes NPE when creating folder with null suggestedFolderNames.
Bug: 149993849

Change-Id: Ia2758b76aef1812dab225c8a95e7141fcdeefab4
2020-02-21 11:05:37 -08:00
Hyunyoung Song 6d3e5465e2 Update the suggestFolderName when items are added and deleted from folders
Bug: 149935239
Bug: 149967272
Bug: 148900990

Change-Id: I0ed27236ad22579a1f3dcfd35a32252c5b1f6691
2020-02-21 11:00:48 -08:00
TreeHugger Robot fb5d542f51 Merge "Increase FileLog days" into ub-launcher3-master 2020-02-21 17:33:27 +00:00
android-build-team Robot d7d79f0048 Snap for 6224475 from 98e484548c to rvc-release
Change-Id: I9a0f573059b3a664c2d90b1cad26343959f68998
2020-02-21 03:11:27 +00:00
Samuel Fufa 46b4f58161 Increase FileLog days
Bug: 142753423
Change-Id: I43ccfe540cb0899a4a4ab6722b6670e830457f60
2020-02-20 16:45:57 -08:00
Vadim Tryshev 1562d104b8 Merge "Updating logcat reading logic" into ub-launcher3-master 2020-02-21 00:27:46 +00:00
Tony Wickham f1030cf564 Merge changes Ie48f4b66,Ia48f4453 into ub-launcher3-master
* changes:
  Always update clip rect before applying surface params
  Clean up AppWindowAnimationHelper and TransformParams
2020-02-20 22:53:10 +00:00
Tony Wickham a754374c30 Remove mSourceWindowClipInsetsForLiveTile
It seems that the only time it is used, it is the same as
mSourceWindowClipInsets anyway.

Bug: 149870691
Change-Id: I3b1a5a47a0d49cdd6eb8a3271ca24da6c17109cb
2020-02-20 14:08:07 -08:00
Tony Wickham d1d342b1c7 Always update clip rect before applying surface params
Previously, we were only updating the clip rect when params.currentRect
== null, meaning the clip would be stale once the caller started
providing its own rect (e.g. when swiping to home).

Also fix some visual jumps when swiping home, all caused by running the
transform progress from 0 to 1 instead of starting at whatever the
progress was before ending the gesture, e.g.:
- When swiping to home without animating into an icon, the corner radius
  was set back to the window corner radius.
- Before this change, the clip didn't update throughout the animation,
  making the window slightly bigger than the floating icon view; after
  this change, the clip jumped to show the insets again before clipping
  back down during the home animation.

Bug: 149870691
Change-Id: Ie48f4b665a5bf3cbef76bdf7f043febe99fb84a0
2020-02-20 14:07:09 -08:00
Tony Wickham badab61ace Clean up AppWindowAnimationHelper and TransformParams
AppWindowAnimationHelper and TransformParams were being very tightly
intertwined, to the point that you really had to understand subtle
nuances of both in order to get a desired behavior. This makes making
changes really difficult, because there are lots of "traps" to know
about and navigate. To help alleviate this burden, cleaned up some of
these traps and give AWAH and TP distinct roles:
- A caller who needs to animate an app window needs both AWAH and TP.
  TP defines specific parameters of how the app window should be
  controlled, and AWAH simply reads from TP in order to provide the
  desired behavior.
- Only the caller should write to TP; AWAH should no longer change
  anything in a TP that is passed to it. For instance, instead of
  repurposing TP.currentRect, AWAH now has its own mCurrentRect to
  update based on passed parameters.
- TP is a very basic class that just holds various values that callers
  can set one at a time. The order should not matter (setting one value
  will never set another one), and defaults make sense.
- Commented the setter methods in TP so developers shouldn't have to
  follow the code to see how they are used.

Bug: 149870691
Change-Id: Ia48f4453c29549271a3fc6538128a1a77439e015
2020-02-20 14:06:58 -08:00
vadimt 2f41808e9b Updating logcat reading logic
Start a thread to read logcat synchronusly instead
of back-tracking at the end of the test

Also:
* Reusing the same logcat process for all checks. This eliminates
reading the log from its start for every gesture. We don’t kill that
process at the end, and don’t stop the thread. I’ve verified that
“am instrument” doesn’t hang, and the logcat process gets automatically
killed after the test process exits.
* Not using mStarted latch, as there is no need to wait until the reader
reaches the start mark.

Bug: 149422395
Change-Id: Ide4ed19ad8d099c41918f38c2b073b8b2e143b69
2020-02-20 22:02:52 +00:00
Andy Wickham 27d3c595cf Makes all ArrowPopups AccessibilityTargets.
This currently includes the menu that pops up when
long pressing an app icon in Launcher or Search, or
long pressing Smartspace. Previously, only the menu
for Launcher apps grabbed accessibility focus after
the open animation completed, and now all three do.

Fixes: 145253300
Change-Id: I147b45d38a04ab9a55eee9b5bd5551b4c7185fcf
2020-02-20 20:36:16 +00:00
Samuel Fufa aeaad97eb7 Increase timeout for WorkTabTest.toggleWorks test
Bug: 149927292
Change-Id: I6dcd0bfa2fe584be9e46f653992f9c748e795614
2020-02-20 11:22:49 -08:00
Winson Chung d446f98457 Merge "Adding new tracing call from SysUI" into ub-launcher3-master 2020-02-20 06:37:46 +00:00
Tracy Zhou 7be160170d Merge "Render user's actual workspace in ThemePicker preview (Part 5)" into ub-launcher3-master 2020-02-20 05:53:45 +00:00
Winson Chung f3b7246bf2 Adding new tracing call from SysUI
Bug: 144854916
Test: This change is only to ensure the changes build
Change-Id: I62b247b45454861328b6062ed571c854a374aa34
2020-02-20 04:52:07 +00:00
android-build-team Robot 69c7ae5d61 Snap for 6220271 from 94c1178e47 to rvc-release
Change-Id: I09f6c142a932968afd1ea1af3bacad6a69542e3e
2020-02-20 03:22:02 +00:00
TreeHugger Robot 91f97cb2d1 Merge "Increase timeout for flaky work test" into ub-launcher3-master 2020-02-20 01:49:30 +00:00
Becky Qiu 4e3eaa5a71 [Overview Actions] Add ControlType for overview action buttons.
Design: go/logging_for_overview_actions

Test:local, logging result: https://paste.googleplex.com/6489148393259008

Bug:139828243

Change-Id: I61fa66f8ec6edae43f6242599f8d4ea8e28d735d
2020-02-19 17:45:06 -08:00
TreeHugger Robot 6e82910a45 Merge "Give current TaskView accessibility focus" into ub-launcher3-master 2020-02-20 01:16:42 +00:00
Samuel Fufa d1c0779726 Increase timeout for flaky work test
Bug:149867607
Change-Id: Ic746a4857a47fc29372d19419ddfa6eaebd06f87
2020-02-19 17:08:26 -08:00
Tracy Zhou 10a285dc24 Render user's actual workspace in ThemePicker preview (Part 5)
This change takes care of rendering widgets using widget provider's layout info.

Test: manual
Bug: 144052839

Change-Id: I7002d8bf653513cdd317736d550a47f61f0ee474
2020-02-19 16:46:25 -08:00
Andy Wickham 9fb7d28b63 Removes exported="true" for RecentsActivity.
Change-Id: Iea9ad04886c3221cefa709c14b6501b2af83af06
2020-02-20 00:07:06 +00:00
Andy Wickham 2eac20e378 Merge "Renames BackGestureTutorialActivity to GestureSandboxActivity." into ub-launcher3-master 2020-02-19 23:51:20 +00:00
TreeHugger Robot b3c991f7d3 Merge "null check in showLableSuggestion()." into ub-launcher3-master 2020-02-19 21:45:38 +00:00
Andy Wickham 63b7f36338 Renames BackGestureTutorialActivity to GestureSandboxActivity.
Bug: 148542211
Change-Id: Iaac537380b02f1c52f967748c30fe49ac36bb91e
2020-02-19 21:12:11 +00:00
Andy Wickham 1e33123a0b Merge "Allows multiple gesture blocking activities to be specified." into ub-launcher3-master 2020-02-19 21:11:20 +00:00
Jon Miranda 98e484548c Merging from ub-launcher3-master @ build 6219992
Test: manual, presubmit on the source branch
http://x20/teams/android-launcher/merge/ub-launcher3-master_6219992.html

Change-Id: Iff1e0d32b4ded4cb51c91c187d85f128b92157ca
2020-02-19 13:11:10 -08:00
jayaprakashs 9ac4b580a1 null check in showLableSuggestion().
It throws NPE when the data is missing for all the packages and all the suggestions are null.

Change-Id: I4aa36969e1aee00bcfc577a839d6da01d4e67a75
2020-02-19 13:00:01 -08:00
TreeHugger Robot 6eebaab5d6 Merge "Updating Pause detection to use motion events directly" into ub-launcher3-master 2020-02-19 20:10:59 +00:00
Samuel Fufa aeb185e744 Merge "Clean up work profile" into ub-launcher3-master 2020-02-19 19:53:38 +00:00
Samuel Fufa ccebfbe273 Clean up work profile
This includes
- Dismiss work edu on launcher state change
- Remove work tab flash on first setup
- Make edu bottom sheet adopt theme color
- Fix Work toggle bottom inset


Bug: 149200572
Bug: 149197172
Bug: 149199058
Bug: 149215103
Bug: 149198955
Bug: 145595763
Bug:149481723

Test: Manual
Change-Id: I39a30782b80fd3a66bede55754fa30a940d2caee
2020-02-19 19:33:09 +00:00
Sunny Goyal c3bd4d0e75 Updating Pause detection to use motion events directly
Bug: 139750033
Change-Id: Ib261b203fec941f3c5303eafc1d435efdf3dbcaf
2020-02-19 11:32:20 -08:00
Hyunyoung Song b8d1e3526b Merge "Fix folder UI open regression when tapping edit text / Fix NPE Bug: 149835166 Bug: 149839789" into ub-launcher3-master 2020-02-19 19:16:15 +00:00
Hyunyoung Song 356a9f05c4 Fix folder UI open regression when tapping edit text / Fix NPE
Bug: 149835166
Bug: 149839789



Change-Id: I295cc72e4228249794eae11f177226179f2a175f
2020-02-19 11:15:12 -08:00
Andy Wickham 3b0c1f3aca Allows multiple gesture blocking activities to be specified.
Bug: 148542211
Change-Id: Ie299359eb2df60f5f08d156dc6882fa133fab27c
2020-02-19 18:12:41 +00:00
Andy Wickham 2d0f79b7bb Merge "Disables Back gesture while sandbox is running." into ub-launcher3-master 2020-02-19 17:12:26 +00:00
Hyunyoung Song bd5048a156 Merge "Move foldername and appinfo fetching to model thread" into ub-launcher3-master 2020-02-19 01:57:36 +00:00
Hyunyoung Song 308faf8335 Move foldername and appinfo fetching to model thread
Bug: 149255695
Change-Id: I8377d4a06d4ae67b601f3e0ad9e722bd7b103a7a
2020-02-18 16:41:45 -08:00
Andy Wickham 017c8d52d5 Disables Back gesture while sandbox is running.
We'll want to detect this gesture ourselves to distinguish
between left and right edge and update the UI accordingly.

Note: This exclusion only works if the sandbox is launched
into the same task as Launcher (i.e. from Launcher itself).
I haven't found a way to get this to happen over adb.

Test: Launched BackGestureTutorialActivity from Launcher
and verified Back gesture animations did not play and the
onBackPressed callback was not called. Verified these did
still work in other apps.

Bug: 148542211
Change-Id: Iebc3428738edbf8ebfcff157f5952b787eb46bac
2020-02-19 00:27:40 +00:00
Sunny Goyal 4a9e1e2117 Fixing long-press in syste-drag does not initialize the event pos
Bug: 147899070
Change-Id: I73bc7d5addde5fb3304cac29f0ecce17b2cc48ea
2020-02-18 16:27:07 -08:00
Evan Rosky 94c1178e47 Connect split-screen things to systemui divider
Since divider stuff lives in sysui instead of framework

Bug: 133381284
Test: Manual, open 2 apps in split and drag-up to show
      recents.
Change-Id: I555876abc9b2f73c213c5559821709228d0afce9
2020-02-18 16:13:10 -08:00
android-build-team Robot 6855344cd2 Snap for 6214566 from 6af6411d33 to rvc-release
Change-Id: I5e7080df44c9d7569e196720f369c11eeaaee9d3
2020-02-18 03:11:36 +00:00
Jorim Jaggi 6af6411d33 Merge "Revert "Connect split-screen things to systemui divider"" 2020-02-17 21:11:05 +00:00
Hyunyoung Song 0580b4a5c1 Change hint text on folders
Bug: 135182686

Change-Id: I8e21384242b9d890a0f698fdaaf722b205967349
2020-02-17 12:38:58 -08:00
Jorim Jaggi 805b1f9eb3 Revert "Connect split-screen things to systemui divider"
Revert "SystemUI Split via TaskOrganizer"

Revert "Update CTS tests for tile-based split-screen"

Revert submission 9964969-sysui_split_screen

Reason for revert:
- Random SysUI crash (ag/10335781)
- Breaks IME tests with new_insets set to 2
- Crashes SysUI in split screen with new_insets set to 2.

Reverted Changes:
I103f68030: SystemUI Split via TaskOrganizer
If6740b7ee: Connect split-screen things to systemui divider
I44f497e7d: Update CTS tests for tile-based split-screen

Exempt-From-Owner-Approval: Revert
Change-Id: I9d5d7f0447fdfaf73f4e0a6450a2107bceec39cb
2020-02-17 16:57:09 +00:00
Samuel Fufa f240ef2a0c Merge "Add Tests for work profile toggle" into ub-launcher3-master 2020-02-16 02:28:23 +00:00