Commit Graph

423207 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
94a58bd978 Merge "Add a carrier config to specify validation timeout for data switch." into qt-qpr1-dev 2019-11-05 21:51:28 +00:00
Tony Mak
7773a752ec Make smart actions icon to respect dark theme setting
Problem:
The context from getPackageContext() does not have the theme set.

Solution:
Use the SystemUI theme to inflate the icon.
And we probably want to have a unified theme for all action chips anyway.

Test: Send myself a message "Code 12345", Verify that the
      icon works in both light and dark theme.
Test: Send myself a message "www.android.com", verify that the
      app icon is shown properly in both light and dark theme

Fixes: 142972040

Merged-In: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
Change-Id: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
2019-11-05 17:17:05 +00:00
TreeHugger Robot
e39c7bd211 Merge "Add Tap Gesture for Aware Settings" into qt-qpr1-dev 2019-11-05 03:59:25 +00:00
Edgar Wang
8682b5b066 Merge "Add log metrics for Tap Gesture" into qt-qpr1-dev 2019-11-05 00:06:54 +00:00
Malcolm Chen
f1239756b5 Add a carrier config to specify validation timeout for data switch.
Bug: 142884903
Test: manual test
Change-Id: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
Merged-In: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
2019-11-04 18:50:49 +00:00
TreeHugger Robot
eac3b7061c Merge "Crash app on foreground service notification error." into qt-qpr1-dev 2019-11-04 18:25:20 +00:00
TreeHugger Robot
c1e4900355 Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev 2019-11-04 12:21:54 +00:00
Kamaljeet Maini
4a1a68d36d Allow customization of display timeout value for volume dialog
Bug: b/141850913
Test: Local build
Change-Id: I571df53bc458ecbe6c7d70759aa6129501bc03f2
2019-10-31 12:35:42 -07:00
TreeHugger Robot
be00e16458 Merge "Switch CarVolumeItems when group volume changes." into qt-qpr1-dev 2019-10-31 19:00:24 +00:00
John Reck
ab9d0b5103 Merge "Ensure SKP serialization occurs on RenderThread" into qt-qpr1-dev 2019-10-31 17:33:44 +00:00
Edgar Wang
53cd712dfe Add log metrics for Tap Gesture
Bug: 138296598
Test: rebuild
Change-Id: I468eee30b58921d4c0378278672a19b3fa7754ca
Merged-In: I0ffaf58fa5fbe8af9f0959f653dc213e3c3d7435
2019-11-01 00:56:14 +08:00
Edgar Wang
5af0fd3316 Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture.

Bug: 138296598
Test: atest & manual

Change-Id: Icf0073ded0063ba5ed128bd3e3ea7d28a9336715
Merged-In: Ib76327b37a415512145a150a4b0e176a6cb114d7
2019-11-01 00:50:49 +08:00
TreeHugger Robot
2b4f037ef7 Merge "Handles null outInfo in deleteSystemPackageLI" into qt-qpr1-dev 2019-10-31 16:38:02 +00:00
TreeHugger Robot
b78d7355b7 Merge "ImageWriter: Do not override UNKNOWN format twice" into qt-qpr1-dev 2019-10-31 14:32:15 +00:00
wilsonshih
36c328b565 Try to rebind disconnected wallpaper service for 10 seconds.
When we received the wallpaper service disconnected, we could not
immediately know the reason for the disconnection, so if the service
was disconnected because the package was updating, and we received
the update broadcast after 1 second, in original design we will only
revert to the built-in wallpaper. However, it will be too late to bind
the original service after we receiving the package update broadcast.

In this CL, if currently wallpaper service is accidentally disconnected,
we will try to re-bind it for 10 seconds.

Fix: 138973259
Test: Manual install wallpaper service and delay the package update
broadcast on purpose, verify the service can be bind back.
Test: atest WallpaperManagerTest

