Commit Graph

495954 Commits

Author SHA1 Message Date
Amit Mahajan
4f59bdded5 Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Merged-in: If1e6d2bf58de39c22caa901fcd90fb11f104d900
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
(cherry picked from commit b9beb0d1afda6327b1c7645ac20a016f08e5744e)
2020-09-18 22:34:52 +00:00
TreeHugger Robot
c6095a415b Merge "Only filter when remote session has associated notification" into rvc-qpr-dev 2020-09-18 19:52:51 +00:00
Brad Ebinger
3d81f3e80c Merge "Customize the service class for Call barring" into rvc-qpr-dev 2020-09-18 19:17:12 +00:00
Robert Snoeberger
3dca24f6b8 Only filter when remote session has associated notification
Bug: 167706409
Test: manual - Cast from Google Play Books and check that media controls
are available in QS.

Change-Id: Ifc404be2de6f5f87a1d43e3b51d3ca00c73c6e06
(cherry picked from commit 8cc72bdf3a)
Merged-In: Ifc404be2de6f5f87a1d43e3b51d3ca00c73c6e06
2020-09-18 18:48:29 +00:00
TreeHugger Robot
fe614e0738 Merge "Filter out notif updates based on active media session" into rvc-qpr-dev 2020-09-18 18:07:17 +00:00
Robert Snoeberger
74b884a9d2 Filter out notif updates based on active media session
When an app is casting there can be two active media sessions, one local
and one remote. In this situation, there should only be a media object
for the remote session in QS. To achieve this, filter out updates for
the local session.

Bug: 158604810
Bug: 158813341
Bug: 158652134
Test: manual - cast from iHeartRadio. Toggle play/pause from media
object and check that device shown in output switcher isn't rapidly
changing.
Test: manual - cast from LivePhish. Check that only a single media
object appears in QS.

Change-Id: Ia7b8d2f3df3e68f63049e3443315fc26811efec4
(cherry picked from commit 0e098127db)
Merged-In: Ia7b8d2f3df3e68f63049e3443315fc26811efec4
2020-09-18 17:01:06 +00:00
TreeHugger Robot
acd04189d9 Merge "ActivityManager: kill frozen processes receiving sync transactions" into rvc-qpr-dev 2020-09-18 16:27:16 +00:00
Patrick Baumann
4336e7ca72 Merge "Build AppsFilter cache in background" into rvc-qpr-dev 2020-09-18 14:52:02 +00:00
TreeHugger Robot
354b3ec329 Merge "Reduce vertical margins in landscape add controls" into rvc-qpr-dev 2020-09-18 14:35:13 +00:00
TreeHugger Robot
6daf3381da Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-18 14:16:43 +00:00
TreeHugger Robot
2e0b7acd7e Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-18 14:14:39 +00:00
TreeHugger Robot
6095954e6d Merge "Controls - Custom icon/color issues" into rvc-qpr-dev 2020-09-18 13:09:32 +00:00
Bill Yi
bbc9203f49 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5a3fbe81bc011e0f0a3ce68c417da47b00a9ed1c
2020-09-18 11:06:51 +00:00
Bill Yi
a0e09b34fb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8aa4e04507cf86a0681e26431e144447ebd0313f
2020-09-18 09:36:44 +00:00
TreeHugger Robot
69a67d1d12 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-18 05:52:42 +00:00
Bill Yi
6683d9346a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I04b1b55c13a0073a116a155b97287173c733675a
2020-09-18 02:11:06 +00:00
TreeHugger Robot
c2c99464e6 Merge "AudioService: check calls to AudioSystem.initStreamVolume" into rvc-qpr-dev 2020-09-17 21:33:26 +00:00
Joshua Mccloskey
acbb253b9d Merge "Read and cache features when user switches" into rvc-qpr-dev 2020-09-17 21:22:28 +00:00
Eric Laurent
daef4550e0 Merge "AudioService: fix overlapping speakerphone + Bluetooth SCO routing requests" into rvc-qpr-dev 2020-09-17 21:20:59 +00:00
joshmccloskey
99415f0514 Read and cache features when user switches
Bug: 163830899
Test: Verified feature is stored to secure setting.

1. Flashed device to QDA release build
2. Verified require_attention was being reported as 1
3. Flashed to most recent change, verified require_attention setting
was upated to 0.

Change-Id: Ibb1fe6ee3d2e6674b4e335341a3278d2cf0f61b0
Merged-In: I0187e27b641edf0836fa187530cb2a193082fe5d
2020-09-17 14:19:44 -07:00
Brad Ebinger
2eed386624 Customize the service class for Call barring
Add a new carrier config that changes the service class is used for Call
barring settings.

