Commit Graph

423071 Commits

Author SHA1 Message Date
Selim Cinek
3ce82b7ae4 Merge "Dismissed keyguard gone runnables when aborting" into qt-qpr1-dev 2019-10-10 21:01:53 +00:00
Kevin Chyn
42c6f1693b Merge "Set the negative button when configuration changes and dialog is restored" into qt-qpr1-dev 2019-10-10 20:41:48 +00:00
Kevin Chyn
050e5a64b7 Set the negative button when configuration changes and dialog is restored
Fixes: 140607595

Test: manual, rotate the device
Change-Id: I9c9c0b9640735404d66c901011c39f28caa540da
2019-10-10 11:48:16 -07:00
Roshan Pius
450c63e992 Merge "WifiManager: Reword documenation for get/remove passpoint API" into qt-qpr1-dev 2019-10-10 17:03:17 +00:00
Hall Liu
8718323a76 Fix race in TelephonyScanManager
TelephonyScanManager may sometimes encounter a race condition where
Telephony sends it the first scan result before it has saved the
returned scan ID. This causes a crash in the app that's requesting the
scan.

To fix this, synchronize on mScanInfo while requesting the network scan
so that the handler in TelephonyScanManager will wait for the scan ID to
be saved before processing the first message from Telephony.

Bug: 142068098
Test: manual
Change-Id: I0b2b4c6dc749e21641843818293941704ed870a6
2019-10-09 13:41:51 -07:00
TreeHugger Robot
5811f47755 Merge "(Minor) fix on ActivityManagerService.LocalService.getCurrentUserId()" into qt-qpr1-dev 2019-10-09 20:08:47 +00:00
Roshan Pius
6dcadfa41a WifiManager: Reword documenation for get/remove passpoint API
Bug: 141639265
Test: Compiles
Change-Id: If44ec91ca2d8a4a409677cd7f0f936972db719f6
2019-10-09 11:26:11 -07:00
Felipe Leme
daca37e5f0 (Minor) fix on ActivityManagerService.LocalService.getCurrentUserId()
Bug: 142130022
Test: manual verification with 'adb shell dumpsys user'

Change-Id: I3aa7d847e9595e7b28428ad839234c993f7d2485
2019-10-09 09:58:50 -07:00
Lucas Dupin
0a410d3a6c Do not register lift when sensor is not present
Bug: 141284056
Fixes: 142365481
Test: force snesor to return null
Change-Id: I45583e4f1c06ec7088a7d6335597a8671555f339
(cherry picked from commit 3b745ddf4a)
2019-10-09 16:16:40 +00:00
TreeHugger Robot
c60e032391 Merge "Add NETWORK_TYPE_NR to Telephony framework" into qt-qpr1-dev 2019-10-09 00:15:10 +00:00
Lucas Dupin
dd78b67df8 Merge "Keep interrupts on when in battery saver mode" into qt-qpr1-dev 2019-10-08 23:48:13 +00:00
Kevin Hufnagle
e9c81c3e2f Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb
am: 7b02dd8342

Change-Id: I342ac4968830434af50e7523ba785089d78c3ca9
2019-10-08 12:08:13 -07:00
Kevin Hufnagle
7b02dd8342 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev
am: 3c92f24adb

Change-Id: Ieb7549bb38439ad297bba0f5a4b64870919651a7
2019-10-08 12:00:20 -07:00
Kevin Hufnagle
3c92f24adb Merge "docs: Updated SECURITY_PATCH field description" into qt-dev 2019-10-08 18:36:19 +00:00
Mady Mellor
0afaedd52f Merge "DO NOT MERGE Update setting to be bubbles not badging" into qt-qpr1-dev 2019-10-08 17:30:03 +00:00
Evan Laird
4821ae7fc6 [automerger skipped] Force FGS notifications to show for a minimum time am: 3b8c4743f6 -s ours am: d3618f8275 -s ours
am: 67e7268757 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 5136eefeb3 is in history

Change-Id: If638f3a41362dbbc07b101df3ddd9d51c2dfb103
2019-10-07 17:10:39 -07:00
Evan Laird
a2ba1ccfdc [automerger skipped] Merge "Force FGS notifications to show for a minimum time" into qt-dev am: e590a7d0b5
am: 9ec959b8f3 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 09843a687b is in history

Change-Id: I8cb6a74fb003c359cf81f5dbf84d77f675dd5b5c
2019-10-07 17:07:22 -07:00
Evan Laird
67e7268757 [automerger skipped] Force FGS notifications to show for a minimum time am: 3b8c4743f6 -s ours
am: d3618f8275 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 5136eefeb3 is in history

Change-Id: I84e294f2e9e192cfaf1c62cab4b05a1e8b5df7db
2019-10-07 16:40:18 -07:00
Evan Laird
d3618f8275 [automerger skipped] Force FGS notifications to show for a minimum time
am: 3b8c4743f6 -s ours
am skip reason: change_id I0680034ed9315aa2c05282524d48faaed066ebd0 with SHA1 5136eefeb3 is in history

