Commit Graph

39086 Commits

Author SHA1 Message Date
Ben Murdoch
801f12923d Merge "Move config_useKeyguardUserSwitcher from sysui overlay to framework." into rvc-dev 2020-03-23 14:58:01 +00:00
Wale Ogunwale
5794658be0 Move some window related files to android.window package
Window management files on the client side have normally been dumped in
either android.view or android.app package. This CL starts to
centralized them in android.window package so there is better
separation.

Test: they pass
Bug: 147406652
Bug: 152113464
Bug: 152117221
Change-Id: I4d64bd256e9b3581af0ccf9396f7dd2454132719
2020-03-22 09:47:43 -07:00
TreeHugger Robot
bb725ba49e Merge "Controls UI - Update strings to match latest guidance" into rvc-dev 2020-03-21 03:14:16 +00:00
Selim Cinek
f6ff283033 Merge "Improved transitions for conversations" into rvc-dev 2020-03-21 02:31:07 +00:00
Selim Cinek
5568ff4a4c Merge "Improved the transitions and layout of the app name in conversations" into rvc-dev 2020-03-21 01:04:00 +00:00
TreeHugger Robot
eb0d8bff9b Merge "Add application name to expanded conversation view" into rvc-dev 2020-03-21 00:53:04 +00:00
TreeHugger Robot
fd8d9650ac Merge "Add importance ring around conversation badge" into rvc-dev 2020-03-21 00:46:13 +00:00
TreeHugger Robot
68de49c904 Merge "Fixed the translation of messages" into rvc-dev 2020-03-21 00:31:58 +00:00
Selim Cinek
ecf248f633 Improved transitions for conversations
The conversation titles weren't transforming before and
fading in / out before as a result. Also the icon and
its background was animating which was leading to some
strange flickers.

Bug: 150905003
Test: add group message, observe normal transitions
Change-Id: I8fa3b0e4ba4beae2661025b8456222ead7f5faaa
2020-03-20 23:25:23 +00:00
TreeHugger Robot
0fb3776287 Merge "Conversation inline controls redesign" into rvc-dev 2020-03-20 22:40:34 +00:00
TreeHugger Robot
4bd7796e1d Merge "Made image messages display externally in the layout" into rvc-dev 2020-03-20 22:20:28 +00:00
Selim Cinek
cef53f36de Improved the transitions and layout of the app name in conversations
The transition was using getTop instead of absolute positions which
didn't work well for the conversation layout.
Also, we were fading in views that were GONE and making them VISIBLE
which lead to bugs during the transitions.
Additionally, the header text would become visible when a notification
was removed from a group and reset.

Bug: 150905003
Test: visual, add conversations in groups and non-groups
Change-Id: I3c31006a1fc79f7d58cc1dd3d5af44129c9f02bb
2020-03-20 18:03:34 -04:00
Steve Elliott
52440e988c Add application name to expanded conversation view
Bug: 150905003
Test: manual
Change-Id: Ibb16717028498c508beda423a76375499a6f6ad9
2020-03-20 18:03:34 -04:00
Steve Elliott
928bb16c9f Add importance ring around conversation badge
Bug: 150905003
Test: manual
Change-Id: I967122fcf6404491fb514bc42e5f9e64490b8024
2020-03-20 18:03:32 -04:00
Matt Pietal
e80c7812d4 Controls UI - Update strings to match latest guidance
Update existing strings, and add strings that we will need to complete
the implementation

Bug: 151322044
Test: visual
Change-Id: Iee922e8f6db6c3058dc9c5ce77eef63c9b6bd2db
2020-03-20 17:38:06 -04:00
TreeHugger Robot
bc78be758b Merge "Upsort important conversations above others" into rvc-dev 2020-03-20 20:02:22 +00:00
Selim Cinek
28e4801c57 Fixed the translation of messages
When transforming from single line horizontal
to vertical display, the transition got messed up.
We're now looking at the absolute positions instead
of just local adaptions

Bug: 150905003
Test: add group with two messages, observe normal expansion
Change-Id: I20fb2deefd7e39ff8d8473611946284f9598bb9a
2020-03-20 15:59:06 -04:00
Selim Cinek
514b52c091 Made image messages display externally in the layout
Previously image messages were embedded in the
messaging list instead of at the root.
Also rendering the images slightly differently such that
they don't always use the aspect ratio but can scale

