Commit Graph

50949 Commits

Author SHA1 Message Date
TreeHugger Robot
56af862615 Merge "Reset WindowContainerTransaction when rotation changed callback" 2020-10-08 06:05:19 +00:00
TreeHugger Robot
0e4965517e Merge "Respect feature flag when providing OHM controller" 2020-10-08 05:38:48 +00:00
Bill Lin
038ca7f431 Reset WindowContainerTransaction when rotation changed callback
* Fix the problem that wct do not update/reset bounds after rotation
* Fix ConcurrentModificationException bug
* Refactor OneHandedDisplayAreaOrganizerTest
* Implement OHM dump in WMShell
* Consolidate the test cases
* Replace HashMap to ArrayMap for memory efficiency

Test: manual trigger OHM, rotate device, observe leash is reset
Test: atest SystemUITests
Test: atest WMShellUnitTests
Bug: 162470563
Bug: 170284095
Fixes: 160848002
Change-Id: I1c653174e28c72253cc7eac1d294a5c598bb7921
2020-10-08 03:55:50 +00:00
TreeHugger Robot
f2b2eb1ae3 Merge "Remove Dependency#get from SmartReplyView" 2020-10-08 02:48:54 +00:00
Ryan Lin
700fd8754b Merge "Make magnification mode switch accessible" 2020-10-08 02:01:11 +00:00
Steve Elliott
4f97e7aa48 Remove Dependency#get from SmartReplyView
Test: manual, atest
Change-Id: I79e3e35090d570f853a86e16c99d56dc08ed1821
2020-10-07 19:28:55 -04:00
Maryam Karimzadehgan
457fa2cb10 Merge "Add package_name to log for debugging the back gesture model." 2020-10-07 20:14:51 +00:00
Anna Zappone
a2a42892af Merge "Create & populate People Space activity" 2020-10-07 17:45:33 +00:00
Maryam Karimzadehgan
601b39f94b Add package_name to log for debugging the back gesture model.
Test: manual.
Bug: 150170384
Change-Id: I94efa3ec6af62b485c45f9bf17861722b73ecca3
2020-10-07 16:05:15 +00:00
ryanlwlin
28e2938771 Make magnification mode switch accessible
To support accessibility of magnification mode switch,
We provide content description, state description and
click action.

Bug: 168278448
Test: Enable Talkback to do manually test
      atest MagnificationModeSwitchTest

Change-Id: I1b94f3849f85db4f6dc2b801d0dd6ff40d0c87ed
2020-10-07 21:42:49 +08:00
TreeHugger Robot
d573aae54a Merge "Add Plugin interface for Toasts" 2020-10-07 12:51:48 +00:00
Andras Kloczl
7f3c2dc240 Add user name photo dialog to user creation
- Remove unused method switchTo
- Move edit user controllers from settings module
- Create new activity for new user creation
- Add ActivityStarter for delegating activity starting
- Add UserCreator for user creation logic
- Add UserCreatingDialog to display while user is creating

Test: manual test && atest EditUserInfoControllerTest
Doc: http://shortn/_cJE9o6pBZR
Screenrecords: http://shortn/_VEN6rr5ta6
Bug: 147653252
Change-Id: I6a7f1dba499e95891c69569ab731f86e6fd1dc16
2020-10-06 20:43:41 +01:00
Anna Zappone
d5a3ab0e91 Create & populate People Space activity
Populates an activity with a tile per "priority" conversation. To start
the activity run:
$ adb shell am start -n
com.android.systemui/com.android.systemui.people.PeopleSpaceActivity

Test: build and run
Change-Id: Ie75382306c002c0dbabf807d61f08851a0995f8b
2020-10-06 16:46:55 +01:00
Lyn Han
13f56b66b0 Merge "Update flyout post fontScale change" 2020-10-06 15:03:39 +00:00
Jerry Chang
d8cb9140a9 Respect feature flag when providing OHM controller
Bug: 170188471
Test: atest SystemUITests
Test: atest WMShellUnitTests
Change-Id: I222a7c0a0f34771df3cfbd99f14ff79b2c5aaa73
2020-10-06 18:42:26 +08:00
TreeHugger Robot
94f3df4610 Merge "Migrate Bubbles to wm-shell (2/n)" 2020-10-06 05:53:25 +00:00
Hongwei Wang
86c8af2d1e Merge "Improve PIP enter transition w/ gesture nav (2/N)" 2020-10-06 04:09:06 +00:00
Tony Huang
99162817d5 Migrate Bubbles to wm-shell (2/n)
Remove sysui dependency and dagger in Bubble and BubbleData class.