Change-Id: I11891098164372002b36c558f670621d8c852af8
(cherry picked from commit b87530296b)
2019-10-31 12:47:38 +00:00
Patrick Baumann
5a3888c613 Handles null outInfo in deleteSystemPackageLI
This change adds null checks before accessing outInfo in
deleteSystemPackageLI.

Bug: 142083996
Test: manual; remove static dependency on eng build and reboot
Change-Id: If0fd48343e89cbb77ccd25826656194195d5b0cd
(cherry picked from commit 1747101650)
2019-10-31 11:08:30 +00:00
Abhijoy Saha
734511281d Switch CarVolumeItems when group volume changes.
If volume dialog is not expanded, then we just replace the old default
CarVolumeItem with the new group.

Bug: 141752233
Fixes: 141752233
Test: Manual
Change-Id: Idfa6ad3a1129e069a297f1c1cfd47b40a61773cc
2019-10-30 16:58:34 -07:00
TreeHugger Robot
fc07949b31 Merge "Check for amInternal nullness on user.dump()" into qt-qpr1-dev 2019-10-30 23:43:03 +00:00
TreeHugger Robot
d505667f65 Merge "Fixed guest check so it allows multiple pre-created users." into qt-qpr1-dev 2019-10-30 23:39:47 +00:00
TreeHugger Robot
858b68330d Merge "Don't disable GPS in Doze until the device is stationary." into qt-qpr1-dev 2019-10-30 23:14:48 +00:00
Shuzhen Wang
db1322fab1 ImageWriter: Do not override UNKNOWN format twice
Currently when application calls ImageWriter.newInstance(Surface, int,
int), the default format of UNKNOWN is overridden to surface format in
Java side before being overridden again to user specified format (from
RGBA to IMPLEMENTATION_DEFINED). This breaks backward compatibility with
certain gralloc implementations.

Do not override UNKNOWN format in Java side.

Test: testWriterFormatOverride
Bug: 143637345
Change-Id: Ie61157bca11f623eff2b8c0ed2a988c86da07cb2
2019-10-30 21:17:48 +00:00
Heemin Seog
a7bdb8ba0b Merge "Make the default user the current user (not 0)" into qt-qpr1-dev 2019-10-30 17:50:28 +00:00
Sunil Ravi
0710a7e6de Merge "wifi: Change WIFI_FEATURE_XXX type from int to long" into qt-qpr1-dev 2019-10-30 17:24:14 +00:00
Torne (Richard Coles)
04be94e23e Merge "Clarify CookieManager RFC reference." into qt-dev am: 7186df9e6f
am: 45a9d4bc79

Change-Id: I9a3ea8dcbece844051fd8383deea6a00ae92fe07
2019-10-30 09:57:39 -07:00
Heemin Seog
2ddd339d88 Make the default user the current user (not 0)
In #clearValuesAndCheck, values are placed in the value map based on a
key that depends on the current user. When these values are checked
in #call, it uses default user 0 (unless CALL_METHOD_USER_KEY is
populated).

Considering we don't even use getStringForUser when checking the values,
it seems to make sense to check against the userId used to set the
values in #clearValuesAndCheck.

Bug: 143529292
Bug: 143480221
Test: atest VolumeDialogControllerImplTest before and after the patch
Merged-In: I0ee9313b1394515d9405344482dc1779d15c0819
Change-Id: I0ee9313b1394515d9405344482dc1779d15c0819
2019-10-30 09:51:59 -07:00
Torne (Richard Coles)
45a9d4bc79 Merge "Clarify CookieManager RFC reference." into qt-dev
am: 7186df9e6f

Change-Id: I91a6a53d029b8ec2567eaac93056c91642b5177e
2019-10-30 09:51:40 -07:00
Keun-young Park
eeb9a61f63 Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev 2019-10-30 16:37:28 +00:00
TreeHugger Robot
7186df9e6f Merge "Clarify CookieManager RFC reference." into qt-dev 2019-10-30 16:31:03 +00:00
Lucas Dupin
5a7e009b8c Merge "Fix clock alpha when awake" into qt-qpr1-dev 2019-10-29 22:53:39 +00:00
Jian-Yang Liu
90572cb3c6 Merge "Changed Notification shade's background alpha initial and final values to be configurable." into qt-qpr1-dev 2019-10-29 22:02:15 +00:00
JianYang Liu
b923d1e1f0 Changed Notification shade's background alpha initial and final values
to be configurable.