Change-Id: I5ad32c66fa4502e232b802241789977252ddec8e
2019-10-07 16:30:51 -07:00
Evan Laird
9ec959b8f3 Merge "Force FGS notifications to show for a minimum time" into qt-dev
am: e590a7d0b5

Change-Id: Ia160497ca078e4d7c2ed99b28d41713cc17f5c90
2019-10-07 16:30:31 -07:00
TreeHugger Robot
e590a7d0b5 Merge "Force FGS notifications to show for a minimum time" into qt-dev 2019-10-07 23:04:14 +00:00
Sarah Chin
06b97e2a38 Add NETWORK_TYPE_NR to Telephony framework
Add NETWORK_CLASS_5_G to TelephonyManager
Add NR to ServiceState

Bug: 135421985
Test: atest FrameworksTelephonyTests
Change-Id: Iaed46354400c7a1ce410eebc246892d7edf448dc
Merged-In: Iaed46354400c7a1ce410eebc246892d7edf448dc
2019-10-07 14:07:51 -07:00
Kun Niu
1e3288d6d1 Merge "add java_api_finder plugin to mainline module Media to generate java APIs used by Media." into qt-dev am: 01dfc10948
am: d122386e45

Change-Id: I679c0d4342a639abbe81af9d4351ccd0aa9f62f8
2019-10-07 13:32:00 -07:00
Kun Niu
d122386e45 Merge "add java_api_finder plugin to mainline module Media to generate java APIs used by Media." into qt-dev
am: 01dfc10948

Change-Id: I0c7f975dfd910d7c8773bbf3a46086bbca82c7a4
2019-10-07 13:22:55 -07:00
TreeHugger Robot
01dfc10948 Merge "add java_api_finder plugin to mainline module Media to generate java APIs used by Media." into qt-dev 2019-10-07 20:14:31 +00:00
Kevin Hufnagle
bc42ebbfe3 Merge "docs: Edited sharedUserId deprecation message" into qt-dev am: 35b69e2ca3
am: 4250ee9ce5

Change-Id: Ifeaad657c6662fb680e208ae7558faad26459eb3
2019-10-07 13:09:14 -07:00
Kevin Hufnagle
4250ee9ce5 Merge "docs: Edited sharedUserId deprecation message" into qt-dev
am: 35b69e2ca3

Change-Id: I5f1fbce04b8e7f70d623e15dce2c13d122cba95c
2019-10-07 12:53:36 -07:00
Kevin Hufnagle
35b69e2ca3 Merge "docs: Edited sharedUserId deprecation message" into qt-dev 2019-10-07 19:35:38 +00:00
Mady Mellor
8527dcb20b DO NOT MERGE Update setting to be bubbles not badging
Test: atest NotificationMangerTest NotificationManagerServiceTest
Fixes: 142166809
Change-Id: I3ac5410a5185ef78cb0f90d05738191efca02de8
2019-10-07 18:20:00 +00:00
Evan Laird
5136eefeb3 Force FGS notifications to show for a minimum time
It's possible for a service to do a start/stop foreground and cause a
couple of things to happen:

NotificationManagerService will enqueue a EnqueueNotificationRunnable,
post a PostNotificationRunnable (for the startForeground), and then also
enqueue a CancelNotificationRunnable. There is some racy behavior here
in that the cancel runnable can get triggered in between enqueue and
post runnables. If the cancel happens first, then
NotificationListenerServices will never get the message.

This behavior is technically allowed, however for foreground services we
want to ensure that there is a minmum amount of time that notification
listeners are aware of the foreground service so that (for instance) the
FGS notification can be shown.

This CL does two things to mitigate this problem:

1. Introduce checking in the CancelNotificationRunnable such that it
will not cancel until after PostNotificationRunnable has finished
executing.

2. Introduce a NotificationLifetimeExtender method that will allow a
lifetime extender to manage the lifetime of a notification that has been
enqueued but not inflated yet.

Bug: 119041698
Test: atest NotificationManagerServiceTest
Test: atest ForegroundServiceNotificationListenerTest
Change-Id: I0680034ed9315aa2c05282524d48faaed066ebd0
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
2019-10-07 14:11:44 -04:00
Alan Stokes
9ed11c9dea Merge "Revert new app installed notification doc" into qt-dev am: 98540e2a16
am: 24e18b415f

Change-Id: I2675329bb8a87beb1e8c221f35e12f0fa675445a
2019-10-07 08:30:38 -07:00
Alan Stokes
24e18b415f Merge "Revert new app installed notification doc" into qt-dev
am: 98540e2a16

Change-Id: I12b1bf9c6c078ee1629e2135140ccd59b8f9da81
2019-10-07 08:18:41 -07:00
Alan Stokes
98540e2a16 Merge "Revert new app installed notification doc" into qt-dev 2019-10-07 14:41:57 +00:00
Bill Yi
efec4764b4 [automerger skipped] Import translations. DO NOT MERGE
am: 332e8f4e81 -s ours
am skip reason: subject contains skip directive

