OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Use log.wtf on debug devices if property cannot be set" into pi-dev
Fyodor Kupolov [Tue, 24 Apr 2018 17:37:31 +0000 (17:37 +0000)]
Merge "Use log.wtf on debug devices if property cannot be set" into pi-dev

6 years agoMerge "Move status bar accessibility title to pane" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 17:35:22 +0000 (17:35 +0000)]
Merge "Move status bar accessibility title to pane" into pi-dev

6 years agoMerge "config.xml: Add config flag for filtering DBS scans" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 17:06:09 +0000 (17:06 +0000)]
Merge "config.xml: Add config flag for filtering DBS scans" into pi-dev

6 years agoMerge "Fix NPE when deciding whether to defer task stack animation." into pi-dev
Winson Chung [Tue, 24 Apr 2018 16:39:07 +0000 (16:39 +0000)]
Merge "Fix NPE when deciding whether to defer task stack animation." into pi-dev

6 years agoMerge "Add presubmit hook for hidden API lists." into pi-dev
Mathew Inwood [Tue, 24 Apr 2018 16:32:17 +0000 (16:32 +0000)]
Merge "Add presubmit hook for hidden API lists." into pi-dev

6 years agoMerge "pm: skip scan-as-privileged for OMR1 vendors" into pi-dev
Andrew Hsieh [Tue, 24 Apr 2018 16:05:23 +0000 (16:05 +0000)]
Merge "pm: skip scan-as-privileged for OMR1 vendors" into pi-dev

6 years agoAdd presubmit hook for hidden API lists.
Mathew Inwood [Mon, 23 Apr 2018 15:13:14 +0000 (16:13 +0100)]
Add presubmit hook for hidden API lists.

Check that they're sorted as expected and contain no duplicates.
The sort order now uses:
$ LC_COLLATE=C sort -f

So that non-alphanumeric characters are not ignored, giving a more
intuitive sort order. the '-f' means ignore case.

Also sort the existing lists accordingly.

Test: repo upload
Bug: 64382372
Merged-In: I52b884da33a9a46455df6747a215683d9d3c3218
Change-Id: I4cdd3bc5c11be91a9a3f678580af49ac67f3c968

6 years agoMerge "Keyguard: Don't lock when phone process crashes" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:40:45 +0000 (13:40 +0000)]
Merge "Keyguard: Don't lock when phone process crashes" into pi-dev

6 years agoMerge "Add more hidden APIs to light greylist" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:34:10 +0000 (13:34 +0000)]
Merge "Add more hidden APIs to light greylist" into pi-dev

6 years agoMerge "Edit dnd icon in volume dialog" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:34:05 +0000 (13:34 +0000)]
Merge "Edit dnd icon in volume dialog" into pi-dev

6 years agoMerge "Make password history hashing more secure" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 13:06:57 +0000 (13:06 +0000)]
Merge "Make password history hashing more secure" into pi-dev

6 years agoMerge "update wifi unit test script" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 12:45:34 +0000 (12:45 +0000)]
Merge "update wifi unit test script" into pi-dev

6 years agoKeyguard: Don't lock when phone process crashes
Adrian Roos [Tue, 24 Apr 2018 12:21:39 +0000 (14:21 +0200)]
Keyguard: Don't lock when phone process crashes

Fixed an issue where the keyguard locked in response to the
phone process crashing. Since that's not avoidable for the
moment, don't treat unknown sim states as absent.

Bug: 78060670
Test: adb shell kill `pid com.android.phone`; verify that the phone did not lock
Change-Id: Ic5aa51d3b0521740b828d934c6653f8d5ae6380a

6 years agoMerge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 12:12:53 +0000 (12:12 +0000)]
Merge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev

6 years agoMerge "Only allow using PendingRemAnimRegistry on top launched activity" into pi-dev
Jorim Jaggi [Tue, 24 Apr 2018 11:32:02 +0000 (11:32 +0000)]
Merge "Only allow using PendingRemAnimRegistry on top launched activity" into pi-dev

6 years agoMerge "Clarify SystemUpdatePolicy" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 10:59:50 +0000 (10:59 +0000)]
Merge "Clarify SystemUpdatePolicy" into pi-dev

