Commit Graph

615375 Commits

Author SHA1 Message Date
Jeff Sharkey
fd2f7c893a Merge "Add OWNERS to HDMI control directories" 2020-12-09 17:39:01 +00:00
Bill Yi
0070ac3ddd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4d601d0c3c538197f588b9147179b464fdd5ddf7
2020-12-09 09:21:02 -08:00
Bill Yi
7359977be7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I675c51614b7caad1ac49d1444d32d6f610035839
2020-12-09 08:52:02 -08:00
Fabian Kozynski
80242a0c11 Fix colors in QS to match new scrim
* QS Customizer background and toolbar
* QS Detail background

Also, change background of INACTIVE/DISABLED tiles to have better
contrast.

Test: manual
Bug: 173562510
Change-Id: Idc13354415568148f4dbd1475f02d6a0ca5b74db
2020-12-09 11:40:30 -05:00
Ming-Shin Lu
1599b64849 Merge "Add Null check when excluding IME window surface for snapshot" 2020-12-09 16:37:17 +00:00
Kweku Adams
30afb2d54c Merge "Remove Plugin mechanism." 2020-12-09 16:08:05 +00:00
Lorenzo Colitti
a07cabc065 Add a convenience method to update a network's capabilities.
Almost all calls to ConnectivityService#updateCapabilities use
all the current data in the network, and thus call the method
like this:

    updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities);

Introduce a convenience method to simplify this frequent use case.

Bug: 173331190
Test: passes existing ConnectivityService tests
Change-Id: I6eb6d92bd159f2575d10a929bd59f6dd1b7a4b4e
2020-12-10 00:41:06 +09:00
Boleyn Su
a64af9764f Merge "Revert "gpuDrawTime should default to 0 when endTime is unknown"" 2020-12-09 15:30:18 +00:00
Chloris Kuo
a4e0a02fe3 Notification Intelligence Feedback UI Change
1. Remove OK button
2. If user taps Yes, closes dialog and if user taps No, redirects to
long press setting

Test: atest FeedbackInfoTest
Bug: 173460479
Change-Id: Idee79a0b28f480a51bf11bc0d31e836cf3eba9fc
2020-12-09 14:40:46 +00:00
Zim
00ab464c43 Revert "Set transcode DeviceConfigs"
This reverts commit a99ab83e43.

Server side flag will be added, and in the meantime, these strings
will be added as a resource in MediaProvider

Bug: 174161238
Test: atest TranscodeTest
Change-Id: I2d3d9abc1ee5dc230e15f76aed2cc97064013ed5
2020-12-09 14:36:02 +00:00
Fabian Kozynski
211075847c Fix colors of thick brightness slider
More pleasant colors for the background and icon of the slider. Also,
have the icon change color as the slider passes by.

There doesn't seem to be an easy way to use a vector drawable as an item
while at the same time changing the tint and alpha.

Test: manual
Fixes: 17476414

Change-Id: Ie545c3b681885ea8372808aae8804f58c85f2f67
2020-12-09 09:20:16 -05:00
Pavel Grafov
83eeb33c2f Merge "Add DPM.getKeyPairGrants()" 2020-12-09 13:38:48 +00:00
Jason Chang
67d56654e3 Fix one-handed-tutorial-overlay connection is permanently present
Ensure Tutorial window only exising when OHM enabled & triggered.

Bug: 172670809

Test: manual
Test: atest WMShellUnitTests
Change-Id: I8cb848a4da09a1c6676db4f7e6da2da580c8c986
2020-12-09 20:38:31 +08:00
Marvin Ramin
17c51c7b85 Track CEC version of CEC devices
Update tracked devices CEC version based on messages received by remote
devices.
Messages that can indicate CEC version are: <CEC Version>, <Report
Features>, <Report Power Status> (broadcast).

Bug: 169121287
Test: atest HdmiCecNetworkTest

Change-Id: I944dc1cdb93b32fb28fef4b2c111a08b232543c4
2020-12-09 13:32:05 +01:00
Ashwini Oruganti
8e7939d640 ActivityTaskManagerService: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED
These PIs need an explicit mutability flag. This temporay flag is being
used to mark these points in code and should be replaced ASAP.
See go/immutable-pendingintents for more context.

Bug: 160794467
Test: TH
Change-Id: I4ee94224f25d64dcb7ba71b3dc62d3cf55924760
2020-12-09 04:31:48 -08:00
Boleyn Su
a9ce662c44 Revert "gpuDrawTime should default to 0 when endTime is unknown"
This reverts commit 95cf4e7088.

