Commit Graph

424299 Commits

Author SHA1 Message Date
TreeHugger Robot
513a591c02 Merge "Apply front scrim to doze pulsing" into qt-qpr1-dev 2019-09-21 00:59:16 +00:00
Nader Jawad
85c1a0c6b9 Revert "Fixed default angle to be Orientation.LEFT_RIGHT"
This reverts commit d31d096720.

Reason for revert: Although this change fixed the behavior change for for creation of
GradientDrawables defined in xml, the default value for GradientDrawables defined
programmatically is different. The default orientation for GradientDrawables defined
in xml is LEFT_RIGHT, however, the default orientation for GradientDrawables defined
programmatically is TOP_BOTTOM. Since a fix for AAPT has been made to automatically
insert an angle measurement of 0 if one is not defined, we can revert this CL and target
a proper fix in master.

Change-Id: Ib8983386832fb25f53b5e68e76e9d41d9d26fec9
Merged-In: Ib8983386832fb25f53b5e68e76e9d41d9d26fec9
2019-09-20 23:27:20 +00:00
Philip P. Moltmann
0698185471 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-qpr1-dev 2019-09-20 23:09:43 +00:00
Kevin Hufnagle
379b87531b Merge "docs: Fixed link to material design for ScrollView" into qt-dev am: 80b543b45a
am: 71f8040c3b

Change-Id: I317e75554f4741551e8221bfacb447ad0e914f4e
2019-09-20 15:47:23 -07:00
Kevin Hufnagle
71f8040c3b Merge "docs: Fixed link to material design for ScrollView" into qt-dev
am: 80b543b45a