6 years agoAdd more hidden APIs to light greylist
David Brazdil [Mon, 23 Apr 2018 16:54:24 +0000 (17:54 +0100)]
Add more hidden APIs to light greylist

Bug: 78242776
Test: make
Merged-In: I3e1f6acd805ca73509a896066a336432f29d0c87
Change-Id: Ieb2eb62201a6f270afd76ae3f6e5ca6226dd57a6

6 years agoCheck self permission in BackupManager#isBackupServiceActive
Bernardo Rufino [Tue, 24 Apr 2018 10:29:02 +0000 (11:29 +0100)]
Check self permission in BackupManager#isBackupServiceActive

Old method only checked for IPC caller, method isn't an IPC, adding
check for self permission as well.

Bug: 78467264
Test: atest com.google.android.gts.devicepolicy.DeviceOwnerTest#testBackupServiceActive
Change-Id: If9eed90f2deaaf1a4f2376fdf1881e62ee8954fb

6 years agoMerge changes I0cd83a93,I03ae2bbb into pi-dev
Chalard Jean [Tue, 24 Apr 2018 09:53:32 +0000 (09:53 +0000)]
Merge changes I0cd83a93,I03ae2bbb into pi-dev

* changes:
  Make sure getActiveNetwork is consistent with default callbacks
  Add tests for getActiveNetwork.

6 years agoMerge changes from topic "notification_reply_action" into pi-dev
Selim Cinek [Tue, 24 Apr 2018 09:10:38 +0000 (09:10 +0000)]
Merge changes from topic "notification_reply_action" into pi-dev

* changes:
  Cleaned up the paddings of the messaging layout and smart replies
  Changed the size of the largeIcon
  Moved the disabling from alpha to manual color blending
  Updated the color of the reply button to be more neutral
  Updated the reply icon
  Disabled reply action when pending intents are cancelled
  Split the reply icon permanently from the right icon

6 years agoMerge "Add spinner for smart replies." into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 08:51:56 +0000 (08:51 +0000)]
Merge "Add spinner for smart replies." into pi-dev

6 years agoMake sure getActiveNetwork is consistent with default callbacks
Chalard Jean [Wed, 18 Apr 2018 11:18:38 +0000 (20:18 +0900)]
Make sure getActiveNetwork is consistent with default callbacks

Bug: 77737389
Test: runtest framework-net
      new test don't pass without the main code change, but they
      do with it
Change-Id: I0cd83a935ab0b349aa47e065b830e5a43ab9a091

6 years agoMerge "Add light grey APIs." into pi-dev
Nicolas Geoffray [Tue, 24 Apr 2018 08:30:12 +0000 (08:30 +0000)]
Merge "Add light grey APIs." into pi-dev

6 years agoMerge "Log package name when showing targetSdkVersion warning" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 08:07:27 +0000 (08:07 +0000)]
Merge "Log package name when showing targetSdkVersion warning" into pi-dev

6 years agoLog package name when showing targetSdkVersion warning
Przemyslaw Szczepaniak [Mon, 23 Apr 2018 12:17:13 +0000 (13:17 +0100)]
Log package name when showing targetSdkVersion warning

Test: manual verification
Bug: 78332004
Change-Id: Ie91ac06e3a973edf655362b836698185a0aa7602

6 years agoMerge "Check provider exists and is enabled when request location" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 06:57:34 +0000 (06:57 +0000)]
Merge "Check provider exists and is enabled when request location" into pi-dev

6 years agoCleaned up the paddings of the messaging layout and smart replies
Selim Cinek [Mon, 23 Apr 2018 10:00:54 +0000 (18:00 +0800)]
Cleaned up the paddings of the messaging layout and smart replies

Refactored the code such that the reply icon's inset was substracted
from the overall paddings to make all of them consistent. This
will also help in the future as we don't have to update those
paddings manually anymore.

Test: test all sorts of combinations with Notify
Change-Id: I8c6c9951bc73c88d95cb443c8e618c7adca7ebd3
Fixes: 78441535

