Commit Graph

6193 Commits

Author SHA1 Message Date
Sreyas 6dcba89581 Refactoring DigitalWellbeing Banner to not use footers.
Removing use of footers as they are no longer necessary. Refactoring DWB code to a separate class to be cleaner. Also fixes bug with DWB animating in twice.

Bug: 171317883
Bug: 171317874
Tested:Manual

Change-Id: I78c4e541e7afa76301c3afc373ab3fa251a2c3b0
2020-10-30 11:55:48 -07:00
Tracy Zhou fbfccf9e2d Handle the animation when restarting apps
Fixes: 170338921
Test: manual

Change-Id: I5a5722cb62fb53a68d140621ad79ed97f4d98571
2020-10-29 10:01:34 -07:00
Tiger Huang 1e042652a8 Replace the system UI visibility with appearance (Launcher)
The system UI visibility has been deprecated.

Bug: 149813814
Test: atest TaskSnapshotControllerTest TaskSnapshotPersisterLoaderTest
Change-Id: Ic4ed6f6ea693bb9c484062a35bf4292e0edff0e5
2020-10-29 21:05:06 +08:00
Winson Chung 4b4341d3a7 DO NOT MERGE Revert "Handle uiMode changes"
Bug: 171707437
Test: Repro steps on bug

This reverts commit 0ad7b172e6.

Change-Id: If30cbb6c155e879dc8307a0a4a06dfb548b389a1
2020-10-28 19:18:03 -07:00
Joshua Trask b0f897cda8 Merging from ub-launcher3-master @ build 6934851
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6934851.html

Change-Id: Ie082cfabfc07e26db9d0bbb563376291b2b30491
2020-10-28 12:13:40 -04:00
TreeHugger Robot 426f6ac276 Merge "Use event time of app side for latency metrics" into ub-launcher3-master 2020-10-28 10:40:27 +00:00
Riddle Hsu b30adcb232 Use event time of app side for latency metrics
There are 2 reasons not to use MotionEvent#getEventTime:
1. There is an existing TouchEventReported metric for touch latency.
2. In instrumentation test, the event time is set when creating
   the motion event for injection. It may cause the results to be
   5 times slower than the real case. That may lead to miss the
   cost from app to system.

Bug: 166614700
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Touch gesture navigation bar or launch app from launcher.
      adb logcat | grep statsd | grep "(48)"
Change-Id: Ica5e7df685fe737bbc3ac60c3ec35bad15466726
2020-10-28 09:13:48 +00:00
Tracy Zhou 55940ecfc7 Render and track live tile position when launching another app from Overview
Fixes: 165394366
Fixes: 170338328
Test: Manual
Change-Id: Idfcd423cbe062af33564eaa9e83ec21fbac0cdf9
2020-10-27 15:45:01 -07:00
TreeHugger Robot ceb8618f09 Merge "Finishing recents task before starting share screenshot flow" into ub-launcher3-master 2020-10-27 20:41:54 +00:00
TreeHugger Robot a48f6efbe1 Merge "Integrating snapshot logging in Launcher" into ub-launcher3-master 2020-10-27 19:08:01 +00:00
Sunny Goyal b694a69f53 Integrating snapshot logging in Launcher
> Workspace snapshot is logged when the workspace loads (at most once a day)
> Removing unnecessary thread jumping when logging folders
> Preference snapshot is logged on process start and whenever something changes

Change-Id: I93767de89b11522d843c0e8300d1f108c78f6d90
2020-10-27 11:25:43 -07:00
Sunny Goyal 54aae4f95d Finishing recents task before starting share screenshot flow
Bug: 170338559
Change-Id: Ieccdc492c7d1a60b47b90c6683e60e8a143ca80d
2020-10-26 16:02:17 -07:00
Tony Wickham 2c956a4651 Merge "Add null check between calling onMotionPauseDetected() and Changed()" into ub-launcher3-master 2020-10-26 22:08:00 +00:00
Winson Chung 6f4e65f62f Updating pip transition calls with shared lib
Bug: 143965596
Change-Id: I761726ca9666689d4359240b065997e3342eab65
2020-10-25 22:26:55 -07:00
Hongwei Wang 5b5f3c6609 Improve PIP enter transition w/ gesture nav (3/N)
Directly transition Activity to PiP mode in launcher if the Activity
claims auto-pip support. Video is taken by commenting out the
requirement of setting the auto-pip flag.

Note that we need app to actively push up-to-dated
PictureInPictureParams to the framework, otherwise we won't be get
- PictureInPictureParams on first entering
- Staled PictureInPictureParams if the aspect ratio is changed