Reason for revert: the fix is not working and also found that it is set to -1 on purpose

Change-Id: I3ea5553606a7824ba23909b0e36b2538d0f3d29f
2020-12-09 12:22:42 +00:00
Eran Messeri
a6ac235ae8 Device Policy Manager OWNERS: Add Enterprise team
Add the Enterprise team to the owners of the admin/ java
directory.

Bug: 174932174
Test: N/A
Change-Id: I565cd3bdc3f00e843071863c10832c9e81cad748
2020-12-09 11:21:28 +00:00
Vadim Caen
9e9ff33963 Adding Natanieljr@ to flicker owners
Change-Id: If0339feee4aca5ee30efa582e9751f9023c00eee
2020-12-09 11:02:20 +00:00
Bill Yi
ff79ad837f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I80f5c5ed1df9a84258ca61c19297565ab8616386
2020-12-09 02:47:57 -08:00
Lorenzo Colitti
e4e9d1f97e Disallow NetworkAgents from changing the owner UID.
The current behaviour with regards to changing the owner UID is
bizarre and arguably incorrect. A NetworkAgent can change the
owner to whatever other app it wants, regardless of signatures,
at any time. This includes, for example, transferring ownership
to another UID and then recovering it.

Fortunately no existing NetworkAgent appears to do this:
- ClientModeImpl sets it to the UID of the app that created the
  configuration. It doesn't look like it can change while the
  network is connected.
- Vpn sets it to the UID of the VPN owner. That also can't change.
- Telephony does not appear to set it at all, it only sets the
  administrator UIDs (and updates them whenever it gets
  EVENT_CARRIER_PRIVILEGED_UIDS_CHANGED).

Disallow this now before code is written that depends on it.

Bug: 175188445
Test: modified tests in ConnectivityServiceTest
Change-Id: I638e29fda2481ec3bf4fff562ea66a73322881df
2020-12-09 19:47:17 +09:00
Lorenzo Colitti
039ed698f1 Observe mOwnerUID in NetworkCapabilities#equals.
Currently, NetworkCapabilities's equals and hashCode methods
ignore mOwnerUID. This is confusing because it is inconsistent
with pretty much every other member of this class.

Bug: 175188445
Test: atest CtsNetTestCases:NetworkAgentTest \
            CtsNetTestCases:Ikev2VpnTest \
	    CtsNetTestCases:VpnServiceTest HostsideVpnTests \
	    CtsNetTestCases:android.net.cts.ConnectivityDiagnosticsManagerTest \
	    ConnectivityServiceTest com.android.server.connectivity.VpnTest
Change-Id: I2348b7a35f32a931687f2d3c2fa57620a12fe06f
2020-12-09 19:33:32 +09:00
Marvin Ramin
3b69e14e9a Add OWNERS to HDMI control directories
Test: n/a
Change-Id: I8e77822bb0a87c8b397be28d60528a35b0eda7b2
2020-12-09 09:47:16 +00:00
Wei Wang
5675ee40c3 Nullable annoation for Location#setExtras.
Bug: 175073579
Test: it complies.
Change-Id: I43b57289bb47703c1e2486de57dbf5642eae8d89
2020-12-09 01:39:07 -08:00
Marvin Ramin
6f69264f75 Add HdmiDeviceInfo#mHdmiCecVersion
Store CEC version for each device. Defaults to HDMI CEC 1.4b.

Bug: 174732339
Test: make; atest HdmiDeviceInfoTest

Change-Id: I97c962d58b16ddfab9010a1738670a107e12481f
2020-12-09 09:44:05 +01:00
Sergey Nikolaienkov
7bd311cf7a Merge "TV Pip fixes after menu migration to Window" 2020-12-09 08:28:44 +00:00
paulhu
81bbd3c1db Expose TcpRepairWindow as module-lib API
Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. TcpKeepaliveController
is a part of CS mainline module, it uses TcpRepairWindow to
store tcp repair window info. Thus, expose TcpRepairWindow as
module-lib API to support the usage.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I1b6f5ae698f4b6e030a0f776aeafc774fa9f1437
2020-12-09 08:25:13 +00:00
mincheli
3a0b55820c Excludes magnification switch button from system gesture area
When magnification switch button locates near to the system gesture
area, a user would feel hard to drag the button because the touch event
is dispatch to system gesture in priority.
To make the switch button easier to be dragged, we exclude the button
from system gesture area and adjust the layout size and the padding.

