Commit Graph

13123 Commits

Author SHA1 Message Date
Anmol Gupta
ea8748a29b Merge "Include more details in SoftInputShowHideHistory" into rvc-dev 2020-03-19 21:37:45 +00:00
Hall Liu
2227afaacb Merge "Rename NotificationChannel#setBlockableSystem" into rvc-dev 2020-03-19 21:06:53 +00:00
TreeHugger Robot
f4d1abb386 Merge "Improve strings for share sheet and intent resolvers." into rvc-dev 2020-03-19 17:39:58 +00:00
arangelov
afec9d0356 Improve strings for share sheet and intent resolvers.
Fixes: 151694643
Fixes: 150942431
Test: manual
Change-Id: Ie419e791aa1d2d2cbd32b3f091833b54b90c81eb
2020-03-19 15:46:09 +00:00
Steve Elliott
a7aededa7d Merge "Populate conversation notifs from shortcut info" into rvc-dev 2020-03-19 15:18:33 +00:00
Anna Trostanetski
5165c12a4a Merge "Introduce listUIChanges API for developer UI" into rvc-dev 2020-03-19 14:52:18 +00:00
TreeHugger Robot
0e56c85768 Merge "Renamed DisplayInfo to TelephonyDisplayInfo" into rvc-dev 2020-03-19 14:29:24 +00:00
TreeHugger Robot
bfdf19c46d Merge "Call setAdapter from handleLayoutChanged." into rvc-dev 2020-03-19 12:59:42 +00:00
arangelov
2731fa71fe Call setAdapter from handleLayoutChanged.
Test: manual
Fixes: 150918223
Fixes: 150922090
Fixes: 151329221
Fixes: 151077241
Change-Id: I723634840cfdc40eb307f2ce4e170178692f12f3
2020-03-19 12:10:13 +00:00
atrost
be8e9b2fc7 Introduce listUIChanges API for developer UI
Filter out changes that are: logging only, older then enabled after P,
newer then enabled after Q.
Added missing @Test that broke builds.

Test: atest com.android.server.compat.PlatformCompatTest
Bug: 151299145
Change-Id: Ic4c12ceec3f4018a1f206b8498e8216466ecf960
2020-03-19 12:06:52 +00:00
Anmol Gupta
29f209d6a3 Include more details in SoftInputShowHideHistory
Modify SoftInputShowHideHistory class to include additional information. New data in entry object:
  - Current focused window
  - show/hide soft input request window
  - Editor info
  - Full screen mode or not

Fixes: 141738570
Test: manual by calling "adb shell dumpsys input_method"
Change-Id: I793f2e3ca478496616a83b8090440986b2ccfb19
2020-03-18 20:50:52 -07:00
TreeHugger Robot
3e95fbba28 Merge "Add back ImsUceManager status definitions" into rvc-dev 2020-03-18 23:33:27 +00:00
Jack Yu
ac3ca33567 Renamed DisplayInfo to TelephonyDisplayInfo
To reduce ambiguity with android.view.DisplayInfo.

Test: Telephony sanity tests + unit tests
Bug: 151101989
Change-Id: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
2020-03-18 15:11:31 -07:00
Anthony Stange
8aee27ad7a Merge "Revert "Introduce listUIChanges API for developer UI"" into rvc-dev 2020-03-18 21:52:28 +00:00
Anthony Stange
9c862eab69 Revert "Introduce listUIChanges API for developer UI"
Revert "Show only listUIChanges instead of all"

Revert submission 10721220-hide

Reason for revert: Caused build breakage - b/151857606
Reverted Changes:
I7c725a1ec:Show only listUIChanges instead of all
Iec8755171:Introduce listUIChanges API for developer UI