Bug: 150905003
Test: add messaging layout with image, observe nice display
Change-Id: Iba25a1f81d77b58bfccbe2f9b8dfc502fdf8bdd4
2020-03-20 15:59:06 -04:00
Yvonne Jiang
20cf3de04c Merge "Secondary Lockscreen API: improve documentation and rename onSurfaceReady method." into rvc-dev 2020-03-20 19:43:13 +00:00
Julia Reynolds
a856e49c18 Conversation inline controls redesign
Test: atest
Bug: 151761824
Change-Id: I62da11c44df3cb3f83450a2547df4490e9d3e127
2020-03-20 19:25:51 +00:00
Evan Rosky
0942cde6d6 Merge "Restrict ime adjustment to maintain primary split visibility" into rvc-dev 2020-03-20 18:20:15 +00:00
Evan Rosky
1a760811be Merge "Unset minimized when recents dies" into rvc-dev 2020-03-20 18:20:15 +00:00
Mady Mellor
5e2ddf0391 Merge "Bubbles API council feedback" into rvc-dev 2020-03-20 17:17:36 +00:00
Yvonne Jiang
8345da3a97 Secondary Lockscreen API: improve documentation and rename onSurfaceReady method.
- Documentation clarity and method rename per API review feedback.
- Specifying in documentation and implementation that the implementing service must be exported by the Profile Owner.

Bug: 150866056
Bug: 136085151
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I58175bd6cf8936f5b1267625ca15b4f9c57f4144
2020-03-20 17:06:24 +00:00
TreeHugger Robot
303f23382f Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-03-20 16:56:48 +00:00
Steve Elliott
8568255c25 Upsort important conversations above others
Fixes: 152031857
Fixes: 149046729
Test: manual, atest
Change-Id: I7d26a3cc362c216511e7844e85ef1f7f47d7aafd
2020-03-20 15:32:05 +00:00
TreeHugger Robot
39ea2f1d51 Merge "Stop inflate on overflow and null check views" into rvc-dev 2020-03-20 14:41:17 +00:00
Ben Murdoch
63322a6d7a Move config_useKeyguardUserSwitcher from sysui overlay to framework.
This will enable access to this resource from other packages, e.g.
Settings.

Bug: 151221154
Test: Manual verification with overlay true / false.
Change-Id: Ia53d5edcb55b8df0f5d68f88740b3e8f64aae5c5
2020-03-20 13:47:34 +00:00
Rahul Sabnis
c62712e98e Add error code for BluetoothDevice#getBatteryLevel to represent
Bluetooth is off

Bug: 147428695
Test: Manual
Merged-In: I07c2fa49954632da6aa6a93706883e4cdfd32fa6
Change-Id: I07c2fa49954632da6aa6a93706883e4cdfd32fa6
2020-03-20 01:38:06 -07:00
Bill Yi
8980546a00 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I43e5409da37374c757a41ed8b3b32346bbe99ef6
2020-03-20 00:21:01 -07:00
Hongwei Wang
69d1cdf903 Merge "Scale the leash for expand/collpase PiP transition" into rvc-dev 2020-03-20 05:48:11 +00:00
Lyn Han
18cdc1c46b Stop inflate on overflow and null check views
Fixes: 151833548
Fixes: 151879831
Test - manual: bugs fixed with overflow flag on/off
Test: atest SystemUITests

Change-Id: Id2e222354764a8f54c81cadb4e79bfffe0471717
2020-03-19 22:18:55 -07:00
Winson Chung
39e48befe6 Unset minimized when recents dies
Bug: 151181674
Test: builds and tests pass
Change-Id: I8a3e2d100fdd3f83c210c75e19d7dc0724d55bcd
2020-03-19 19:37:46 -07:00
Evan Rosky
f64f5dab26 Restrict ime adjustment to maintain primary split visibility
This does a few things.

1. Fixes the logic around restricting the amount of adjustment. Its
   supposed to make sure that at-least 1/3 of the primary split is
   visible.

2. Fixes an issue where windowcontainertransactions weren't applying
   configuration updates to tiles specifically

3. Includes configuration changes among the things that will send
   onTaskInfoChanged updates to task-organizers. Previously, the
   changes were actually applied late.
   - The reported changes are restricted to only configs that
     task organizers can set.

4. To adapt to config changes being reported, divider code needed
   to be changed.

Bug: 151181674
Test: Using various snaps of split, open ime in secondary and
      verify that primary remains visible.
Change-Id: I7001bd29872a15950f91ab2407848fde8c3f1d02
2020-03-19 19:26:10 -07:00
Hongwei Wang
09c1f04c57 Scale the leash for expand/collpase PiP transition
Screenshot: http://go/recall/~/AiNKCdFJI/efMwmlmBcsI6SpTGbpbHiZ