Bug: 161980186
Test: atest SystemUITests
Change-Id: Ic66787e194414e5a4b8c98226598bbf274a285a9
2020-10-06 11:51:09 +08:00
Louis Chang
d1b79549d2 Renaming Stacks APIs to RootTasks
This CL is aimed to refine the AM/ATM API surface. The other
stack naming internally spread in AM and ATM will be covered
in later CLs.

Also Consolidate #removeStack() with #removeTask().

Bug: 157876448
Test: existing tests

Change-Id: I1254f972dab3bbe66a736a0402eebce9d0fb1496
2020-10-06 08:39:18 +08:00
Wale Ogunwale
4b768acc29 Merge "Added WindowManagerWrapper#setProvidesInsetsTypes" 2020-10-05 22:46:25 +00:00
Hongwei Wang
cf1d1b853a Improve PIP enter transition w/ gesture nav (2/N)
Allow Launcher to query destination bounds of PiP window from SysUI.
Add also the callback notifies SysUI that the swipe-pip-to-home
operation is finished.

PipTaskOrganizer would ignore the entering transition if
swipe-pip-to-home should happen in Launcher.

Next: handle the swipe-pip-to-home transition in Launcher

Bug: 143965596
Test: N/A
Change-Id: Ia8bbdfcd4ed92c7ed968be84f0bf991feac8598e
2020-10-05 12:18:28 -07:00
TreeHugger Robot
a868ad5601 Merge "Imporove screen audio recorder logs and code" 2020-10-05 15:33:40 +00:00
Riddle Hsu
613ba2d25e Support latency metrics for recents gesture
Accpet the event time from RecentsAnimation#startRecentsActivity.
Also remove unused method of recents animation in activity manager.

Bug: 169221287
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Touch gesture navigation bar.
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->4[I] 0x110000->20[I]
      that means 4=by recents and 20=latency 20ms.

Change-Id: Ia188a6a3b0dab9edaa0052df3b18508f8cc895d3
2020-10-05 15:56:01 +08:00
Bill Yi
a3ed4237cd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iad3dc59284ad730784722df6c4aae87f62e5a72d
2020-10-03 20:23:22 +00:00
TreeHugger Robot
d41d1e959e Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-03 04:57:42 +00:00
TreeHugger Robot
50c39dcf45 Merge "Magnification window should not block bottom navigation bar" 2020-10-03 03:20:47 +00:00
Wale Ogunwale
f1c1fd27b4 Added WindowManagerWrapper#setProvidesInsetsTypes
Allows launcher to set providesInsetsType on a window
Also, cleaned up ctor for ShellTaskOrganizer to reduce
duplicate code.

Bug: 169054709
Test: builds
Change-Id: I9e1f4a27b924013c0b6b17f0a5e10ac3411cbf4e
2020-10-02 15:32:22 -07:00
TreeHugger Robot
ebb701a9ff Merge "Dismiss dialog after MediaOutputDialog tests" 2020-10-02 21:12:11 +00:00
Dave Mankoff
ba30f6bf6b Merge changes from topic "b168904199-qs-injection"
* changes:
  6/N Remove UserTracker from QSBarHeader
  5/N Remove DemoModecontroller from QSBarHeader
  4/N Remove ZenModeController for QSBarHeader.
  3/N Move PrivacyItemController out of QSBarHeader.
  2/N Remove SBIconCtrl and CommandQueue from QSBarHeader.
  1/N Remove Injection from QSSBHeader
2020-10-02 21:00:37 +00:00
Bill Yi
f12b9c1e95 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib94d410224589eabad8a5bd90dfb75eb1c55cfec
2020-10-02 18:10:15 +00:00
Fabian Kozynski
b1d7c2116d Dismiss dialog after MediaOutputDialog tests
Each test creates a Dialog that was not dismissed. This caused a crash
down the line due to it being unresponsive.

Test: atest SystemUITests
Fixes: 169755490
Change-Id: I34119ec1272f7595c5aa8d9c8a379bd5d4efb3c6
2020-10-02 11:52:36 -04:00
Jay Aliomer
a9e81c1d21 Imporove screen audio recorder logs and code
Bugs: 169492619
Test: manual
Change-Id: Ic862f102a76b25eccec2653a9955075d402563ed
2020-10-02 11:40:59 -04:00
Dave Mankoff
3387ca4bc2 6/N Remove UserTracker from QSBarHeader
Remove the UserTracker from the QuickStatusBarHeader. This removes the
last view injection from QuickStatusBarHeader.