Bug: 143372960
Test: manual - took before and after videos
Merged-In: Ia0b6a56859889d538e21f807a88bc5217d89e64a
Change-Id: Ia0b6a56859889d538e21f807a88bc5217d89e64a
2019-10-29 20:06:41 +00:00
Nathan Harold
766c011ff0 Merge "[DO NOT MERGE] Check CellInfoCallback Detail for Null" into qt-qpr1-dev 2019-10-29 18:20:19 +00:00
Kweku Adams
b8bb9fb569 Don't disable GPS in Doze until the device is stationary.
GPS is normally disabled when the device is Dozing. This means that GPS
is turned off in Battery Saver when quick doze is enabled. This
interferes with navigation and possibly other use cases. This changes
the behavior so that GPS is only disabled during Dozing if the device is
stationary. This will not interfere with regular Doze since the device
has to be stationary before it will enter regular Doze, and also allows
GPS to continue to work when Quick Doze activates while the user is
still carrying the device around.

Bug: 140162457
Test: atest BatterySaverLocationTest
Test: atest com.android.server.DeviceIdleControllerTest
Test: [manual] Shorten motion timeout, step into idle, check gps
provider dump after short timeout to check mDisableGpsForPowerManager=true
Merged-In: I7bc68c8a5e6744aac3a160ac14fc3375f9374d82
Change-Id: I7bc68c8a5e6744aac3a160ac14fc3375f9374d82
(cherry picked from commit 810c77d5a0)
2019-10-29 11:04:12 -07:00
Felipe Leme
5b8dc76c0e Check for amInternal nullness on user.dump()
Bug: 133242016
Test: manual verification

Change-Id: I4f669c94b0be5f15465446cf768d16e483b440a4
2019-10-29 18:02:48 +00:00
Felipe Leme
07653f0b46 Fixed guest check so it allows multiple pre-created users.
Also fixed shell cmd so it does not require name for pre-created users

Bug: 111451156
Bug: 132111956

Test: adb shell pm create-user --pre-create-only --guest # couple times

Change-Id: Ie256d55bdfe685f040d16223fcc70f2f2b7969da
(cherry picked from commit e35f5b01f8)
2019-10-29 11:00:28 -07:00
Sunil Ravi
ce5cf6225f wifi: Change WIFI_FEATURE_XXX type from int to long
This change is to avoid issues in assigning signed integer
feature (WIFI_FEATURE_DPP) to long featureSet. The
assignement was resulting in large, signed integer.

Bug: 143363031
Test: atest com.android.wifi.server
Test: Wifi ON/OFF, Connect and data transfer
Test: Added logs and verified feature set saved in iface.
Change-Id: Ic3828e675e49a8c1628368a7e6cf7f01e420bd96
(cherry picked from commit 26ac48bcd7)
2019-10-29 17:48:55 +00:00
Nate Fischer
7baf85ccaf WebView: clarify docs for onShowCustomView am: aaaa660a44
am: 3ea1a6d6ff

Change-Id: I9cf9fd9b8cecb266d2cc2aa2cacf5e9fc2339ede
2019-10-29 00:32:55 -07:00
Nate Fischer
3ea1a6d6ff WebView: clarify docs for onShowCustomView
am: aaaa660a44

Change-Id: Idaa495f908c914057ac785bfeca1f2f15a0a5fd8
2019-10-29 00:26:23 -07:00
TreeHugger Robot
5ba87c154e Merge "Log display white balance in animator" into qt-qpr1-dev 2019-10-29 04:49:39 +00:00
Keun young Park
9e395bb0e6 Migrate car sysui to use new createCar call and prevent crash
- createCar(context) will lead into crash when car service is crashed.
- Migrate all createCar to new style which can handle car service crash
  while removing unnecessary delay for connect.