CP from aosp/1404668

Test: manual
Bug: 161772958

Merged-In: Ibce22d0d340ce648c0b6df411266d1c4fe537013
Change-Id: Ibce22d0d340ce648c0b6df411266d1c4fe537013
2020-09-17 14:17:35 -07:00
Eric Laurent
3dc1a09ab9 AudioService: fix overlapping speakerphone + Bluetooth SCO routing requests
VoIP apps sometimes send conflicting requests to route call audio
to both speaker phone and BT SCO. This can happen if the app does not
reset the speakerphone request properly before requesting BT SCO.

In this case we must make sure to cancel the oldest request so that the
correct routing is restored when the audio mode owner is updated.

Bug: 162527933
Bug: 161564483
Test: repro steps in bug
Test: regression tests with speakerphone and BT routes with major
VoIP apps.

Change-Id: I2d390a283822732474583ad655dbc760b0ba8c66
Merged-In: I2d390a283822732474583ad655dbc760b0ba8c66
(cherry picked from commit 7647273fe6)
2020-09-17 12:58:29 -07:00
TreeHugger Robot
b4e06d0147 Merge "Add telecom to priorityOnlyDndExemptPackages" into rvc-qpr-dev 2020-09-17 19:45:53 +00:00
TreeHugger Robot
73489b9ccf Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-17 18:30:02 +00:00
Beverly
c384c930fd Add telecom to priorityOnlyDndExemptPackages
telecom plays dialer's ringtone, so we allow them to play sounds when
DND is on in priority mode. We trust that telecom will abide by the DND
rules and exceptions (ie: checking for starred contacts)

Test: manual
Bug: 163525045
Change-Id: I798f1d968821e7d1b0a97b9b034c1ef0726f8242
Merged-In: I798f1d968821e7d1b0a97b9b034c1ef0726f8242
2020-09-17 18:28:40 +00:00
Patrick Baumann
1c1ea159f4 Build AppsFilter cache in background
This change attempts to update the apps filter cache in the background
and without holding the package manager lock. It makes a local copy of
the package settings and gets the hashcode of each setting's package
object. After building the cache, it checks that all of the packages are
the same as before the cache was built. If there was a change, the cache
is discarded and rebuilt while holding the package lock.

Before change:
MakePackageManagerServiceReady took to complete: ~30ms
MakeDisplayManagerServiceReady took to complete: ~180ms

After change:
MakePackageManagerServiceReady took to complete: ~110ms
MakeDisplayManagerServiceReady took to complete: ~1ms

Test: atest AppEnumerationTests
Fixes: 167169644
Fixes: 161214066
Bug: 161250592
Bug: 162347084

This reverts commit 6d90fa3d50.
Merged-In: I910d73f4d3b4cb1fe54d667752d40445b1c56906
Merged-In: Iafa85e838d7f753eaf74037c85f86ee1feeb17aa
Merged-In: Iac2948fb2ad66e45161627f637f039a5f4faf88c
Change-Id: I68a46b1a6463a6d76907d4b2c507d5de3d418891
2020-09-17 18:20:25 +00:00
TreeHugger Robot
47c0c889db Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-17 18:12:14 +00:00
Beth Thibodeau
c8f18d19a2 Merge "[DO NOT MERGE] Revert "Allow user to block individual apps from resuming"" into rvc-qpr-dev 2020-09-17 17:56:29 +00:00
Beth Thibodeau
f715910293 [DO NOT MERGE] Revert "Allow user to block individual apps from resuming"
Revert "Allow user to block individual apps from resuming."

Revert submission 12392268-cherrypick-mediaappsettings-5fxuo164a2

Bug: 161813143

Reason for revert: no longer want change in QPR
Reverted Changes:
Id3de52419:Allow user to block individual apps from resuming....
I8c85bc937:Allow user to block individual apps from resuming