6 years agoAdd tests for getActiveNetwork.
Chalard Jean [Wed, 18 Apr 2018 10:18:58 +0000 (19:18 +0900)]
Add tests for getActiveNetwork.

Bug: 77737389
Test: runtest frameworks-net
Change-Id: I03ae2bbb08559f2cd44979e291c1f5d50eb215da

6 years agoChanged the size of the largeIcon
Selim Cinek [Mon, 23 Apr 2018 08:09:23 +0000 (16:09 +0800)]
Changed the size of the largeIcon

Also tunes the paddings with largeIcons more

Test: test margins for all templates, ensure nice wrapping
Change-Id: I9ace23c2a6b38fdf25e46fd55d6848b8922851a3
Fixes: 76415894

6 years agoMoved the disabling from alpha to manual color blending
Selim Cinek [Thu, 19 Apr 2018 02:24:39 +0000 (10:24 +0800)]
Moved the disabling from alpha to manual color blending

The Transformations don't preserve alpha currently and it's
hard to fix without the risk of introducing regressions.
We instead blend the color manually now.

Change-Id: Ib9c209295529c5e04564a3faed74160914951152
Fixes: 77811784

6 years agoUpdated the color of the reply button to be more neutral
Selim Cinek [Thu, 19 Apr 2018 01:19:15 +0000 (09:19 +0800)]
Updated the color of the reply button to be more neutral

The primaryTextColor wasn't a good fit, because it was
drawing too much attention being pure black. We're now
taking the default color instead. It's also used for
active permissions now.

Test: add notification, look at reply button.
Change-Id: If390c66e927a92a1115250abb7254fafe81b054c
Fixes: 72750728

6 years agoUpdated the reply icon
Selim Cinek [Wed, 18 Apr 2018 08:01:07 +0000 (16:01 +0800)]
Updated the reply icon

Change-Id: I0f8e91630cedefc6d9f44ded421243b719db7e6c
Fixes: 77244755
Test: observe new icon on notificaction

6 years agoDisabled reply action when pending intents are cancelled
Selim Cinek [Wed, 18 Apr 2018 06:34:27 +0000 (14:34 +0800)]
Disabled reply action when pending intents are cancelled

Previously the user could open inline reply even when the
action was already cancelled. This also enables listening
to pending intent cancellations.

Test: manual
Fixes: 77811784
Change-Id: I4ae164081c6abdeb60a8e78d61bf5e4f26cca1d3

6 years agoMerge "Update Java doc of GnssMeasurementEvent#STATUS_NOT_ALLOWED" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 04:01:56 +0000 (04:01 +0000)]
Merge "Update Java doc of GnssMeasurementEvent#STATUS_NOT_ALLOWED" into pi-dev

6 years agoMerge "Refactor GnssBatchingProvider" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 03:56:20 +0000 (03:56 +0000)]
Merge "Refactor GnssBatchingProvider" into pi-dev

6 years agoMerge "Allow overriding the compile SDK" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 03:14:04 +0000 (03:14 +0000)]
Merge "Allow overriding the compile SDK" into pi-dev

6 years agoMerge "Fix the art work of lockscreen cannot be removed" into pi-dev
Shawn Lin [Tue, 24 Apr 2018 02:46:28 +0000 (02:46 +0000)]
Merge "Fix the art work of lockscreen cannot be removed" into pi-dev

6 years agoUse log.wtf on debug devices if property cannot be set
Fyodor Kupolov [Fri, 13 Apr 2018 22:54:42 +0000 (15:54 -0700)]
Use log.wtf on debug devices if property cannot be set

This can be useful to detect problems in enabling experiments

Test: Manual
Bug: 73018322
Change-Id: Ide6d7f1476a1b775d449623a96a368cbb5f8d799

6 years agoMerge "PackageManager: Skip dexopt on install for debuggable apps" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 01:36:13 +0000 (01:36 +0000)]
Merge "PackageManager: Skip dexopt on install for debuggable apps" into pi-dev

6 years agopm: skip scan-as-privileged for OMR1 vendors
Justin Yun [Mon, 23 Apr 2018 07:36:41 +0000 (16:36 +0900)]
pm: skip scan-as-privileged for OMR1 vendors