Video: http://rcll/aaaaaabFQoRHlzixHdtY/abenIxLFI1pZzF2O8t4TbS
Bug: 143965596
Test: see demo videos
Change-Id: Iea9a6ff39a79431ac1afa14aea812c500b3ca3b2
2020-10-25 21:14:10 -07:00
Tony Wickham d007cd5d55 End the attaching animation early when we settle on the end target
The attaching animation can take longer than the transition to recents
when you let go, and the ADJACENT_PAGE_OFFSET calculation is different
when there's a running task vs not. So after the transition to recents
ended, the calculation of the still playing attaching animation would
change, causing the jump you see in the bug. Now we make sure to end
the attaching animation if it's still running when we settle on an
end target to avoid this issue.

Fixes: 168563692
Change-Id: I3f37aecf9c93f2ec63dbdce561e7f5ba11be89cc
Merged-In: I3f37aecf9c93f2ec63dbdce561e7f5ba11be89cc
(cherry picked from commit 1cc12ebc12)
(cherry picked from commit fd54a8e84a)
2020-10-23 22:41:55 +00:00
TreeHugger Robot e6239cebd0 Merge "Fixing robo test compilation" into ub-launcher3-master 2020-10-23 18:13:03 +00:00
Tony Wickham c1a785914a Add null check between calling onMotionPauseDetected() and Changed()
Some listeners such as ScreenPinnedInputConsumer only care about the
first pause detection and thus clear the MotionPauseDetector in
onMotionPauseDetected(). Because clear() sets mOnMotionPauseListener
to null, we need a second null check before onMotionPauseChanged().

Fixes: 169329910
Change-Id: I4fc30d67ad808a5b0c8feb10cc5392d7cae042b1
2020-10-23 11:02:05 -07:00
Sunny Goyal 84acb18dc2 Fixing robo test compilation
Change-Id: I1b1192f4cbf1ea1916f2ec4cd607743b3483250a
2020-10-23 10:35:35 -07:00
Tony Wickham 9d2466418c Merge "End the attaching animation early when we settle on the end target" into ub-launcher3-master 2020-10-23 17:21:16 +00:00
Winson Chung 87f2b09072 Merging from ub-launcher3-master @ build 6925377
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6925377.html

Change-Id: I928b100c8f41abff34047df69d988622123f9939
2020-10-23 10:16:50 -07:00
Winson Chung f99351888c Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""
This reverts commit 087a9e39b6.

Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-23 09:27:48 -07:00
Hongwei Wang fd2dac816b Merge "Improve PIP enter transition w/ gesture nav (3/N)" 2020-10-23 16:09:31 +00:00
Tony Wickham 1cc12ebc12 End the attaching animation early when we settle on the end target
The attaching animation can take longer than the transition to recents
when you let go, and the ADJACENT_PAGE_OFFSET calculation is different
when there's a running task vs not. So after the transition to recents
ended, the calculation of the still playing attaching animation would
change, causing the jump you see in the bug. Now we make sure to end
the attaching animation if it's still running when we settle on an
end target to avoid this issue.

Fixes: 168563692
Change-Id: I3f37aecf9c93f2ec63dbdce561e7f5ba11be89cc
2020-10-22 13:59:09 -07:00
Hongwei Wang e4bc2af04b Improve PIP enter transition w/ gesture nav (3/N)
Directly transition Activity to PiP mode in launcher if the Activity
claims auto-pip support. Video is taken by commenting out the
requirement of setting the auto-pip flag.

Note that we need app to actively push up-to-dated
PictureInPictureParams to the framework, otherwise we won't be get
- PictureInPictureParams on first entering
- Staled PictureInPictureParams if the aspect ratio is changed

Video: http://rcll/aaaaaabFQoRHlzixHdtY/abenIxLFI1pZzF2O8t4TbS
Bug: 143965596
Test: see demo videos
Change-Id: Iea9a6ff39a79431ac1afa14aea812c500b3ca3b2
2020-10-22 11:17:52 -07:00
Marcin Oczeretko 0ee7ffca7f Update LatencyTracker usage in Launcher
Test: manual - flashed the phone and verified the logging and statsd sampling with default settings
Bug: 131859447, 162927074
Change-Id: I2d0c9fd479654c62841c714eb39f88f84e8ab114
2020-10-22 09:45:27 +00:00
Tracy Zhou 932a327ebf Consider overscroll adjustment of RecentsView for live tile
Fixes: 171450807
Test: manual
Change-Id: I83eebf1f6b61c67f289db51aabe5a971815d0df1
2020-10-21 23:29:00 -07:00
Tracy Zhou 0731273d54 Track live tile better by considering resistance animation
Fixes: 170338029
Test: Manual
Change-Id: I66536bae567aa94385d5e0352cec9d46d512927a
2020-10-21 12:03:40 -07:00
Tracy Zhou d2c27a5950 Merge "[Live Tile] Support launching running task animation" into ub-launcher3-master 2020-10-21 07:19:48 +00:00
Tracy Zhou 8b488ccc2e [Live Tile] Support launching running task animation
Fixes: 170338170
Test: manual
Change-Id: I2526b7cfbacaea7899b8e2ed233f913630071d36
2020-10-20 23:42:44 -07:00
Schneider Victor-tulias fb79f5541d Merge "Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent." into ub-launcher3-master 2020-10-20 13:51:06 +00:00
TreeHugger Robot 29c79947ec Merge "Removing condition for CUJ tracing/metrics" into ub-launcher3-master 2020-10-19 18:42:05 +00:00
vadimt a68ac3e5dd Removing condition for CUJ tracing/metrics
Is doesn't reflect whether jank monitors is collecting metrics,
which will eventually be always true anyways.

