Commit Graph

418967 Commits

Author SHA1 Message Date
Selim Cinek
839b1659cd [automerger skipped] Merge "DO NOT MERGE: Fixed an issue about notification icons on AOD" into qt-dev
am: c65d4b728c -s ours
am skip reason: change_id Ia64238f30620d9906aa50c2469121c2653875e8d with SHA1 5dc581aef2 is in history

Change-Id: If188f2ed89de4ac8f0366b0f0b9ea979e90575ba
2019-06-21 12:05:50 -07:00
Philip P. Moltmann
ef146c3716 Merge "Prevent loop in PermissionPolicyService" into qt-dev
am: 2c824e3a7a

Change-Id: I3b705dec21aaff8024b30a3b5dcb409135eeba71
2019-06-21 12:03:26 -07:00
TreeHugger Robot
c65d4b728c Merge "DO NOT MERGE: Fixed an issue about notification icons on AOD" into qt-dev 2019-06-21 18:57:25 +00:00
TreeHugger Robot
2c824e3a7a Merge "Prevent loop in PermissionPolicyService" into qt-dev 2019-06-21 18:34:53 +00:00
Antoan Angelov
648eb2d3a7 Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev
am: ab34f61c3b

Change-Id: I4b0230f1429e5ca278fa6f5c15babddb1a71cda6
2019-06-21 11:15:06 -07:00
Antoan Angelov
ab34f61c3b Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev 2019-06-21 18:07:22 +00:00
Ned Burns
95980038f2 Merge "Free up memory in the ZigZagClassifierTest." into qt-dev
am: 0031e00da6

Change-Id: I41258c461f513924563049d553457c58b192abae
2019-06-21 10:59:52 -07:00
Winson Chung
4ea9a20414 Merge "Continue with the animation if wallpaper fails to draw" into qt-dev
am: 7c77aaefb7

Change-Id: I7cd886c145c00de24c3b30d61c3776f3963769be
2019-06-21 10:46:33 -07:00
Eric Laurent
3b8de537d3 Merge "audioservice: special mute behavior for BT SCO volume" into qt-dev
am: 98edda5b5e

Change-Id: Ie6f3b18375d78f0e63e82fb791197ddaa5f68f8d
2019-06-21 10:41:35 -07:00
Ned Burns
0031e00da6 Merge "Free up memory in the ZigZagClassifierTest." into qt-dev 2019-06-21 17:31:42 +00:00
Winson Chung
7c77aaefb7 Merge "Continue with the animation if wallpaper fails to draw" into qt-dev 2019-06-21 17:29:27 +00:00
Winson Chung
fe57103cf3 Continue with the animation if wallpaper fails to draw
- This is preferable to canceling the animation, which the user just
  interprets as the nav gesture not working, and may fix some cases
  where the user may interpret a swipe up as not working if the wallpaper
  is slow to draw.

Bug: 135536076
Bug: 134091263
Test: atest RecentsAnimationTests
Test: atest RecentsAnimationControllerTests
Change-Id: Icf9ed20971a701a254383c65aa1811a99680ba51
2019-06-21 17:28:35 +00:00
Eric Laurent
98edda5b5e Merge "audioservice: special mute behavior for BT SCO volume" into qt-dev 2019-06-21 17:10:00 +00:00
TreeHugger Robot
6060068d5a Merge "Handle case that settings string is JSON" into qt-r1-dev 2019-06-21 16:30:38 +00:00
Dave Mankoff
a90fe0a8c3 Free up memory in the ZigZagClassifierTest.
Test: atest SystemUITests
Bug: 135715570
Change-Id: Iddfcf8cc107254c397769b2b3c5251270ec0a3bd
2019-06-21 12:00:59 -04:00
Stanislav Zholnin
afc5d42765 Add logging atom for PermissionApps fragment views
am: 32a89c15a7

Change-Id: I72f9f8459637de005b62d8901d1e87f0bcba635e
2019-06-21 08:50:36 -07:00
Stanislav Zholnin
57f15e881c Add atom for logging of AppPermissionsFragment views.
am: dc3e2b35fb

Change-Id: I3aebcc6a68c7d49e207c7e257ef04a47aad1f3ec
2019-06-21 08:46:00 -07:00
Stanislav Zholnin
12f7a5ff0f Add atom for logging views in AppPermissionFragment
am: c9dda9ecdf

Change-Id: I3dbac7f6eaf54cd9b560ea0a6c21d920eef338fb
2019-06-21 08:44:14 -07:00
Stanislav Zholnin
abfa32bbb3 Add logging atoms to record user actions in AppPermissionFragment (handheld devices only)
am: 3e0f9bcce0

