Commit Graph

413 Commits

Author SHA1 Message Date
tomnatan
4a463aaab8 [7/n] Letterbox Education: add enter/exit animation to the dialog.
Bug: 207010227
Test: N/A
Change-Id: Ie5f88b97c16a7bd043c6c63a8693415563b56a54
2022-02-09 00:23:19 +00:00
Tom Natan
32d5e048f2 Merge "[5/n] Letterbox Education: update the dialog layout." 2022-02-08 20:32:39 +00:00
tomnatan
bf5b7b2dd3 [5/n] Letterbox Education: update the dialog layout.
In addition, remove the overlay layout and include it in the dialog
layout as the background of the top-level layout (renamed as dimmer).

Test: N/A
Bug: 207010227
Change-Id: I658e85378ec266c4260b520b5fcdddbfb66b35c6
2022-02-08 10:36:28 +00:00
Bill Yi
05e8640ad2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I663deb83b5032416072a3d922475c5c87e387bdf
2022-02-05 18:43:42 +00:00
Tom Natan
16e0b72647 Merge "Letterbox Education: Cleanup the toast layout." 2022-02-03 10:15:17 +00:00
tomnatan
6f31ad815b Letterbox Education: Cleanup the toast layout.
The toast is no longer needed since we decided to only show the
letterbox education once as a dialog.

Test: N/A
Bug: 207010227
Change-Id: I1dccf10d0effad111d8ee8e62a068e4dee571c20
2022-02-02 11:29:45 +00:00
TreeHugger Robot
b0c937196d Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-28 06:43:01 +00:00
TreeHugger Robot
39165354e1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-27 04:27:55 +00:00
Bill Yi
dce05666ab Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2bb370a56c79f8127a04baeb523451fac3493def
2022-01-26 01:32:21 +00:00
Bill Yi
7f4ad1ee94 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I301d3d0bbf282a8aba9e10d57e22050e938ee222
2022-01-26 01:27:24 +00:00
Tom Natan
26b7cb8e11 Merge "[1/n] Letterbox Education: Add UI layouts" 2022-01-25 14:22:32 +00:00
tomnatan
51127d083d [1/n] Letterbox Education: Add UI layouts
Test: N/A
Bug: 207010227
Change-Id: I9806121fcd0c6b3432dd5faf98b99bf9cfb747f5
2022-01-25 09:07:03 +00:00
Ben Lin
5636d17fbe Merge "PiP: Disable enterSplit for now." into sc-v2-dev am: b80e7c46da am: 6c5c7f6fb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16458641

Change-Id: Iad546b3ae5d1e9363e99caa3661f5f7044d9d415
2022-01-20 23:36:23 +00:00
Ben Lin
6c5c7f6fb8 Merge "PiP: Disable enterSplit for now." into sc-v2-dev am: b80e7c46da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16458641

Change-Id: Ieff5dcb48b157c401818ff981b1b1eedc15183cc
2022-01-20 23:13:14 +00:00
Ben Lin
eab029ce8d PiP: Disable enterSplit for now.
Bug: 206645013
Test: Enter split button no longer appears
Change-Id: I6237dd1c88f50733ab24e45806c413d5777032e9
2022-01-20 02:15:21 +00:00
Bill Yi
22f9d241cc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibd5fe3cf3371f3546a46bf81f81d990d6786f5da
2022-01-14 21:17:51 +00:00
Bill Yi
c8a4f437c8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf42323ce36547d1209961307cdc93c65a64066e
2022-01-14 02:14:50 +00:00
Mariia Sandrikova
a274e1a7d4 DO NOT MERGE Revert "[2/n] Camera Compat UI: Add interfaces for client-server..." am: 7617679a61
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16571392

Change-Id: I0adf2bf45c5f7d7349e9c0f180aea9d10f70645d
2022-01-13 22:55:51 +00:00
Aurimas Liutikas
aec26c4f68 DO NOT MERGE Revert "[3/n] Camera Compat UI: Add a camera compat control."
Revert submission 16468379

Reason for revert: Feature development is moving to T.

Reverted Changes:
Id9b9a8930:[3/n] Camera Compat UI: Add a camera compat contro...
Id6be4a954:Enable a camera app compat control on Large screen...
I083aa6718:[2/n] Camera Compat UI: Add interfaces for client-...

Bug: 206602997