Change-Id: Iaebdc838ed2b2cebd32c8c48d7e45bdd93f76fb4
2020-10-16 10:48:28 -07:00
Sunny Goyal 9228ff53c2 Trimming activity and task label
Bug: 170648272
Change-Id: Icd099acee65305e0aa0f98a2a301a0df8a27cf07
2020-10-16 17:10:33 +00:00
Schneider Victor-tulias cf0b275a48 Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent.
Added tutorial_steps string array in the intent to allow specifying an ordered list of tutorial steps.

Change-Id: Ic42a65598a74a64f8441a22f58c6cd988a5762e3
2020-10-15 10:27:30 -04:00
mtk20437 02fc23c993 Modifying screenshot button visibility
Just like "Share" button, we are modifying Screenshot button visibility to gone.

Bug: 168754258
Change-Id: Ie92552c931857eed5d11af130af5a79923ee72e8
2020-10-15 03:31:52 +00:00
Samuel Fufa d5bbe6809d Rename shrotcut container to deep-shrotcuts
Change-Id: If94f0dfa447235f3b1a652f7b6c749695b42d97c
2020-10-14 15:39:38 -07:00
TreeHugger Robot 057f2d0d7d Merge "Introduce shortcut container for hotseat event reporting" into ub-launcher3-master 2020-10-13 01:57:47 +00:00
TreeHugger Robot 69740e62be Merge "Add app start source info of apps launched from launcher" into ub-launcher3-master 2020-10-12 20:53:29 +00:00
Jon Miranda 2d7bfc8782 Fix shadowRadius not being used in swipe up animation.
Bug: 168608912
Change-Id: I08f7bb057237e5061d5f1fc29afb488b204ee385
2020-10-12 12:09:22 -07:00
Sunny Goyal a433fe1fb3 Merge "Using FrameCallbacks instead of windowCallbacks for surface removal" into ub-launcher3-master 2020-10-12 18:08:35 +00:00
Samuel Fufa 9a6145efb8 Introduce shortcut container for hotseat event reporting
Bug: 170636685
Test: Manual
Change-Id: I5abeb17976bbafdc8cc74fb8b9a586d544c682fc
2020-10-12 09:33:00 -07:00
Yogisha Dixit 2de606fe73 Delete the minimal database to force refresh.
Bug: 169771796
Test: manual
Change-Id: Ic2188bb162f295c208346861fddc137ace19ddcb
2020-10-12 15:36:07 +01:00
Sunny Goyal 0471b9836c Using FrameCallbacks instead of windowCallbacks for surface removal
WindowCallbacks is called during the draw pass, before the frame has
been sent to the surfaceFlinger. Frame callback will provide a closer
approximation for when the frame is actually rendered on screen.

Bug: 141126144
Change-Id: I62aab526c2ca24b00b5e7b312b36080f26c7b439
2020-10-09 13:55:56 -07:00
Schneider Victor-tulias 2727434c44 Merge "Fix hotseat and prediction row to allow updates when empty." into ub-launcher3-master 2020-10-09 20:09:08 +00:00
Riddle Hsu 979da64d82 Add app start source info of apps launched from launcher
Bug: 166614700
Test: Enable statsd log: "adb shell cmd stats print-logs"
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->1[I] 0x110000->10[I]
      that means 1=from launcher and 10=latency 10ms.
Change-Id: Iddaff7066b66e241ba58ec87129ddbe2c531dc7e
(cherry picked from commit 7bdf3574a3)
2020-10-09 17:21:38 +00:00
Winson Chung d2bfce71f7 Merge "Comply with the ISystemUiProxy.aidl change" into ub-launcher3-master 2020-10-09 16:39:06 +00:00
Winson Chung ed4530fedd Merge "Add latency metrics for recents gesture" into ub-launcher3-master 2020-10-09 16:39:06 +00:00
Schneider Victor-tulias 1b9e199b3d Fix hotseat and prediction row to allow updates when empty.
Rotating the screen in the homescreen empties the hotseat, however it does not get populated while it is visible to the user. The user should not be able to see an empty hotseat or prediction row if predictions are available. It should therefore be possible to populate these when they are empty even if they are visible to the user.

Change-Id: I8e5252bd29050c2cd9d443aedcb3f3e305c0e2d7
2020-10-09 10:01:55 -04:00
Samuel Fufa 692d2109a6 invalidate itemDecoration on predictedRow focus draw
Change-Id: I66c731f00ae1c1292c51ff281957f05fd2d70dfa
2020-10-08 18:42:48 -07:00