Change-Id: I888079abc77f5bc22aefa19c2f7523bb9db05bf8
2020-09-17 17:56:11 +00:00
Paul Hu
8b9d40586b Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to DownloadProvider" into rvc-qpr-dev 2020-09-17 15:36:15 +00:00
Bill Yi
0c40ca6b7c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia0894555f04fcf70d19c572c558625e0bec05b53
2020-09-17 10:10:47 +00:00
Gustav Sennton
2f4d456c2c Merge "Fix SystemCaptionsManagerService to re-bind after a force stop" into rvc-qpr-dev 2020-09-17 07:49:16 +00:00
Bill Yi
3954301ee5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2484a2f6589dce0da90dd9df6b2886bbbd5b108f
2020-09-17 07:49:00 +00:00
TreeHugger Robot
792e2be0fd Merge "Update language to comply with Android's inclusive language guidance" into rvc-qpr-dev 2020-09-17 02:42:46 +00:00
TreeHugger Robot
119e662303 Merge "Increase keyguard password maxlength to 500" into rvc-qpr-dev 2020-09-17 02:34:09 +00:00
Lyn Han
097545689f Merge "Log persisted bubbles" into rvc-qpr-dev 2020-09-16 22:36:20 +00:00
Lyn Han
618a7cddff Log persisted bubbles
Fixes: 167729787
Test: adb shell cmd stats print-logs

Change-Id: I618429cde83edd34fe36cd8f727ce65055430860
2020-09-16 22:36:00 +00:00
JW Wang
4e6078aee8 Merge "Pass correct install user when creating sessions" into rvc-qpr-dev 2020-09-16 22:27:21 +00:00
TreeHugger Robot
933f16e524 Merge "Add package name when creating AudioTrack." into rvc-qpr-dev 2020-09-16 16:56:45 +00:00
Jay Aliomer
5e97fb3189 Merge "Unlock keyguard for screen recording action" into rvc-qpr-dev 2020-09-16 16:27:57 +00:00
TreeHugger Robot
ee4b2ad5f0 Merge "Add logging for swipe and timeout" into rvc-qpr-dev 2020-09-16 16:23:11 +00:00
Ioannis Ilkos
7717083f3c Additional LMK diagnostic information
Add free memory / swap as well as the kill reason to better understand
and diagnose lmkd behaviour in the field

Test: build with corresponding lmkd change
Bug: 168117803
Merged-In: I190f70758daa442b8605e17960c74574676fa3ae
Change-Id: I190f70758daa442b8605e17960c74574676fa3ae
2020-09-16 15:39:45 +00:00
Youngjun Kwak
2d1d3d0897 Merge "DO NOT MERGE Enable hiding system bars by side when IME appears." into rvc-qpr-dev 2020-09-16 15:11:35 +00:00
Julia Reynolds
71f51c54cd Merge "DO NOT MERGE Revert "Remove app ops indicators from notifications"" into rvc-qpr-dev 2020-09-16 15:09:31 +00:00
Julia Reynolds
8ec5bcb3d0 DO NOT MERGE Revert "Remove app ops indicators from notifications"
This reverts commit 2778b62f1d.

Reason for revert: these icons are still needed

Change-Id: I219af393f3d4cd08e431f38a3b66408e12f258bb
Bug: 163076432
2020-09-16 15:09:03 +00:00
Fabian Kozynski
370971972e Reduce vertical margins in landscape add controls
This makes it so we can have at least one entire control tile visible
when scrolling.

Test: manual
Bug: 166166119
Change-Id: I7514cf8af69b4ba1d6c0bf76cdc21cd3c0719bd2
(cherry picked from commit a3a7c45f36)
2020-09-16 15:03:59 +00:00
Beth Thibodeau
b459268745 Add logging for swipe and timeout
We weren't logging when the user swiped the carousel away, which makes
it hard to tell in bugreports whether players were set to inactive
because of that or something else.

Bug: 158721393
Bug: 160944177
Test: manual
Change-Id: Ie2205d6c369576f1f83996b2f96d040ddd328e83
(cherry picked from commit a0546c7912)
Merged-In: Ie2205d6c369576f1f83996b2f96d040ddd328e83
2020-09-16 15:01:51 +00:00
Youngjun Kwak
a1a12910b7 Merge "DO NOT MERGE Fix subclass/superclass check for NotificationPanelViewMediator." into rvc-qpr-dev 2020-09-16 14:59:16 +00:00
TreeHugger Robot
5d87980a45 Merge "Move call to MediaRouter2Manager to worker thread" into rvc-qpr-dev 2020-09-16 14:44:45 +00:00
Robert Snoeberger
0db7d12a5e Move call to MediaRouter2Manager to worker thread
The call to MediaRouter2Manager#getRoutingSessionForMediaController was
implicated in an ANR. So, moving the call to a background thread to
prevent it from being caught blocking the main thread.

Fixes: 161690149
Test: atest tests/src/com/android/systemui/media/MediaDeviceManagerTest.kt
Change-Id: Icf3945a971be84397a335672134b1067decfe6da
(cherry picked from commit 290a624441)
Merged-In: Icf3945a971be84397a335672134b1067decfe6da
2020-09-16 13:41:39 +00:00