Skip scan-as-privileged for OMR1 vendors because OMR1 could not
define privileged apps in vendor partition.

Bug: 78105955
Bug: 78134108
Test: Flash P-GSI on OMR1 device and check boot
Change-Id: I968e779ea66587563907589ad22d1191a89fe463

6 years agoMerge "Update title for SysUI battery warning" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 00:46:56 +0000 (00:46 +0000)]
Merge "Update title for SysUI battery warning" into pi-dev

6 years agoMerge "Destroy app-less surfaces when becoming invisible with no animation." into...
Rob Carr [Tue, 24 Apr 2018 00:27:36 +0000 (00:27 +0000)]
Merge "Destroy app-less surfaces when becoming invisible with no animation." into pi-dev

6 years agoMerge "Do not reference TaskRecord's intent without checking for null." into pi-dev
Bryce Lee [Tue, 24 Apr 2018 00:25:42 +0000 (00:25 +0000)]
Merge "Do not reference TaskRecord's intent without checking for null." into pi-dev

6 years agoMerge "Failing setPackagesSuspended if user has a DO / PO" into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 00:17:41 +0000 (00:17 +0000)]
Merge "Failing setPackagesSuspended if user has a DO / PO" into pi-dev

6 years agoMerge "Disable hotspot when data saver is on." into pi-dev
TreeHugger Robot [Tue, 24 Apr 2018 00:11:43 +0000 (00:11 +0000)]
Merge "Disable hotspot when data saver is on." into pi-dev

6 years agoMerge "Expose API to hide the IME during a recents animation" into pi-dev
Winson Chung [Mon, 23 Apr 2018 23:59:54 +0000 (23:59 +0000)]
Merge "Expose API to hide the IME during a recents animation" into pi-dev

6 years agoMerge "Data stall intent definition" into pi-dev
Jayachandran Chinnakkannu [Mon, 23 Apr 2018 23:59:29 +0000 (23:59 +0000)]
Merge "Data stall intent definition" into pi-dev

6 years agoExpose API to hide the IME during a recents animation
Winson Chung [Fri, 20 Apr 2018 22:58:18 +0000 (15:58 -0700)]
Expose API to hide the IME during a recents animation

Bug: 73285089
Test: Swipe up from app with IME open, ensure that it closes
Change-Id: I95ce59291f11285c853e8b3029638119c21f7e38

6 years agoMerge "Move SchedulingPolicyService init code to SystemServerInitThreadPool" into...
Chong Zhang [Mon, 23 Apr 2018 23:15:33 +0000 (23:15 +0000)]
Merge "Move SchedulingPolicyService init code to SystemServerInitThreadPool" into pi-dev

6 years agoUpdate title for SysUI battery warning
Salvador Martinez [Mon, 23 Apr 2018 23:13:19 +0000 (16:13 -0700)]
Update title for SysUI battery warning

We're changing the text from "battery is low" to talk about the
battery running out soon instead so users are not confused if the
time based trigger occurs at higher battery percentages.

Test: robotests pass
Bug: 77587724
Change-Id: Ib7b2c507e150e06e307f810f89c6da407c77990a

6 years agoMerge "Reset binder call stats along with batterystats" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 23:05:31 +0000 (23:05 +0000)]
Merge "Reset binder call stats along with batterystats" into pi-dev

6 years agoPackageManager: Skip dexopt on install for debuggable apps
Andreas Gampe [Mon, 23 Apr 2018 15:59:12 +0000 (08:59 -0700)]
PackageManager: Skip dexopt on install for debuggable apps

To reduce install-to-started latency, skip dexopt at install-time
for debuggable apps. This is a conscious tradeoff, as the app
will run slower, and do repeated work on every startup. However,
for debuggable apps, turnaround time is more important.

(cherry picked from commit 58adf3a8eead2d7594fc1ac15aaed6a5760e7ba4)

Bug: 78200989
Test: m
Test: Device boots
Test: CTS (wrap & JVMTI)
Merged-In: I749934e794b0c89d72ea8ee413b845e7804de184
Change-Id: I749934e794b0c89d72ea8ee413b845e7804de184

