Commit Graph

13322 Commits

Author SHA1 Message Date
Automerger Merge Worker
782e04df73 Merge "Attempt to fix race condition in PooledLambdaImpl." into rvc-dev am: 18dd476b0c
Change-Id: I9c0120a8da010facdffa90a98b77c2582c54ab6b
2020-03-16 23:07:22 +00:00
TreeHugger Robot
18dd476b0c Merge "Attempt to fix race condition in PooledLambdaImpl." into rvc-dev 2020-03-16 22:58:11 +00:00
Automerger Merge Worker
da546f5ada Merge "Fixed various paddings of the messaging layout" into rvc-dev am: 8a6c2bf38d
Change-Id: I479ac93ed3aad693f06c37eedf9d6065f2368f7a
2020-03-16 19:56:49 +00:00
Automerger Merge Worker
269e95c7b8 Merge "Made the old MessagingLayout work again" into rvc-dev am: 62ee4e97ad
Change-Id: Ie8c118c5a7b53b3dc8d00e8b716567c4faa4e719
2020-03-16 19:56:25 +00:00
Selim Cinek
8a6c2bf38d Merge "Fixed various paddings of the messaging layout" into rvc-dev 2020-03-16 19:46:09 +00:00
Selim Cinek
62ee4e97ad Merge "Made the old MessagingLayout work again" into rvc-dev 2020-03-16 19:44:06 +00:00
Automerger Merge Worker
332a6f048d Merge "Pass bind mount storage data decision from java to zygote" into rvc-dev am: bac0268f63
Change-Id: Ic762bd4aeb61ad098dd4d43cb12bd2eb692df8e6
2020-03-16 15:56:27 +00:00
Ricky Wai
bac0268f63 Merge "Pass bind mount storage data decision from java to zygote" into rvc-dev 2020-03-16 15:39:52 +00:00
Automerger Merge Worker
78f1ce89b0 Merge "Start quiet mode from a background thread." into rvc-dev am: 76d201490e
Change-Id: Ia1339e7f185a0ff5cf869f37e5bb9cabadaa3e49
2020-03-16 11:24:11 +00:00
TreeHugger Robot
76d201490e Merge "Start quiet mode from a background thread." into rvc-dev 2020-03-16 11:11:31 +00:00
Automerger Merge Worker
d2cda47d94 Merge "Applies left and right edge scale to side swipe width" into rvc-dev am: 7161e49836
Change-Id: Id3fd51e4750b2ee51c827e7593cba799778635b9
2020-03-16 04:06:36 +00:00
Mehdi Alizadeh
f2b28e9b0b Applies left and right edge scale to side swipe width
Also adds listeners to update the values on settings change

Bug: 146004827
Test: atest DisplayPolicyInsetsTests DisplayPolicyLayoutTests AlwaysOnDisplayPolicyTest

Change-Id: Ia3344f3bef8f3439fc2c60d9f4e83dc0163f83dd
2020-03-15 13:47:19 -07:00
Selim Cinek
afc2058776 Fixed various paddings of the messaging layout
Previously the expand button could run into the header
And the content had no padding at the end.
Also, the content was incorrectly padded when collapsed.

Bug: 150905003
Test: add messagingLayout, observe UI
Change-Id: I3178b21dc8831f986a8249ee1e22aebffff75ef1
2020-03-13 20:15:38 -07:00
Automerger Merge Worker
358d35961e Merge "Prototype for Sharesheet direct share row append mechanism" into rvc-dev am: e9851d5fad
Change-Id: I49f8d050cc1508c1f70b4456f399867d6746abbb
2020-03-14 01:13:21 +00:00
Song Hu
e9851d5fad Merge "Prototype for Sharesheet direct share row append mechanism" into rvc-dev 2020-03-14 01:09:13 +00:00
Selim Cinek
a91778a3e3 Made the old MessagingLayout work again
Fixed the layout of groups for the old MessagingLayout

Bug: 150905003
Change-Id: I007067d7b0524b7819f3a5e753f8664129d4cd93
2020-03-13 17:30:34 -07:00
Automerger Merge Worker
36c98c2ee2 Enable gwp-asan in system_server. am: eeff2cf753
Change-Id: Id94c0ef15ac739e39cb5b91bba004db1a768da03
2020-03-14 00:13:12 +00:00
Evgenii Stepanov
eeff2cf753 Enable gwp-asan in system_server.
Enables gwp-asan in system_server with a small probability, same as any
native process or system app.

Bug: 149991821
Test: kill system_server in a loop - find "GWP" in /proc/$PID/maps
      eventually
