Commit Graph

13085 Commits

Author SHA1 Message Date
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
Song Hu
e9851d5fad Merge "Prototype for Sharesheet direct share row append mechanism" into rvc-dev 2020-03-14 01:09:13 +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
Kevin Chyn
6b7b2300c4 Merge "Pass operationId to LSS, add HAT to KeyStore" into rvc-dev 2020-03-13 23:53:16 +00:00
Eugene Susla
ff17a587a8 Merge "Introduce per-app manifest flags for autoRevoke" into rvc-dev 2020-03-13 22:40:36 +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
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
Philip P. Moltmann
d7a823623f Merge "Rename featureId -> attributionTag" into rvc-dev 2020-03-13 14:26:31 +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
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
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
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
arangelov
a30787b8fa When calculating share sheet height, account for empty state screens.
As we calculate the share sheet height only for the current profile,
there is a rare case when the current profile may have no results.
For that case, we need to adjust the share sheet offset so that
it includes the empty state screen height.

In addition, this CL also does an early return if we are
in the non-main profile (e.g. personal tab in work profile)
to prevent the height from being recalculated upon tab switch.

Fixes: 150939637
Test: manual
Change-Id: Ia465f53d7a2006e1b7c67ad1e95729ed79e2c3a0
2020-03-12 15:08:43 +00:00
Martijn Coenen
cd051e846c Merge "Fix NPE in FileSystemProvider." into rvc-dev 2020-03-12 07:47:11 +00:00
Lucas Lin
2e627303df Merge "Make NETWORK_STATUS notification to be blockable" into rvc-dev 2020-03-12 04:53:13 +00:00
Selim Cinek
c2c276aad4 Adjusted single line representation to include a colon
The design includes a : when singleline

Bug: 150905003
Test: visual, observe singleline layout
Change-Id: If8613ca5afed2d0f85bffce5cd573065511f70a7
2020-03-11 21:53:05 -07:00
Selim Cinek
54fe9ad2dc Made the expand button positioning conditional on expanded state
The expand button now allows content to flow below the header
when expanded and is dynamically placed in the layout
to push over the content.
Also made sure that match parent views don't artificially
increase the size of RemeasurableLinearLayouts as otherwise
the content would be stuck too big at times.

Bug: 150905003
Test: Visual, observe expand buttons when expanded / collapsed
Change-Id: I933b8a74ab6cacd48c98b1a9667b0e30c82bda11
2020-03-11 21:53:05 -07:00
Selim Cinek
857f279d59 Ensured that the sender of the first message is hidden
If the sendername of the first message matches the overall sender,
it's name will be hidden, otherwise it will be shown.

Bug: 150905003
Test: visually, use Notify, observe sender hidden when first
Change-Id: Iea67954b3a54ead641813bae6349cfd7af14320f
2020-03-11 21:53:05 -07:00
Selim Cinek
20d1ee2402 Baseline for the new ConversationLayout
Introduced a new Layout for Conversation Notifications.
There are still various open issues that will be
fixed in follow up Cls

Bug: 150905003
Test: Add conversations, obverve visuals
Change-Id: I8ab2e2988d3205a4491006df68ec14235109466f
2020-03-11 21:53:03 -07:00
Lucas Dupin
888edd6fdc Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev 2020-03-12 04:07:51 +00:00
Andrei-Valentin Onea
e57cfbae26 Merge "Add option to toggle all changes" into rvc-dev 2020-03-11 17:15:34 +00:00
Nicolas Geoffray
1b14f2cc51 Revert "Zygote: Load system server code early"
This reverts commit 76b4b2c366.

Bug: 128688902
Bug: 150032912
Test: boots
Change-Id: I0ae248ac2a3fe4002466cae33b231234ddaa69f2
2020-03-11 17:03:57 +00:00
Antoan Angelov
5527ace031 Merge "Call setAdapter from handleLayoutChange for the other profile" into rvc-dev 2020-03-11 15:36:09 +00:00
Martijn Coenen
8b68b8ca2b Fix NPE in FileSystemProvider.
In case we can't get the contents of a directory.

Bug: 148836274
Test: No NPE
Change-Id: If896423f7788b614780cd7a07ffc75e25efc6ec5
2020-03-11 14:44:40 +01:00
Automerger Merge Worker
213abc3f72 Make NETWORK_STATUS notification to be blockable
Bug: 149749735
Test: Build pass
Change-Id: I8cfb444197f9aeef4748fa263056716964a0e423
Merged-In: I8cfb444197f9aeef4748fa263056716964a0e423
2020-03-11 03:07:08 +00:00
Jeff Sharkey
a7a96ad6f8 Merge "Give hidden API behavior to legacy apps." into rvc-dev 2020-03-10 23:03:41 +00:00
Jeff Sharkey
8b0cff7108 Give hidden API behavior to legacy apps.
Starting in R, there is a new public API overload that delivers a
flags argument.  Some apps may be relying on a previous hidden API
that delivered a userId argument, and this change is used to control
delivery of the new flags argument in its place.

