Commit Graph

424299 Commits

Author SHA1 Message Date
Ahan Wu
a5e3ee28a9 Merge "Validate wallpaper dimension while generating crop" into qt-dev
am: 5d4aa134a9

Change-Id: I004c0d0b9c368874489b306cce968c9cfdf1380e
2019-11-05 20:20:10 -08:00
TreeHugger Robot
5d4aa134a9 Merge "Validate wallpaper dimension while generating crop" into qt-dev 2019-11-06 03:59:30 +00:00
Sooraj Sasindran
04f5ac1af5 Carrier config to switch data if primary is OOS
Carrier config to switch data to primary from cbrs
if primary is OOS
Carrier config to specify back off time from cbrs
to primary

Bug: 143578171
Test: make
Merged-In: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
Change-Id: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
2019-11-06 02:06:15 +00:00
Jing Ji
a138a43d46 [automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1 am: e385cb9204 -s ours am: eda85079c2 -s ours
am: 179ab14f4b -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: Ib9364163124611eaeacef63f6832afc22741f17c
2019-11-05 16:58:58 -08:00
Todd Kennedy
b6ac21e106 [automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287 am: 3b0553b17a -s ours am: bc68c31327 -s ours
am: 7b03d29737 -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: I56c7746ac49ff4c0769a693e07b052f7788120fb
2019-11-05 16:54:07 -08:00
Jing Ji
179ab14f4b [automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1 am: e385cb9204 -s ours
am: eda85079c2 -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: I238f43fe7dd1f2abf758aef016a8c6f4ed832a5a
2019-11-05 16:54:02 -08:00
Todd Kennedy
7b03d29737 [automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287 am: 3b0553b17a -s ours
am: bc68c31327 -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: I149ed66a63c683d65a4232c22858a030a00db3e4
2019-11-05 16:42:48 -08:00
Jing Ji
eda85079c2 [automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1
am: e385cb9204 -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: Ia74b8de26e9dc24d23094ff2335e4c9f4320e033
2019-11-05 16:39:58 -08:00
Todd Kennedy
bc68c31327 [automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287
am: 3b0553b17a -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: Ibb601e676fc557ee717c12e48c7f48fc63f51f02
2019-11-05 16:33:54 -08:00
Jing Ji
e385cb9204 Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072
am: 038be975a1

Change-Id: Ib4d8700eb5f5a8275a0a917ef6f6db2a0a3b85de
2019-11-05 16:32:53 -08:00
Todd Kennedy
3b0553b17a Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14
am: aa1d74e287

Change-Id: If511af964e4705e65e76a9ccb502cddb4f4b0012
2019-11-05 16:27:32 -08:00
Jing Ji
038be975a1 Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71
am: 68f3234072

Change-Id: I2393d4b5c683892d489398c906790c966a38b36b
2019-11-05 16:24:07 -08:00
Todd Kennedy
aa1d74e287 Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762
am: 8ff59f6a14

Change-Id: I13fc086058cf0f40614bdb5d19cb53211772e628
2019-11-05 16:20:48 -08:00
Jing Ji
68f3234072 Merge "Prevent system uid component from running in an isolated app process" into oc-dev
am: 909ff7dc71

Change-Id: Ib725e69bbd84c7e1e141c32c62c5204bd552b12f
2019-11-05 16:13:50 -08:00
Todd Kennedy
8ff59f6a14 Only allow INSTALL_ALLOW_TEST from shell or root
am: 702d394762

Change-Id: I6e19c9738e083ce8863ffd1d9d467cae2f973c37
2019-11-05 16:07:44 -08:00
Jing Ji
909ff7dc71 Merge "Prevent system uid component from running in an isolated app process" into oc-dev 2019-11-05 23:52:53 +00:00
Torne (Richard Coles)
30c6079772 Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev am: b0bcbb0c35
am: 016ee6777e

Change-Id: Ibc89c85870f87d002f23aaa8fbbada0f3cd705ae
2019-11-05 15:20:34 -08:00
Torne (Richard Coles)
016ee6777e Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev
am: b0bcbb0c35

Change-Id: If316cbd120ac807313f4d89a212be01b5e4a313e
2019-11-05 15:14:34 -08:00
TreeHugger Robot
b0bcbb0c35 Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev 2019-11-05 22:57:36 +00:00
Jing Ji
fd9f262219 Prevent system uid component from running in an isolated app process am: 84f2b227b0
am: 1c93e1d26c

Change-Id: I91b934962e65476e6efccce3d8ccdf4285f444d4
2019-11-05 14:01:58 -08:00
Jing Ji
1c93e1d26c Prevent system uid component from running in an isolated app process
am: 84f2b227b0

Change-Id: Iba55ca710d5ee6e443520ceb899980c792fe5b2a
2019-11-05 13:55:26 -08:00
Xiangyu/Malcolm Chen
94a58bd978 Merge "Add a carrier config to specify validation timeout for data switch." into qt-qpr1-dev 2019-11-05 21:51:28 +00:00
Tony Mak
7773a752ec Make smart actions icon to respect dark theme setting
Problem:
The context from getPackageContext() does not have the theme set.

Solution:
Use the SystemUI theme to inflate the icon.
And we probably want to have a unified theme for all action chips anyway.

Test: Send myself a message "Code 12345", Verify that the
      icon works in both light and dark theme.
Test: Send myself a message "www.android.com", verify that the
      app icon is shown properly in both light and dark theme

Fixes: 142972040

Merged-In: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
Change-Id: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
2019-11-05 17:17:05 +00:00
Yohei Yukawa
08391b3da7 DO NOT MERGE back porting for fixing sysui direct reply
Root cause: systemui run as user 0 service to handle all of users'
notifications. And, the users can user the copy/cut/paste
functionality.

Solution: To crate @hide API in TextView let SystemUI to mark the
TextView instance should check if the power of
INTERACT_ACROSS_USER_FULL is needed to be restricted.
e.x. Keyguard password textview/Notificaiton entries

Bug: 123232892
Test: manual test
Reference: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Reference: Ibabe13e5b85e5bb91f9f8af6ec07c395c25c4393
Reference: I975baa748c821538e5a733bb98a33ac609bf40a7

Change-Id: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Merged-In: Ie3daecd1e8fc2f7fdf37baeb5979da9f2e0b3937
2019-11-05 15:43:12 +08:00
TreeHugger Robot
e39c7bd211 Merge "Add Tap Gesture for Aware Settings" into qt-qpr1-dev 2019-11-05 03:59:25 +00:00
Jing Ji
0bfebadf30 Prevent system uid component from running in an isolated app process
Bug: 140055304
Test: Manua
Change-Id: Ie7f6ed23f0c6009aad0f67a00af119b02cdceac3
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
2019-11-05 00:50:56 +00:00
Jing Ji
84f2b227b0 Prevent system uid component from running in an isolated app process
Bug: 140055304
Test: Manual
Change-Id: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
2019-11-05 00:50:24 +00:00
Edgar Wang
8682b5b066 Merge "Add log metrics for Tap Gesture" into qt-qpr1-dev 2019-11-05 00:06:54 +00:00
Malcolm Chen
f1239756b5 Add a carrier config to specify validation timeout for data switch.
Bug: 142884903
Test: manual test
Change-Id: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
Merged-In: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
2019-11-04 18:50:49 +00:00
TreeHugger Robot
eac3b7061c Merge "Crash app on foreground service notification error." into qt-qpr1-dev 2019-11-04 18:25:20 +00:00
TreeHugger Robot
c1e4900355 Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev 2019-11-04 12:21:54 +00:00
Andrew Solovay
ee07a8cadb docs: Clarified behavior of TypedArray.getBoolean()
Doc currently says "The method will return whether [the attribute] is equal to zero", which could be read as "returns true if the attribute is zero", which is incorrect. Rephrased as: "...returns false if the attribute is equal to zero, and true otherwise."

Change-Id: Ie7d763ac2784ecc3a7fb522b4fa583ec8d2644d4
BUG: 143049875
Test: make ds-docs
2019-11-01 16:07:39 -07:00
Lyn Han
0ee7184551 Dedup smart reply updates for bubble flyout [DO NOT MERGE]
[Cherrypicked from master]

Smart reply updates are not visually interruptive and bubbles should not
show flyout for them, since flyout text remains the same.

1) Modify NoMan.isVisuallyInterruptive to skip evaluation of fields
irrelevant to bubbles

2) Modify NotificationComparator to rank interruptive notifs higher

3) Pipe bool (isInterruptive) from system_process to SysUI
	NoMan --- set bool on notif record and ranking
	Ranking --- parcel bool for cross-process transport
	SysUI notif entry --- get bool from ranking
	SysUI bubble data --- on notif entry update, suppress flyout if isInterruptive=false

	Considered adding "isInterruptive" bool to StatusBarNotification.
	Did not because "visually-interruptive" is additional information that the
	system figured out and SBNs should be limited to info from the app.

4) NoMan --- schedule ranking update if interruptive changes for bubble

Fixes: 138755533
Test: manual - send one sms => flyout appears once
Test: manual - send multiple sms in a row => flyout appears for each one
Test: atest FrameworksUiServicesTests
Test: atest NotificationComparatorTest
Test: atest SystemUITests
Change-Id: Id4b855054689ee73a109bb7cd18004531b41f28c
(cherry picked from commit 0dddc61824d091e48962e36939828cae3cde2aa9)
2019-11-01 14:31:40 -07:00
Kevin Hufnagle
5813a8c567 docs: Added perm req for getUserCount()
Test: make ds-docs -j32

Bug: 31091793

Change-Id: Ib1cae91795b0c054f2ae95af6376a8f01d839d9f
2019-11-01 18:09:14 +00:00
Patrick Baumann
34b504c32f Use KNOWN_PACKAGES when shared lib consumers
This change ensures we find ALL known packages that could be consuming a
shared library, not only currently installed ones. Without this check,
the system may get into a state in which we have currently uninstalled
but on-device apps that depend on a shared library that does not exist
on device.

This change also leaves static shared library packages on device even if
it's not installed for any of the remaining users as it could still be
used, but marked uninstalled for users in which it is consumed.

Bug: 141413692
Bug: 142083996
Test: Manual; attempt to remove shared lib after marking its consumer uninstalled.
Test: atest StaticSharedLibsHostTests
Change-Id: Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea
2019-11-01 07:51:50 -07:00
Kamaljeet Maini
4a1a68d36d Allow customization of display timeout value for volume dialog
Bug: b/141850913
Test: Local build
Change-Id: I571df53bc458ecbe6c7d70759aa6129501bc03f2
2019-10-31 12:35:42 -07:00
TreeHugger Robot
be00e16458 Merge "Switch CarVolumeItems when group volume changes." into qt-qpr1-dev 2019-10-31 19:00:24 +00:00
John Reck
ab9d0b5103 Merge "Ensure SKP serialization occurs on RenderThread" into qt-qpr1-dev 2019-10-31 17:33:44 +00:00
Edgar Wang
53cd712dfe Add log metrics for Tap Gesture
Bug: 138296598
Test: rebuild
Change-Id: I468eee30b58921d4c0378278672a19b3fa7754ca
Merged-In: I0ffaf58fa5fbe8af9f0959f653dc213e3c3d7435
2019-11-01 00:56:14 +08:00
Edgar Wang
5af0fd3316 Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture.

Bug: 138296598
Test: atest & manual

Change-Id: Icf0073ded0063ba5ed128bd3e3ea7d28a9336715
Merged-In: Ib76327b37a415512145a150a4b0e176a6cb114d7
2019-11-01 00:50:49 +08:00
TreeHugger Robot
2b4f037ef7 Merge "Handles null outInfo in deleteSystemPackageLI" into qt-qpr1-dev 2019-10-31 16:38:02 +00:00
TreeHugger Robot
b78d7355b7 Merge "ImageWriter: Do not override UNKNOWN format twice" into qt-qpr1-dev 2019-10-31 14:32:15 +00:00
wilsonshih
36c328b565 Try to rebind disconnected wallpaper service for 10 seconds.
When we received the wallpaper service disconnected, we could not
immediately know the reason for the disconnection, so if the service
was disconnected because the package was updating, and we received
the update broadcast after 1 second, in original design we will only
revert to the built-in wallpaper. However, it will be too late to bind
the original service after we receiving the package update broadcast.

In this CL, if currently wallpaper service is accidentally disconnected,
we will try to re-bind it for 10 seconds.

Fix: 138973259
Test: Manual install wallpaper service and delay the package update
broadcast on purpose, verify the service can be bind back.
Test: atest WallpaperManagerTest

Change-Id: I11891098164372002b36c558f670621d8c852af8
(cherry picked from commit b87530296b)
2019-10-31 12:47:38 +00:00
Patrick Baumann
5a3888c613 Handles null outInfo in deleteSystemPackageLI
This change adds null checks before accessing outInfo in
deleteSystemPackageLI.

Bug: 142083996
Test: manual; remove static dependency on eng build and reboot
Change-Id: If0fd48343e89cbb77ccd25826656194195d5b0cd
(cherry picked from commit 1747101650)
2019-10-31 11:08:30 +00:00
Abhijoy Saha
734511281d Switch CarVolumeItems when group volume changes.
If volume dialog is not expanded, then we just replace the old default
CarVolumeItem with the new group.

Bug: 141752233
Fixes: 141752233
Test: Manual
Change-Id: Idfa6ad3a1129e069a297f1c1cfd47b40a61773cc
2019-10-30 16:58:34 -07:00
TreeHugger Robot
fc07949b31 Merge "Check for amInternal nullness on user.dump()" into qt-qpr1-dev 2019-10-30 23:43:03 +00:00
TreeHugger Robot
d505667f65 Merge "Fixed guest check so it allows multiple pre-created users." into qt-qpr1-dev 2019-10-30 23:39:47 +00:00
TreeHugger Robot
858b68330d Merge "Don't disable GPS in Doze until the device is stationary." into qt-qpr1-dev 2019-10-30 23:14:48 +00:00
Shuzhen Wang
db1322fab1 ImageWriter: Do not override UNKNOWN format twice
Currently when application calls ImageWriter.newInstance(Surface, int,
int), the default format of UNKNOWN is overridden to surface format in
Java side before being overridden again to user specified format (from
RGBA to IMPLEMENTATION_DEFINED). This breaks backward compatibility with
certain gralloc implementations.

Do not override UNKNOWN format in Java side.

Test: testWriterFormatOverride
Bug: 143637345
Change-Id: Ie61157bca11f623eff2b8c0ed2a988c86da07cb2
2019-10-30 21:17:48 +00:00
Lyn Han
58a5522283 Fix dot for smart reply and bubble groups [DO NOT MERGE]
[Cherrypicked from master]

Android Messages sends two notifications per message
- New notif
- Smart reply update

This change fixes
- dot bugs that occur when two notifications arrive in quick succession for the same bubble
- regressions for bubble groups

BubbleStackView
- clearFlyoutOnHide: enforce flyout onHide to run once for the bubble it was updated for
- refactors for clarity

BubbleView
- shouldShowDot: refactor show-dot logic into function
	updateViews did not account for mSuppressDot
	=> dot flashed into view before being animated away by later dot visibility updates
- updateDotVisibility: add missing call to setDotScale if animate=false

Fixes: 138659213
Test: add bubble group with test app
	expand bubbles => update dots show for non-expanded bubbles
	expand bubbles, click through bubbles => dots go away
	expand bubbles, dismiss single bubble => summary (with one less notif) stays in scrim
Test: add mixed bubble group with test app
	expand bubbles, dismiss all bubbles => scrim notif for non-bubbling group stays

Bug: 138755533
Test: send android messages sms => flyout and dot behave as expected
Test: create bubble with test app => flyout and dot behave as expected
Test: atest SystemUITests
Change-Id: Ieb2e6c306a0b55aec248bd1582246b67eafab290
(cherry picked from commit f1f2c33f2c)
2019-10-30 14:10:44 -07:00