Commit Graph

30624 Commits

Author SHA1 Message Date
Schneider Victor-tulias
b803f7e2cb Add UI updates for incremental app installs.
1. Changed Preload Icon UI to be grayscale while the app is not startable.
2. Added progress bar for when app is installed but still ownloading.
3. Updated Preload Icon progress and click handling to use new incremental api.

Progress bar color updates will follow in a separate CL.

Demo: https://drive.google.com/file/d/1H1EvtTorLeJwC1eiq10tm-TT81YZ6osk/view?usp=sharing

Fixes: 176901235,176992421,176884453

Test: manual
Change-Id: Ie0575dc56c33c5d6ecd6c5cbf00666b96d6dcb16
2021-01-12 16:04:01 -08:00
Schneider Victor-tulias
6a5f431a7b Revert "Revert "Add UI updates for incremental app installs.""
This reverts commit 229497d182.

Reason for revert: Patching bugs

Fixes: 176901235, 176992421, 176884453

Test: manual

Change-Id: I57e13a15e72284564a10761966732ee31d15fd08
2021-01-12 12:22:33 -08:00
TreeHugger Robot
fa39cdcbac Merge "Refactor app open code." 2021-01-11 23:23:15 +00:00
TreeHugger Robot
e8ea45182a Merge "Add BROADCAST_CLOSE_SYSTEM_DIALOGS to recents package" 2021-01-11 22:16:22 +00:00
TreeHugger Robot
c2d0989c82 Merge "Disabling fling gesture for assistant over deferred region" 2021-01-11 21:36:52 +00:00
Jon Miranda
f725e955cb Refactor app open code.
Move all the logic that calculate the app open float properties
to a separate class.

This is in preparation for the new app launch properties.

Change-Id: I1a008b2ea1379cbf667c5ad3ad58ece04bd88185
2021-01-11 15:58:58 -05:00
Bernardo Rufino
e0484de39a Add BROADCAST_CLOSE_SYSTEM_DIALOGS to recents package
It uses AM.closeSystemDialogs() and should have the permission. I had
created the protection level in ag/13090697 but forgot to actually
request the permission.

Bug: 177228919
Bug: 159105552
Test: atest CloseSystemDialogsTest
Test: atest android.server.wm.WindowMetricsActivityTests#testMetricsMatchesLayoutOnActivityOnCreate
Change-Id: I661dac17f2160ed36adb1a193e739c200169a37d
2021-01-11 19:25:24 +00:00
TreeHugger Robot
67b612bb85 Merge "Disable default IME in all apps if DISABLE_INITIAL_IME_IN_ALLAPPS is on" 2021-01-11 19:07:18 +00:00
Hyunyoung Song
f19c579706 Disable default IME in all apps if DISABLE_INITIAL_IME_IN_ALLAPPS is on
Bug: 173447266
Test: manual
Change-Id: Ib5c03b20cc7f09fdc2d066dd20fb7ccbb1e154f5
2021-01-10 21:09:19 -08:00
Jason Chang
cfbfea9172 Merge "Fix triggering One-handed mode introduces gesture conflict issues (2/n)" 2021-01-10 03:38:37 +00:00
TreeHugger Robot
b3f2862a30 Merge "Removing workaround for battery defender" 2021-01-08 19:45:32 +00:00
TreeHugger Robot
cdfed2320a Merge "Revert "Add UI updates for incremental app installs."" 2021-01-08 00:31:06 +00:00
Schneider Victor-tulias
229497d182 Revert "Add UI updates for incremental app installs."
This reverts commit 84269d349d.

Reason for revert: causes b/176884453 and b/176992421

Change-Id: I3398674a0acbad8329df5d341ae074ac073a6bf9
2021-01-07 19:44:44 +00:00
Jason Chang
be5af2de6b Fix triggering One-handed mode introduces gesture conflict issues
(2/n)

Define a new larger gesture height instead of replacing
existing navigation_bar_gesture_height with RRO.

Bug: 159580663

Test: manual
Change-Id: Icdd70b28d9b2629171fb60a0c9d603f6a69f076a
2021-01-07 15:20:10 +08:00
Schneider Victor-tulias
da5e714ca1 Fix homescreen deep shortcuts text spanning two rows.
Deep shortcut text can span two lines on certain languages. Set translation character limits and increased options popup width.

Fixes: 175698383

Test: manual

