Commit Graph

277 Commits

Author SHA1 Message Date
Bill Yi
e0ddb23d3f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I415a4afa4d0a10a32a211de24b63c698a7d6cdc2
2021-08-04 10:07:45 +00:00
Mady Mellor
6980806291 Merge changes I500c566e,I4b5ffc26 into sc-v2-dev am: 81ce27f854 am: 3d1ed7a4f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15440807

Change-Id: I1dc04db9282adeb658a672d979426f1a2748521e
2021-08-03 01:22:29 +00:00
Mady Mellor
3d1ed7a4f8 Merge changes I500c566e,I4b5ffc26 into sc-v2-dev am: 81ce27f854
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15440807

Change-Id: I16d4d764895a3d2c3f8725e0949559398b164011
2021-08-03 01:21:53 +00:00
Mady Mellor
3289ae9f64 Update the flyout width to be smaller on large screens
On phone we use 60% of the screen which is huge on
tablet. This change uses 30% of the screen for the
flyout on large screens & enforces a minimum for
that value.

Test: manual - get a long message in a bubble on a
               tablet, it should have similar width
               as it does on phone.
Bug: 186776550
Change-Id: I500c566edd9941dc2bd149692eaf95c6e6f4aa61
2021-08-02 14:03:01 -07:00
Mady Mellor
ba35a77513 Updates to manage button based on latest mocks
- manage button should be inset from the expanded view edge
  but the menu should be flush with expanded view edge.
- button size is smaller (36dp instead of 40dp)
- more padding (16dp above / below on both tablet & phone)
- diff colour N1-800 instead of N1-900

Test: visual 1 - expand a bubble and look at 'manage' button
             2 - tap on the button and look at the menu
             3 - do 1 & 2 on tablet & in RTL & on phone
                 landscape
Bug: 183658858
Change-Id: I4b5ffc26602b72ee28d26476fc222df3e2e1e80b
2021-08-02 12:20:08 -07:00
Mady Mellor
66b936d926 Merge changes Ie7aaec55,I3053cdb6 into sc-v2-dev am: 57a3e448f6 am: efc97e3688
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15421004

Change-Id: I2b90171df59cdbf4514bc4e609f09d98bbabe588
2021-07-30 17:16:33 +00:00
Mady Mellor
efc97e3688 Merge changes Ie7aaec55,I3053cdb6 into sc-v2-dev am: 57a3e448f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15421004

Change-Id: If1e174c0584c849ca1aa2c758d40fa560c123312
2021-07-30 17:03:35 +00:00
Mady Mellor
57a3e448f6 Merge changes Ie7aaec55,I3053cdb6 into sc-v2-dev
* changes:
  Remove BUBBLE_EXPANDED state from ScrimController
  Manage menu changes
2021-07-30 16:47:43 +00:00
Mady Mellor
0974348d31 Manage menu changes
- padding & size updates
- scrim between bubble expanded view and the manage menu

Test: manual - expand a bubble, tap on the manage menu, it
      should animate in with a scrim behind it.
Bug: 183658858
Change-Id: I3053cdb61497434a0aeb49eb33f87a3dafb364d7
2021-07-29 12:46:19 -07:00
TreeHugger Robot
9d1f00944b Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I544c9b53f7475690b4ff898e8455d893411d2c06
2021-07-28 14:43:57 +00:00
TreeHugger Robot
168a9678bd Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1 am: 6043cd6908
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I59954be11813fef6c86abd4d62ad69515de62007
2021-07-26 18:52:03 +00:00
Bill Yi
a81a5aefe9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I42bee20dd7e0a9fb93eb366fd51be58d4fcba2f2
2021-07-23 13:35:10 +00:00
Bill Yi
97273608d6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I916e58b79569960ae9f54e0da87147f3a012b830
2021-07-23 13:31:44 +00:00
TreeHugger Robot
a2d9c17502 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1 am: eddf948d71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I34ff608a91ff6da54ed46bd9c0f26001d7d5bc8d
2021-07-22 20:51:21 +00:00
TreeHugger Robot
eddf948d71 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: Id8269fd9a67aba5f5f47ea0738212db022546d75
2021-07-22 20:31:46 +00:00
TreeHugger Robot
6043cd6908 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I0ec888e0bcbe99a6a666920ea2455e01372a2d3a
2021-07-22 20:31:41 +00:00
TreeHugger Robot
a08d1cb0f1 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev 2021-07-22 20:09:53 +00:00
Jason Chang
966382b0c9 Apply theme color and fade-in transition effect at
the top of One-handed mode