6 years agoMerge "Add reason to device idle history dump" into pi-dev
Amith Yamasani [Mon, 23 Apr 2018 23:01:13 +0000 (23:01 +0000)]
Merge "Add reason to device idle history dump" into pi-dev

6 years agoupdate wifi unit test script
Rebecca Silberstein [Mon, 23 Apr 2018 22:54:36 +0000 (15:54 -0700)]
update wifi unit test script

Need to add "--no-hidden-api-checks" to unit test script.

Verified by running runtests

Bug: 78465388
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I916a2870bde2cbfe1966d18a0f7a13def2bd1ce7

6 years agoMerge "Update surface position once created." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 22:41:50 +0000 (22:41 +0000)]
Merge "Update surface position once created." into pi-dev

6 years agoDisable hotspot when data saver is on.
Amin Shaikh [Mon, 23 Apr 2018 22:29:11 +0000 (18:29 -0400)]
Disable hotspot when data saver is on.

Do not process the QS tap on hotspot when data saver is on. The
secondary text already states that "Data Saver is on" and the tile is
greyed out.

Change-Id: Ied86aba4199c94e68cc2cebf7ccd888c8a04dfb8
Fixes: 77860936
Test: visual

6 years agoMerge "Add windowing mode to task snapshot." into pi-dev
Winson Chung [Mon, 23 Apr 2018 22:16:01 +0000 (22:16 +0000)]
Merge "Add windowing mode to task snapshot." into pi-dev

6 years agoMerge "Revert "Revert "Clear out tuner prefs since it is disabled""" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 22:08:31 +0000 (22:08 +0000)]
Merge "Revert "Revert "Clear out tuner prefs since it is disabled""" into pi-dev

6 years agoMerge "Rate limit battery external stats collection in takeUidSnapshot(s)." into...
Sudheer Shanka [Mon, 23 Apr 2018 21:34:57 +0000 (21:34 +0000)]
Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev

6 years agoReset binder call stats along with batterystats
Fyodor Kupolov [Mon, 23 Apr 2018 19:44:51 +0000 (12:44 -0700)]
Reset binder call stats along with batterystats

Test: dumpsys batterystats --reset && dumpsys binder_calls_stats
Bug: 75318418
Change-Id: Ibdbd95468bba876b1f91357b86f7a8d45af2daed

6 years agoMerge "Fix RadioTunerTest." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 21:19:42 +0000 (21:19 +0000)]
Merge "Fix RadioTunerTest." into pi-dev

6 years agoMerge "Verify best signature algorithms of all signers" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 21:15:31 +0000 (21:15 +0000)]
Merge "Verify best signature algorithms of all signers" into pi-dev

6 years agoMerge "Use screen height to determine # of QS rows." into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 21:07:45 +0000 (21:07 +0000)]
Merge "Use screen height to determine # of QS rows." into pi-dev

6 years agoMerge "Fix bad pixel out-of-bounds filter" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 20:17:58 +0000 (20:17 +0000)]
Merge "Fix bad pixel out-of-bounds filter" into pi-dev

6 years agoMerge "[QS] Move date view to QS panel" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 20:15:24 +0000 (20:15 +0000)]
Merge "[QS] Move date view to QS panel" into pi-dev

6 years agoData stall intent definition
Jayachandran C [Fri, 6 Apr 2018 21:42:32 +0000 (14:42 -0700)]
Data stall intent definition

Define a protected intent to notify the data stall recovery attempts.

Test: Manual
Bug: 77293796
Change-Id: Ic8dfb12662d53e896f9d0b60329e762ce9460ba6

6 years agoMerge "Guard against native crash due to null Surface" into pi-dev
Marco Nelissen [Mon, 23 Apr 2018 19:58:46 +0000 (19:58 +0000)]
Merge "Guard against native crash due to null Surface" into pi-dev

6 years agoAdd windowing mode to task snapshot.
Winson Chung [Fri, 20 Apr 2018 22:54:51 +0000 (15:54 -0700)]
Add windowing mode to task snapshot.

Bug: 78155683
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I4e562d818416a30d6759baef37c74b6d9c514a00