Bug: 168904199
Test: atest SytemUITests
Change-Id: I2f5bf971041b75642b292f7494f31f210e1cb724
2020-10-02 10:52:43 -04:00
TreeHugger Robot
ab7f9b2c54 Merge "Test no vibration if first ringer state = vibrate" 2020-10-02 11:40:57 +00:00
TreeHugger Robot
e4d0f9dc1e Merge "Fix mic indicator crash when animation gets cancelled" 2020-10-02 10:58:54 +00:00
Sergey Nikolaienkov
38f85b72c6 Fix mic indicator crash when animation gets cancelled
Take into account the fact that when ValueAnimator#cancel() is called
the listener receives the onAnimationEnd() as well as the
onAnimationCancel(). The fact that we did not destinguish between the
scenarios when the animation is fully completed and when the animation
was cancelled led to the crash in the AudioRecordingDisclosureBar. This
CL fixes the crash by handling these two cases differently.

Bug: 166578426
Test: make, flash
Test: adb shell appops start <package> 27
Test: adb shell appops stop <package> 27
Change-Id: I19489e3db18aeabfac8bbd3df0a04b7d85f5a697
2020-10-02 07:58:02 +00:00
TreeHugger Robot
76ec00ed10 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-02 02:04:57 +00:00
Lyn Han
67486e578d Update flyout post fontScale change
Fixes: 168682294
Test: change font size repeatedly => flyout text updates correctly
Change-Id: I150bbfecc04a1e18476cd9fce3a2998ceaf047c1
2020-10-01 13:28:19 -07:00
Hongwei Wang
1735c59a61 Merge "Improve PIP enter transition w/ gesture nav (1/N)" 2020-10-01 20:18:15 +00:00
Bill Yi
51bfa5ec58 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0bf269dd09bcf4abea2d6b46d2092d38e8f314de
2020-10-01 11:11:06 -07:00
Dave Mankoff
1f88b54079 5/N Remove DemoModecontroller from QSBarHeader
Remove the DemoModecontroller from the QuickStatusBarHeader.

Bug: 168904199
Test: atest SytemUITests
Change-Id: Ie02cbc5c83185cd050ceed744455b1e99f02dedf
2020-10-01 13:26:38 -04:00
Dave Mankoff
8143950a35 4/N Remove ZenModeController for QSBarHeader.
Remove the ZenModeController from the QuickStatusBarHeader.

Test: atest SystemUITests
Bug: 168904199
Change-Id: Icaf9085630f0daec16cb5d86c9552b21a2e9d0e6
2020-10-01 13:26:38 -04:00
Dave Mankoff
dbd75e92d3 3/N Move PrivacyItemController out of QSBarHeader.
Move PrivacyItemController out of QuickStatusBarHeader and
into its controller.

Change-Id: Ibdc24912fd333d80ab13dfd5df12ebc27d68353f
Test: atest SystemUITests
2020-10-01 13:26:37 -04:00
Dave Mankoff
df721fcc9a 2/N Remove SBIconCtrl and CommandQueue from QSBarHeader.
Remove StatusBarIconController and CommandQueue from QuickStatusBarHeader.
Relevant code has been moved to the controller.

Bug: 168904199
Test: atest SystemUITests
Change-Id: Ia310cf87f3da2312007dca295aa281516febe9a1
2020-10-01 13:26:35 -04:00
Dave Mankoff
cd7aeb16de 1/N Remove Injection from QSSBHeader
First pass at removing injected items from the QuickStatusbarHeader,
moving relevant items over to its controller. Lots of unused members
are  removed in this CL as well.

Bug: 168904199
Test: atest SystemUITests
Change-Id: I10b85e2b14f0ec3cd1988b6184a270209211618a
2020-10-01 13:25:52 -04:00
Robert Snoeberger
31b3d88a93 Merge "Remove OnPreDrawListener when detached from window" 2020-10-01 15:51:09 +00:00
Jeff DeCew
cef2752694 Merge changes I64db4cc6,I1c6f86a8,I81ba7561,I25e623c2
* changes:
  Media player attempts to dismiss notifications when players removed.
  Add TODO about cleared media player notifications.
  Add some logging to help diagnose a crash with duplicate section headers
  NotificationMediaManager populates media player when using new pipeline.
2020-10-01 14:47:49 +00:00
Beverly
9e88d6e7ff Test no vibration if first ringer state = vibrate
Test to ensure when the device first boots up, that when the ringer
state on the volume dialog is set to VIBRATE, the device won't vibrate.
The device will only vibrate if the ringer is manually set to VIBRATE
later after initalization.

Test: atest VolumeDialogImplTest
Fixes: 169679638
Change-Id: Ia384b299b9fef962992d32355dfe2e2909635239
2020-10-01 08:56:05 -04:00
Riddle Hsu
29a3d51166 Merge "Add method to set start source info from launcher" 2020-10-01 03:17:56 +00:00
Kevin Chyn
dee230f919 Merge "Rename existing getSensorProperties, prepare for TestApi" 2020-10-01 01:24:01 +00:00