Bug: 172899084
Test: atest MagnificationModeSwitchTest
Change-Id: Ida99289ec63e6dc95d93eab979d9f8e985c3b889
2020-12-09 07:54:27 +00:00
mincheli
7ab29f9000 Sets the default fade-out timeout of magnification switch to 5000ms
It is for the new UI changes, Nov 10. update.
go/window-magnify-ux

Bug: 172631612
Test: none
Change-Id: Ia18243e0bddf9f48da2a25cbef0b08af8e3c8a3a
2020-12-09 07:53:34 +00:00
Robert Luo
23ccad79a7 Migrate media output switcher metrics - 1/n
Bug: 172181610
Test: (1) run statsd_testdrive 277, and check the
metric output correctness after content switching.
(2) run statsd_testdrive 90, and check the metric
output correctness after launching the output dialog
via Sound Setting / Volume Rocker / Media Object Chip.
(3) atest MediaOutputControllerTest
(4) atest MediaOutputDialogTest
(5) atest MediaOutputBaseDialogTest

Change-Id: I4094a510b5483a456522da9d0d8a6eee1526f687
Merged-In: I0fea0c59afcb44fc1d22920036107524f221a7be
2020-12-09 15:40:52 +08:00
Sudheer Shanka
dbda92e701 Update BlobStorePerfTests test config.
As part of bringing up these tests in Cystalball,
use Collector helper library to wait for device to stabilize
before running the test.

Bug: 163826419
Test: atest BlobStorePerfTests
Change-Id: Iad31b9e0a5b1f17f83499984f41e39118d8cc153
2020-12-08 22:45:42 -08:00
liuxiaoyu7
ffbff53cbe [Bugfix]audio:fix NPE when buildBluetoothRoutes
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.Set.iterator()' on a null object reference
at com.android.server.media.BluetoothRouteProvider.buildBluetoothRoutes(BluetoothRouteProvider.java:165)
at com.android.server.media.BluetoothRouteProvider.access$900(BluetoothRouteProvider.java:53)
at com.android.server.media.BluetoothRouteProvider$AdapterStateChangedReceiver.onReceive(BluetoothRouteProvider.java:462)
at com.android.server.media.BluetoothRouteProvider$BluetoothBroadcastReceiver.onReceive(BluetoothRouteProvider.java:445)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1564)

Signed-off-by: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: I6828a319248deff851d46f259cfaf392fde04a1d
2020-12-09 14:21:51 +08:00
Hai Zhang
735aa04593 Always update the permissions being delegated as Shell.
Previously the logic was to reuse the same permission delegate,
however since we are moving to the new API, that reuse is no longer
possible. So just always set up the permission delegate again to avoid
delegated permissions not being updated in PermissionManagerService.

Bug: 158736025
Fixes: 175085645
Test: MultiUserRollbackTest
Change-Id: I58acefe7bd9053a032b3df24c0c793f4e2aacde1
2020-12-08 21:38:49 -08:00
Dmitri Plotnikov
0f3b7c0823 [automerger skipped] Merge "Add per-file OWNERS for BatteryStats" am: cac4499628 am: d8a9268460 am: 0ad8cb5966 -s ours
am skip reason: skipped by user dplotnikov

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5637fde449188013d0e8a42c3bb7c7fa835f2aaf
2020-12-09 05:23:44 +00:00
TreeHugger Robot
6eef622761 Merge "Add GnssMeasurement AIDL HAL (frameworks/base)" 2020-12-09 04:29:25 +00:00
Felipe Leme
a9daef82eb New DevicePolicyManager operation: OPERATION_REBOOT.
Test: m update-api
Test: atest CtsDevicePolicyManagerTestCases:DeviceOwnerTest#testDevicePolicySafetyCheckerIntegration

Bug: 172376923