Bug: 142543455
Test: kill car service and check if systemui survives

Change-Id: I69298f763a2a2e63c0cf8deae13f747ea19bbf9d
Merged-In: I69298f763a2a2e63c0cf8deae13f747ea19bbf9d
(cherry picked from commit c83d7b93ae0620bac34af2a937d5855b05058213)
2019-10-28 19:01:25 -07:00
Nate Fischer
aaaa660a44 WebView: clarify docs for onShowCustomView
No change to logic, only docs.

This clarifies the docs for onShowCustomView. This @links to
FLAG_FULLSCREEN, reminds the developer they must override both
onShowCustomView and onHideCustomView, and provides guidance for
CustomViewCallback.

Bug: 143247282
Test: make -j4 docs
Change-Id: I64de3723674da5c138438921cc8232c4bf2a3d98
2019-10-28 20:46:39 +00:00
Selim Cinek
39195ba211 Merge "DO NOT MERGE Revert all scrim related changes in qpr" into qt-qpr1-dev 2019-10-28 20:31:41 +00:00
Nathan Harold
b09250e794 [DO NOT MERGE] Check CellInfoCallback Detail for Null
In cases where the source of the CellInfo fails
but does not generate a Throwable, the detail info
will not be provided and should be null. Inside the
user process, we need to check for null before
dereferencing the detail object. Oops. :-(

Bug: 142706765
Bug: 142421696
Test: manual
Merged-In: I1307d1d7aacef0bbd33bfc73700ee774e12e64c1
Change-Id: I1307d1d7aacef0bbd33bfc73700ee774e12e64c1
(cherry picked from commit fff052067c)
2019-10-28 13:08:48 -07:00
Bill Yi
0079161fcd [automerger skipped] Import translations. DO NOT MERGE
am: 3447b7b66c -s ours
am skip reason: subject contains skip directive

Change-Id: I27f768b2628d15630a15159e642fd89d51be8b83
2019-10-26 20:33:35 -07:00
Bill Yi
9ee6503731 Import translations. DO NOT MERGE
Change-Id: I4f4a4c0efd8c96693ec5700c13a95e4dc0fa4240
Auto-generated-cl: translation import
2019-10-26 17:48:31 -07:00
Bill Yi
3447b7b66c Import translations. DO NOT MERGE
Change-Id: I2407d77349f697484f62cf943f5960381ffc76ae
Auto-generated-cl: translation import
2019-10-26 17:38:28 -07:00
Selim Cinek
f97d7f73cf DO NOT MERGE Revert all scrim related changes in qpr
This reverts commit 9449cfc4a6.
This reverts commit 22fa97577f.
This reverts commit bde48202e7.

Bug: 141649119
Bug: 143195895 is also fixed on my taimen with the above.
Bug: 143185828
Test: atest SystemUITests
Change-Id: I225b10fef2f88d3436ef3a683c09717467b071ad
2019-10-26 04:19:50 +00:00
Anthony Han
1bf7c562e0 Log display white balance in animator
Bug: 139488234
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
Change-Id: I2768e2fc456009f1ee9da75f0ab8057ab8f39510
2019-10-25 15:12:16 -07:00
Philip P. Moltmann
06a28b0655 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev am: 3b050525e4
am: c6ef7c0e79

Change-Id: I4c61e048169c42d27cdb72d2050b81c65defc415
2019-10-25 11:33:56 -07:00
Philip P. Moltmann
14358ee4d9 [DO NOT MERGE] Split access-media-storage from read-external-storage am: f3ff750f29
am: 6f0fe03b7d

Change-Id: I5e92a710d55d91f66be9e1f7dda7fa92b59534fd
2019-10-25 11:33:51 -07:00