Change-Id: I3900f5d277d28987883a918d62fe9390c780ac30
(cherry picked from commit 2bb1dba5c7)
2020-03-14 00:10:02 +00:00
Automerger Merge Worker
ed7ce137be Merge "Pass operationId to LSS, add HAT to KeyStore" into rvc-dev am: 6b7b2300c4
Change-Id: I5009ea6ef2d24a29d75f75f03a72188e85aad48e
2020-03-14 00:07:04 +00:00
Kevin Chyn
6b7b2300c4 Merge "Pass operationId to LSS, add HAT to KeyStore" into rvc-dev 2020-03-13 23:53:16 +00:00
Automerger Merge Worker
562f9120d4 Merge "Introduce per-app manifest flags for autoRevoke" into rvc-dev am: ff17a587a8
Change-Id: Ife1321677424e80e0a8eb1bd08e83ace8b131880
2020-03-13 22:54:37 +00:00
Brett Chabot
4d93b189a9 Attempt to fix race condition in PooledLambdaImpl.
invoke can read flags after object has been returned to
pool/recycled.

Skip reading isRecycled in that case.

Bug: 151407445
Test: See repro instructions in bug
Change-Id: I0ae42c4fcd121d42dfaedb26d186ac7d51508f6c
2020-03-13 15:46:12 -07:00
Eugene Susla
ff17a587a8 Merge "Introduce per-app manifest flags for autoRevoke" into rvc-dev 2020-03-13 22:40:36 +00:00
Automerger Merge Worker
6d20cbee5a Merge changes I69b33b0c,If904c85e,I28444df4,I3bfa4580,I88d9667d, ... into rvc-dev am: 5f003f4e10
Change-Id: I62f61388b6d8981be5122343ee5241ad081b4645
2020-03-13 21:02:10 +00:00
Selim Cinek
5f003f4e10 Merge changes I69b33b0c,If904c85e,I28444df4,I3bfa4580,I88d9667d, ... into rvc-dev
* changes:
  Decrease avatar and sender name sizes in MessagingStyle
  Fixed various conversation layout appearences
  Implemented FacePile if no group icon is present
  Fixed the behavior of headers in conversation groups
  Ensured correct coloring of badge in dark mode
  Fixed an issue where the bubble badge was visible independent of the icon
  Improved transitions for expanding messaging notifications
  Adjusted single line representation to include a colon
  Made the expand button positioning conditional on expanded state
  Ensured that the sender of the first message is hidden
  Baseline for the new ConversationLayout
2020-03-13 21:01:24 +00:00
Song Hu
e2deffd7bf Prototype for Sharesheet direct share row append mechanism
Use this cmd to enable the feature:
adb shell device_config put systemui append_direct_share_enabled true

Use this cmd to adjust timeout threshold (in millisecond):
adb shell device_config put systemui share_sheet_direct_share_timeout 15000

Bug: 151112858
Test: manually tested both prod flow and prototype flow on phones.

Change-Id: I328ecefc9dffad40ec412c033da54e0443f8889a
2020-03-13 13:52:24 -07:00
Automerger Merge Worker
8c4be9d55d Merge "Sends click and long click events from the inline suggestion to host app" into rvc-dev am: f0e7d48fec
Change-Id: I9991fdbd6e98620cee7baf235318ef8151bca34b
2020-03-13 18:37:15 +00:00
Feng Cao
f0e7d48fec Merge "Sends click and long click events from the inline suggestion to host app" into rvc-dev 2020-03-13 18:25:48 +00:00
Eugene Susla
db77bc14de Introduce per-app manifest flags for autoRevoke
This introduces extra attributes on <application/> tag corresponding to
requesting to be shown in UI for the user to disable auto-revoke
(allowDontAutoRevokePermissions)
and being whitelisted by the installer (dontAutoRevokePermissions)

Test: presubmit
Bug: 146513245
Change-Id: I07902632812b70ea418a667d343b74d7ae170bb9
2020-03-13 11:23:26 -07:00
arangelov
e5b369c48f Start quiet mode from a background thread.
The method is blocking, so we shouldn't call it from the UI thread.

This CL also fixes comparison of UserHandle objects, as they should
use Object#equals() instead of "==".

Test: manual
Fixes: 151072826
Change-Id: I1a107fb9e20ed7eaad470057942870cc427b00b5
2020-03-13 17:08:06 +00:00
Philip P. Moltmann
d7a823623f Merge "Rename featureId -> attributionTag" into rvc-dev 2020-03-13 14:26:31 +00:00
Automerger Merge Worker
b614033835 Merge "Revert "Zygote: Load system server code early"" into rvc-dev am: 98bf50a88e
Change-Id: I5220f512042801c20d95c48a4fe6c686d80e92e6
2020-03-13 11:19:08 +00:00
Nicolas Geoffray
98bf50a88e Merge "Revert "Zygote: Load system server code early"" into rvc-dev 2020-03-13 11:15:06 +00:00
Feng Cao
deec8f0175 Sends click and long click events from the inline suggestion to host app
Test: manual, atest InlineSuggestionTest
Bug: 151185482

Change-Id: Iafeb4584feca8a1cb1374f81105fa22136eba183
2020-03-12 15:51:22 -07:00
Kevin Chyn
c8cb6852df Pass operationId to LSS, add HAT to KeyStore
Since we're now allowing auth-per-use credential keys, we need to
pass the operationId to SystemUI, which owns the call to verify
credential. Upon receiving a non-null HAT, it should be sent to
KeyStore.