Change-Id: I318b89b87cd3b05a3f3dcd428e3d80fe81465011
2022-01-13 15:16:51 +00:00
Jacqueline Bronger
481026d372 Merge "Move PiP via DPAD to the four corners (TV)" 2022-01-13 10:11:10 +00:00
Jacqueline Bronger
f5863c14b1 Move PiP via DPAD to the four corners (TV)
Bug: 203641195
Test: manual
Change-Id: Ib2381ae6ff0b43f444af8e984a4f0e6d9786169b
2022-01-12 17:23:08 +01:00
Jason Chang
fbb89d8c65 Merge changes from topic "new-ohm-bg-panel"
* changes:
  (2/n) Implement BackgroundWindowManager to manage tutorial background
  (1/n) Phase out FEATURE_ONE_HANDED_BACKGROUND_PANEL
2022-01-12 15:33:21 +00:00
Jason Chang
6d4fc4ca09 (2/n) Implement BackgroundWindowManager to manage tutorial background
Using WindowlessWindowManager for adding a surface wihtout depend on
Window Hierarchy, we just add leash with specific theme color at
bottom z-order while One-handed trigger, and remove it when exited.

Bug: 197165590

Test: manually test One-handed mode basic operations.
Test: atest WMShellUnitTests
Change-Id: Ie53684edd4511719516c00dd64c2dfad360a593b
2022-01-12 11:44:19 +08:00
Bill Yi
7b3ea9bc04 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-10 04:00:15 +00:00
Bill Yi
042719f4df Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-10 03:59:18 +00:00
TreeHugger Robot
581ad142f9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-09 05:21:03 +00:00
TreeHugger Robot
34171e053d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-09 05:20:12 +00:00
Bill Yi
9f612755b6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifab08e6f5047b918b9d9eb318085f9e281b7fb4a
2022-01-08 05:06:10 +00:00
Bill Yi
fbe8128ea1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie9444c2d04adc95f33300624391b888094c38422
2022-01-08 05:02:23 +00:00
Bill Yi
301d5c5963 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I97d5ca669c13fda5f3c25b97f42ee359953fe172
2022-01-08 05:00:53 +00:00
Bill Yi
664ed31d10 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I17b0b00359d964dce6474934b5b0bc97a117025d
2022-01-08 04:57:14 +00:00
Mariia Sandrikova
d2ccf6edac Merge "[5/n] Camera Compat UI: Unify margins logic for camera and size compat controls." into sc-v2-dev am: b6c52ec273 am: 0cb2c45802
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16527687

Change-Id: I0cf5f6fa171d2cd9f402cd1439c3418631718cc9
2022-01-07 11:23:05 +00:00
Mariia Sandrikova
0cb2c45802 Merge "[5/n] Camera Compat UI: Unify margins logic for camera and size compat controls." into sc-v2-dev am: b6c52ec273
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16527687

Change-Id: Ib282c2fc1fd01d26841ee2003cd604d4150e569f
2022-01-07 11:02:56 +00:00
Mariia Sandrikova
b6c52ec273 Merge "[5/n] Camera Compat UI: Unify margins logic for camera and size compat controls." into sc-v2-dev 2022-01-07 10:49:20 +00:00
Ats Jenk
2ae3ef7465 Merge "Use ConstraintLayout for BadgedImageView" 2022-01-04 23:17:51 +00:00
Mariia Sandrikova
d8cbcc46be [5/n] Camera Compat UI: Unify margins logic for camera and size compat controls.
Before this change, margin between a hint and a camera compat control was smaller than required 8 dp while for a size compat control it was bigger than 8dp (since ag/16420818). This change makes them consistent and also simplifies layout definition for the size compat button by declaring margings explicitly rather than including them in width and height implicitly.

Test: manual
Bug: 206602997
Change-Id: I09839e764d2c8904954a594433888bfdc21d56ba
2021-12-23 18:37:59 +00:00
Bill Yi
6eefdeebae Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2e74699a2c1affb6982cf1142cfaa1b199fc93c0
2021-12-22 01:02:17 +00:00
Bill Yi
e292c27f1f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id88576de2b0d6f2f137c72302ae5ea1905231e1f
2021-12-22 00:57:37 +00:00
Mariia Sandrikova
d77c92a3f1 Merge changes from topic "camera-compat" into sc-v2-dev am: 3486eacda3 am: 02a17e7b1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16468379

Change-Id: Ic9916a3883eef0148a86c86149aa2e883fc56d1b
2021-12-18 22:19:12 +00:00
Mariia Sandrikova
02a17e7b1f Merge changes from topic "camera-compat" into sc-v2-dev am: 3486eacda3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16468379