1. Implement the Dynamic color theme at the top Tutorial area
but the color should not be the same as the recents UI.

2. Do not translate Tutorial icon & text vertically, then provide
quick subtle fade-in effect for Tutorial window.

3. Apply new icon for tutorial.

Bug: 193126258
Bug: 193589897

Test: Local verify when changing dark theme and wallpaper theme.
Test: Local verify Tutorial icon & text fade-in effect.
Test: atest SystemUITests
Test: atest WMShellTests
Test: Perfetto check enter & exit performance
Change-Id: I60f4e7a709f3a27fe6c7f480f1012caccdbbe5ec
2021-07-22 23:00:06 +08:00
Ben Lin
1626a96b58 Merge "PiP: Allow customization of PiP minimum size." into sc-dev am: c312c6481b am: 9b550d2c36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077517

Change-Id: I03bd0ddb2472c66a59a43ec1c316405940bba524
2021-07-20 21:09:49 +00:00
Ben Lin
1ff459512b Merge "PiP: Allow customization of PiP minimum size." into sc-dev am: c312c6481b am: d87deceb6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077517

Change-Id: Ia578db3b102826c6d41eeb69d056995eb7312b7e
2021-07-20 21:09:05 +00:00
Ben Lin
9b550d2c36 Merge "PiP: Allow customization of PiP minimum size." into sc-dev am: c312c6481b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077517

Change-Id: I69aff8f023f206d42b9c09d593a880c6fa7b9b90
2021-07-20 20:56:26 +00:00
Ben Lin
d87deceb6e Merge "PiP: Allow customization of PiP minimum size." into sc-dev am: c312c6481b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077517

Change-Id: I1059c3c96a81084f1fb55b2f99590f4b33bfdbd5
2021-07-20 20:55:45 +00:00
Ben Lin
09755b5477 Merge "PiP: Allow customization of PiP minimum size." into sc-dev am: c312c6481b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077517

Change-Id: Ief4c4e03a5042e08e17d358f7f16380bcaacea1e
2021-07-20 20:55:36 +00:00
Ben Lin
c312c6481b Merge "PiP: Allow customization of PiP minimum size." into sc-dev 2021-07-20 20:35:36 +00:00
Ben Lin
f75fffdc20 PiP: Allow customization of PiP minimum size.
Bug: 171596717
Test: None.
Change-Id: I9bb6f2740d25fce99a436f938e7b3cca819ffa98
2021-07-15 12:21:30 -07:00
Bill Yi
fa14bbb966 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf7e215a10a33572728d0cd72df17e79271e44e4
2021-07-12 11:55:14 +00:00
Bill Yi
f191be6284 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I247ea540bfc4d50ef2885246cc6cdf575f25f423
2021-07-12 11:52:33 +00:00
Bill Yi
71be08107c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9120bcce06036ec258aea077d3e60134b7a2c1d1
2021-07-07 13:40:10 +00:00
Bill Yi
47c79280db Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0ed984dbfb454ec6d63bf3081f42b7eed11b34b1
2021-06-30 18:14:54 +00:00
Bill Yi
87b485f2dd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia1e7179f98a762a7f4ea8cfc3cc6cd17e9e97072
2021-06-30 18:13:21 +00:00
Bill Yi
054f2935e5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia6caec6bc43f7eddaea866672beb6a6aa9330cad
2021-06-30 18:11:59 +00:00
Bill Yi
1a2a1b34b8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4376175b574cbef987618825b14e167bdb081ff0
2021-06-29 06:54:54 +00:00
Bill Yi
1172b34f6d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I824e9901310a3db284ca50951733679725020722
2021-06-29 06:52:23 +00:00
Bill Yi
cdecd1f4c3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8a7847a617bc2ccedde00920dd1a4d3d5b0a2753
2021-06-28 18:41:30 +00:00
Mady Mellor
ee2b3f3ecb Merge "Add a note about keeping a dimension value in sync with CTS" into sc-dev am: f46a8f6276
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080681

Change-Id: Ib215e9622210ecc0d0ae390c1b6944e621867e7d
2021-06-24 02:32:11 +00:00
Mady Mellor
3bda774697 Merge "Add a note about keeping a dimension value in sync with CTS" into sc-dev am: f46a8f6276 am: bbf7a1fc66
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080681

Change-Id: I5f7a60c6bb9fde944978429ca1d03333fe360aad
2021-06-23 22:14:10 +00:00
Mady Mellor
1d4f603e21 Merge "Add a note about keeping a dimension value in sync with CTS" into sc-dev am: f46a8f6276 am: 32cea47b4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080681

