Commit Graph

424299 Commits

Author SHA1 Message Date
Agatha Man
348476e094 AudioService - remove sendBroadcastToAll() from setMasterMuteInternalNoCallerCheck()
sendBroadcastToAll is a duplicate broadcast of MASTER_MUTE_CHANGED_ACTION. The same broadcast is called by sendMasterMuteUpdate.

Test: make
Bug: 144352459
Change-Id: I0f5283fe35521f04c04c159d42bd907fccfb226f
(cherry picked from commit 1ae52c25c81bab7d0aa5c1994ea604a4836027eb)
2020-02-27 18:06:30 +00:00
Heemin Seog
2267cbc57f Merge "DO NOT MERGE Fix Autohide functionality" into qt-qpr1-dev 2020-02-27 17:29:35 +00:00
Yu-Han Yang
97e162d605 Allow settingIgnored for DBH request if inEmergency
Bug: 150232136

Test: on device
Change-Id: Ia987418a591d716b787d406d725338a8563a55dd
2020-02-26 23:09:55 +00:00
Evan Laird
e207aed329 Use status_bar_padding_top in QS system icons
Test: manual
Bug: 148651257
Change-Id: I771502c97623efb6513c0b12bac2ef7a95f09fc4
2020-02-26 11:39:09 -05:00
Ram Periathiruvadi
29c75abfe1 Resolve trust agents on USER_STARTED in addition to USER_ADDED.
ACTION_USER_ADDED is a broadcast that is sent once when the user is
created.  TrustManagerService resolves the enabled trust agents for an
user only when the user is created.  However, if there is a reboot or
power loss before the broadcast is received, the trust agents are never
resolved for that user.

This change also registers for ACTION_USER_STARTED, so the service
checks for enabled trust agents on every boot.  If the trust agents have
been already resolved and initialized for that users, there is already a
Secure Settings key (TRUST_AGENTS_INITIALIZED) that is turned on, so we
wouldn't be doing this more than once per user.

Bug: 150145767
Test: TrustManagerService resolves trust agents only once - either on
USER_ADDED or USER_STARTED.

Change-Id: I83c2dd02d4b476f8b85af1aa4d9d0c77095207ce
2020-02-25 10:24:49 -08:00
Eric Berglund
b896072638 Merge "DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI." into qt-qpr1-dev 2020-02-25 17:37:15 +00:00
Evan Laird
6075dd7f58 DO NOT MERGE: Add SystemUI support for front-facing camera protection
Devices with a DisplayCutout configured may want to add some extra area
of turned-off pixels around the cutout in order to keep light from
leaking into camera hardware. This CL adds two new config values to
sysui to enable the configuration of this cutout protection, and listens
for CameraManager events telling us that a relevant camera has turned
on.

Test: manual
Bug: 145095085
Change-Id: Ifce67a593247e3a2151d41800ae46a50478e0b7d
2020-02-24 18:44:48 +00:00
TreeHugger Robot
353d26c897 Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev 2020-02-24 16:45:30 +00:00
Bill Lin
688ebd6876 Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev 2020-02-24 16:27:20 +00:00
Riddle Hsu
2be3ba4973 RESTRICT AUTOMERGE Create separated tasks for different apps from startActivities
Assume there are 2 applications A, B with different uids.
There are 4 activities A1, A2, B1, B2 with default task
affinity and launch mode.

After A1 called startActivities(B1, A2, B2):
 Original   : Task(A1, B1, A2, B2)
 This Change: Task(A1, B1), Task(A2, B2)
In other words, the source caller cannot launch its activity
above the activity of other application in the same task, and
it can still launch activity of other application in its task.

Bug: 145669109
Test: run cts --test android.server.cts.StartActivityTests \
      -m CtsServicesHostTestCases
Change-Id: I97bd875146a52f62b8fe82235487ccefb2955e8e
2020-02-24 10:02:57 +00:00
Riddle Hsu
48d8d370f3 RESTRICT AUTOMERGE Create separated tasks for different apps from startActivities
Assume there are 2 applications A, B with different uids.
There are 4 activities A1, A2, B1, B2 with default task
affinity and launch mode.

