Commit Graph

424299 Commits

Author SHA1 Message Date
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
Philip P. Moltmann
bde381848d Revoke granted permission when the permission defining app is removed.
Bug: 67319274
Test: atest android.permission.cts.RemovePermissionTest
Change-Id: I22df546f5cd19e10045131d36dc3f5033f727baa
Merged-In: I20c4c975a1dd41a0a6c3e068988fe60be51dd1b4
2019-10-28 12:34:53 -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
Torne (Richard Coles)
41c6486351 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
2019-10-25 16:41:47 -04: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
Philip P. Moltmann
c6ef7c0e79 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev
am: 3b050525e4

Change-Id: Ie40f68f660e579cf9c2b1cbd446a4e3996bfa34d
2019-10-25 11:22:34 -07:00
Philip P. Moltmann
6f0fe03b7d [DO NOT MERGE] Split access-media-storage from read-external-storage
am: f3ff750f29

Change-Id: I0f37950a78df7d503a830ec5eff77acad7382fb8
2019-10-25 11:22:30 -07:00
TreeHugger Robot
3b050525e4 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-dev 2019-10-25 18:08:22 +00:00
TreeHugger Robot
75166c8426 Merge "Revert "Import translations. DO NOT MERGE"" into qt-qpr1-dev 2019-10-25 01:46:48 +00:00
Bill Yi
184adf9dfc Revert "Import translations. DO NOT MERGE"
This reverts commit d7554f399f.

Reason for revert: May have caused phone_max regression

BUG:143316720

Change-Id: I592acd7f9f47ee2be06508236927a77b11185ace
2019-10-25 00:52:34 +00:00
Todd Kennedy
702d394762 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
2019-10-24 22:27:38 +00:00
Beverly
d2d3de6cf0 Fix zen alarms only mode check am: 51563b5ffe
am: a9b1fc617d

Change-Id: If606c81739741eed5d2f3fe9520130e148de55e4
2019-10-24 14:31:37 -07:00
Beverly
a9b1fc617d Fix zen alarms only mode check
am: 51563b5ffe

Change-Id: I577da2d70a3ca8a9f2af0d574cb4406db25439f2
2019-10-24 13:28:26 -07:00
Philip P. Moltmann
f3ff750f29 [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 ac7b10c135)
2019-10-24 16:02:01 +00:00
Beverly
51563b5ffe 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 dcc5cfc561)
2019-10-24 15:51:37 +00:00
TreeHugger Robot
15b780d108 Merge "Resolver: Modernize layout" into qt-qpr1-dev 2019-10-24 12:56:39 +00:00
Beverly Tai
cafc138898 Merge "Add motion sense tap gesture + touch counts" into qt-qpr1-dev 2019-10-23 18:03:12 +00:00
TreeHugger Robot
4ede0d9f33 Merge "DO NOT MERGE Remove use of Dependency in SliceProvider" into qt-qpr1-dev 2019-10-22 03:18:00 +00:00
Lucas Dupin
df4ee3cda5 Fix clock alpha when awake
Test: manual
Test: atest KeyguardClockPositionAlgorithmTest
Fixes: 141545917
Change-Id: I961a208313f7697913c90e8d0eedb8c940a29b04
2019-10-21 16:00:18 -07:00
Kevin Hufnagle
d6105c8316 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev am: 0823f1b508
am: e7832d514b

Change-Id: Ib2590dc07f3aa284c993bd4c65772277ea457727
2019-10-21 15:51:06 -07:00
Kevin Hufnagle
e7832d514b Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev
am: 0823f1b508

Change-Id: I1e775265df7964f4eb5a41d5e228308aad29ee22
2019-10-21 15:44:08 -07:00
Kevin Hufnagle
7bdc0815ac Merge "docs: Added consent notice re. getAccounts()" into qt-dev am: 3b6bbed3af
am: a7cca253ea

Change-Id: I217e6e62724fb00b41c1ed34f631980f5bd4a24c
2019-10-21 15:38:08 -07:00
Kevin Hufnagle
0823f1b508 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev 2019-10-21 22:33:05 +00:00
Kevin Hufnagle
a7cca253ea Merge "docs: Added consent notice re. getAccounts()" into qt-dev
am: 3b6bbed3af

Change-Id: I0a32519c272af7fc21b1544a77b6bde86843d1e7
2019-10-21 15:32:07 -07:00