6 years agoVerify best signature algorithms of all signers
Victor Hsieh [Fri, 20 Apr 2018 22:45:37 +0000 (15:45 -0700)]
Verify best signature algorithms of all signers

The previous implementation does not verify signature algorithms of all
signers.  It's possible that the attacker can take an old apk (with
digest and signature of old algorithm) and add their own signer block
with new/P digest and signature.  In this case, the old implementation
only verifies the attacker's signature, thus the attacker can change apk
content easily.

The solution here is to verify digests of all best signature algorithms
by all signers.

It is expected to increase verification time, if the apk does have
multiple signers with different type of digests.

Test: apks still install
Bug: 78359754
Change-Id: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
Merged-In: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
(cherry picked from commit 2f2ced93e3176d71dbd23e7f71a3d78b6dc09830)

6 years agoMerge "ViewRoot: Check Surface validity before initializing renderer from draw()...
Rob Carr [Mon, 23 Apr 2018 19:22:18 +0000 (19:22 +0000)]
Merge "ViewRoot: Check Surface validity before initializing renderer from draw()." into pi-dev

6 years agoAdd reason to device idle history dump
Amith Yamasani [Mon, 23 Apr 2018 19:19:34 +0000 (12:19 -0700)]
Add reason to device idle history dump

Logging to detect why device came out of doze-light

Bug: 78454609
Test: dumpsys deviceidle
Change-Id: Iaca6f26b412e681747262117bf1b11c4dabe5a05

6 years agoMerge "DO NOT MERGE Add list of approved services in addApprovedList" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 19:13:00 +0000 (19:13 +0000)]
Merge "DO NOT MERGE Add list of approved services in addApprovedList" into pi-dev

6 years agoUse screen height to determine # of QS rows.
Amin Shaikh [Mon, 23 Apr 2018 17:07:31 +0000 (13:07 -0400)]
Use screen height to determine # of QS rows.

1 row default
2 rows >320dp
3 rows >600dp

Change-Id: I5d547bdf851a7398bbe78d8c762015fb02aa378d
Fixes: 78383956
Test: visual on Pixel and Pixel XL

6 years ago[QS] Move date view to QS panel
Rohan Shah [Sat, 7 Apr 2018 00:57:00 +0000 (17:57 -0700)]
[QS] Move date view to QS panel

The date view is currently in the quick status bar - we are moving it
into the QSPanel on the left of the icons.

So that it works with dark wallpapers, changed text color to
colorPrimary attribute.

Bug: 74394377
Test: visually verified
Change-Id: I8aec54b600a85442d61696ee2375cbfe8362943c

6 years agoMerge "Exposing setRecentsVisibility method and associated callbacks to the Recents...
TreeHugger Robot [Mon, 23 Apr 2018 18:43:32 +0000 (18:43 +0000)]
Merge "Exposing setRecentsVisibility method and associated callbacks to the Recents components" into pi-dev

6 years agoRate limit battery external stats collection in takeUidSnapshot(s).
Sudheer Shanka [Mon, 23 Apr 2018 18:22:15 +0000 (11:22 -0700)]
Rate limit battery external stats collection in takeUidSnapshot(s).

Bug: 74146897
Test: atest cts/tests/tests/os/src/android/os/health/cts/SystemHealthManagerTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2e01146718c3ce65d230308097622b958cb2897a

6 years agoMerge "Global actions visuals:" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:27:14 +0000 (18:27 +0000)]
Merge "Global actions visuals:" into pi-dev

6 years agoMerge "Update Emoji.java for emoji 11" into pi-dev
Siyamed Sinir [Mon, 23 Apr 2018 18:19:22 +0000 (18:19 +0000)]
Merge "Update Emoji.java for emoji 11" into pi-dev

6 years agoMerge "Update fontchain_linter for emoji 11" into pi-dev
Siyamed Sinir [Mon, 23 Apr 2018 18:19:22 +0000 (18:19 +0000)]
Merge "Update fontchain_linter for emoji 11" into pi-dev

6 years agoMerge "Actually read config_showActivity in the signal policy" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:16:21 +0000 (18:16 +0000)]
Merge "Actually read config_showActivity in the signal policy" into pi-dev