After A1 called startActivities(B1, A2, B2):
 Original   : Task(A1, B1, A2, B2)
 This Change: Task(A1, B1), Task(A2, B2)
In other words, the source caller cannot launch its activity
above the activity of other application in the same task, and
it can still launch activity of other application in its task.

Bug: 145669109
Test: atest StartActivityTests# \
      testStartActivitiesWithDiffUidNotInSameTask
Change-Id: I97bd875146a52f62b8fe82235487ccefb2955e8e
2020-02-22 13:24:21 +00:00
Heemin Seog
ba42f4a80a DO NOT MERGE Fix Autohide functionality
Make sure that opening the notification panel doesn't result in a "blip"
in the nav bar visibility

Bug: 147427386
Bug: 149021759
Bug: 149115608
Test: on hawk
adb shell settings put global policy_control "immersive.navigation=*"
swipe up from bottom of screen - make sure it autohides
pull down notification panel - make sure the panel doesn't blip
on sdk_gphone_x86 - atest SystemUITests

Change-Id: I4b5244e5ff26fb23e687cd46bc105d4fb8251bc6
2020-02-21 17:02:47 -08:00
TreeHugger Robot
33c8124f04 Merge "DO NOT MERGE Reflect the selection state that reflects the current task stack upon restarting the Navigation Bar." into qt-qpr1-dev 2020-02-21 17:56:39 +00:00
TreeHugger Robot
ea06aa5003 Merge "DO NOT MERGE Set background drawable on status_bar_container" into qt-qpr1-dev 2020-02-21 16:26:03 +00:00
Bill Lin
9ae18fa2d9 DO NOT MERGE Respect rounded.xml size in ScreenDecorations
Suppose vendors will customize rounded.xml with corresponding
multiple radius path and size, ScreenDecorations should not resize it
by rounded_corner_radius in case jagged edges problem

Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Bug: 145707162
Bug: 148912090
Change-Id: Ie33526214072ad324ca00a10074ad212dfbf4258
2020-02-21 07:46:18 +00:00
Beverly
b85c9eaa24 DO NOT MERGE Set background drawable on status_bar_container
Put the background drawable on status_bar_container instead of
status_bar because we always want the status bar background to
fill the entire container.

status_bar receives new margins when corner display cutouts are enabled
which may prevent status_bar from taking up the entire
status_bar_container space.

Test: atest SystemUITests
Bug: 148355955
Change-Id: Ic7e0c0a79908d2a58d4595d239062435253edfda
2020-02-20 22:13:23 +00:00
Dave Mankoff
8161bd3ab6 Merge "RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing" into qt-qpr1-dev 2020-02-20 14:38:56 +00:00
Bill Lin
dd12316b0d Add DEBUG flag for rounded corner and display cutout path
There wasn't a good approach for engineers to distignlish bounds between
H/W display component and S/W anti-aliasing.

Allow enable color to review the anti-aliasing effect.

Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
Test: adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: check visual following above steps
Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Change-Id: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
Merged-In: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
2020-02-20 07:20:04 +00:00
Xiangyu/Malcolm Chen
7c0d8c3d49 Merge "Add carrier config to skip validation if recently validate." into qt-qpr1-dev 2020-02-20 00:40:11 +00:00
TreeHugger Robot
40e124cac9 Merge "DO NOT MERGE Have volume UI dismiss on home button press." into qt-qpr1-dev 2020-02-19 22:31:25 +00:00
Dave Mankoff
cb45d588e1 RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing
This allows new phones to use a sensor with a different
theshold when attempting to determine the devices proximity
to surfaces.

Bug: 149420648
Test: manual
Change-Id: Iee8568f7d9f58359dc1e72fd195a42abeaf2ddf3
2020-02-19 17:16:35 -05:00
Abhijoy Saha
25400fdcb9 DO NOT MERGE Have volume UI dismiss on home button press.
Register a receiver that listens for Intent.ACTION_CLOSE_SYSTEM_DIALOGS
and dismisses the volume UI when such an intent is received.

Bug: 149228466
Test: Manual
Change-Id: Iabb706b1d4cc54cb84f228aad95bfdb7e6f75851
2020-02-19 13:44:11 -08:00
Rubin Xu
f9418dbb2c RESTRICT AUTOMERGE
Update keyguard locked state from TrustManagerService