Change-Id: I53ea91ee96bb6cb45e31e5fce58826cc59e58df6
2020-03-18 21:33:10 +00:00
Anna Trostanetski
6b408f801a Merge "Introduce listUIChanges API for developer UI" into rvc-dev 2020-03-18 18:15:51 +00:00
Steve Elliott
46bb2a10a2 Populate conversation notifs from shortcut info
Fixes: 151330577
Test: manual
Change-Id: Ib7b7037155fc1891935fcbe89ced9f1639378ba0
2020-03-18 13:23:51 -04:00
Misha Wagner
c9925a661c Merge "Fix directory iteration when path disappears." into rvc-dev 2020-03-18 16:21:14 +00:00
Misha Wagner
23d004ca7b Fix directory iteration when path disappears.
When iterating across `proc` directories, occasionally a directory would
disappear due to a process finishing. This often throws `IOException`
when accessing the directory, but can throw `DirectoryIteratorException`
if this happens during iteration:

  java.nio.file.DirectoryIteratorException: java.nio.file.NoSuchFileException: /proc/8708/task

This change catches `DirectoryIteratorException`.

Test: Build only (bug is difficult to reproduce).
Bug: 150888564

Change-Id: I7484d28231d0040b25dafc59b12b64a9342098a4
(cherry picked from commit 52474456b7)
2020-03-18 14:25:42 +00:00
Misha Wagner
1f9fef655f Fix NullPointerException in KernelCpuThreadReaders.
If KernelCpuThreadReader init failed, then the null instance was passed
to KernelCpuThreadReaderDiff, which then failed when invoked.

Test: Build only (bug is difficult to reproduce).
Bug: 150988957

Change-Id: Id46d466b931d816dda85c4f068a4bec53c6f3032
(cherry picked from commit 478c873fe4)
2020-03-18 14:24:17 +00:00
atrost
373b2a21c8 Introduce listUIChanges API for developer UI
Filter out changes that are: logging only, older then enabled after P,
newer then enabled after Q.

Test: atest com.android.server.compat.PlatformCompatTest
Bug: 151299145
Change-Id: Iec87551716ee47c4d1ad4fd8c72b33f1d86d0950
2020-03-18 14:03:49 +00:00
Antoan Angelov
fbf401e3d3 Merge "Open app details for the correct user depending on the profile." into rvc-dev 2020-03-17 17:33:35 +00:00
Antoan Angelov
76562e161f Merge "Make tabs respect the device default style." into rvc-dev 2020-03-17 17:32:21 +00:00
arangelov
4b8ad343ce Make tabs respect the device default style.
Also make "Turn on" work profile button and spinner
use the system accent color.

Test: none
Fixes: 149737133
Fixes: 151686022
Change-Id: I218de254ef87d5fc62d230d39fbe7a7e8b544766
2020-03-17 15:35:42 +00:00
arangelov
ebf3c0577f Open app details for the correct user depending on the profile.
Fixes: 149732838
Test: manual
Change-Id: I477a3af794f98aa91ad6c3164338339be0858cb3
2020-03-17 13:48:24 +00:00
Eric Sandness
e89d0e1ba5 Don't Show Work Profile Toast During Setup
Before device setup is complete, we shouldn't ever show the "using this
app outside your work profile" toast.  This toast is confusing in the
context of Setup Wizard.

Fixes: 150451876
Test: atest com.android.internal.app.IntentForwarderActivityTest
Test: Manually verified no toast during setup
Test: Manually verified toast appears after setup
Change-Id: I661cc18c625609726388f3705c7b893517e23323
2020-03-17 09:26:42 +00:00
TreeHugger Robot
18dd476b0c Merge "Attempt to fix race condition in PooledLambdaImpl." into rvc-dev 2020-03-16 22:58:11 +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
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
TreeHugger Robot
76d201490e Merge "Start quiet mode from a background thread." into rvc-dev 2020-03-16 11:11:31 +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
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
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
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
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
Hall Liu
9866aa8b70 Rename NotificationChannel#setBlockableSystem
Rename the method to setBlockable. Also rename isBlockableSystem in the
same way.

Fixes: 151311073
Test: atest NotificationChannelTest
Change-Id: Ie25f8aed3c22b74d9ad2329863c4ffebbace03f7
2020-03-13 13:50:48 -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
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
Nicolas Geoffray
98bf50a88e Merge "Revert "Zygote: Load system server code early"" into rvc-dev 2020-03-13 11:15:06 +00:00
Brad Ebinger
40f0a857fd Add back ImsUceManager status definitions
Fixes: 150239187
Test: manual
Change-Id: Ia1c04b8c42c9a62fa4ea4a70405e6f6ccda8b67c
2020-03-12 17:30:45 -07: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