Commit Graph

615375 Commits

Author SHA1 Message Date
Felipe Leme
a931fce1ae Added OWNERS for data/etc/car
Test: none
Bug: 170333009

Exempt-From-Owner-Approval: automotive-specific directory

Change-Id: I92cd4ca6bab38b5297f77356ee1f035d412d3a3c
2020-12-09 21:52:54 +00:00
chaviw
8bbdc770f5 Clean up code in WSA and WS
1. Use Transaction API instead of SurfaceControl
2. Removed recoverMemory flag from Tranaction request APIs
3. Deleted a lot of unused code

Test: Split Screen + PIP
Change-Id: I91762453afadd79626f6fb2d8ba162054a011584
2020-12-09 13:47:26 -08:00
chaviw
3c57702ea1 Send transaction when possible for WSA
In WSA, we are sometimes using the global transaction. This will make
things difficult when trying to handle synced transactions for blast
sync. We need to make sure all changes on WSA that can happen during a
sync are put on the sync transaction so they can all be applied by the
client at the same time.

Also cleaned up some unused functions in SurfaceControl.

Test: Split and PIP
Change-Id: Ic1abc3c009c38d00593f80a4e03f895c026364e2
2020-12-09 13:45:25 -08:00
Jordan Liu
a10b782505 Add API for setting SIM power "synchronously"
Bug: 171433370
Test: manual
Change-Id: I958d6c3a46cc6e99e8addf2628361e37bc178464
Merged-In: I958d6c3a46cc6e99e8addf2628361e37bc178464
2020-12-09 13:34:58 -08:00
Dan Shi
c398ea5913 Move CtsMediaTestCases to group presubmit-large
The test config takes longer than 15mins to run. Move it to a dedicated
group for running slow presubmit Test Mapping test.

Bug: 174654670
Bug: 174495337
Bug: 175150979
Change-Id: Ib9d7b86ea9bee438383a80a66b5d1c008565ba10
Test: none
2020-12-09 21:19:56 +00:00
Brad Ebinger
3011f5beb4 Add SipDelegateConnection#closeDialog
Add an API for IMS application to notify the SipDelegate when
to close the dialog and release all routing resources associated
with it.

Bug: 173833985
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I7638c1d3a8e117f604a83ea241c5ec158f33a186
2020-12-09 21:11:48 +00:00
Evan Laird
89f2b74245 Send current battery present state on add callback
BatteryControllerImpl won't send updates to the battery unknown state if
it hasn't changed, but BatteryMeterView can get reinflated on theme
change. This change makes sure we send the current state when callbacks
are added.

Test: atest BatteryControllerTest
Bug: 174959955
Change-Id: I30b4a7b7f55a1f26b6451f23721be3a709ddf894
2020-12-09 16:10:30 -05:00
Tyler Gunn
4fc34dc7c5 Grant CHANGE_DEVICE_IDLE_TEMP_WHITELIST to call log provider.
The call log provider needs to grant an allow-list exemption in
broadcast options when sending the ACTION_NEW_VOICEMAIL intent to it's
directed recipient.  This is required so that the voicemail app can
start a background service to do some time consuming (but timely) work
in the background upon receiving the intent.

Test: Manual test with Call log provider.
Bug: 173155475
Change-Id: I3e84d65292ec74ffe374fc997e57c4c688f71b9d
2020-12-09 13:05:56 -08:00
Julia Reynolds
475acd3f2b Merge "Update people UX for Demo Day" 2020-12-09 20:52:55 +00:00
Eugene Susla
dd010427b2 Add API to query role privileges
Bug: 165951651
Test: presubmit
Change-Id: Ib69fe274960681252ad17ba849f7de8fee8efc24
2020-12-09 12:52:34 -08:00
Hai Zhang
4163c8087f Merge "Always update the permissions being delegated as Shell." 2020-12-09 20:50:27 +00:00
Anna Zappone
a4506b98b1 Update people UX for Demo Day
Supports two new layouts in single conversation tiles and update
multi-conversation layout.

