Commit Graph

424299 Commits

Author SHA1 Message Date
TreeHugger Robot
8a6113a72b Merge "Fixed a bug where the statusbar wasn't interactive" into qt-qpr1-dev 2019-10-15 09:40:22 +00:00
JianYang Liu
2c00fcfb16 Changed car status bar to show or hide by setting layout height instead
of removing/adding the view.

Adding/removing the car status bar via window manager causes issues if
trying to do too quickly since the calls are asynchronous. So if the
status bar is under the process of being removed when we want to show
the status bar, it will throw a BadTokenException because not all of the
references have been cleaned up.

Bug: 142272085
Test: manual
Change-Id: Ia0f46ba4f7582aaadd24dd885788609f027fa156
2019-10-15 00:54:14 +00:00
Selim Cinek
9449cfc4a6 Fixed a bug where the statusbar wasn't interactive
Our restriction if it has finished was too strict before,
let's loosen it to call whenever the animation has actually
finished not when it reached the final value

Fixes: 142189043
Test: atest SystemUITests
Change-Id: Ic8a252316346782b485b25d0f5d5458b30511f09
2019-10-14 12:05:22 -07:00
TreeHugger Robot
d76cc783f8 Merge changes I261ad35f,Id2611b3c into qt-qpr1-dev
* changes:
  Remove assist_gesture_enabled related keys from backup list
  Remove aware sensor related features from backup list
2019-10-14 16:57:48 +00:00
Leon Scroggins
c024a1641f Merge "Fix AnimatedImageDrawables using ByteBuffers" into qt-qpr1-dev 2019-10-14 16:05:57 +00:00
Edgar Wang
ba07c45dcb Remove assist_gesture_enabled related keys from backup list
Bug: 142312794
Test: atest & manual
Change-Id: I261ad35f4b7a2c7ac706f092b1be85f4aa41a9d6
Merged-In: Ied7d97d4b4b0955981824d7342aabe74d06a0c1f
2019-10-14 19:07:43 +08:00
Edgar Wang
587ba7e46e Remove aware sensor related features from backup list
Bug: 142312794
Test: atest & manual
Change-Id: Id2611b3cbdaea57e9e8c563aac211796d27a49a7
Merged-In: Ifed4ebb5f5a2ebff0420b3ff1ab1e9a533829566
2019-10-14 19:01:14 +08:00
Wu Ahan
9a3d2c7c88 Merge "DO NOT MERGE Add debug log to trace wallpaper rendering" into qt-qpr1-dev 2019-10-14 10:53:50 +00:00
Hall Liu
6652a265c7 Add ImsReasonInfo constant for retrying without RTT
Add CODE_RETRY_ON_IMS_WITHOUT_RTT for the IMS stack to indicate to
Telephony that a call should be retried without RTT enabled.

Bug: 141963475
Test: manual

Change-Id: Ic3aa8856e98d8c34fd98462d71834e69b857eda4
2019-10-12 01:04:42 +00:00
TreeHugger Robot
88b79a34b8 Merge "Allow bypassing setup for Auto in startDockOrHome" into qt-qpr1-dev 2019-10-12 00:41:46 +00:00
Matt Pietal
23a02f791d Resolver: Modernize layout
Visually align with the work done for sharesheet

Test: visual inspection
Bug: 139485420
Change-Id: Ie2609eefcd12552bba6c4d749ca1669c8232633c
2019-10-11 18:14:58 +00:00
Felipe Leme
98e8118868 Dump the system UI components config, so we can check if OEM redefines them.
Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService --config
Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService
Bug: 141631055

Change-Id: I157824b69e57ea133be666194b2f11c0e1ba36e8
(cherry picked from commit adff0b052d032cd779383a7e518b96acb16f3e44)
2019-10-11 10:32:42 -07:00
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
Leon Scroggins III
84d069d1c9 Fix AnimatedImageDrawables using ByteBuffers
Bug: 140715166
Test: I56dc6e9865c2701746c95ea584bcc70fe4d62a6c

AnimatedImageDrawable, when created from a ByteBuffer, needs to get a
pointer to the JNI interface in order to read the ByteBuffer (or
byte[]). But the AnimatedImageThread is not attached to the JVM. Attach
it as necessary.

Change-Id: I51b69b5b70f8c5865d5e5ed065e42267fa556202
Merged-In: I51b69b5b70f8c5865d5e5ed065e42267fa556202
(cherry picked from commit a7ec12f7ef)
2019-10-10 18:03:07 +00: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
Heemin Seog
1a13af51ba DO NOT MERGE Add support for unprovisioned top nav bar
Also listen for changes to user setup rather than device provisioned

Bug: 140748928
Test: manual with custom SUW apk
Change-Id: Iabab489269d3dbfafd150a919020ac7921e45768
2019-10-09 19:27:51 +00:00
Felipe Leme
3c5e8860f3 Dump isPrimaryUser() / isSplitSystemUser() on 'user' service.
Also fixed / improved some javadocs...

Bug: 133242016
Test: manual verification

Merged-In: Ia9c50a2cd1de5ad8b0c9d5573b1760601fbcef76
Change-Id: Ia9c50a2cd1de5ad8b0c9d5573b1760601fbcef76
(cherry picked from commit d7b88384fe)
2019-10-09 12:17:01 -07: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
Cheney Ni
bd9900a4f0 Add helpers to check whether the BluetoothCodecConfig instance is selectable
There will be a helper in the BluetoothCodecStatus to check whether the
codec config is matched the selectable array. It uses 3 smaller helpers
to confirm the codec config has none (wildcard matching), or one and only
one value for the audio feeding parameters.

Besides, this CL also adds a helper to compare whether two codec configs
are similar or not, and uses NONE values as wildcard.

Bug: 131147224
Bug: 133719424
Test: atest -t BluetoothInstrumentationTests:com.android.bluetooth.a2dp
Change-Id: I7d8f1a16b8358c440841801d95471b2d010739ec
Merged-In: I7d8f1a16b8358c440841801d95471b2d010739ec
(cherry picked from commit f1936c3423)
2019-10-08 11:26:15 +08: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
Julius D'souza
649a8ff6d5 Allow bypassing setup for Auto in startDockOrHome
Auto allows for setup deferral, so keycode presses for HOME should
propagate to the application layer when user setup is in progress.

Bug: 140787161
Test: KEYCODE_HOME should trigger an intent with Intent.CATEGORY_HOME
Change-Id: I05751f93c44405b28f93789e6f8e6cf0a3f34524
Merged-In: I05751f93c44405b28f93789e6f8e6cf0a3f34524
Signed-off-by: Julius D'souza <jdsouza@google.com>
2019-10-07 23:22:40 +00: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