6 years agoMerge "Don't consider resources < 0 as invalid" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:14:32 +0000 (18:14 +0000)]
Merge "Don't consider resources < 0 as invalid" into pi-dev

6 years agoMerge "AOD: Fix WakeLock leak" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:09:09 +0000 (18:09 +0000)]
Merge "AOD: Fix WakeLock leak" into pi-dev

6 years agoMerge "Do not allow elevating system_server priority for remote anim" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 18:03:07 +0000 (18:03 +0000)]
Merge "Do not allow elevating system_server priority for remote anim" into pi-dev

6 years agoAdd spinner for smart replies.
Kenny Guy [Fri, 6 Apr 2018 15:20:16 +0000 (16:20 +0100)]
Add spinner for smart replies.

Add a spinner to MessagingGroup that is enabled
when the user has clicked on a smart reply.

Bug: 73607490
Test: atest SystemUiTests

Change-Id: I4d892c19b5df2b443761819929a83f016967e217

6 years agoDo not reference TaskRecord's intent without checking for null.
Bryce Lee [Mon, 23 Apr 2018 17:54:11 +0000 (10:54 -0700)]
Do not reference TaskRecord's intent without checking for null.

It is possible for a TaskRecord's intent to be set to null. We should
always check this before referencing it.

Change-Id: Id0dd18dc694549c348f1cd7d2dfe02915c1c7f92
Fixes: 77457970
Test: atest FrameworksServicesTests:com.android.server.am.TaskRecordTests#testReturnsToHomeStack

6 years agoMerge "Enabled aggregated per-uid stats collection by default" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 17:49:06 +0000 (17:49 +0000)]
Merge "Enabled aggregated per-uid stats collection by default" into pi-dev

6 years agoMerge "AodPolicy: Fix service leak" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 17:44:10 +0000 (17:44 +0000)]
Merge "AodPolicy: Fix service leak" into pi-dev

6 years agoMove SchedulingPolicyService init code to SystemServerInitThreadPool
Chong Zhang [Sat, 21 Apr 2018 00:09:14 +0000 (17:09 -0700)]
Move SchedulingPolicyService init code to SystemServerInitThreadPool

To avoid slowing down service start time.

Also restrict cpuset change api use to mediaserve only.

bug: 78307194
Test:
- boottime test in go/atest-perf:
  atest google/perf/boottime/boottime-test

- Manual testing: play 1080pHDR content in modified exoplayer (that
  uses soft MediaCodec), verify media.codec is put into top-app; then
  kill system_server process during playback (using adb shell stop
  && adb shell start), and verify after restart that media.codec
  is put back into fg.

Change-Id: If761bd75a7ed893811db3f44bfd84ee3095e23e2

6 years agoOnly allow using PendingRemAnimRegistry on top launched activity
Jorim Jaggi [Mon, 23 Apr 2018 16:35:00 +0000 (18:35 +0200)]
Only allow using PendingRemAnimRegistry on top launched activity

When launching multiple activities, we only allow using the
PendingRemoteAnimationRegistry on the top activity. Otherwise, the
pending entry will be consumed on the first activity, but that one
is not actually used to determine the animation.

Test: Open Google+ notification, ensure correct notification
animation
Test: go/wm-smoke
Fixes: 77855085

Change-Id: I9b86fc283335558c3ce92e498b232bb26dcd1eb4

6 years agoRevert "Revert "Clear out tuner prefs since it is disabled""
Jason Monk [Mon, 23 Apr 2018 16:51:36 +0000 (12:51 -0400)]
Revert "Revert "Clear out tuner prefs since it is disabled""

Now without wiping user settings!

This reverts commit a3e5552c475c328fcfb385ab4bdbb34cb556f5fb.

Test: build, push, see QS tiles not reset
Fixes: 74851117
Change-Id: I34c98da2d96f5d4f0774acf106a80a7b27391ca7

6 years agoDO NOT MERGE Add list of approved services in addApprovedList
Artem Iglikov [Mon, 23 Apr 2018 14:55:04 +0000 (15:55 +0100)]
DO NOT MERGE Add list of approved services in addApprovedList