Change-Id: I9aba7f2f32ff6a9b6f52532e0d2b45331a4790ca
2019-06-21 08:42:15 -07:00
Stanislav Zholnin
32a89c15a7 Add logging atom for PermissionApps fragment views
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 218
Bug: 133401502
Bug: 134581123
Change-Id: I8f41d72c8f96a004911ef68491de8a214da4db24
Add logging to PermissionAppsFragment
2019-06-21 16:39:52 +01:00
Stanislav Zholnin
dc3e2b35fb Add atom for logging of AppPermissionsFragment views.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 217
Bug: 133401502
Bug: 134581123
Change-Id: I60e500e99a13a4f2dea6d7141fc87f5b8422c3a7
2019-06-21 16:26:08 +01:00
Stanislav Zholnin
c9dda9ecdf Add atom for logging views in AppPermissionFragment
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 216
Bug: 133401502
Bug: 134581123
Change-Id: I099de3a5ecd7ecf68df618b9738a0428e5792c98
2019-06-21 15:20:44 +00:00
Kevin Chyn
7fca2368af Log the amount of time between authentication and error
Fixes: 135705310

Test: Checked logs
Change-Id: I1d9b26befc30f233052504c7c74b17ea0a3d5671
2019-06-21 06:10:40 +00:00
Stanislav Zholnin
9f7663e4b6 Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev
am: 762aa842ae

Change-Id: I66b9c6cfa8f19ea0c47f2004ab2193c0fafcd4ec
2019-06-20 22:26:45 -07:00
Stanislav Zholnin
3e0f9bcce0 Add logging atoms to record user actions in AppPermissionFragment
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 215
Bug:133401502
Bug:134581123

Change-Id: I2a0b15dfdd6398707a762c48602f970f14534b51
2019-06-21 05:23:33 +01:00
Stanislav Zholnin
762aa842ae Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev 2019-06-21 04:17:10 +00:00
Vishwath Mohan
c189b9df37 Merge "Switch trust agents to extend unlock mode by default." into qt-dev
am: b9cead91f8

Change-Id: I28b2cd7d17191c36c691e2c6940de021e532ff96
2019-06-20 19:36:11 -07:00
Eric Laurent
02153e697d audioservice: special mute behavior for BT SCO volume
Allow muting BT SCO volume only from explicit mute request and not
when stream volume index is set to 0. This is to match BT requirement
that the valid SCO volume range is 0 to 15 and let the headset deal with
actual attenuation for index 0.
If explicitly muted via adjustStreamVolume() from an app with permission
MODIFY_PHONE_STATE, then we set the audio policy stream volume to 0 and
effectively mute RX path.

Also change default value of Settings.System.MUTE_STREAMS_AFFECTED
to include AudioManager.STREAM_BLUETOOTH_SCO.

Bug: 111195322
Test: test volume changes in call over BT SCO
Change-Id: I3b6560bbd1bcbb01a29aa746f23bae74329a1fa7
2019-06-20 19:28:06 -07:00
Vishwath Mohan
b9cead91f8 Merge "Switch trust agents to extend unlock mode by default." into qt-dev 2019-06-21 00:51:23 +00:00
Mathieu Chartier
e073ec7cac Merge "Update boot image profile" into qt-dev
am: 0409420da8

Change-Id: I0cc931c2ba70491af4663c5e8ab71f97734cc1ae
2019-06-20 17:19:33 -07:00
Wenjie Zhou
9530705038 Merge "Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"" into qt-dev
am: 269907a310

Change-Id: I594dc80a248e89eccf0ace9e3a2103b9238f1e97
2019-06-20 17:16:48 -07:00
zhouwenjie
b67bcb731b Merge "Allow permission controller to start background activities" into qt-dev
am: 574cbd1987

Change-Id: I5139017dff88284dee87b540ebe27cb63630bd5e
2019-06-20 17:16:42 -07:00
Ned Burns
e7ace65916 Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev
am: 4d39c4a7d7

Change-Id: I39c037dd0b53d93c3a88eaa18e7bee26a12cb47a
2019-06-20 17:14:36 -07:00
Mathieu Chartier
0409420da8 Merge "Update boot image profile" into qt-dev 2019-06-21 00:01:13 +00:00
Stanislav Zholnin
375e2ab781 Add logging atoms to record user actions in LocationAccessCheck
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 214
Bug:133401502
Bug:134581123
Change-Id: I9f35d2b06cf953441e0986ab23cb842cd155144d
2019-06-20 23:59:59 +00:00
TreeHugger Robot
269907a310 Merge "Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"" into qt-dev 2019-06-20 23:49:39 +00:00
TreeHugger Robot
574cbd1987 Merge "Allow permission controller to start background activities" into qt-dev 2019-06-20 23:49:39 +00:00
Wenjie Zhou
46a4491253 Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"
This reverts commit 0999f93e4a.

Reason for revert: There is a better choice (ag/8051966) than adding the permission to resolve b/130827484