Bug: 148425329

Test: atest com.android.systemui.biometrics
Test: atest com.android.server.biometrics

Change-Id: Iea737bf2dc0d81d87419df96d5cb43d51f10c6e3
2020-03-12 15:49:27 -07:00
Automerger Merge Worker
b1f7b45f56 Merge "Add "enableGwpAsan" tag to android manifest." into rvc-dev am: 91482ccc8a
Change-Id: I912f542ec18d9c6db591d73e9ace2cb50abeeb01
2020-03-12 21:30:21 +00:00
Evgenii Stepanov
91482ccc8a Merge "Add "enableGwpAsan" tag to android manifest." into rvc-dev 2020-03-12 21:13:25 +00:00
Selim Cinek
2f7f7b8803 Fixed various conversation layout appearences
Previously the layout would break if the developer
specified empty names or no avatars. Similarly if
a developer specified a conversationtitle in a
one to one chat, it would break badly as well.

Bug: 150905003
Test: create various edge case chats and observe the layout
Change-Id: If904c85e6d582b4735eb928d66749a7863fbbc06
2020-03-12 13:39:36 -07:00
Selim Cinek
8baa70f276 Implemented FacePile if no group icon is present
Bug: 150905003
Test: add group without largeicon
Change-Id: I28444df41394a205622d1fb4fede2768b8aa3353
2020-03-12 13:39:36 -07:00
Selim Cinek
e9714eb0c7 Ensured correct coloring of badge in dark mode
Bug: 6701275011
Test: add conversation in darkmode, observe dark badge background
Change-Id: I88d9667d82a134233ff8c0c19f06dffdd5b16a67
2020-03-12 13:39:36 -07:00
Selim Cinek
f2b8aa71d5 Fixed an issue where the bubble badge was visible independent of the icon
Bug: 150905003
Test: add messaging notification in a group, observe no icon backgrounds
Change-Id: Id06f1a261223f1a5cc67c9657a17c73844aba55c
2020-03-12 13:39:36 -07:00
Selim Cinek
154f212c90 Improved transitions for expanding messaging notifications
Views weren't transforming properly yet, we now are transforming
more.

Bug: 150905003
Test: visual, observe animations when expanding
Change-Id: Iee48926770f4fb9158aeaa14745049e7c24b4449
2020-03-12 13:39:34 -07:00
Ricky Wai
486d760e6b Pass bind mount storage data decision from java to zygote
Before we used store dirty data in system property to record
if FUSE for a user is mounted, and zygote uses it to determine
if storage mount is needed. It introduces performance issues and
not reliable.

This CL does the following changes:

- System server determines if storage dirs mount are needed, and store
the record inside system server.

- It passes the verdict to zygote so zygote just need to follow the
input.

- When emulated storage is mounted / unmounted, it will record if
FUSE for that user is ready to use, and will be used for determining
if storage dirs mount are needed when a new process starts.

- After emulated storage is mounted, it will create an async thread
to remount all storage dirs for existing app processes. As we have a
record of pids that storage dirs are not mounted yet, we can use it
directly without scanning the whole /proc in vold.

Bug: 149548518
Test: After flag is enabled, AdoptableHostTest still pass.
Change-Id: Ic99d027d42b2b9a1c7fd03070b36c44882c6e7c5
2020-03-12 19:36:26 +00:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
Philip P. Moltmann
aea50fc06a Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 11:47:51 -07:00
Automerger Merge Worker
fe9588a68d Merge "When calculating share sheet height, account for empty state screens." into rvc-dev am: 4b705f50ab
Change-Id: I01b79f5ee474813c7e5b86e288f38261737784c4
2020-03-12 17:59:09 +00:00
Antoan Angelov
4b705f50ab Merge "When calculating share sheet height, account for empty state screens." into rvc-dev 2020-03-12 17:29:50 +00:00
Evgenii Stepanov
102d3d8669 Add "enableGwpAsan" tag to android manifest.
This tag can be used to enable and disable gwp-asan on applications and
their components. The default setting is disabled, except for the system
applications which are enabled with a small probability (approx. 1% of
processes).

Enabling gwp-asan can be used to crowd test an app.

This change includes a compat feature that overrides the default value
of enableGwpAsan for an app.

Bug: 149991821
Test: atest CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: I5eb647c517e5487b1d1eed6b9a43242490f19289
Change-Id: I5b4db666f38af846927f88702cc690f0916cadb1
2020-03-12 17:19:23 +00:00
Automerger Merge Worker
8b275a5f5e Merge "Fix NPE in FileSystemProvider." into rvc-dev am: cd051e846c
Change-Id: I3cd48a1b36dd95bafb98d5fac7255fe454501d89
2020-03-12 15:54:42 +00:00
Automerger Merge Worker
54f7f1997b Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev am: 888edd6fdc
Change-Id: Icab57fb3d408422ef1e8157f632534dae690bff8
2020-03-12 15:52:58 +00:00