TrustManagerService holds the ground truth about whether a user is
locked or not, so update keystore using the information there,
instead of doing it from KeyguardStateMonitor. This fixes the issue
of work profile locked state not being correctly pushed to keystore.

Note: since this change is likely to be backported as a security
patch, I'm refraining from doing major refactoring right now.

Bug: 141329041
Bug: 144430870
Test: manually with KeyPairSampleApp
Change-Id: I3472ece73d573a775345ebcceeeb2cc460374c9b
2020-02-19 12:48:10 -08:00
Jay Aliomer
7c7f3dc678 Back porting Dark theme bug fixes from R
Applying theme on start
update system properties on startup to apply the updates

Fixes: 149441632
Fixes: 149385662
Test: UiModeManager tests
Change-Id: I7f71e27a43eb24be833b3003340653fefc75d0cc
Merged-In: I0bee6517b39216146681097262cf55c7192b0131
2020-02-19 19:18:44 +00:00
TreeHugger Robot
79a42a6cf9 Merge "Add cutout support in QSDetail" into qt-qpr1-dev 2020-02-19 18:53:21 +00:00
Eric Berglund
cbfe702556 DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI.
Bug: 149342387
Test: manual
Change-Id: I1bc4046ce1e6792699eaa87b9d50cfaa231e806f
2020-02-19 10:11:02 -08:00
Youngjun Kwak
5a846ed237 Merge "Add vertical type check to prevent non-Automotive Androids from force displaying system bars." into qt-qpr1-dev 2020-02-19 16:19:48 +00:00
TreeHugger Robot
e59b568ac4 Merge "DO NOT MERGE Dismiss system dialog" into qt-qpr1-dev 2020-02-19 00:41:29 +00:00
Malcolm Chen
0d3a5aa2aa Add carrier config to skip validation if recently validate.
Bug: 148611362
Test: unittest
Change-Id: I4f4e1f698bf883e6eaf80959f3592562015c70f5
Merged-In: I4f4e1f698bf883e6eaf80959f3592562015c70f5
2020-02-18 16:10:02 -08:00
Lin Guo
07af69531c DO NOT MERGE Dismiss system dialog
This fixed the keypad remains ON when switch facet issue.

BUG: 130573446, 149228466
Test: Manual

Change-Id: Ia449fb41a03bc02498471ded660d573d5b1ad141
(cherry picked from commit 82298783683ebe82a5847dfd35fc8b3528709930)
(cherry picked from commit ebff32a5d6)
2020-02-18 16:03:49 -08:00
TreeHugger Robot
f51ae98a50 Merge "Separate icon sizes for sharesheet and resolver list." into qt-qpr1-dev 2020-02-19 00:00:15 +00:00
kwaky
3cc9758323 DO NOT MERGE Reflect the selection state that reflects the current task stack upon restarting the Navigation Bar.
Previously, while restarting the Navigation Bar, we omitted the step where we
apply the selection state that reflects the current task stack.

This omission caused CarFacetButtons to lose their selection state on
certain events, such as the day/night toggle.

Bug: 148211695
Test: Manual -- Verify that the selection state is preserved between
day/night toggle.
adb shell dumpsys activity service com.android.car/.CarService day-night-mode day
adb shell dumpsys activity service com.android.car/.CarService day-night-mode night

Change-Id: Ic07b8b66aa531436ce4f23d56bb3c11a79b7cb46
2020-02-18 14:57:00 -08:00
Fabian Kozynski
eff2c740e5 Add cutout support in QSDetail
Add padding from cornerCutoutMargins.

Test: manual on device with and without cutout
Fixes: 147708367
Change-Id: I21a9b71c34664982b4e14dd4372638e405a5046e
Merged-In: I665c8c76a2a057e9a30bce7c28fdbe7a249bb5c2
2020-02-18 15:10:19 -05:00
TreeHugger Robot
928add13d4 Merge "Set a shorter timeout for logging a warn on slow IUserSwitchObservers." into qt-qpr1-dev 2020-02-18 18:08:42 +00:00
kwaky
c26e4fa64f Add vertical type check to prevent non-Automotive Androids from force displaying system bars.
Force displaying system bars can cause app screen compatibility issues
in non-Automotive Android.