There are dozens of these hidden API users are in the system UID,
either in the system process or the Settings app, so we hard-code
giving them the legacy behavior, since refactoring would be messy
between internal and AOSP branches.

Also adjust incoming and outgoing method signatures to use slightly
more flexible Collection<Uri>, which has handy methods like
contains() and isEmpty().

Bug: 150939131
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: If6a77449e19215cf1c60d4217e62fc04b0959bfc
2020-03-10 16:36:21 -06:00
TreeHugger Robot
98f21c2474 Merge "Revert "Revert "Notification statsd logs: Notification panel.""" into rvc-dev 2020-03-10 20:09:43 +00:00
arangelov
19e1fea590 Call setAdapter from handleLayoutChange for the other profile
Fixes: 150936654
Test: manual
Change-Id: Ida516b215ca4e42cbf89d82c115ce8f369829e3a
2020-03-10 18:09:39 +00:00
Lucas Dupin
13f4b8a158 Implement wallpaper zoom hooking it to the shade
This adds a notion of per caller wallpaper zoom, in order to support
simultaneous clients.

The shade might be pulled down while in overview, for example, and we
must coordinate between launcher and systemui.

Bug: 149792636
Bug: 146387434
Test: atest NotificationShadeWindowViewTest
Test: atest WallpaperControllerTests
Test: manual
Change-Id: I588ba56d3d2704845d033ea2a5890ce812b9ee07
2020-03-10 10:52:28 -07:00
Steven Moreland
02e00a379b Merge "SystemConfig: Allow runtime differentiation of vendor configurations" into rvc-dev 2020-03-10 16:18:57 +00:00
Andrei Onea
5b1e2eb495 Add option to toggle all changes
This change adds the ability of enabling and disabling all allowed
changes for a given package and target sdk through adb.

Bug: 149980515
Test: adb shell am enable-all 28 foo.bar && \
	adb shell dumpsys platform_compat
Test: adb shell am disable-all 28 foo.bar && \
	adb shell dumpsys platform_compat
Test: atest CompatConfigTest
Merged-In: Ia84d8e1162ea0b3f4c6afe87e63db56256236940
Change-Id: I4696e13882b1b2c930731e6e7787924e20da1a46
2020-03-10 13:27:14 +00:00
Roopesh Nataraja
50c61752a8 SystemConfig: Allow runtime differentiation of vendor configurations
Single vendor can support multiple sku's with different capabilities.
Add support to load capability xml's from below vendor locations.

vendor/etc/sysconf/sku_${ro.boot.product.vendor.sku}/*.xml
vendor/etc/permissions/sku_${ro.boot.product.vendor.sku}/*.xml

Bug : 148582757
Test: Copy capability xml's to above mentioned vendor locations
      during compilation and check if it gets loaded by
      SystemConfig at runtime.

Change-Id: Ic1a332d30224f6d26afdfc230ea7c1462aefa243
(cherry picked from commit 62e212521a)
Merged-In: Ic1a332d30224f6d26afdfc230ea7c1462aefa243
2020-03-09 14:33:51 -07:00
atrost
4f5949f5ba Allow overriding disabled changes in final release.
Since disabled changes are disabled by default, our policy should allow
opting in to them in the final release.
Add toString to OverrideAllowedState for easier test debugging.

Test: atest com.android.server.compat.OverrideValidatorImplTest
Bug: 144552011
Change-Id: Iff01ee44d30d3e5703a980cddaf1b38435756c3c
2020-03-09 19:47:05 +00:00
Peter_Liang
baf4f05387 Update the edit shortcut menu (4/n).
1.Popup the permission dialog to warn user when trigger service target.
2.Update strings

Bug: 148989057
Test: manual test
Change-Id: If2d72bb5a98ba5a4c284a5d9a32991ea38fbadd7
2020-03-09 13:37:48 +08:00
Peter_Liang
b6d9e4168e Update the edit shortcut menu (3/n).
1. Enable to uncheck legacy service target item in edit menu mode.
2. Add toast to warng the user when uncheck service.

Bug: 148989057
Bug: 150365947
Test: manual test
Change-Id: Ieb35d3593ed25025dbc37507d0c54e6ba266d2ed
2020-03-08 21:25:44 +08:00
Peter_Liang
1e20bc4147 Update the edit shortcut menu (2/n).
Add checkbox into list item and change the beavior.

Bug: 148989057
Test: manual test
Change-Id: I7782898582c2f9759d4ef466d2864f124d8c83be
2020-03-08 21:25:25 +08:00
TreeHugger Robot
1a023125c9 Merge "Add permissions data validation in AppOpsService" into rvc-dev 2020-03-07 00:50:14 +00:00
Will Brockman
ed05940533 Merge "Statsd log of dismiss all notifications event." into rvc-dev 2020-03-06 21:59:11 +00:00
Eugene Susla
8f562219c8 Merge "Generate @NonNull setter args and @MaySetToNull to opt out" into rvc-dev 2020-03-06 18:53:24 +00:00