Bug: 150810705
Test: manually expand/collpase PiP window
Change-Id: Ie0c16c9eec65bce690fa67f80b551f3d8df0c3e9
2020-03-19 18:44:03 -07:00
Curtis Belmonte
b51645d6fa Merge "Make BiometricPrompt honor max attempts before wipe" into rvc-dev 2020-03-20 00:10:28 +00:00
TreeHugger Robot
73b2a34e8d Merge "Update strings for bubbles" into rvc-dev 2020-03-19 22:48:02 +00:00
TreeHugger Robot
6d0bd16d08 Merge "URI parsing permission for SystemUI" into rvc-dev 2020-03-19 22:40:42 +00:00
Curtis Belmonte
becc0a758a Make BiometricPrompt honor max attempts before wipe
Test: Manual:
1. Create a work profile via TestDPC (go/testdpc)
2. Set a work profile lock pattern/PIN/password via Settings > Security
3. Launch the work profile instance of TestDPC
4. Scroll down to "Lock screen"
5. Tap "Lock screen restrictions"
6. Select the "Work profile" tab
7. Set "Max password failures for local wipe" to 3
8. Lock & unlock the screen
9. Launch work profile app
10. Enter the wrong pattern/PIN/password >3 times

Before: Work profile is not deleted

After: Work profile is deleted and appropriate dialog is shown

Fixes: 148374841
Change-Id: I45a0aa7ac83f67603c6cf0a06337f8a34c38586f
2020-03-19 14:57:39 -07:00
TreeHugger Robot
31ddf754dc Merge "Deflake NotificationEntryManagerInflationTest" into rvc-dev 2020-03-19 21:47:41 +00:00
Hall Liu
2227afaacb Merge "Rename NotificationChannel#setBlockableSystem" into rvc-dev 2020-03-19 21:06:53 +00:00
Ben Lin
97d3a6554d Merge "Make PipTaskOrganizer protected." into rvc-dev 2020-03-19 20:57:27 +00:00
Fabian Kozynski
eae6bb56e4 Merge "Add warnings for leaked receivers in tests" into rvc-dev 2020-03-19 20:51:40 +00:00
Lyn Han
e566b36db9 URI parsing permission for SystemUI
Fixes: 151021631
Test: manual -> promote people bubble from overflow, chathead icon shows
Change-Id: Ib3a3f944f16908a01a24ed765f78ccbc270ea288
2020-03-19 20:36:12 +00:00
Mady Mellor
71869175cd Update strings for bubbles
- Adds some user education strings that aren't used yet, that'll
  be fixed in a follow up
- Removes some strings that aren't ever used

Test: treehugger
Bug: 151965589
Change-Id: I31a4dcb518b37505ed07fc2d454ddfec7598fb01
2020-03-19 13:19:02 -07:00
Peter Wang
77bdf2a0c0 Merge "[API Review] APIs in SubscriptionManager" into rvc-dev 2020-03-19 20:07:38 +00:00
Beth Thibodeau
c285c18e66 Merge "Add long press menu to remove media player" into rvc-dev 2020-03-19 19:31:51 +00:00
Ben Lin
2dfaaebfe9 Merge "PIP: Add mouse hover/exit menu show support." into rvc-dev 2020-03-19 18:36:02 +00:00
Kevin Han
a6d5bb4750 Deflake NotificationEntryManagerInflationTest
Deflake NotificationEntryManagerInflationTest by moving back
to the countdown latch approach and providing our own executor
to AsyncInflationTask.

It was infeasible to depend on the exact number of main thread messages
as other main thread messages from other tests could interfere. Thus.
we move back to the countdown latch for when NotificationEntryManager
finishes inflation. This makes us dependent on the listener API for
determining when inflation is finished, but it's unlikely we can do
better unless we can inject an executor into RowInflaterTask.

In addition, using AsyncTask's SERIAL_EXECUTOR on hwasan builds seemed
to be much slower than normal. This lead to other tests' AysncTask
work delaying the work in this test and leading to the timeout
happening before inflation finished. By providing a test executor
instead and synchronously controlling its execution, we avoid this
issue.

Bug: 150618180
Test: atest --iterations 100 NotificationEntryManagerInflationTest
Test: atest SystemUITests
Test: A forrest run coming soon!
Change-Id: I87c6e2d216c8f26aaf340d311f618c9dccaba8af
2020-03-19 11:27:57 -07:00
Beth Thibodeau
8ebf6ad928 Add long press menu to remove media player
Screenshots: https://drive.google.com/drive/folders/1oaE6oFqShIhmcnG6P7CJFhgVenFgYNgm?usp=sharing

Fixes: 150742919
Test: manual
Change-Id: I36b61c62443bfee3ce6f13cccea9564460563918
2020-03-19 17:26:43 +00:00