Change-Id: I1e56abcef9715a3dd6a00d70cb815c4d9260175a
2021-12-18 21:59:31 +00:00
Mariia Sandrikova
13e80fd997 [3/n] Camera Compat UI: Add a camera compat control.
Test: atest WMShellUnitTests
Bug: 206602997
Change-Id: Id9b9a89303387c4ac797fc1382967151a13d38ef
2021-12-17 00:20:19 +00:00
Ats Jenk
f33f1daf62 Use ConstraintLayout for BadgedImageView
App icon badge size is based on the view size, as a ratio.
Use ConstraintLayout to define the app icon size based on constraints.
This way we do not have to recalculate the app icon size manually.
If the BadgedImageView size changes, app icon will be resized automatically.
App icon badge position is fixed to the right. If it needs to be shown
on the left, due to bubble position, we update the location using
translationX.

Bug: 162857077
Test: verified visually that bubble with app icon looks the same
Test: verified visually that when display size changes, app icon changes
  together with bubble size
Test: ran WMShellUnitTests unit tests
Change-Id: I63a6cadfc7847dd0c0d9dca6bb6efd11f5b9958e
2021-12-16 10:30:30 -08:00
Mariia Sandrikova
ef1f033720 Merge "[1/n] Camera Compat UI: Refactor size compat mode UI controller." into sc-v2-dev am: aa7a8cdda5 am: 6863643cda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16420818

Change-Id: I63c10a663aea9471594af90d1c59c57f8bef1e1c
2021-12-12 17:15:30 +00:00
Mariia Sandrikova
6863643cda Merge "[1/n] Camera Compat UI: Refactor size compat mode UI controller." into sc-v2-dev am: aa7a8cdda5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16420818

Change-Id: Id8ebd3b2a6e7bff738bb8d2d5fd8e17cd6b1c4bd
2021-12-12 17:00:08 +00:00
Mariia Sandrikova
6dd79270b0 [1/n] Camera Compat UI: Refactor size compat mode UI controller.
First CL in the chain that will add a camera compat UI control which will be used to correct stretched issues in TextureView and SurfaceView cause by apps not handling mismatch between camera buffers and view size correctly.

This change is necessary because right now there are 2 instances of WindowlessWindowManager (SizeCompatUIWindowManager) in SizeCompatUILayout: for a hint and for a restart button. They are also positioned relatively by computing offsets in java code rather than by specifying layout with XML. This code structure will cause issues since with upcoming camera changes there will be a need to coordinate relative position of 4 UI elements (2 buttons and 2 hints).

What is changing in this CL:
- Majority of changes are simple renaming from "size compat UI" to "compat UI" since, starting from the next change, two different compat controls will be supported.
- Merging 2 instances of SizeCompatUIWindowManager into one (CompatUIWindowManager) and for that create a joint layout in compat_ui_layout.xml
- Merge SizeCompatLayout logic into CompatUIWindowManager since in absence of 2 instances of WindowlessWindowManager there is no good reason to keep them separate.
- Merging and renaming tests to follow refactoring of the implementation.

Test: atest WMShellUnitTests (the same set of tests should be sufficient since this refactoring just reorganized the structure of the implementation)
Bug: 206602997
Change-Id: I7141c69b7ba4742c5b7b2018329b91a1b37b45bc
2021-12-11 13:00:23 +00:00
Jacqueline Bronger
ea650c5c14 Merge "Tv pip menu design update (1)" 2021-12-09 14:53:24 +00:00
Jacqueline Bronger
1eeea7c0c5 Tv pip menu design update (1)
PiP window stays where it is instead of moving to the center and
the menu buttons are shown on centered on the pip instead of below
the window.

Additionally disabled menu items are removed to avoid cluttering.

Bug: 201270615
Test: manual
Change-Id: I9af5dc04dd0999d61add88a3475c697b376034d0
2021-12-08 14:24:19 +01:00
TreeHugger Robot
67883733a0 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-12-01 17:05:02 +00:00
TreeHugger Robot
d4377890cf Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-12-01 17:03:19 +00:00
Mady Mellor
cb646e9d65 Merge "Drag and drop to split transition" into sc-v2-dev am: 8653f2eeb5 am: f42d0346ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16224193

Change-Id: I239808b6ec35c45207dcf057bf5558412a3a7555
2021-11-30 18:30:44 +00:00