Change-Id: Ic7cc4494a88e6feaedf85626270ed1e8057189f5
2019-09-20 15:39:50 -07:00
Kevin Hufnagle
80b543b45a Merge "docs: Fixed link to material design for ScrollView" into qt-dev 2019-09-20 22:14:46 +00:00
Philip P. Moltmann
30c48bb54a Merge "Fix dumpsys for appops proxy field" into qt-qpr1-dev 2019-09-20 20:33:48 +00:00
TreeHugger Robot
ccb430008e Merge "Remove 'x' policy for non-default DSDS SIM" into qt-qpr1-dev 2019-09-20 20:22:59 +00:00
TreeHugger Robot
62c0d7bc31 Merge "Fixed an issue where the notification icons could overlap the clock" into qt-qpr1-dev 2019-09-20 19:38:21 +00:00
TreeHugger Robot
bf5510431f Merge "Fix strings for ConfirmUserCreationActivity." into qt-qpr1-dev 2019-09-20 18:58:38 +00:00
TreeHugger Robot
d514ae457d Merge "Hold Display Suspend blocker when going to Doze" into qt-qpr1-dev 2019-09-20 17:49:55 +00:00
TreeHugger Robot
77e4d230f6 Merge "Ensure that handles are hidden and stay hidden when not fully awake" into qt-qpr1-dev 2019-09-20 17:27:27 +00:00
Jason Parks
5e35c71397 Fix strings for ConfirmUserCreationActivity.
Bug: b/139790551
Test: Manual
Change-Id: I11eedfca8e5d88c821640b9001099f3392d0a35c
2019-09-20 12:14:20 -05:00
Philip P. Moltmann
ac7b10c135 [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
2019-09-20 16:45:58 +00:00
Dave Mankoff
a01c818e28 Merge "DO NOT MERGE Revert line from master-cp that should be different in qpr1" into qt-qpr1-dev 2019-09-20 16:43:14 +00:00
Dave Mankoff
42216b5eeb DO NOT MERGE Revert line from master-cp that should be different in qpr1
In master, we retrieve the KeyguardUpdateMonitor through Dependency.get().
This change has not landed in qpr1 and should use a different method of
access.

Bug: 140270231
Test: atest SystemUITests
Change-Id: Icbba30e52d4d011fc01cba13262b18a3a235316c
2019-09-20 16:28:40 +00:00
Matt Casey
33cea5b30a Merge "Revert "Add shadow to assistant handles"" into qt-qpr1-dev 2019-09-20 16:13:42 +00:00
Santos Cordon
0304438936 Hold Display Suspend blocker when going to Doze
The transition to Doze is asynchronous from the release of the display
suspend blocker.  This created a race condition where we could
potentially suspend before Doze service had a chance to transition to
Doze. This change holds the Display Suspend blocker until Doze service
acquires the DOZE lock.

Bug: 138828701
Test: atest PowerManagerService
Test: Manual, verify no repro of the bug.  Additional verify the device
does release the Display suspend blocker once we are in DOZE.

Change-Id: I777bc7963b1ab445378164b0f4d3f79113510b81
2019-09-20 15:59:13 +00:00
Evan Laird
2ea99c1435 Remove 'x' policy for non-default DSDS SIM
This CL changes the policy for showing the 'x' on the mobile signal
indicator such that we do not show an 'x' when a subscription has an
icon group of NOT_DEFAULT_DATA, except in the case where mobile data is
turned off on the default subscription

Test: atest SystemUITests; manual
Fixes: 135457552
Change-Id: Ie21462be12a9920d9b2830039f4095c5bd82bd2c
2019-09-20 11:52:36 -04:00
Miranda Kephart
e92074dc66 Revert "Add shadow to assistant handles"
This reverts commit c445bbf3eb.

Reason for revert: Causes memory issues on the GPU (~50mb -> ~70mb)

Test: Memory usage goes back down to 53mb with this revert.
https://sponge.corp.google.com/invocation?tab=Logfile+Index&id=7643bf50-41bb-45a7-8c93-d0ddb1f82a04&searchFor=
(last file, search for com.android.systemui#anon-and-swap-avg-median)

Bug: 141187457

Change-Id: Ia48eca3f95097562771abc3a523bd32b74f2d443
2019-09-20 14:52:21 +00:00
TreeHugger Robot
c854ee68d0 Merge "Log display white balance intermediate data" into qt-qpr1-dev 2019-09-20 11:40:03 +00:00
Gavin Corkery
cc6a215afe Merge "Don't send SESSION_COMMITTED broadcast for staged installs" into qt-qpr1-dev 2019-09-20 10:27:10 +00:00
Edgar Wang
f37615e4f8 Add log metrics for Aware Display Settings
Bug: 136610131
Test: rebuild
Merged-In: I5b96a3a04a1d2c1ba01b9ec1f707dec040a331c3
Change-Id: Ibfdcba4be652cf7885f46e7549c344e12ae11127
2019-09-20 15:35:15 +08:00
wangmingming1
4a4ceeeb79 notify netd about uid internet permission changes when package replaced
1. If a previous version of an app doesn't declare internet permission;
2. The User upgraded it to a new version and the new one does declare the
internet permission;
3. The new app are not allowed to access the internet until next boot

Bug: 137864893
Test: Manual, just make sure the onPackageChanged would be executed on package changes
Change-Id: I69cdbb16a027a9c4e974b32371b1f64a23a51a23
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
2019-09-20 03:23:23 +00:00
Joanne Chung
ba5d5af3c5 Merge "Prevent flicker when typing any character for filter." into qt-qpr1-dev 2019-09-20 02:32:09 +00:00
Kevin Hufnagle
d9c7b449fe docs: Updated SECURITY_PATCH field description
Test: make ds-docs -j32

Bug: 127625306
Change-Id: I052bb647ebb36ea3c9a788be592e7de9cd969e10
2019-09-20 00:59:33 +00:00
Kevin Hufnagle
926edfeb0c docs: Fixed link to material design for ScrollView
Test: make ds-docs -j32

Bug: 141024886
Change-Id: I69d05cdf99d91f74143454c78c000128d1da42ce
2019-09-19 23:50:47 +00:00
Selim Cinek
29f8585965 Fixed an issue where the notification icons could overlap the clock
Because we were cancelling an animation but never reseting the translation
we could be stuck in weird transition states.

Fixes: 136117476
Test: lock and unlock quickly with overlapping animations, observe no overlap
Change-Id: Iee389fa77588289417d0e3e5bdc31aeda1aac58a
2019-09-19 16:43:33 -07:00
Philip P. Moltmann
4052d36f62 Fix dumpsys for appops proxy field
- Make flags is the last parameters in access decipher methods.
  All calling code assumes this.
- Get proxyUid info from the appropriate field
- Don't create proxy entries if uid is invalid
- Fixed some incorrect docs

Test: adb shell dumpsys appops now shows proxy information
Fixes: 141328071
Change-Id: I2f94e9b171133141643e628c9224d8d74ec5ad87
2019-09-19 16:12:43 -07:00
Mady Mellor
7943c7b5ab Merge changes from topic "landscape-jeeze" into qt-qpr1-dev
* changes:
  Restrict height of expanded view in landscape & fix left / right padding
  Restrict the space bubbles are centered in while in landscape
2019-09-19 23:11:16 +00:00
Mady Mellor
4cb4e0a189 Merge "Notify display is empty even if it's not the expanded bubble" into qt-qpr1-dev 2019-09-19 23:10:44 +00:00
Anthony Han
00a490bd32 Log display white balance intermediate data
Bug: 139488234
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
Change-Id: Ifb11a6d80391d4629b507030a4db35fb2323b2ed
2019-09-19 15:40:30 -07:00
TreeHugger Robot
0df74f4d32 Merge "SSIN: Use the application's context to load icon resources." into qt-qpr1-dev 2019-09-19 22:01:07 +00:00
Dave Mankoff
a9667ff3ab Merge "Add new ProximitySensor wrapper that automatically uses appropriate sensor." into qt-qpr1-dev 2019-09-19 21:54:03 +00:00
Mingguang Xu
a295feab37 Merge "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps" into qt-qpr1-dev 2019-09-19 21:06:44 +00:00
Eric Laurent
e5a3106cc5 Merge "SoundTriggerHelper: fix state after audioserver death" into qt-qpr1-dev 2019-09-19 18:28:31 +00:00
TreeHugger Robot
403c841eed Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-09-19 17:57:35 +00:00
Santos Cordon
b2125a7195 Merge "Acquire display suspend blocker for DozeService" into qt-dev am: 576a6f4ac5
am: 23da52265b

Change-Id: Ic09e1264f90a41e51018a849949a3bc45a23735b
2019-09-19 08:16:01 -07:00
Santos Cordon
23da52265b Merge "Acquire display suspend blocker for DozeService" into qt-dev
am: 576a6f4ac5

Change-Id: I75471698513cfc72c87f0149d4da891d7156fa3b
2019-09-19 08:08:30 -07:00
TreeHugger Robot
576a6f4ac5 Merge "Acquire display suspend blocker for DozeService" into qt-dev 2019-09-19 14:50:10 +00:00
TreeHugger Robot
a05396b249 Merge "DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"" into qt-qpr1-dev 2019-09-19 14:13:57 +00:00
Gavin Corkery
74635f9ab2 Don't send SESSION_COMMITTED broadcast for staged installs
Staged sessions currently send a SESSION_COMMITTED broadcast
when they are created, but not upon activation. Since there
is nobody active at activation to listen to the broadcast,
it should not be sent. This also prevents app shortcuts being
added to the launcher before a new version has been activated.

Bug: 139663018
Test: atest StagedInstallTest
Change-Id: Icf51b5611a1903eee58c3310bfb875eaf737c26f
2019-09-19 14:40:50 +01:00
Evan Laird
7c6df8dad1 DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"
This reverts commit 09843a687b.

Reason for revert: There is possible reentrant behavior when posting the safeToRemove callback after a FGS has been canceled/reposted

Bug: 140948482
Change-Id: I2c5b9135e57a87f412dce8c167147dcb38f6bbae
2019-09-19 13:09:06 +00:00
Ricky Wai
275b7c1d73 Merge "Do not return synthetic launcher activity for completely headless apps" into qt-qpr1-dev 2019-09-19 10:26:13 +00:00
Bill Yi
c1f18d2647 Import translations. DO NOT MERGE
Change-Id: Ia59167fa6651dcbb24c9422864985b5fe58526f7
Auto-generated-cl: translation import
2019-09-19 02:44:14 -07:00
TreeHugger Robot
0ed64776ea Merge "Use mContext directly, and enforce via logging" into qt-qpr1-dev 2019-09-19 08:41:37 +00:00
TreeHugger Robot
1f129a115a Merge "Revert "Use mContext directly"" into qt-qpr1-dev 2019-09-19 08:41:37 +00:00
Bernardo Rufino
7a29413429 Don't consider tasks with INITIALIZING top activity as visible
To fix b/130645908, tasks with top activities in INITIALIZING state were
considered visible. This allowed apps to circumvent background activity
launch restriction by starting 2 activities when in a background stack.
The first activity will remain in INITIALIZING state (since it's in the
bg), so the second launch is permitted since top activity is
INITIALIZING.

Removing '|| topActivity.isState(INITIALIZING)' removes the
vulnerability and curiously still allow the legitimate use case of the
bug linked above to work, i.e. the test in ag/7088262 still passes. This
is because of 2 reasons:
1) Grace period introduced in ag/7638265.
2) Allow bg activity starts to put activity on top of bg task (instead of
   fg’ing it) in ag/7190176.

I verified (2) by removing the grace period check, reverting the linked
CL and verifying that the test failed.

This essentially reverts ag/7090415.

Test: atest BackgroundActivityLaunchTest \
          RootWindowContainerTests \
          WmTests:ActivityStarterTests \
          CtsWindowManagerDeviceTestCases:ActivityStarterTests
Bug: 138583650
Bug: 130645908
Change-Id: Iee4ba841c6c83888b55c5cb55fffc949048d2030
2019-09-19 08:00:42 +00:00
Mingguang Xu
078fe45552 Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps
Data stall event can be triggered if the tx/rx tput is consecutively below a threshold over multiple RSSI polls. Changing the unit of the threshold from Mbps to Kbps allows us to configure a value below 1Mbps, e.g., 400Kbps.

Bug: 141027476

Test: frameworks/base/wifi/tests/runtests.sh

Signed-off-by: Mingguang Xu <mingguangxu@google.com>

Change-Id: Ib7b398fb6975c0d03b09550db9bf68a2bb8bddfb
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
2019-09-19 07:42:34 +00:00
TreeHugger Robot
4ac6a113ed Merge "No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks" into qt-qpr1-dev 2019-09-19 00:40:59 +00:00