Test: local
Bug: 173499220
Change-Id: I878af1974d59500547723f4380e92bb8d660117b
2020-12-09 20:47:24 +00:00
Jeff Sharkey
cb1039d660 Merge "Add mobi extensions to known mime types" am: 806aa0b377 am: 08715462b9 am: 5848bfa206
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1514851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I107706ff1a59d76dfb610bba92d089df75a94f71
2020-12-09 20:46:37 +00:00
Fabian Kozynski
e08c9b7653 Extend DrawableWrapper to set tint and alpha
This way, the brightness icon can be overlaid properly and the colors
will work.

Test: manual
Fixes: 174746414

Change-Id: I73bb98a08e89be780bd89cc48228f80b15b8b9de
2020-12-09 15:45:34 -05:00
Hai Zhang
e4fae98ff2 Merge "Make PMShellCommand call role via public API." 2020-12-09 20:43:29 +00:00
Jeff Sharkey
5848bfa206 Merge "Add mobi extensions to known mime types" am: 806aa0b377 am: 08715462b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1514851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3a9799552789c2a74429de97d4ec572fa86afba2
2020-12-09 20:41:03 +00:00
TreeHugger Robot
bb202316da [automerger skipped] Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into rvc-qpr-dev-plus-aosp am: 5e7566fa31 -s ours
am skip reason: Change-Id I637aad7f02c2f0fb230c5f3920f2eb929d7709f2 with SHA-1 dd62aee91e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13177715

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I619eb582e5e3ee4d8737940861554e1b9459c65a
2020-12-09 20:40:56 +00:00
TreeHugger Robot
23d3f2d0c7 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: bcdbf94b59 -s ours am: df9f1eff78 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13192039

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icbb9ddcb34d94291d8b5ff9d74056681432514e7
2020-12-09 20:40:33 +00:00
TreeHugger Robot
e593f5f1eb [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: d98297e5c1 -s ours am: 34dcdcc211 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13189941

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf102266044ccfecd235776ebd00d456ac65c5b3
2020-12-09 20:40:02 +00:00
TreeHugger Robot
5e7566fa31 Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into rvc-qpr-dev-plus-aosp 2020-12-09 20:36:59 +00:00
Lucas Dupin
cc0fbf9c37 use new theme colors on custom notifications
Custom notifications are inflated using a different context, text colors
should be replaced after infaltion, similarly to what we do on dark
mode.

Test: manual
Test: atest com.android.systemui.statusbar.notification.row
Fixes: 174763901
Change-Id: I009011a66056cb31c026b48217710c5f3d74b0b5
2020-12-09 12:34:54 -08:00
Jeff Sharkey
08715462b9 Merge "Add mobi extensions to known mime types" am: 806aa0b377
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1514851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I726c027d51fb6b6c303ed7e6995197307e186bb0
2020-12-09 20:26:06 +00:00
TreeHugger Robot
df9f1eff78 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: bcdbf94b59 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13192039

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib507b38b90f444cf092d4539167883181a916d33
2020-12-09 20:23:51 +00:00
Ashwini Oruganti
a3a5d351dc BatteryStateNotifier: Update PendingIntent flag
Fixes: 175192995
Test: TH
Change-Id: I710db9695f36aaafd16fa00c929f4548e85d1304
2020-12-09 20:23:38 +00:00
TreeHugger Robot
34dcdcc211 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: d98297e5c1 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13189941

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6979d335c147472fa48aa1d386f09142abb3659
2020-12-09 20:22:34 +00:00
Fabian Kozynski
b9121e6bb9 Filter AppOps to show PHONE ops on all users
OP_PHONE_CALL_{MICROPHONE,CAMERA} are initiated by system_server in user
0, but they should be shown to the current user.

Test: atest PrivacyItemControllerTest
Fixes: 175149358
Change-Id: Ia4bdd0ba387cd8967924e05464e29397c4519ede
2020-12-09 15:21:25 -05:00
Jeff Sharkey
507b4cba66 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a am: b76f77b9b0 am: 577ee1b6d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icff446e33de2eed8829c605aaedf88d2aeee096e
2020-12-09 20:19:20 +00:00
Matt Pietal
547299df07 Controls UI - Part 1 - Thumbnail support
Add dedicated support for displaying background images on
controls. Apply a basic scrim to the image as well as a shadow on the
status text in order to keep the text legible. More work is needed to
add a shadow to the icon.

Bug: 175200791
Test: manual, use Mock app with camera
Change-Id: Ib76704e6577d3335fc4a563280aa15429f9dd277
2020-12-09 15:13:18 -05:00
Jean-Michel Trivi
15e3005386 AudioManager: fix implementation of isMusicActive()
Implementation of isMusicActive() should go through AudioService
as AudioSystem.isStreamActive() can only be called from system
service.

Bug: 175084989
Bug: 162423060
Test: atest AudioManagerTest
Change-Id: I15b3f7cd082a7497f857e6bf261f933224da853e
2020-12-09 12:04:22 -08:00
Soonil Nagarkar
34c8c17451 Make FUSED_PROVIDER public API
Expose the fused provider publicly, and change API results to reflect
this.

Bug: 174580458
Test: none
Change-Id: I61956fbe2b15d1c0c19f6ca2b6ff435146625e9f
2020-12-09 12:01:15 -08:00
TreeHugger Robot
bcdbf94b59 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-09 19:55:42 +00:00
TreeHugger Robot
d98297e5c1 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-12-09 19:54:33 +00:00
Bill Yi
61ba48d98f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88fa0881a3a641cd8c114f665d74d7e25bc97786
2020-12-09 11:44:13 -08:00
Felipe Leme
7898548ed6 Merge "Minor refactoring on String formatting." 2020-12-09 19:31:34 +00:00
Dave Mankoff
00a82f1de3 Remove @Inject from BatteryControllerImpl
It is setup through a dagger provider, so don't mark it with @Inject.

Bug: 168778439
Test: manual
Change-Id: I30fc2b4d7c17c5dfd9bfff82ff872ba0747de7ac
2020-12-09 14:24:57 -05:00
yinxu
c71a4b6abb Extract the platform signals handling into settingslib
Mobile platform signals will be shared by SysUI and Settings, but
Settings can not access SysUI code directly. Extract this logic into
settingslib so it can be shared by SysUI and Settings.

Bug: 174582703
Test: atest NetworkControllerSignalTest, Manual test
Change-Id: I990c1dc86fd9a04c4ff083478e45850f3b515547
2020-12-09 11:23:49 -08:00
Jeff Sharkey
78e84716e6 Mitigate performance TypedXml regression.
When an attribute value is missing, we can immediately return the
default value instead of paying the cost of throwing an exception.

To bring this benefit to both human-readable and binary XML, this
is implemented by adding a new getAttributeIndex() lookup method
which is then used by default methods.

readExtraAttributes() also appears to be parsing a string list as
a boolean value (which seems very broken), so we add hand-rolled
parsing logic to avoid paying the cost of an exception.  Someone
should follow up in the future to investigate if there's an actual
bug here.

Bug: 174544002
Test: manual
Change-Id: Id313d18000e345ca1acd3c66d2c0c0fc44769b71
2020-12-09 12:18:05 -07:00
Jeff Sharkey
806aa0b377 Merge "Add mobi extensions to known mime types" 2020-12-09 19:14:56 +00:00
Bill Yi
ea94666aee Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id3d03959542dd565959a7db244d775b9155bc177
2020-12-09 11:14:11 -08:00
Sai Rijal
eeb1257df8 Add mobi extensions to known mime types
Allow .prc/.mobi file extensions to be read as a separate
mobi mime type. This allows Android to open mobi files
with the correct mime type.

This in turn allows applications to set their intent filters
based on mime type when opening mobi files.

Test: CtsMimeMapTestCases
Change-Id: I2b8f80f019f930f888e8e50db8b4efee0f0d4035
2020-12-09 11:03:14 -08:00
Eran Messeri
f7e85a12fa DPM: Deprecate password quality-related methods
Deprecate setPasswordQuality and related methods, since:
* setRequiredPasswordComplexity is a suitable alternative for
  most cases.
* Password quality may not be applied to the parent profile anymore,
  to avoid personal data being tied to work-set lockscreen requirements.

Additionally, change the exception thrown when the profile owner calls
setPasswordQuality on the parent profile to be a SecurityException
rather than an IllegalArgumentException

Bug: 165573442
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport
Change-Id: Ifefca721feef67dbc2fc9f7f2b52f4d245d2bae1
2020-12-09 18:57:03 +00:00
Jeff Sharkey
577ee1b6d5 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a am: b76f77b9b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I02dfb322253ba59376fe0f63feae055f01eabe3f
2020-12-09 18:48:31 +00:00
John Reck
b5eeb18f0a Add initial benchmarks for CanvasOp
Also some minor other tweaks

Test: this
Change-Id: Idb8a5955839893ff000de87d4899fd130ede061c
2020-12-09 13:45:56 -05:00
Hui Yu
a947e298d1 Remove DeviceConfig mFlagFgsStartTempAllowListEnabled.
BG-FGS-Lauch always check temp allowlist now.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I06d4218497402b16b5d3c67b2aeaaf438636272e
2020-12-09 10:31:13 -08:00
Johanna Ye
ea22f49eb3 Add Assistant Triggered EventTime
Test: ADT3 on adt3-userdebug, with RVIS as the default AssistService and
VoiceInteractionService reporting the intent extra.

12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS android.intent.extra.TIME: 926771
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS invocation_time_ms: 926773
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS ASSIST_INPUT_DEVICE_ID: 7
12-09 17:16:19.826  8809  8809 I #AssistSession: TVTS_RVIS invocation_phone_state: 5
12-09 17:16:19.840  8809  8809 I #AssistSession: [TVTS] Showing Voiceplate: 926792
12-09 17:16:19.932  8809  8832 I AudioSourceManager: [TVTS][Legacy] micOpen
12-09 17:16:20.162  8809  8856 I AudioSourceManager: [TVTS][Legacy] Read non-zero bytes

Bug: 129355484

Change-Id: I653deac41e105e04f56e03aec0fa80d8d7eb5b54
2020-12-09 19:09:41 +01:00
Jeff Sharkey
7444e309f9 Revert "Temporarily replace "android.com" accounts."
This reverts commit 0ace970e19.

Bug: 174932174, 175111824
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I152186408ecf6da1cb7354d14737de7cce55a34b
2020-12-09 11:06:28 -07:00
Jeff Sharkey
b76f77b9b0 Merge "Add OWNERS to HDMI control directories" am: fd2f7c893a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519668

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d8dd902baec65abec93557d00a22ad3fcd66347
2020-12-09 18:02:00 +00:00
Bill Yi
3bc7e8c190 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4d3527f82ecd818eee84570b9952034eed44e8dc
2020-12-09 09:49:32 -08:00
Evan Severson
41d80b9bb0 Create a state for the camera and microhpone toggles
This change adds the simple getters and setters for the state of the
toggles. The persisted xml format is backwards compatible so no
migration is needed.

Test: None for new state
      Verify old sensor mute works the same
Bug: 162549680

Change-Id: I6a1ef9c703cc5d175c1a5f788a3559eabf0054ad
2020-12-09 09:48:19 -08:00
Hongwei Wang
f9f8be934b Merge "Cleanup IPinnedStackController and IPinnedStackListener 2/N" 2020-12-09 17:40:33 +00:00