Change-Id: I95b35b9a43bcf0d0f7d4c7af20532dc03106784b
2020-12-08 20:28:29 -08:00
Dmitri Plotnikov
0ad8cb5966 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628 am: d8a9268460
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I74d7cc2d030f7a6e78d8c7e9903a48e93301c5c3
2020-12-09 03:26:47 +00:00
Christian Wailes
087a5215d2 [automerger skipped] Merge changes from topic "install-hints" am: 21b065b610 am: 543fdab6ab am: 75064490a8 -s ours
am skip reason: Change-Id Iab34d79cbbc4fb0d88946ef38a1edcca16cd3a29 with SHA-1 c37a01fe0a is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idb0ca1e925731a1da5905ace46f4a09e552ec824
2020-12-09 03:06:24 +00:00
Chris Wailes
851e4ba3c5 [automerger skipped] Adds an "install scenario" field to the appropriate datastructures am: d42204a865 am: e2c2f7ec15 am: 2a6f9b05a3 -s ours
am skip reason: Change-Id I1d0df8edf85a598905a5e7509f6c811df5c20e2e with SHA-1 04f2c2d651 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0af69642900c8e2b3f0700425b5bf4b6ee84a7fe
2020-12-09 03:06:10 +00:00
Dmitri Plotnikov
d8a9268460 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d258d326af6662a7e8d1dcaa1bbbeffdc19da94
2020-12-09 03:06:09 +00:00
Dmitri Plotnikov
cac4499628 Merge "Add per-file OWNERS for BatteryStats" 2020-12-09 02:32:13 +00:00
Christian Wailes
75064490a8 Merge changes from topic "install-hints" am: 21b065b610 am: 543fdab6ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1482838

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I22defc3bb3f0ef354dfad31e21d778b6815aeb5a
2020-12-09 02:23:52 +00:00
Chris Wailes
2a6f9b05a3 Adds an "install scenario" field to the appropriate datastructures am: d42204a865 am: e2c2f7ec15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieb120d7fd34ab55c2d01978f01a6ab474d6a5664
2020-12-09 02:23:45 +00:00
Manish Singh
74050dcfa8 Remove transcoding for apps from Settings.
Now that we are reading the transcode_compat_manifest from DeviceConfig,
we don't need the app-level transcode settings under Media transcoding
settings.  So, removing the string.

BUG=169327180
Test: manual testing.

Change-Id: I95c2d15f7645b5aadc40283dd83d45fd14f87d88
2020-12-09 01:48:17 +00:00
Mariia Sandrikova
41eff6820e Letterbox: show activity under insets when possible or needed
Activity handles insets on its own (e.g. under status bar or navigation bar). After task's surface is repositioned, intersection between an activity and insets can change but if it doesn't, the activity should be shown under insets to maximize visible area.

Also, an activity can use area under insets and insets shouldn't be cropped in this case regardless of a position on the screen.

Test: atest LetterboxTaskListenerTest
Fix: 174086576
Change-Id: I84cd28520ead3fb0099f15cc672167871c7d78a1
2020-12-09 01:45:39 +00:00
Songchun Fan
800ad02cdc [automerger skipped] Merge "[SettingsProvider] fix font size scale validator" into qt-dev am: 1a96cae421 -s ours am: e8630b7a20 -s ours am: 0d8b71b182 -s ours am: cb3efa67c9 -s ours am: d852f17eeb -s ours am: 59855d226a -s ours
am skip reason: Change-Id I32f3b7ece78ec8cc97c52a0484151a6a777aa9da with SHA-1 edeb081ad8 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I76a45b2fcd986a5dbe1f042ecaad70efec8a2e03
2020-12-09 01:36:41 +00:00
Songchun Fan
606fdbc445 [automerger skipped] Merge "[SettingsProvider] fix font size scale validator" into qt-qpr1-dev am: fd6e352d42 -s ours am: f03c563ea7 -s ours am: 934cf9fc6a -s ours am: cad5f6492c -s ours am: 71726e363a -s ours
am skip reason: Change-Id I32f3b7ece78ec8cc97c52a0484151a6a777aa9da with SHA-1 edeb081ad8 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1a1f33694f25095b6db329641aea9b9baf2b38c8
2020-12-09 01:36:25 +00:00
Christian Wailes
543fdab6ab Merge changes from topic "install-hints" am: 21b065b610
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1482838

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0d9a22925b9ea70f06954e57f7ce98a5c3cfd3b1
2020-12-09 01:36:18 +00:00
Songchun Fan
0669602377 [automerger skipped] Merge "[SettingsProvider] fix font size scale validator" into rvc-dev am: 9431e05686 am: 61c6fa391b -s ours am: 744efca3e0 -s ours am: cca8b83034 -s ours
am skip reason: Change-Id I32f3b7ece78ec8cc97c52a0484151a6a777aa9da with SHA-1 edeb081ad8 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4d03fe9d89f6ddec52cf55b4f3f5494651edbf56
2020-12-09 01:33:25 +00:00
Michael Groover
cfaac0e759 Add OWNERS for sensor privacy
Bug: 175159332
Test: Builds
Change-Id: I430d823ced4065df2a5d1f7a4229eb4d5361e82b
2020-12-08 17:26:23 -08:00
Chris Wailes
e2c2f7ec15 Adds an "install scenario" field to the appropriate datastructures am: d42204a865
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifeb0c921ec079202dba5b0b50eb147b09ea3042e
2020-12-09 01:22:52 +00:00