Change-Id: Ida0679665728bb095e85db7169f85f0490ae9220
2021-06-23 21:11:55 +00:00
Mady Mellor
bbf7a1fc66 Merge "Add a note about keeping a dimension value in sync with CTS" into sc-dev am: f46a8f6276
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080681

Change-Id: I8bebf3091a99d29fc63780fcf76eae5e5419866a
2021-06-23 20:58:39 +00:00
Mady Mellor
32cea47b4c Merge "Add a note about keeping a dimension value in sync with CTS" into sc-dev am: f46a8f6276
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080681

Change-Id: I0dfaefed72fc322e487b0d7a2964f0490431ac38
2021-06-23 20:58:26 +00:00
Mady Mellor
ab00abc6f6 Add a note about keeping a dimension value in sync with CTS
Test: treehugger
Bug: 182934996
Change-Id: Ib8dd9bc9d13d9f5a737ceb0d61e34b825f883f8c
2021-06-23 11:04:27 -07:00
TreeHugger Robot
b5fc663758 Merge "Add border to indicate side stage split region" into sc-v2-dev am: a8424ea593 am: ea91f2ed70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15048194

Change-Id: I7f776e3af2aee3c46b398e826bac014139544894
2021-06-23 06:41:35 +00:00
TreeHugger Robot
ea91f2ed70 Merge "Add border to indicate side stage split region" into sc-v2-dev am: a8424ea593
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15048194

Change-Id: I16f1f68a3017263103db711c59feb397894dbb5b
2021-06-23 06:26:59 +00:00
Jerry Chang
7bf62d76e8 Add border to indicate side stage split region
Add a view to draw border of side stage root task.

Bug: 189839391
Test: manual checks side stage border.

Change-Id: Ie0606338d6907f92c80f11c7d86dca6bf525e45d
2021-06-23 01:13:44 +00:00
Bill Lin
2225a58b34 Merge "Allow one-handed mode shortcut expand notification" into sc-dev am: 789f014c04 am: dd211bab21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14957128

Change-Id: I653e6446bcdac8ba7ed628ae7e89fb44d03b7b24
2021-06-17 00:39:16 +00:00
Bill Lin
2214897235 Merge "Allow one-handed mode shortcut expand notification" into sc-dev am: 789f014c04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14957128

Change-Id: Ic889ca6d24deb1e4a721f87837c3d813dbb1b0b2
2021-06-17 00:25:38 +00:00
Bill Lin
dd211bab21 Merge "Allow one-handed mode shortcut expand notification" into sc-dev am: 789f014c04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14957128

Change-Id: Ifce69988d9f86294ad0b91c94606dedce3a15f08
2021-06-17 00:23:48 +00:00
Bill Lin
789f014c04 Merge "Allow one-handed mode shortcut expand notification" into sc-dev 2021-06-16 23:59:28 +00:00
Bill Lin
ca75e7e466 Allow one-handed mode shortcut expand notification
1) Add OneHandedEventCallback for WMShell to register
   callback, and if one handed mode settings set show
   notifications, when user tap one handed mode shortcut
   notify WMShell send KEYCODE_SYSTEM_NAVIGATION_DOWN
   through OneHandedEventCallback with SysUIMainExecutor.

2) Add isReady() flag in OneHandedDisplayAreaOrganizer
   and Simplify the flow of onActivatedActionChanged()
   to prevent potential race problem while auto-enable
   One-handed and immeditately startOneHanded(), however,
   DisplayAreaOrganizer#onDisplayAreaAppeared() may not
   ready for transtion yet, and result mState keep in
   unfinsihed STATE_ENTERING.

3) Adjust the transiton duration from 800ms to 600ms
   800ms is a little bit long to affect timing of
   apply runtime overlay package.

4) DelayExecute setEnabledGesturalOverlay() until
   transition finised and at most delay once.
   - onSwipeToNotificationEnabledChanged() : DelayExecute
   - onEnabledSettingChanged() : DelayExecute
   - Ctor setupGesturalOverlay() : No DelayExecute
   - mState.isTransitioning() : DelayExecute

Test: WMShellUnitTests
Bug: 182425480
Change-Id: I2615c3b30ad95a858510b4bcc73d8f343843fc96
2021-06-17 01:12:32 +08:00
Bill Yi
1729ea4c88 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iab4b9ceaa274a0914f294e71d8fc56f99bd6c87d
2021-06-15 02:38:26 +00:00
Bill Yi
575886adff Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I02b4ba5d59e656eeaad58df19e22df03bae22de3
2021-06-15 02:36:33 +00:00