OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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

4 years agoMerge "Dump the system UI components config, so we can check if OEM redefines them...
TreeHugger Robot [Fri, 18 Oct 2019 22:19:10 +0000 (22:19 +0000)]
Merge "Dump the system UI components config, so we can check if OEM redefines them." into qt-qpr1-dev

4 years agoFix UserInfo Parcel
Felipe Leme [Mon, 14 Oct 2019 16:56:06 +0000 (09:56 -0700)]
Fix UserInfo Parcel

ag/9372503 put the order of reading preCreated from a UserInfo parcel
in the wrong spot. We fix it here.

Test: none
Merged-In: I4502e901ff2aac977c584fa8c5a3d1263be33572
Change-Id: I4502e901ff2aac977c584fa8c5a3d1263be33572
(cherry picked from commit e80af14d3333a7e987068187a2ec49d870a5046f)

4 years agoMerge changes from topic "user_templates" into qt-qpr1-dev
TreeHugger Robot [Fri, 18 Oct 2019 19:49:43 +0000 (19:49 +0000)]
Merge changes from topic "user_templates" into qt-qpr1-dev

* changes:
  Added new (hidden) UserManager API to get all users, including pre-created ones.
  Added option to pre-create user templates to optimize first user creation time.

4 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Fri, 18 Oct 2019 18:18:01 +0000 (11:18 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 3c7cd66c75 -s ours
am skip reason: subject contains skip directive

Change-Id: If05a618e489d85f0d325573806cff90150515b31

4 years agoAdded new (hidden) UserManager API to get all users, including pre-created ones.
Felipe Leme [Wed, 2 Oct 2019 23:27:46 +0000 (16:27 -0700)]
Added new (hidden) UserManager API to get all users, including pre-created ones.

Bug: 140750212
Test: manual verification

Merged-In: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
Change-Id: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
(cherry picked from commit 09a7f2df68192b9aa77577de14a6a7018e992caf)

4 years agoAdded option to pre-create user templates to optimize first user creation time.
Felipe Leme [Wed, 11 Sep 2019 16:23:26 +0000 (09:23 -0700)]
Added option to pre-create user templates to optimize first user creation time.

Initial user creation is slow because the system must prepare per-user data (like storage and
permissions) whose cost is proportional to the number of pre-installed apps. On automovive's
reference implementation, it can take more than 10s, which is a bad user experience.

This change lets OEMs pre-create some users , so that high initial-creation cost is "paid" during
the initial boot. On automotive, it improves the creation of an additional user (or guest user)
in about 7s (from ~17s to 9s).

Bug: 111451156
Bug: 132111956
Bug: 140750212
Bug: 140868593

Test: manual verification
Test: atest FrameworksServicesTests:UserControllerTest#testStartTemplateUser_background

Merged-In: I81de1b5376dc9c42b63be8853d7204c88826401f
Change-Id: I81de1b5376dc9c42b63be8853d7204c88826401f
(cherry picked from commit c1ca4410e1f66b5fa54458a0d4178893d3f7658a)

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Fri, 18 Oct 2019 17:45:41 +0000 (17:45 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoMerge "Use unique Handler for media, and synchronize it" into qt-qpr1-dev
Lucas Dupin [Fri, 18 Oct 2019 16:30:11 +0000 (16:30 +0000)]
Merge "Use unique Handler for media, and synchronize it" into qt-qpr1-dev

4 years agoMerge "fix the issue slice cannot be triggered from uri" into qt-qpr1-dev
Pinyao Ting [Fri, 18 Oct 2019 16:14:24 +0000 (16:14 +0000)]
Merge "fix the issue slice cannot be triggered from uri" into qt-qpr1-dev

4 years agofix the issue slice cannot be triggered from uri
Pinyao Ting [Fri, 11 Oct 2019 23:59:28 +0000 (16:59 -0700)]
fix the issue slice cannot be triggered from uri

Bug: 122879432
Change-Id: Id36a45bbbdb858b5b8d9fd6f1b3f5f97eb84e9fd
Test:
1. install SliceViewer (https://github.com/android/user-interface-samples/releases)
2. adb shell am start -d "slice-https://sliceviewer.android.example.com/hello"
(cherry picked from commit 09b91e60272a6751bd61471360e1fa20c424dcdf)

4 years agoMerge "Import translations. DO NOT MERGE" into qt-qpr1-dev
TreeHugger Robot [Fri, 18 Oct 2019 15:09:52 +0000 (15:09 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 18 Oct 2019 14:51:22 +0000 (07:51 -0700)]
Import translations. DO NOT MERGE

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

4 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 18 Oct 2019 14:41:12 +0000 (07:41 -0700)]
Import translations. DO NOT MERGE

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

4 years agoMerge "Dump isPrimaryUser() / isSplitSystemUser() on 'user' service." into qt-qpr1-dev
Felipe Leme [Fri, 18 Oct 2019 06:28:44 +0000 (06:28 +0000)]
Merge "Dump isPrimaryUser() / isSplitSystemUser() on 'user' service." into qt-qpr1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 18 Oct 2019 05:36:12 +0000 (22:36 -0700)]
Import translations. DO NOT MERGE

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

4 years agoUse unique Handler for media, and synchronize it
Lucas Dupin [Wed, 16 Oct 2019 23:39:00 +0000 (16:39 -0700)]
Use unique Handler for media, and synchronize it

Otherwise other classes can end up cancelling messages on this Handler

Test: atest KeyguardSliceProviderTest
Fixes: 142179390
Change-Id: I48568cabac8f2170d83687ac532f357f7afea9f2

4 years agoDo not cancel car volume dialog dismiss anim
JianYang Liu [Tue, 15 Oct 2019 22:38:50 +0000 (15:38 -0700)]
Do not cancel car volume dialog dismiss anim

A burst of ACTION_OUTSIDE events would cause the dialog
dismiss animation to repeatedly cancel and restart before
it could finish.

Add a flag to keep track of the dismissing state, and let
the animation finish once it has started.

Change made based on proposal from partner.

Bug: 142877093
Test: manual
Change-Id: I16a76bd7a65313027751f8f0e223d0346626c37b
(cherry picked from commit c8d3ef17af781731b558302efada5c1e7bebd096)

4 years agoInetDiagSocketTest: ignore test that times out
Jeff Vander Stoep [Tue, 1 Oct 2019 07:49:30 +0000 (09:49 +0200)]
InetDiagSocketTest: ignore test that times out

Test: atest InetDiagSocketTest
Change-Id: Ieef0ca291924c0d81b1110bd25020d57fa9f0fec
Merged-In: Ieef0ca291924c0d81b1110bd25020d57fa9f0fec
Bug: 141870193
Bug: 141459241
(cherry picked from commit 69b83c9b3c58999f2638857d5f36d1aae48195bb)
Clean cherry pick.

4 years agoMerge "Fix FD leak in ConnectivityManager.getConnectionOwnerUid" into qt-qpr1-dev
Jeffrey Vander Stoep [Thu, 17 Oct 2019 10:25:36 +0000 (10:25 +0000)]
Merge "Fix FD leak in ConnectivityManager.getConnectionOwnerUid" into qt-qpr1-dev

4 years agoFix FD leak in ConnectivityManager.getConnectionOwnerUid
Jeff Vander Stoep [Thu, 26 Sep 2019 11:56:50 +0000 (13:56 +0200)]
Fix FD leak in ConnectivityManager.getConnectionOwnerUid

Add unit tests to verify that bug has been fixed.

Re-enable testGetConnectionOwnerUid() unit tests in presubmit. These
were disabled due to test flakiness caused by expected failures passing
as a result of other sockets on the system. This is fixed by checking
that failures do not have the UID of the calling process instead of
INVALID_UID since previously some Qualcomm telephony sockets were
causing lookup successes.

Test: atest InetDiagSocketTest#testGetConnectionOwnerUid
Test: ls -1 /proc/<pid of system_server>/fd | wca
Test: atest --generate-new-metrics 200 InetDiagSocketTest#testGetConnectionOwnerUid
   To verify flakes have been cleaned up.
Bug: 141603906
Bug: 141459241
Change-Id: Ib76674f10e4bd24952c557bac7b9c65fba42fdb2
Merged-In: Ib76674f10e4bd24952c557bac7b9c65fba42fdb2
(cherry picked from commit 59940afb16782d2cad2a7a1adbe653c2f5eb9812)
Clean cherry pick.

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 05:00:33 +0000 (22:00 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours am: aa76cf3da5 -s ours am: 9c6d7fe4bb
am: 8e6b03f424

Change-Id: I0e24fafa9eda227d06e1a66d2924bd25b53ffd71

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:51:07 +0000 (21:51 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev am: d7f6ede261 -s ours am: 8d016ab4ff
am: 5181402566

Change-Id: Ia6d2cbc42f1a682eae9c98cf8f05c10239f2ef12

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 04:48:23 +0000 (21:48 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours am: 37c65a3e5c -s ours am: ac663b4595
am: 56a72fccf4

Change-Id: I052c9a2058001a18084697bde408246807ee30db

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:44:24 +0000 (21:44 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours am: aa76cf3da5 -s ours
am: 9c6d7fe4bb

Change-Id: I1e21b2703948ee70d1f678680dd6daaa58905512

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:37:26 +0000 (21:37 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev am: 9f7fb87dc4 -s ours
am: aa76cf3da5 -s ours
am skip reason: subject contains skip directive

Change-Id: I1681d85652afe4fb20fa3d76f2f9483303e3d429

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:34:17 +0000 (21:34 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev am: d7f6ede261 -s ours
am: 8d016ab4ff

Change-Id: I32ea97ed0a26a07a741c61ddb40a0a4292a3320a

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 04:31:25 +0000 (21:31 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours am: 37c65a3e5c -s ours
am: ac663b4595

Change-Id: I8f11c57d4706f03291099be5d9d2d244ed354b78

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:11:44 +0000 (21:11 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev
am: d7f6ede261 -s ours
am skip reason: subject contains skip directive

Change-Id: I1f761fe6c5336996407892ebae25eb34a8d83538

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 04:08:47 +0000 (21:08 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff am: 709e9e6855 -s ours
am: 37c65a3e5c -s ours
am skip reason: subject contains skip directive

Change-Id: Id5cce5424c5e712de76143a301e26e823d3df249

4 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into...
Seigo Nonaka [Thu, 17 Oct 2019 04:07:12 +0000 (21:07 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev
am: 9f7fb87dc4 -s ours
am skip reason: subject contains skip directive

Change-Id: If95365aeca3f84f75f571dcf705f477b01425a0c

4 years agoMerge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev
TreeHugger Robot [Thu, 17 Oct 2019 02:33:30 +0000 (02:33 +0000)]
Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into pi-dev

4 years agoMerge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev
TreeHugger Robot [Thu, 17 Oct 2019 01:46:22 +0000 (01:46 +0000)]
Merge "RESTRICT AUTOMERGE Revive runLimit check logic" into oc-mr1-dev

4 years ago[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f...
Seigo Nonaka [Thu, 17 Oct 2019 00:38:11 +0000 (17:38 -0700)]
[automerger skipped] RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f am: 2af4f537ff
am: 709e9e6855 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib2c5674e2cf4442fe10d3dd5eb7ae7906e432254

4 years agoRESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f
Seigo Nonaka [Thu, 17 Oct 2019 00:26:09 +0000 (17:26 -0700)]
RESTRICT AUTOMERGE Revive runLimit check logic am: b730f1984f
am: 2af4f537ff

Change-Id: Ia671d3f5a7fa62c80dd3c2468d199ce66fe734f1

4 years agoRESTRICT AUTOMERGE Revive runLimit check logic
Seigo Nonaka [Thu, 17 Oct 2019 00:14:15 +0000 (17:14 -0700)]
RESTRICT AUTOMERGE Revive runLimit check logic
am: b730f1984f

Change-Id: I329515d36c12ee5e12a63262ff7db8daff350832

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agoRESTRICT AUTOMERGE
Seigo Nonaka [Wed, 16 Oct 2019 21:48:30 +0000 (14:48 -0700)]
RESTRICT AUTOMERGE
Revive runLimit check logic

The runLimit check logic was accidentally removed by
I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735

Bug: 142134328
Bug: 140632678
Test: Manually done with reported step
Test: StaticLayoutTest passes
Change-Id: Ib1d5efdcb9adcc18a6a43370dc016ea464f48148

4 years agoMerge "Changed car status bar to show or hide by setting layout height instead of...
Jian-Yang Liu [Tue, 15 Oct 2019 23:20:59 +0000 (23:20 +0000)]
Merge "Changed car status bar to show or hide by setting layout height instead of removing/adding the view." into qt-qpr1-dev

4 years agoMerge "Add ImsReasonInfo constant for retrying without RTT" into qt-qpr1-dev
Hall Liu [Tue, 15 Oct 2019 21:00:18 +0000 (21:00 +0000)]
Merge "Add ImsReasonInfo constant for retrying without RTT" into qt-qpr1-dev

4 years agodocs: App doesn't receive "first launch" broadcast
Kevin Hufnagle [Tue, 15 Oct 2019 19:47:35 +0000 (19:47 +0000)]
docs: App doesn't receive "first launch" broadcast

Test: make ds-docs -j32

Bug: 116543817
Change-Id: I9aa1f1851ce236397ad2e1a36ea487b96daa55c5

4 years agoMerge "DO NOT MERGE Add support for unprovisioned top nav bar" into qt-qpr1-dev
Heemin Seog [Tue, 15 Oct 2019 15:55:14 +0000 (15:55 +0000)]
Merge "DO NOT MERGE Add support for unprovisioned top nav bar" into qt-qpr1-dev