OSDN Git Service

android-x86/frameworks-base.git
4 years agoMerge "Validate wallpaper dimension while generating crop" into qt-dev am: 5d4aa134a9
Ahan Wu [Wed, 6 Nov 2019 04:26:11 +0000 (20:26 -0800)]
Merge "Validate wallpaper dimension while generating crop" into qt-dev am: 5d4aa134a9
am: a5e3ee28a9

Change-Id: Icf436269af159e14d5959a08c8870b05ab1b19cc

4 years agoMerge "Validate wallpaper dimension while generating crop" into qt-dev
Ahan Wu [Wed, 6 Nov 2019 04:20:10 +0000 (20:20 -0800)]
Merge "Validate wallpaper dimension while generating crop" into qt-dev
am: 5d4aa134a9

Change-Id: I004c0d0b9c368874489b306cce968c9cfdf1380e

4 years agoMerge "Validate wallpaper dimension while generating crop" into qt-dev
TreeHugger Robot [Wed, 6 Nov 2019 03:59:30 +0000 (03:59 +0000)]
Merge "Validate wallpaper dimension while generating crop" into qt-dev

4 years ago[automerger skipped] Merge "Prevent system uid component from running in an isolated...
Jing Ji [Wed, 6 Nov 2019 00:58:58 +0000 (16:58 -0800)]
[automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1 am: e385cb9204 -s ours am: eda85079c2 -s ours
am: 179ab14f4b -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: Ib9364163124611eaeacef63f6832afc22741f17c

4 years ago[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762...
Todd Kennedy [Wed, 6 Nov 2019 00:54:07 +0000 (16:54 -0800)]
[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287 am: 3b0553b17a -s ours am: bc68c31327 -s ours
am: 7b03d29737 -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: I56c7746ac49ff4c0769a693e07b052f7788120fb

4 years ago[automerger skipped] Merge "Prevent system uid component from running in an isolated...
Jing Ji [Wed, 6 Nov 2019 00:54:02 +0000 (16:54 -0800)]
[automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1 am: e385cb9204 -s ours
am: eda85079c2 -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: I238f43fe7dd1f2abf758aef016a8c6f4ed832a5a

4 years ago[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762...
Todd Kennedy [Wed, 6 Nov 2019 00:42:48 +0000 (16:42 -0800)]
[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287 am: 3b0553b17a -s ours
am: bc68c31327 -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: I149ed66a63c683d65a4232c22858a030a00db3e4

4 years ago[automerger skipped] Merge "Prevent system uid component from running in an isolated...
Jing Ji [Wed, 6 Nov 2019 00:39:58 +0000 (16:39 -0800)]
[automerger skipped] Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072 am: 038be975a1
am: e385cb9204 -s ours
am skip reason: change_id I5a1618fab529cb0300d4a8e9c7762ee218ca09eb with SHA1 84f2b227b0 is in history

Change-Id: Ia74b8de26e9dc24d23094ff2335e4c9f4320e033

4 years ago[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762...
Todd Kennedy [Wed, 6 Nov 2019 00:33:54 +0000 (16:33 -0800)]
[automerger skipped] Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14 am: aa1d74e287
am: 3b0553b17a -s ours
am skip reason: change_id Ib6dcca7901aa549d620448c0165c22270a3042be with SHA1 b5afc87483 is in history

Change-Id: Ibb601e676fc557ee717c12e48c7f48fc63f51f02

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:32:53 +0000 (16:32 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71 am: 68f3234072
am: 038be975a1

Change-Id: Ib4d8700eb5f5a8275a0a917ef6f6db2a0a3b85de

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14
Todd Kennedy [Wed, 6 Nov 2019 00:27:32 +0000 (16:27 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762 am: 8ff59f6a14
am: aa1d74e287

Change-Id: If511af964e4705e65e76a9ccb502cddb4f4b0012

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:24:07 +0000 (16:24 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev am: 909ff7dc71
am: 68f3234072

Change-Id: I2393d4b5c683892d489398c906790c966a38b36b

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root am: 702d394762
Todd Kennedy [Wed, 6 Nov 2019 00:20:48 +0000 (16:20 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root am: 702d394762
am: 8ff59f6a14

Change-Id: I13fc086058cf0f40614bdb5d19cb53211772e628

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Wed, 6 Nov 2019 00:13:50 +0000 (16:13 -0800)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev
am: 909ff7dc71

Change-Id: Ib725e69bbd84c7e1e141c32c62c5204bd552b12f

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root
Todd Kennedy [Wed, 6 Nov 2019 00:07:44 +0000 (16:07 -0800)]
Only allow INSTALL_ALLOW_TEST from shell or root
am: 702d394762

Change-Id: I6e19c9738e083ce8863ffd1d9d467cae2f973c37

4 years agoMerge "Prevent system uid component from running in an isolated app process" into...
Jing Ji [Tue, 5 Nov 2019 23:52:53 +0000 (23:52 +0000)]
Merge "Prevent system uid component from running in an isolated app process" into oc-dev

4 years agoMerge "WebView: note deprecation of onscreen zoom controls." into qt-dev am: b0bcbb0c35
Torne (Richard Coles) [Tue, 5 Nov 2019 23:20:34 +0000 (15:20 -0800)]
Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev am: b0bcbb0c35
am: 016ee6777e

Change-Id: Ibc89c85870f87d002f23aaa8fbbada0f3cd705ae

4 years agoMerge "WebView: note deprecation of onscreen zoom controls." into qt-dev
Torne (Richard Coles) [Tue, 5 Nov 2019 23:14:34 +0000 (15:14 -0800)]
Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev
am: b0bcbb0c35

Change-Id: If316cbd120ac807313f4d89a212be01b5e4a313e

4 years agoMerge "WebView: note deprecation of onscreen zoom controls." into qt-dev
TreeHugger Robot [Tue, 5 Nov 2019 22:57:36 +0000 (22:57 +0000)]
Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev

4 years agoPrevent system uid component from running in an isolated app process am: 84f2b227b0
Jing Ji [Tue, 5 Nov 2019 22:01:58 +0000 (14:01 -0800)]
Prevent system uid component from running in an isolated app process am: 84f2b227b0
am: 1c93e1d26c

Change-Id: I91b934962e65476e6efccce3d8ccdf4285f444d4

4 years agoPrevent system uid component from running in an isolated app process
Jing Ji [Tue, 5 Nov 2019 21:55:26 +0000 (13:55 -0800)]
Prevent system uid component from running in an isolated app process
am: 84f2b227b0

Change-Id: Iba55ca710d5ee6e443520ceb899980c792fe5b2a

4 years agoMerge "Add a carrier config to specify validation timeout for data switch." into...
Xiangyu/Malcolm Chen [Tue, 5 Nov 2019 21:51:28 +0000 (21:51 +0000)]
Merge "Add a carrier config to specify validation timeout for data switch." into qt-qpr1-dev

4 years agoMake smart actions icon to respect dark theme setting
Tony Mak [Mon, 4 Nov 2019 16:15:08 +0000 (16:15 +0000)]
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

4 years agoMerge "Add Tap Gesture for Aware Settings" into qt-qpr1-dev
TreeHugger Robot [Tue, 5 Nov 2019 03:59:25 +0000 (03:59 +0000)]
Merge "Add Tap Gesture for Aware Settings" into qt-qpr1-dev

4 years agoPrevent system uid component from running in an isolated app process
Jing Ji [Mon, 4 Nov 2019 22:22:27 +0000 (14:22 -0800)]
Prevent system uid component from running in an isolated app process

Bug: 140055304
Test: Manua
Change-Id: Ie7f6ed23f0c6009aad0f67a00af119b02cdceac3
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb

4 years agoPrevent system uid component from running in an isolated app process
Jing Ji [Mon, 4 Nov 2019 19:35:49 +0000 (11:35 -0800)]
Prevent system uid component from running in an isolated app process

Bug: 140055304
Test: Manual
Change-Id: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb

4 years agoMerge "Add log metrics for Tap Gesture" into qt-qpr1-dev
Edgar Wang [Tue, 5 Nov 2019 00:06:54 +0000 (00:06 +0000)]
Merge "Add log metrics for Tap Gesture" into qt-qpr1-dev

4 years agoAdd a carrier config to specify validation timeout for data switch.
Malcolm Chen [Thu, 31 Oct 2019 22:06:19 +0000 (15:06 -0700)]
Add a carrier config to specify validation timeout for data switch.

Bug: 142884903
Test: manual test
Change-Id: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
Merged-In: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02

4 years agoMerge "Crash app on foreground service notification error." into qt-qpr1-dev
TreeHugger Robot [Mon, 4 Nov 2019 18:25:20 +0000 (18:25 +0000)]
Merge "Crash app on foreground service notification error." into qt-qpr1-dev

4 years agoMerge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev
TreeHugger Robot [Mon, 4 Nov 2019 12:21:54 +0000 (12:21 +0000)]
Merge "Try to rebind disconnected wallpaper service for 10 seconds." into qt-qpr1-dev

4 years agoAllow customization of display timeout value for volume dialog
Kamaljeet Maini [Tue, 22 Oct 2019 23:49:05 +0000 (16:49 -0700)]
Allow customization of display timeout value for volume dialog

Bug: b/141850913
Test: Local build
Change-Id: I571df53bc458ecbe6c7d70759aa6129501bc03f2

4 years agoMerge "Switch CarVolumeItems when group volume changes." into qt-qpr1-dev
TreeHugger Robot [Thu, 31 Oct 2019 19:00:24 +0000 (19:00 +0000)]
Merge "Switch CarVolumeItems when group volume changes." into qt-qpr1-dev

4 years agoMerge "Ensure SKP serialization occurs on RenderThread" into qt-qpr1-dev
John Reck [Thu, 31 Oct 2019 17:33:44 +0000 (17:33 +0000)]
Merge "Ensure SKP serialization occurs on RenderThread" into qt-qpr1-dev

4 years agoAdd log metrics for Tap Gesture
Edgar Wang [Tue, 15 Oct 2019 10:32:14 +0000 (18:32 +0800)]
Add log metrics for Tap Gesture

Bug: 138296598
Test: rebuild
Change-Id: I468eee30b58921d4c0378278672a19b3fa7754ca
Merged-In: I0ffaf58fa5fbe8af9f0959f653dc213e3c3d7435

4 years agoAdd Tap Gesture for Aware Settings
Edgar Wang [Mon, 14 Oct 2019 10:54:13 +0000 (18:54 +0800)]
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

4 years agoMerge "Handles null outInfo in deleteSystemPackageLI" into qt-qpr1-dev
TreeHugger Robot [Thu, 31 Oct 2019 16:38:02 +0000 (16:38 +0000)]
Merge "Handles null outInfo in deleteSystemPackageLI" into qt-qpr1-dev

4 years agoMerge "ImageWriter: Do not override UNKNOWN format twice" into qt-qpr1-dev
TreeHugger Robot [Thu, 31 Oct 2019 14:32:15 +0000 (14:32 +0000)]
Merge "ImageWriter: Do not override UNKNOWN format twice" into qt-qpr1-dev

4 years agoTry to rebind disconnected wallpaper service for 10 seconds.
wilsonshih [Wed, 9 Oct 2019 12:50:44 +0000 (20:50 +0800)]
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 b87530296b3b42638138d90effdc8dcb067206f1)

4 years agoHandles null outInfo in deleteSystemPackageLI
Patrick Baumann [Fri, 23 Aug 2019 20:50:23 +0000 (13:50 -0700)]
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 17471016508bb9c9ffb8c3946dda0b4897d722f1)

4 years agoSwitch CarVolumeItems when group volume changes.
Abhijoy Saha [Thu, 24 Oct 2019 20:46:42 +0000 (13:46 -0700)]
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

4 years agoMerge "Check for amInternal nullness on user.dump()" into qt-qpr1-dev
TreeHugger Robot [Wed, 30 Oct 2019 23:43:03 +0000 (23:43 +0000)]
Merge "Check for amInternal nullness on user.dump()" into qt-qpr1-dev

4 years agoMerge "Fixed guest check so it allows multiple pre-created users." into qt-qpr1-dev
TreeHugger Robot [Wed, 30 Oct 2019 23:39:47 +0000 (23:39 +0000)]
Merge "Fixed guest check so it allows multiple pre-created users." into qt-qpr1-dev

4 years agoMerge "Don't disable GPS in Doze until the device is stationary." into qt-qpr1-dev
TreeHugger Robot [Wed, 30 Oct 2019 23:14:48 +0000 (23:14 +0000)]
Merge "Don't disable GPS in Doze until the device is stationary." into qt-qpr1-dev

4 years agoImageWriter: Do not override UNKNOWN format twice
Shuzhen Wang [Wed, 30 Oct 2019 15:01:59 +0000 (08:01 -0700)]
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

4 years agoMerge "Make the default user the current user (not 0)" into qt-qpr1-dev
Heemin Seog [Wed, 30 Oct 2019 17:50:28 +0000 (17:50 +0000)]
Merge "Make the default user the current user (not 0)" into qt-qpr1-dev

4 years agoMerge "wifi: Change WIFI_FEATURE_XXX type from int to long" into qt-qpr1-dev
Sunil Ravi [Wed, 30 Oct 2019 17:24:14 +0000 (17:24 +0000)]
Merge "wifi: Change WIFI_FEATURE_XXX type from int to long" into qt-qpr1-dev

4 years agoMerge "Clarify CookieManager RFC reference." into qt-dev am: 7186df9e6f
Torne (Richard Coles) [Wed, 30 Oct 2019 16:57:39 +0000 (09:57 -0700)]
Merge "Clarify CookieManager RFC reference." into qt-dev am: 7186df9e6f
am: 45a9d4bc79

Change-Id: I9a3ea8dcbece844051fd8383deea6a00ae92fe07

4 years agoMake the default user the current user (not 0)
Heemin Seog [Thu, 24 Oct 2019 16:36:34 +0000 (09:36 -0700)]
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

4 years agoMerge "Clarify CookieManager RFC reference." into qt-dev
Torne (Richard Coles) [Wed, 30 Oct 2019 16:51:40 +0000 (09:51 -0700)]
Merge "Clarify CookieManager RFC reference." into qt-dev
am: 7186df9e6f

Change-Id: I91a6a53d029b8ec2567eaac93056c91642b5177e

4 years agoMerge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev
Keun-young Park [Wed, 30 Oct 2019 16:37:28 +0000 (16:37 +0000)]
Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev

4 years agoMerge "Clarify CookieManager RFC reference." into qt-dev
TreeHugger Robot [Wed, 30 Oct 2019 16:31:03 +0000 (16:31 +0000)]
Merge "Clarify CookieManager RFC reference." into qt-dev

4 years agoMerge "Fix clock alpha when awake" into qt-qpr1-dev
Lucas Dupin [Tue, 29 Oct 2019 22:53:39 +0000 (22:53 +0000)]
Merge "Fix clock alpha when awake" into qt-qpr1-dev

4 years agoMerge "Changed Notification shade's background alpha initial and final values to...
Jian-Yang Liu [Tue, 29 Oct 2019 22:02:15 +0000 (22:02 +0000)]
Merge "Changed Notification shade's background alpha initial and final values to be configurable." into qt-qpr1-dev

4 years agoChanged Notification shade's background alpha initial and final values
JianYang Liu [Fri, 25 Oct 2019 00:19:44 +0000 (17:19 -0700)]
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

4 years agoMerge "[DO NOT MERGE] Check CellInfoCallback Detail for Null" into qt-qpr1-dev
Nathan Harold [Tue, 29 Oct 2019 18:20:19 +0000 (18:20 +0000)]
Merge "[DO NOT MERGE] Check CellInfoCallback Detail for Null" into qt-qpr1-dev

4 years agoDon't disable GPS in Doze until the device is stationary.
Kweku Adams [Wed, 28 Aug 2019 14:45:00 +0000 (07:45 -0700)]
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 810c77d5a0551942a1863a6fbad8478f0e3ee792)

4 years agoCheck for amInternal nullness on user.dump()
Felipe Leme [Fri, 4 Oct 2019 23:23:16 +0000 (16:23 -0700)]
Check for amInternal nullness on user.dump()

Bug: 133242016
Test: manual verification

Change-Id: I4f669c94b0be5f15465446cf768d16e483b440a4

4 years agoFixed guest check so it allows multiple pre-created users.
Felipe Leme [Mon, 14 Oct 2019 22:37:44 +0000 (15:37 -0700)]
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 e35f5b01f816ba41e20292e3410a055f9204ac7e)

4 years agowifi: Change WIFI_FEATURE_XXX type from int to long
Sunil Ravi [Fri, 25 Oct 2019 20:41:47 +0000 (13:41 -0700)]
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 26ac48bcd76cc5dc0f5fa646be29d076d7862632)

4 years agoWebView: clarify docs for onShowCustomView am: aaaa660a44
Nate Fischer [Tue, 29 Oct 2019 07:32:55 +0000 (00:32 -0700)]
WebView: clarify docs for onShowCustomView am: aaaa660a44
am: 3ea1a6d6ff

Change-Id: I9cf9fd9b8cecb266d2cc2aa2cacf5e9fc2339ede

4 years agoWebView: clarify docs for onShowCustomView
Nate Fischer [Tue, 29 Oct 2019 07:26:23 +0000 (00:26 -0700)]
WebView: clarify docs for onShowCustomView
am: aaaa660a44

Change-Id: Idaa495f908c914057ac785bfeca1f2f15a0a5fd8

4 years agoMerge "Log display white balance in animator" into qt-qpr1-dev
TreeHugger Robot [Tue, 29 Oct 2019 04:49:39 +0000 (04:49 +0000)]
Merge "Log display white balance in animator" into qt-qpr1-dev

4 years agoMigrate car sysui to use new createCar call and prevent crash
Keun young Park [Sat, 12 Oct 2019 03:00:22 +0000 (20:00 -0700)]
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)

4 years agoWebView: clarify docs for onShowCustomView
Nate Fischer [Fri, 25 Oct 2019 03:35:54 +0000 (20:35 -0700)]
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

4 years agoMerge "DO NOT MERGE Revert all scrim related changes in qpr" into qt-qpr1-dev
Selim Cinek [Mon, 28 Oct 2019 20:31:41 +0000 (20:31 +0000)]
Merge "DO NOT MERGE Revert all scrim related changes in qpr" into qt-qpr1-dev

4 years ago[DO NOT MERGE] Check CellInfoCallback Detail for Null
Nathan Harold [Tue, 15 Oct 2019 18:28:00 +0000 (11:28 -0700)]
[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 fff052067c1926bd0e5ef5f852d4adba5333934d)

4 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sun, 27 Oct 2019 03:33:35 +0000 (20:33 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 3447b7b66c -s ours
am skip reason: subject contains skip directive

Change-Id: I27f768b2628d15630a15159e642fd89d51be8b83

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 27 Oct 2019 00:48:31 +0000 (17:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4f4a4c0efd8c96693ec5700c13a95e4dc0fa4240
Auto-generated-cl: translation import

4 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 27 Oct 2019 00:38:28 +0000 (17:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2407d77349f697484f62cf943f5960381ffc76ae
Auto-generated-cl: translation import

4 years agoDO NOT MERGE Revert all scrim related changes in qpr
Selim Cinek [Sat, 26 Oct 2019 00:37:00 +0000 (17:37 -0700)]
DO NOT MERGE Revert all scrim related changes in qpr

This reverts commit 9449cfc4a608e7d801da642958249a16c536411b.
This reverts commit 22fa97577f39524e3ffbfbbf37040eff540bcb49.
This reverts commit bde48202e7bb1ffa04acd5c42a332c62b73f34d8.

Bug: 141649119
Bug: 143195895 is also fixed on my taimen with the above.
Bug: 143185828
Test: atest SystemUITests
Change-Id: I225b10fef2f88d3436ef3a683c09717467b071ad

4 years agoLog display white balance in animator
Anthony Han [Wed, 4 Sep 2019 01:28:30 +0000 (18:28 -0700)]
Log display white balance in animator

Bug: 139488234
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
Change-Id: I2768e2fc456009f1ee9da75f0ab8057ab8f39510

4 years agoWebView: note deprecation of onscreen zoom controls.
Torne (Richard Coles) [Fri, 25 Oct 2019 20:38:30 +0000 (16:38 -0400)]
WebView: note deprecation of onscreen zoom controls.

Inform developers that having onscreen zoom controls is deprecated and
that it's therefore not recommended to enable them in WebView, with
reference to ZoomButtonsController (which is what WebView uses to
implement them).

Bug: 141732094
Test: make ds-docs
Change-Id: I134551b87d3a93072e28aef56667507214b3e9c4

4 years agoMerge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into...
Philip P. Moltmann [Fri, 25 Oct 2019 18:33:56 +0000 (11:33 -0700)]
Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev am: 3b050525e4
am: c6ef7c0e79

Change-Id: I4c61e048169c42d27cdb72d2050b81c65defc415

4 years ago[DO NOT MERGE] Split access-media-storage from read-external-storage am: f3ff750f29
Philip P. Moltmann [Fri, 25 Oct 2019 18:33:51 +0000 (11:33 -0700)]
[DO NOT MERGE] Split access-media-storage from read-external-storage am: f3ff750f29
am: 6f0fe03b7d

Change-Id: I5e92a710d55d91f66be9e1f7dda7fa92b59534fd

4 years agoMerge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into...
Philip P. Moltmann [Fri, 25 Oct 2019 18:22:34 +0000 (11:22 -0700)]
Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev
am: 3b050525e4

Change-Id: Ie40f68f660e579cf9c2b1cbd446a4e3996bfa34d

4 years ago[DO NOT MERGE] Split access-media-storage from read-external-storage
Philip P. Moltmann [Fri, 25 Oct 2019 18:22:30 +0000 (11:22 -0700)]
[DO NOT MERGE] Split access-media-storage from read-external-storage
am: f3ff750f29

Change-Id: I0f37950a78df7d503a830ec5eff77acad7382fb8

4 years agoMerge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into...
TreeHugger Robot [Fri, 25 Oct 2019 18:08:22 +0000 (18:08 +0000)]
Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev

4 years agoMerge "Revert "Import translations. DO NOT MERGE"" into qt-qpr1-dev
TreeHugger Robot [Fri, 25 Oct 2019 01:46:48 +0000 (01:46 +0000)]
Merge "Revert "Import translations. DO NOT MERGE"" into qt-qpr1-dev

4 years agoRevert "Import translations. DO NOT MERGE"
Bill Yi [Fri, 25 Oct 2019 00:51:46 +0000 (00:51 +0000)]
Revert "Import translations. DO NOT MERGE"

This reverts commit d7554f399f402e49fef0e088f6685bdaf79cb0b1.

Reason for revert: May have caused phone_max regression

BUG:143316720

Change-Id: I592acd7f9f47ee2be06508236927a77b11185ace

4 years agoOnly allow INSTALL_ALLOW_TEST from shell or root
Todd Kennedy [Fri, 20 Sep 2019 20:45:15 +0000 (13:45 -0700)]
Only allow INSTALL_ALLOW_TEST from shell or root

Bug: 141169173
Test: Manual. App can't be installed as test-only
Change-Id: Ib6dcca7901aa549d620448c0165c22270a3042be
Merged-In: Ib6dcca7901aa549d620448c0165c22270a3042be

4 years agoFix zen alarms only mode check am: 51563b5ffe
Beverly [Thu, 24 Oct 2019 21:31:37 +0000 (14:31 -0700)]
Fix zen alarms only mode check am: 51563b5ffe
am: a9b1fc617d

Change-Id: If606c81739741eed5d2f3fe9520130e148de55e4

4 years agoFix zen alarms only mode check
Beverly [Thu, 24 Oct 2019 20:28:26 +0000 (13:28 -0700)]
Fix zen alarms only mode check
am: 51563b5ffe

Change-Id: I577da2d70a3ca8a9f2af0d574cb4406db25439f2

4 years ago[DO NOT MERGE] Split access-media-storage from read-external-storage
Philip P. Moltmann [Fri, 13 Sep 2019 22:12:34 +0000 (15:12 -0700)]
[DO NOT MERGE] Split access-media-storage from read-external-storage

And also pre-grant it to all apps that currently get any storage
permission pre-granted

Test: atest SplitPermissionTest
      m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
      Manual testing:
         All combinations of
           - App targetSdk = 28 and 29 (and 22 for extra credit)
           - App having the <uses-permission> tag for
             ACCESS_MEDIA_LOCATION or not
           - Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
         Further upgrade of targetSdk from 28->29 while on Q-QPR
         ==> All permission behavior should make sense. Sometimes there
             are weird, but expected behaviors. Hence we need to
             collect the results and then look at the unexpected ones.
             See SplitPermissionTest for some tests I added for the
             location-background permission which was split from
             the fine/coarse-location permissions
Fixes: 141048840,140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
(cherry picked from commit ac7b10c135bb148edcad1aad8e19c733d333f769)

4 years agoFix zen alarms only mode check
Beverly [Tue, 3 Sep 2019 21:00:51 +0000 (17:00 -0400)]
Fix zen alarms only mode check

Also fixes setting the consolidated zen policy logging.

Fixes: 140329813
Test: android.app.cts.NotificationManagerTest#testTotalSilenceOnlyMuteStreams
Test: android.app.cts.NotificationManagerTest#testAlarmsOnlyMuteStreams
Change-Id: I43d503ac23d7b0b141930d77cb76f1f589b22525
(cherry picked from commit dcc5cfc56111676d687c8c29d1ceb6914dc1d8ce)

4 years agoMerge "Resolver: Modernize layout" into qt-qpr1-dev
TreeHugger Robot [Thu, 24 Oct 2019 12:56:39 +0000 (12:56 +0000)]
Merge "Resolver: Modernize layout" into qt-qpr1-dev

4 years agoMerge "Add motion sense tap gesture + touch counts" into qt-qpr1-dev
Beverly Tai [Wed, 23 Oct 2019 18:03:12 +0000 (18:03 +0000)]
Merge "Add motion sense tap gesture + touch counts" into qt-qpr1-dev

4 years agoMerge "DO NOT MERGE Remove use of Dependency in SliceProvider" into qt-qpr1-dev
TreeHugger Robot [Tue, 22 Oct 2019 03:18:00 +0000 (03:18 +0000)]
Merge "DO NOT MERGE Remove use of Dependency in SliceProvider" into qt-qpr1-dev

4 years agoFix clock alpha when awake
Lucas Dupin [Mon, 21 Oct 2019 22:56:55 +0000 (15:56 -0700)]
Fix clock alpha when awake

Test: manual
Test: atest KeyguardClockPositionAlgorithmTest
Fixes: 141545917
Change-Id: I961a208313f7697913c90e8d0eedb8c940a29b04

4 years agoMerge "docs: App doesn't receive "first launch" broadcast" into qt-dev am: 0823f1b508
Kevin Hufnagle [Mon, 21 Oct 2019 22:51:06 +0000 (15:51 -0700)]
Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev am: 0823f1b508
am: e7832d514b

Change-Id: Ib2590dc07f3aa284c993bd4c65772277ea457727

4 years agoMerge "docs: App doesn't receive "first launch" broadcast" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:44:08 +0000 (15:44 -0700)]
Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev
am: 0823f1b508

Change-Id: I1e775265df7964f4eb5a41d5e228308aad29ee22

4 years agoMerge "docs: Added consent notice re. getAccounts()" into qt-dev am: 3b6bbed3af
Kevin Hufnagle [Mon, 21 Oct 2019 22:38:08 +0000 (15:38 -0700)]
Merge "docs: Added consent notice re. getAccounts()" into qt-dev am: 3b6bbed3af
am: a7cca253ea

Change-Id: I217e6e62724fb00b41c1ed34f631980f5bd4a24c

4 years agoMerge "docs: App doesn't receive "first launch" broadcast" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:33:05 +0000 (22:33 +0000)]
Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev

4 years agoMerge "docs: Added consent notice re. getAccounts()" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:32:07 +0000 (15:32 -0700)]
Merge "docs: Added consent notice re. getAccounts()" into qt-dev
am: 3b6bbed3af

Change-Id: I0a32519c272af7fc21b1544a77b6bde86843d1e7

4 years agoMerge "docs: Added consent notice re. getAccounts()" into qt-dev
Kevin Hufnagle [Mon, 21 Oct 2019 22:14:54 +0000 (22:14 +0000)]
Merge "docs: Added consent notice re. getAccounts()" into qt-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 21 Oct 2019 20:17:49 +0000 (13:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: I7aef87e95f92cf77c097ae971759ed55020e2bf2
Auto-generated-cl: translation import

4 years agoClarify CookieManager RFC reference.
Torne (Richard Coles) [Mon, 21 Oct 2019 18:34:03 +0000 (14:34 -0400)]
Clarify CookieManager RFC reference.

RFC2109 has been obsolete for a long time, and the docs aren't very
clear what exactly the RFC has to do with CookieManager; the RFC is
about HTTP and it's not immediately clear how this would apply to a Java
API.

Update the reference to the current cookie spec (and hyperlink it), and
clarify the text to explain that the HTTP header formats from the RFC
are the formats used to get/set set cookies.

Fixes: 143086151
Test: make ds-docs
Change-Id: I5e5838d3435b74516847b63e485fdd93810284aa

4 years agoDO NOT MERGE Remove use of Dependency in SliceProvider
Heemin Seog [Sat, 19 Oct 2019 23:18:38 +0000 (16:18 -0700)]
DO NOT MERGE Remove use of Dependency in SliceProvider

SliceProviders seem to be created before onCreate is called on the
application which causes some issues with using Dependency in Car System
UI.

Bug: 142974942
Test: manual for car sys ui and atest KeyguardSliceProviderTest on sdk_gphone_x86 emulator
Change-Id: I18d14d51c6b0b3219923b640d9f2145ed9b02b94

4 years agoAdd motion sense tap gesture + touch counts
Beverly [Wed, 9 Oct 2019 22:15:27 +0000 (18:15 -0400)]
Add motion sense tap gesture + touch counts

AWARE_TAP_PAUSE_GESTURE_COUNT is the number of times the user
has used the Motion Sense tap gesture to pause media.  This number
is used to determine whether to show the "Tap to pause media"
contextual tooltip.

AWARE_TAP_PAUSE_TOUCH_COUNT is the number of times the user has
touched the device to pause media instead of using the Motion Sense
tap gesture (Motion Sense and tap gesture must be active for this value
to increment). This number is also used to determine whether to show the
"Tap to pause media" contextual tip.

We back up these counts so that users moving to new devices with Motion
Sense will not be given these contextual tips again if they already know
how to use the feature.

Test: manual
Bug: 138296598
Change-Id: I702719fb7cec8b6be9dff91d212a00fb26129957
Merged-In: I702719fb7cec8b6be9dff91d212a00fb26129957
(cherry picked from commit a6e468831ad855c7a328657e873d1320db8b433e)

4 years agoMerge "Do not cancel car volume dialog dismiss anim" into qt-qpr1-dev
Jian-Yang Liu [Mon, 21 Oct 2019 17:04:25 +0000 (17:04 +0000)]
Merge "Do not cancel car volume dialog dismiss anim" into qt-qpr1-dev

4 years agodocs: Added consent notice re. getAccounts()
Kevin Hufnagle [Mon, 30 Sep 2019 17:59:49 +0000 (17:59 +0000)]
docs: Added consent notice re. getAccounts()

Test: make ds-docs -j32

Bug: 32704758
Change-Id: Id5e5c00840f2bde6c31a4f95f365b8bc8857884d