Change-Id: Id2f6efd386d21d7a80994896ed40f45d896e4716
2019-10-05 23:30:09 -07:00
TreeHugger Robot
e258cc65f6 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-10-06 05:53:16 +00:00
Bill Yi
f0cd160410 Import translations. DO NOT MERGE
Change-Id: I995c79defa649cee05b3c78398c329876f5bc98e
Auto-generated-cl: translation import
2019-10-05 17:27:08 -07:00
Bill Yi
332e8f4e81 Import translations. DO NOT MERGE
Change-Id: Iae1b021de5e543f5b157cde38e1f693a104f1fbe
Auto-generated-cl: translation import
2019-10-05 17:17:00 -07:00
Bill Yi
9519141cd6 Import translations. DO NOT MERGE
Change-Id: I9f9de2b8c2eba8c43c8f99ff2ad24a2af42609d7
Auto-generated-cl: translation import
2019-10-05 07:08:42 -07:00
Mingguang Xu
9c1464d7ca Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev 2019-10-04 23:27:38 +00:00
Mingguang Xu
038345da61 Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"
This reverts commit 078fe45552.

Reason for revert: This change introduced a bug and it completely changed the functionality of WiFi data stall detection, e.g., high Tx link speed can easily trigger data stall.  We would like to roll back them to restore the normal functionality of Wifi data stall detection.

Bug: 141995185

Change-Id: I024808b580955545b084112c4b14921f038b595f
Merged-In: I078d28ed81a84e32aaece839a51590364a974481
2019-10-04 21:19:53 +00:00
Evan Laird
3b8c4743f6 Force FGS notifications to show for a minimum time
It's possible for a service to do a start/stop foreground and cause a
couple of things to happen:

NotificationManagerService will enqueue a EnqueueNotificationRunnable,
post a PostNotificationRunnable (for the startForeground), and then also
enqueue a CancelNotificationRunnable. There is some racy behavior here
in that the cancel runnable can get triggered in between enqueue and
post runnables. If the cancel happens first, then
NotificationListenerServices will never get the message.

This behavior is technically allowed, however for foreground services we
want to ensure that there is a minmum amount of time that notification
listeners are aware of the foreground service so that (for instance) the
FGS notification can be shown.

This CL does two things to mitigate this problem:

1. Introduce checking in the CancelNotificationRunnable such that it
will not cancel until after PostNotificationRunnable has finished
executing.

2. Introduce a NotificationLifetimeExtender method that will allow a
lifetime extender to manage the lifetime of a notification that has been
enqueued but not inflated yet.

Bug: 119041698
Test: atest NotificationManagerServiceTest
Test: atest ForegroundServiceLifetimeExtenderTest
Change-Id: I0680034ed9315aa2c05282524d48faaed066ebd0
Merged-In: I0680034ed9315aa2c05282524d48faaed066ebd0
2019-10-04 16:54:50 -04:00
Kevin Hufnagle
d0c19f1162 docs: Edited sharedUserId deprecation message
Test: make ds-docs -j32

Bug: 142139123
Change-Id: I3485785126f268c76f81f760fc19e0506929b272
2019-10-04 19:49:03 +00:00
Philip P. Moltmann
7cd4256dde Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e
am: 43f6144e21

Change-Id: Ib8548cbfc7531a5f5e9100ae26cf9b6c8f97760f
2019-10-04 12:05:17 -07:00
Philip P. Moltmann
43f6144e21 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev
am: 0a71df1f7e

Change-Id: I658626de14fa325e08db3aead53707d8d3e00d3b
2019-10-04 11:43:06 -07:00
Philip P. Moltmann
0a71df1f7e Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev 2019-10-04 18:23:30 +00:00
Bryan Ferris
e0c730671a Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55
am: b2450ab526

Change-Id: I468c17380579d2caad0991e55043f68e10eb5a1a
2019-10-04 11:05:20 -07:00
Bryan Ferris
b2450ab526 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev
am: 06684aed55

Change-Id: I166f54becf2d4fa99939c1d9b5e9c335f70e8a69
2019-10-04 10:57:23 -07:00
Bryan Ferris
06684aed55 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev 2019-10-04 17:42:36 +00:00
Ricky Wai
5f5bacfda0 Revert new app installed notification doc
Bug: 111214100
Test: Able to compile
Change-Id: Id4fdabf0e8c69074eb8cb5838ab11d9d5f030093
2019-10-04 16:10:17 +01:00
Kun Niu
66a5871d68 add java_api_finder plugin to mainline module Media to generate java APIs used by Media.
Bug: 129294170
Test: m updatable-media RUN_ERROR_PRONE=true |& tee media_error_prone.out
Change-Id: I3cdfe5e00394c6ff7b9c857f63a5e45ac79f8d24
(cherry picked from commit 6eff1d439b)
Merged-In: I3cdfe5e00394c6ff7b9c857f63a5e45ac79f8d24
2019-10-04 00:45:18 +00:00