... instead of replacing it. I.e., do what the method name claims to do
in order to fix restoring. Otherwise during restore the list of
components is getting set to the list of the components from backup set,
i.e., list of pre-approved components is lost.

Bug: 77630371
Test: with a backup set for package "android" created with LocalTransport run (also see the bug) adb root && adb shell bmgr enable true && adb shell bmgr transport android/com.android.internal.backup.LocalTransport && adb shell bmgr backupnow android && adb shell rm -rf /cache/backup/1/_delta/android/ && adb push android /cache/backup/1/_delta/ && adb shell cat /data/system/notification_policy.xml | grep enabled_listeners -C 5 && adb shell bmgr restore 1 android && adb shell cat /data/system/notification_policy.xml | grep enabled_listeners -C 5
Test: atest FrameworksUiServicesTests
Change-Id: Ic201d868bdb003fcac12876ab55f4992edb866e3

6 years agoGlobal actions visuals:
Alison Cichowlas [Thu, 19 Apr 2018 22:19:58 +0000 (18:19 -0400)]
Global actions visuals:

- Un-round corners on global actions separator.
- Scoot closer to edge (GA & volume)
- Padding tweaks

Test: Manual (examine corners of power menu)
Bug: 72404596
Change-Id: Ie16d62f387ac598bef0ada8b10d24ae2740aa503

6 years agoAdd light grey APIs.
Nicolas Geoffray [Mon, 23 Apr 2018 15:13:42 +0000 (16:13 +0100)]
Add light grey APIs.

bug: 78142888
Test: m
Change-Id: If251bd9af25a636946ef965baee354b1b9067bf5

6 years agoDo not allow elevating system_server priority for remote anim
Jorim Jaggi [Wed, 18 Apr 2018 16:17:56 +0000 (18:17 +0200)]
Do not allow elevating system_server priority for remote anim

Test: go/wm-smoke
Bug: 77908520
Change-Id: I45f47d73bedb7317c9e80907930f8d4d628f212a

6 years agoExposing setRecentsVisibility method and associated callbacks to the Recents components
Sunny Goyal [Sat, 21 Apr 2018 00:13:33 +0000 (17:13 -0700)]
Exposing setRecentsVisibility method and associated callbacks to the Recents components

Bug: 78125098
Test: Verified with Launcher as the recents component
Change-Id: Ic369d336f9caa3c8bdc565ff6931c78c9914e23e

6 years agoAodPolicy: Fix service leak
Adrian Roos [Mon, 23 Apr 2018 15:48:08 +0000 (17:48 +0200)]
AodPolicy: Fix service leak

Fixes an issue where the AlwaysOnDisplayPolicy leaked a service
context, and with it the entirety of DozeMachine, preventing
wakelocks from being GCed and preventing them from being
fallback-released.

Bug: 78402666
Test: Toggle screen on and off a few times, verify that DozeService is not being leaked.
Change-Id: Ie3ad67c2d0c83760f4d04a53394fab4a3a35d6bc

6 years agoAOD: Fix WakeLock leak
Adrian Roos [Mon, 23 Apr 2018 15:41:17 +0000 (17:41 +0200)]
AOD: Fix WakeLock leak

Bug: 78402666
Test: Toggle screen off and on again real quick. Verify "Doze" wake lock was not leaked.
Change-Id: Ie34f8aeeb5d10628f2a40567267ab36e694e21bb

6 years agoMerge "Light greylist additions." into pi-dev
Mathew Inwood [Mon, 23 Apr 2018 15:57:27 +0000 (15:57 +0000)]
Merge "Light greylist additions." into pi-dev

6 years agoMerge "Metrics constants for new zen screen" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 15:56:04 +0000 (15:56 +0000)]
Merge "Metrics constants for new zen screen" into pi-dev

6 years agoMerge "Fixed ConcurrentModificationException with HearingAids profile" into pi-dev
TreeHugger Robot [Mon, 23 Apr 2018 15:53:47 +0000 (15:53 +0000)]
Merge "Fixed ConcurrentModificationException with HearingAids profile" into pi-dev