Screenshot: https://screenshot.googleplex.com/4BArwKVSFg3VbTc.png
Change-Id: I263b859246fa6475591a65f92189e41a920beefe
2021-01-06 16:39:58 -05:00
Schneider Victor-tulias
b76e4dbc51 Merge "Temporarily disable visibility-gated hotseat and prediction row updates." 2021-01-06 15:20:27 +00:00
Ice Chang
ea122f7ffc [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours am: a449c9323e -s ours am: e832389844 -s ours am: e40fbd6568 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie0bc2bc020634a83e190cda9650ace71117bb5db
2021-01-06 06:30:48 +00:00
Ice Chang
e40fbd6568 [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours am: a449c9323e -s ours am: e832389844 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9facd3f45c531cd0ea6ffa3d3a012c85038cc9ed
2021-01-06 06:10:27 +00:00
Ice Chang
61971e401d [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours am: 602da1840d -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2aa76e5c9fd86b750839f357ff15c848659e4413
2021-01-06 05:36:33 +00:00
Ice Chang
e832389844 [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours am: a449c9323e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I316539c39e01a3dda16ab2eba90a05e3529d1e83
2021-01-06 05:36:20 +00:00
Ice Chang
602da1840d [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I34277e6b1a967cef0d29e9b3137d38f61fae8c42
2021-01-06 05:19:51 +00:00
Ice Chang
a449c9323e [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev am: 57874e6b39 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12793279

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3eeabee22f4b278eb079424059eed871c8fd5f39
2021-01-06 05:18:53 +00:00
Ice Chang
57874e6b39 Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-dev 2021-01-06 04:59:03 +00:00
Ice Chang
e497b92e2c [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev am: 86a07cf7c3 -s ours am: 0033c3aa6e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12947940

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I92b110169f8362d3bc9497a4b029e6f6625d8c3c
2021-01-06 03:32:53 +00:00
Ice Chang
0033c3aa6e [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev am: 86a07cf7c3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12947940

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3efe59e78bc7fd5e2d4214360aaefb0eabca53b2
2021-01-06 03:14:44 +00:00
Ice Chang
86a07cf7c3 Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev 2021-01-06 02:30:22 +00:00
Becky Qiu
5a7d6d682a [Overview Sharing] Add a feature flag for overview sharing.
Bug: 169772466, 169799864
Test: local
Change-Id: Ie386f660d24feb8d0f3ed15ccf946c005d436986
2021-01-05 14:37:29 -08:00
Schneider Victor-tulias
f5e0f1122c Merge "Add UI updates for incremental app installs." 2021-01-05 21:53:44 +00:00
TreeHugger Robot
18a1aa543b Merge "Removing shelf from 2-button gesture mode" 2021-01-05 21:15:59 +00:00
Sunny Goyal
5c953ed47d Disabling fling gesture for assistant over deferred region
Fixing missing trigger when using fling gesture

Bug: 130186141
Bug: 175839420
Test: Verified fling does not work over keyboard dismiss button
Change-Id: Id15320122cf9183c591416962634561a1ddc6fa0
2021-01-05 12:54:54 -08:00
Schneider Victor-tulias
84269d349d Add UI updates for incremental app installs.
1. Changed Preload Icon UI to be grayscale while the app is not startable.
2. Added progress bar for when app is installed but still ownloading.
3. Updated Preload Icon progress and click handling to use new incremental api.

Progress bar color updates will follow in a separate CL.

Demo: https://drive.google.com/file/d/1H1EvtTorLeJwC1eiq10tm-TT81YZ6osk/view?usp=sharing

Bug: 171008815

Test: manual

Change-Id: I5874a5146d79a8c91d7d90ff0b9c1c427a3c95dd
2021-01-05 15:17:26 -05:00
TreeHugger Robot
6511fd5b40 Merge "Using default timeout for 3-button QS" 2021-01-05 20:06:43 +00:00
vadimt
f4bb052ca0 Removing workaround for battery defender
The bug is supposed to be fixed.

Bug: 151613234
Change-Id: I8e803ead29e08e68fa75f61b5ad0e1198c9228ec
(cherry picked from commit ff39fd3e14)
2021-01-05 19:17:33 +00:00
Sunny Goyal
9b1e77377b Removing shelf from 2-button gesture mode
Test: Manual
Bug: 175137718
Change-Id: Ifb64b4dcac53252aefa8ee0bd6434f90f1d868b7
2021-01-05 19:07:21 +00:00
TreeHugger Robot
5fa687dd98 Merge "Add transition when swiping from fullscreen to enter PiP" 2021-01-01 00:51:15 +00:00
TreeHugger Robot
618ba37e04 Merge "Add additional fake task views on overview gesture completion." 2020-12-23 01:34:00 +00:00
Schneider Victor-tulias
20bbaa3390 Add additional fake task views on overview gesture completion.
Added motion pause listening to animate an additional fake task view on overview gestures in the sandbox.

Test: manual

Demo: https://drive.google.com/file/d/1EpewbIAxiMUEz0Fqdfbok5q9xpWS6NWz/view?usp=sharing
Change-Id: Ifd0aed0a2bbb3204ae32c833b8466952679700e3
2020-12-22 16:10:09 -08:00
Jason Chang
aa934170de Merge "Fix swipe for notification default should be on instead of off" 2020-12-18 09:29:06 +00:00
Hongwei Wang
0f6b6cc7a2 Add transition when swiping from fullscreen to enter PiP
There are some artifacts actually come from test app implementation
- when in landscape fullscreen, sourceRectHint would include the black
  background on both sides
- when settled in PiP, app does the transition which causes the final
  glitch
Would address these later in the test app itself

Video: http://rcll/aaaaaabFQoRHlzixHdtY/cOco1yoMXwFzSifFqQET9U
Video: http://rcll/aaaaaabFQoRHlzixHdtY/f3IWG09DRO9aUNnzqSdPLU
Bug: 171802909
Test: see video
Change-Id: I783e51e78277b1179a7e8de50050b7c9e1a6de17
2020-12-17 15:56:01 -08:00
TreeHugger Robot
6fa0d55a78 Merge "Checking menu item test to improve test fail diags" 2020-12-17 21:03:17 +00:00
Tracy Zhou
5e394d9a9a Merge "Place recents above app only after the initial touch down" 2020-12-17 03:17:01 +00:00
Vadim Tryshev
bcc2b5ff34 Merge "Instrumenting app-to-pip CUJ." 2020-12-17 02:04:28 +00:00
TreeHugger Robot
ad8d9454d4 Merge "Fix some task view fling calculations" 2020-12-17 00:34:47 +00:00
vadimt
f20a330a5c Instrumenting app-to-pip CUJ.
Bug: 169221267
Test: manual, presubmit
Change-Id: I7fed51af63665ba9b0596f7f01bf3182643fb0a3
2020-12-16 15:39:05 -08:00
Tracy Zhou
bc3ec9fb66 Place recents above app only after the initial touch down
The problem is that currently upon touch down we place recents above app, before recents view is visible, so instead home screen is revealed.

Here is the breakdown:
Initial touch down -> app on top
First move event -> updateFinalShift -> recents on top
End target = home -> app on top

Fixes: 175423704
Test: manual
Change-Id: I81a4fea34c983ac2e6921f4e3515ef3193201069
2020-12-16 15:22:08 -08:00
TreeHugger Robot
a15b5a6760 Merge "Don't crash Launcher when attempting to endTransaction on an already-closed DB." 2020-12-16 22:35:06 +00:00
Tony Wickham
b956a03067 Fix some task view fling calculations
- Map to progress 1 instead of dividing by 0 if expectedDuration == 0
- Map to starting progress one frame ahead based on velocity
- Change direction of velocity so it's in the same direction as the
  task progress (0 is down and 1 is up).

Change-Id: I5ac3f8a0d6c616bd303ac1a902242964bb33d3c7
2020-12-16 09:31:26 -08:00
Jason Chang
6025dfe1ab Fix swipe for notification default should be on instead of off
Set newOneHandedSettingsObserver() defaut value 0 to prevent
blocking swipe-down notification's OneHandedModeInputConsumer
.onStartGestureDetected() when device first booting.

Bug: 175084985

Test: rebuild ROM image and manual
Change-Id: I5fe7d4036ac74682ae72cf210e8b40c63ceb53e1
2020-12-16 19:58:15 +08:00
TreeHugger Robot
2df0ef38a0 Merge "Synchronizing model data access" 2020-12-16 09:59:19 +00:00
TreeHugger Robot
ff720daffd Merge "Ignoring crash if the 3p icon surface is no longer valid" 2020-12-16 09:58:39 +00:00