Bug: 148407132
Test: CTS Test + Unit Tests
Change-Id: Ia433572650760e3b85954724c63084dca769eaa0
Merged-In: Ia433572650760e3b85954724c63084dca769eaa0
2020-02-18 09:15:54 -08:00
Ahan Wu
ec879fa0f2 Fix potential NPE while releasing worker thread of ImageWallpaper
We nullify mWorker right in ImageWallpaper#destroy(),
we might get NPE if postRender is invoked later.
Thus, we add null check to avoid NPE.

Bug: 144039509
Bug: 146167292
Test: atest com.android.systemui
Test: atest CtsMultiUserHostTestCases
Change-Id: I209673bdac7dcfee765006568583b5a9d6037b95
Merged-In: I243274af54538fc89268c448aa2c5a95f63c7ae3
2020-02-18 17:18:46 +08:00
TreeHugger Robot
2c4c1f1e6d Merge "Added log statements to some user-switching tasks." into qt-qpr1-dev 2020-02-14 18:46:51 +00:00
Michael Groover
b6f974b26b Merge "Ensure adb key store is instantiated before revoking grants" into qt-qpr1-dev 2020-02-13 23:18:35 +00:00
Dmitry Dementyev
eab74f8e20 Merge "Remove hidden shared account methods from AccountManager.java" into qt-qpr1-dev 2020-02-13 23:01:31 +00:00
Youngjun Kwak
fd15e010ba Merge "DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown." into qt-qpr1-dev 2020-02-13 17:38:20 +00:00
kwaky
6073f3c58b DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown.
If the Keyboard is shown, then margin bottom is 0.
Otherwise, the margin is the height of the NavBar.

Bug: 149022190
Test: Manual. Verify that NotificationView's margin adjusts based on
whether keyboard or IME is shown.

Change-Id: I96c50a4d773dfac9b57ab1c15cfc59d315da4605
2020-02-12 16:29:11 -08:00
TreeHugger Robot
c2daf3cbb2 Merge "Make switching dialog full screen and change "Loading" text color." into qt-qpr1-dev 2020-02-12 21:14:21 +00:00
TreeHugger Robot
718b4fd970 Merge "Add null check for voiceInteractorComponentName." into qt-qpr1-dev 2020-02-12 18:23:06 +00:00
kwaky
d445aaf1e2 Add null check for voiceInteractorComponentName.
Voice Assistant can be disabled on a user-level. Adding this null check
prevents crash for when Assistant is enabled for the system in general but
disabled for a specific user.

Bug: 149112015
Test: Manual -- Change config_disableLockscreenByDefault to true to
emulate the environment in which Volvo observed the bug. Verify that
switching to user0 through adb shell switch-user 0 causes the same crash.
Verify that the crash does not happen with the new null check.

Change-Id: I5b8ede1e5bd8c1bc047bc6d6220b425dea8f50ea
Merged-in: I5b8ede1e5bd8c1bc047bc6d6220b425dea8f50ea
2020-02-12 09:26:00 -08:00
TreeHugger Robot
7b19135cc5 Merge "Don't crash system process on empty onTuneFailed" into qt-qpr1-dev 2020-02-12 14:00:20 +00:00
TreeHugger Robot
c1e78426b5 Merge "Re-activate backup service after cleaning a profile owner" into qt-qpr1-dev 2020-02-11 23:20:29 +00:00
TreeHugger Robot
6ac8c0d096 Merge "CountryDetector: Enable detector class override for automotive" into qt-qpr1-dev 2020-02-11 23:02:07 +00:00
TreeHugger Robot
bace1cd5a4 Merge "DO NOT MERGE - Use TimingsTraceLog on SystemServiceManager and VoiceInteractionManagerService." into qt-qpr1-dev 2020-02-11 22:39:07 +00:00
Wilson Wu
94431615b1 Merge "Use the main thread to update alignment indication" into qt-qpr1-dev 2020-02-11 03:54:55 +00:00
TreeHugger Robot
3bc45ce2ab Merge "[DO NOT MERGE] Fix AoD front scrim being opaque at DOZE_PULSING" into qt-qpr1-dev 2020-02-11 03:43:31 +00:00