Bug: 130827484
Change-Id: I1b8fd74a173d4b0ef981e51f7e0a9c5f84d5f416
2019-06-20 23:48:59 +00:00
Philip P. Moltmann
e9f4b5af7d Prevent loop in PermissionPolicyService
The AppOpsModeChangeWatchers call back even if the mode was set to
already set mode. PermissionPolicyService listens to the same app-ops it
changes. I.e. it used to change the mode to default, which then causes a
call-back which made set it to default again, etc...

This exhausts a thread until the app-op is finally set to non-default.
The fix is to prevent the loop by checking if the app-op is already the
correct mode before setting it.

Fixes: 135674928
Test: atest IncidentReportListenerTest CollectorHostsideLibTest on
          cuttlefish and crosshatch
Change-Id: Ic65945e814957ac59495b3da221fabb0f3d42b66
2019-06-20 16:32:53 -07:00
Selim Cinek
cd29fce36d Merge "Not bypassing when the user is expanding quick settings" into qt-r1-dev 2019-06-20 23:21:49 +00:00
Selim Cinek
d34e9d889a DO NOT MERGE: Fixed an issue about notification icons on AOD
Previously low priority notifications were hidden
on AOD unconditionally which is wrong.

Bug: 135627468
Test: atest SystemUITests
Merged-in: Ia64238f30620d9906aa50c2469121c2653875e8d
Change-Id: Ia64238f30620d9906aa50c2469121c2653875e8d
2019-06-20 23:19:21 +00:00
Selim Cinek
a7719614c6 Merge changes Ia64238f3,I45056904 into qt-r1-dev
* changes:
  Fixed an issue about notification icons on AOD
  Animating the notifications now when they disappear
2019-06-20 23:16:54 +00:00
TreeHugger Robot
4d39c4a7d7 Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev 2019-06-20 23:11:33 +00:00
Vishwath Mohan
d3268c2dca Switch trust agents to extend unlock mode by default.
This CL changes the default behavior for trust agents to extend unlock
mode.

The Q droidfood phase allowed trust agent behavior to switch between
active unlock (legacy behavior) and extend unlock modes --- where the
extend unlock mode would prevent a trust agent (such as Smart Lock)
from actively unlocking a locked phone, instead only allowing it to
extend the duration that an already unlocked phone can continue to
stay in the unlocked state. In preparation for Q proper, the developer
options that controlled this toggle are being removed, and extend
unlock mode is the only allowed mode of behavior for trust agents.

Bug: 120871688
Test: Trust agents (like Smart Lock) only extend unlock on Q
Merged-In: Ifad45f90e0f2b5c3d180a74a97a89d45d75cb02a
Change-Id: Ifad45f90e0f2b5c3d180a74a97a89d45d75cb02a
2019-06-20 22:57:23 +00:00
Fabian Kozynski
b82e0027f5 Merge "Safeguard against no tiles in QS" into qt-dev
am: 60aabc40a2

Change-Id: If5bde9600167a3d508bef5377d31e6d8db2635c2
2019-06-20 15:32:29 -07:00
TreeHugger Robot
60aabc40a2 Merge "Safeguard against no tiles in QS" into qt-dev 2019-06-20 21:42:23 +00:00
Ray Essick
27d23af2d9 Merge "libmedia_jni pulls in libsfplugin_ccodec" into qt-dev
am: 1c0b6aa767

Change-Id: I5b245522b5e6f4d5ee23e6155722c14e4e46bede
2019-06-20 14:15:50 -07:00
Mathieu Chartier
5d12c6643d Update boot image profile
Compiled methods don't get any interpreter activity modifying their
hotness counters. This CL compiles more methods to prevented

Original set of profile is the updated profile with revised thresholds
for image classes. Here we used a 3% threshold.

Additionally, the CL adds imgdiag diagnosed methods that have dirty JIT
counters shortly after boot on the following apps:
system_server
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.networkstack
com.android.bluetooth
com.google.android.apps.nexuslauncher
com.google.android.gms.persistent
com.google.android.as
com.google.process.gservices
com.google.android.gms
com.google.android.inputmethod.latin

Before:
Boot oat size: 32,800,596 bytes
Persistent app .art PSS: 19115K
Persistent app .art Private Dirty: 15356K
System boot .art PSS: 60948K

After:
Boot oat size: 37261124 bytes
Persistent app .art PSS: 12610K
Persistent app .art Private Dirty: 8740K
System boot .art PSS: 50735K

Private dirty savings for persistent apps: 7MB
Net RAM savings: 5MB (10MB dirty .art PSS, 5MB oat size incrase)

Bug: 134776403
Test: Reboot and inspect RAM usage
Change-Id: Ia1c59b4be341a28de02b7d20aedcb6b69815c652
2019-06-20 20:46:19 +00:00
TreeHugger Robot
5fccfe7491 Merge "Remove the custom clock from LS during transition from AOD" into qt-r1-dev 2019-06-20 20:38:02 +00:00
TreeHugger Robot
1c0b6aa767 Merge "libmedia_jni pulls in libsfplugin_ccodec" into qt-dev 2019-06-20 20:27:22 +00:00