OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge changes If4e6a8a7,I5d552ef1
TreeHugger Robot [Fri, 22 Feb 2019 11:31:27 +0000 (11:31 +0000)]
Merge changes If4e6a8a7,I5d552ef1

* changes:
  Don't get child sessions while holding session lock.
  Don't allow addChildSessionId after session is sealed.

5 years agoMerge "Language detection fixes."
TreeHugger Robot [Fri, 22 Feb 2019 11:20:28 +0000 (11:20 +0000)]
Merge "Language detection fixes."

5 years agoMerge "Add MediaController#getSessionInfo()"
Hyundo Moon [Fri, 22 Feb 2019 11:18:48 +0000 (11:18 +0000)]
Merge "Add MediaController#getSessionInfo()"

5 years agoAdd MediaController#getSessionInfo()
Hyundo Moon [Wed, 20 Feb 2019 06:51:56 +0000 (15:51 +0900)]
Add MediaController#getSessionInfo()

Bug: 125663825
Test: Passed MediaControllerTest
Change-Id: I458cfd94575dd2303ec2bdd8996205d765d31957

5 years agoMerge "Fix IME cannot show in lock task mode."
TreeHugger Robot [Fri, 22 Feb 2019 10:05:04 +0000 (10:05 +0000)]
Merge "Fix IME cannot show in lock task mode."

5 years agoMerge "Mark bucket as invalid when the condition was unknown at the start of the...
Olivier Gaillard [Fri, 22 Feb 2019 09:47:22 +0000 (09:47 +0000)]
Merge "Mark bucket as invalid when the condition was unknown at the start of the bucket."

5 years agoMerge "Fix get documenter package name fail"
Rhed Jao [Fri, 22 Feb 2019 09:42:01 +0000 (09:42 +0000)]
Merge "Fix get documenter package name fail"

5 years agoMerge "Log whether notification channel updates are user initiated"
TreeHugger Robot [Fri, 22 Feb 2019 08:46:46 +0000 (08:46 +0000)]
Merge "Log whether notification channel updates are user initiated"

5 years agoMerge "Use size to inflate nav bar buttons instead of rotation"
TreeHugger Robot [Fri, 22 Feb 2019 07:59:50 +0000 (07:59 +0000)]
Merge "Use size to inflate nav bar buttons instead of rotation"

5 years agoMerge "Fix SyntheticPasswordTests"
Kevin Chyn [Fri, 22 Feb 2019 06:21:49 +0000 (06:21 +0000)]
Merge "Fix SyntheticPasswordTests"

5 years agoMerge "Audio: Allow registering DAP without context"
TreeHugger Robot [Fri, 22 Feb 2019 05:52:14 +0000 (05:52 +0000)]
Merge "Audio: Allow registering DAP without context"

5 years agoMerge "Attempt to fix WrongTypeOfReturnValue flaky exception"
TreeHugger Robot [Fri, 22 Feb 2019 05:29:42 +0000 (05:29 +0000)]
Merge "Attempt to fix WrongTypeOfReturnValue flaky exception"

5 years agoMerge "Bluesky API council review"
TreeHugger Robot [Fri, 22 Feb 2019 05:21:14 +0000 (05:21 +0000)]
Merge "Bluesky API council review"

5 years agoMerge "use putLong for long config"
Sooraj Sasindran [Fri, 22 Feb 2019 04:41:05 +0000 (04:41 +0000)]
Merge "use putLong for long config"

5 years agoMerge changes from topics "policy_fixed_set_via_perm_controller", "protect-policy...
Philip P. Moltmann [Fri, 22 Feb 2019 04:39:31 +0000 (04:39 +0000)]
Merge changes from topics "policy_fixed_set_via_perm_controller", "protect-policy-flags"

* changes:
  Ask Perm Controller to set policy-fixed perms
  Guard changing policy_fixed flag behind permission

5 years agoMerge changes from topic "perm-flags"
Philip P. Moltmann [Fri, 22 Feb 2019 04:38:22 +0000 (04:38 +0000)]
Merge changes from topic "perm-flags"

* changes:
  Do not revoke pre-M perms on upgrade
  Also apply removed permission flags

5 years agoMerge "WM: Mock or stub SurfaceControl and Surface calls in wm unit tests"
TreeHugger Robot [Fri, 22 Feb 2019 03:51:18 +0000 (03:51 +0000)]
Merge "WM: Mock or stub SurfaceControl and Surface calls in wm unit tests"

5 years agoMerge "Mark UI tests as flaky and restore role tests for presubmit."
TreeHugger Robot [Fri, 22 Feb 2019 03:50:27 +0000 (03:50 +0000)]
Merge "Mark UI tests as flaky and restore role tests for presubmit."

5 years agoMerge "Broaden temporary workaround."
Jeff Sharkey [Fri, 22 Feb 2019 03:46:46 +0000 (03:46 +0000)]
Merge "Broaden temporary workaround."

5 years agoAttempt to fix WrongTypeOfReturnValue flaky exception
Yunfan Chen [Fri, 22 Feb 2019 03:34:39 +0000 (12:34 +0900)]
Attempt to fix WrongTypeOfReturnValue flaky exception

The flake may be caused by multi-thread issue. As most of the
performSurfacePlacement access are holding the lock, try to hold the
lock.

Test: atest AppTransitionTests
Bug: 74078662
Change-Id: I2132f90222a3ea21454aae2fdb305b7a9bd715d9

5 years agoMerge "Removing SDK check when getting default widget padding"
TreeHugger Robot [Fri, 22 Feb 2019 02:44:58 +0000 (02:44 +0000)]
Merge "Removing SDK check when getting default widget padding"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 22 Feb 2019 02:40:38 +0000 (02:40 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Use fling animation utils for snapChild"
TreeHugger Robot [Fri, 22 Feb 2019 02:20:48 +0000 (02:20 +0000)]
Merge "Use fling animation utils for snapChild"

5 years agoMerge "Make ViewRootImpl#destroyHardwareResources thread-safe"
TreeHugger Robot [Fri, 22 Feb 2019 02:15:40 +0000 (02:15 +0000)]
Merge "Make ViewRootImpl#destroyHardwareResources thread-safe"

5 years agouse putLong for long config
Sooraj Sasindran [Thu, 21 Feb 2019 03:51:06 +0000 (19:51 -0800)]
use putLong for long config

use putLong for long config
Bug: 124800330
Test: make

Change-Id: Ibb3e9e2fefcc82eab1deecd65ee81aab0fec8c5e

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: ec9d98...
Bill Yi [Fri, 22 Feb 2019 01:59:20 +0000 (17:59 -0800)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: ec9d9834aa -s ours
am: 1ace288546 -s ours
am skip reason: subject contains skip directive

Change-Id: I37e30e4c9acbe62bff895b80b39b4e28f4490df5

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Fri, 22 Feb 2019 01:51:16 +0000 (17:51 -0800)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: ec9d9834aa -s ours
am skip reason: subject contains skip directive

Change-Id: Ib290700d68dc94c9bae11e7caed6a47fdde6a464

5 years agoMerge "Fix NPE in color tint getting bitmap"
TreeHugger Robot [Fri, 22 Feb 2019 01:46:42 +0000 (01:46 +0000)]
Merge "Fix NPE in color tint getting bitmap"

5 years agoMerge "Update task-on-home flag to task for every activity launch"
TreeHugger Robot [Fri, 22 Feb 2019 01:45:46 +0000 (01:45 +0000)]
Merge "Update task-on-home flag to task for every activity launch"

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 22 Feb 2019 01:40:49 +0000 (01:40 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoAdd UserManager APIs to SystemApi.
Leo Hsu [Wed, 30 Jan 2019 07:40:56 +0000 (15:40 +0800)]
Add UserManager APIs to SystemApi.

Bug: 124940146
Test: make
Change-Id: I1cac9a6106b3da099e08f10f2c08d90e9f515e42

5 years agoMerge "Refactored Autofill properties that are optimized on application level."
Felipe Leme [Fri, 22 Feb 2019 01:02:46 +0000 (01:02 +0000)]
Merge "Refactored Autofill properties that are optimized on application level."

5 years agoAsk Perm Controller to set policy-fixed perms
Philip P. Moltmann [Fri, 8 Feb 2019 21:07:57 +0000 (13:07 -0800)]
Ask Perm Controller to set policy-fixed perms

This is much slower than the old way as we need to call into a different
process. On the other hand this handles the following cases correctly:
- foreground / background permissions
- pre-M apps
- split permissions

Test: CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPermissionGrant,testPermissionPolicy,testPermissionMixedPolicies,testPermissionAppUpdate,testPermissionGrantPreMApp
Change-Id: I5cd139ad29e5b77b77b02e12c75eb774984a7759
Bug: 124128308

5 years agoGuard changing policy_fixed flag behind permission
Philip P. Moltmann [Fri, 8 Feb 2019 21:07:57 +0000 (13:07 -0800)]
Guard changing policy_fixed flag behind permission

- Allow an app to change policy_fixed permissions
- Disallow apps >= Q to change the polic_fixed flag

Bug: 124128308
Test: Changed permissions that were policy_fixed
Change-Id: Ia94bae1b993bd8a18c93f866df2114c740fa17bd

5 years agoMerge "Don't return hidden subscription in getActiveSubIdList"
Xiangyu/Malcolm Chen [Fri, 22 Feb 2019 00:54:17 +0000 (00:54 +0000)]
Merge "Don't return hidden subscription in getActiveSubIdList"

5 years agoDon't return hidden subscription in getActiveSubIdList
Malcolm Chen [Wed, 20 Feb 2019 03:00:26 +0000 (19:00 -0800)]
Don't return hidden subscription in getActiveSubIdList

Now getActiveSubscriptionInfoList will not return hidden
subscriptions. And getActiveSubIdList should be consistent
with it. In the mean time, internal SubscriptionController
API should have a way to specify if caller wants hidden
subscriptions or not.

Bug: 124690005
Test: manual
Change-Id: I46ccae88167c2988d71a6e07da2937bf9644a1f0

5 years agoMerge "Add annotations for ImageReader/ImageWriter factory methods"
TreeHugger Robot [Fri, 22 Feb 2019 00:27:43 +0000 (00:27 +0000)]
Merge "Add annotations for ImageReader/ImageWriter factory methods"

5 years agoRemoving SDK check when getting default widget padding
Sunny Goyal [Wed, 20 Feb 2019 23:20:53 +0000 (15:20 -0800)]
Removing SDK check when getting default widget padding

This avoids packageManager call everytime a widget updates and
on swipe up

Test: Everything compiles
Change-Id: I58e8613b7a8c9d27fb9293e623ccb274edab82d3

5 years agoMerge "Add ADB command to wait for system server crash"
Makoto Onuki [Thu, 21 Feb 2019 23:40:18 +0000 (23:40 +0000)]
Merge "Add ADB command to wait for system server crash"

5 years agoMerge "Add runtime restart information to sysprops and eventlog"
Makoto Onuki [Thu, 21 Feb 2019 23:40:14 +0000 (23:40 +0000)]
Merge "Add runtime restart information to sysprops and eventlog"

5 years agoMerge "Add synchronous transaction to wait for setInputWindow to complete (5/n)"
Chavi Weingarten [Thu, 21 Feb 2019 23:33:44 +0000 (23:33 +0000)]
Merge "Add synchronous transaction to wait for setInputWindow to complete (5/n)"

5 years agoBluesky API council review
gomo [Thu, 21 Feb 2019 07:21:11 +0000 (23:21 -0800)]
Bluesky API council review

Making method names clearer and adding more annotations.

Bug: 124882841
Test: Current Tests Pass.
Change-Id: Ic36f9ac6e69280f3efa9f812fee1ff6e4e4b1773

5 years agoMerge "Implement USB-C overheat warning"
Sherry Huang [Thu, 21 Feb 2019 23:09:08 +0000 (23:09 +0000)]
Merge "Implement USB-C overheat warning"

5 years agoMerge "Fixed incorrect data network type when device is on IWLAN"
TreeHugger Robot [Thu, 21 Feb 2019 22:41:32 +0000 (22:41 +0000)]
Merge "Fixed incorrect data network type when device is on IWLAN"

5 years agoDo not revoke pre-M perms on upgrade
Philip P. Moltmann [Thu, 21 Feb 2019 22:08:30 +0000 (14:08 -0800)]
Do not revoke pre-M perms on upgrade

... just remove the REVOKE_ON_UPGRADE flag.

Pre-M apps do not know how to ask for permissions. Hence only the user
can revoke permissions as this is likely to break apps.

Test: atest CtsPermissionTestCases:SplitPermissionsTest
Change-Id: I4f7634985cb655f6b8f98ecf4261e1afcb4519de

5 years agoMerge "Make DynamicDrawableSpan#ALIGN_CENTER public API"
Lucas Dupin [Thu, 21 Feb 2019 22:16:35 +0000 (22:16 +0000)]
Merge "Make DynamicDrawableSpan#ALIGN_CENTER public API"

5 years agoUse fling animation utils for snapChild
Mady Mellor [Thu, 21 Feb 2019 02:34:24 +0000 (18:34 -0800)]
Use fling animation utils for snapChild

Test: manual - swipe open and close the menu beneath the notification shade
      ensure the motion follows finger
Bug: 124097982

Change-Id: I446932d52ccd0d0055d0e37641d9c40c1bd61bd2

5 years agoAlso apply removed permission flags
Philip P. Moltmann [Thu, 21 Feb 2019 21:57:31 +0000 (13:57 -0800)]
Also apply removed permission flags

To remove permission flags the mask for them needs to be set.

Test: atest CtsPermissionTestCases:PermissionFlagsTest
Change-Id: I53232ed11b6405f7217e37001561ecd249c1648e

5 years agoMark UI tests as flaky and restore role tests for presubmit.
Hai Zhang [Thu, 21 Feb 2019 21:29:37 +0000 (13:29 -0800)]
Mark UI tests as flaky and restore role tests for presubmit.

These UI tests will be excluded from presubmit.

Bug: 125404675
Bug: 123376916
Test: atest RoleManagerTest
Change-Id: I84b968a7cf4334bd7c06bf3b9e044dcc09aa6fad

5 years agoMerge "Add checks on multisim capabilities."
Michele Berionne [Thu, 21 Feb 2019 21:24:44 +0000 (21:24 +0000)]
Merge "Add checks on multisim capabilities."

5 years agoWM: Mock or stub SurfaceControl and Surface calls in wm unit tests
Vishnu Nair [Thu, 21 Feb 2019 18:41:00 +0000 (10:41 -0800)]
WM: Mock or stub SurfaceControl and Surface calls in wm unit tests

WM unit tests create a test instance of the WMS service and run assertions
on them. This change limits calls to native code via SurfaceControl#Transaction
and Surface classes on the test instance in order to provide a more hermetic
environment to run the tests on.

- Create a Surface factory class and override SurfaceControl#Transaction,
SurfaceControl and Surface factory classes in the test service during test
setup.
- Modify WallpaperControllerTests to not call native code and assert
WallpaperController state as opposed to native call results.
- Cleanup use of mSkipOnParentChanged for TestAppWindowToken

Test: atest WmTests

Bug: 124357362
Change-Id: I25a16d0eca70be3b3ae93ed5bbff101007196105

5 years agoMake ViewRootImpl#destroyHardwareResources thread-safe
John Reck [Thu, 21 Feb 2019 20:45:02 +0000 (12:45 -0800)]
Make ViewRootImpl#destroyHardwareResources thread-safe

Fixes: 25148144
Test: none
Change-Id: Ie719c5dd8bd7424c9dd2858d338c6cfc5c032d4f

5 years agoMerge "Rail Power Monitor Addition for wifi"
Blake Kragten [Thu, 21 Feb 2019 20:41:46 +0000 (20:41 +0000)]
Merge "Rail Power Monitor Addition for wifi"

5 years agoMerge "Put edge panels from prototype below ime on keyguard"
TreeHugger Robot [Thu, 21 Feb 2019 20:41:04 +0000 (20:41 +0000)]
Merge "Put edge panels from prototype below ime on keyguard"

5 years agoMerge "Migrate emergency default app to role manager."
Hongming Jin [Thu, 21 Feb 2019 20:37:53 +0000 (20:37 +0000)]
Merge "Migrate emergency default app to role manager."

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: c45da1...
Bill Yi [Thu, 21 Feb 2019 20:25:47 +0000 (12:25 -0800)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: c45da18fbb -s ours
am: 0409c42aa3 -s ours
am skip reason: subject contains skip directive

Change-Id: Iae191df8d7102c4b460d235cdb5c88011422c81d

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Feb 2019 20:25:26 +0000 (12:25 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If0bc0cddb97e786602b5be83f1a165ad6c94ef9c

5 years agoMerge "Skip empty slice permissions files during backup" into pi-dev am: 6024de3b89
Daniel Sandler [Thu, 21 Feb 2019 20:22:44 +0000 (12:22 -0800)]
Merge "Skip empty slice permissions files during backup" into pi-dev am: 6024de3b89
am: 93aff37e8f

Change-Id: I64b8eed0d6aa8d900eea3b9587f2d11a8f7ec968

5 years agoMerge "Make notifications from the default dialer and SMS app unblockable." into...
Daniel Sandler [Thu, 21 Feb 2019 20:10:58 +0000 (12:10 -0800)]
Merge "Make notifications from the default dialer and SMS app unblockable." into pi-dev am: 3293ab6229
am: c5f42e698a

Change-Id: I9ad6f3ad8c99f0bf8eecd7f4974d2146e9e3e54a

5 years agoMerge "Increase binder/looper sampling."
Olivier Gaillard [Thu, 21 Feb 2019 20:03:23 +0000 (20:03 +0000)]
Merge "Increase binder/looper sampling."

5 years agoFix SyntheticPasswordTests
Kevin Chyn [Thu, 21 Feb 2019 19:11:59 +0000 (11:11 -0800)]
Fix SyntheticPasswordTests

Move the biometric check to the injector so it can be ignored for tests

Test: atest SyntheticPasswordTests
Change-Id: I261edac299bbda5205b0759670def073a46dc49a

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Thu, 21 Feb 2019 19:44:25 +0000 (11:44 -0800)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: c45da18fbb -s ours
am skip reason: subject contains skip directive

Change-Id: I9ecd8086695b52b42bf99293e4deec0ec19ff734

5 years agoMerge "Skip empty slice permissions files during backup" into pi-dev
Daniel Sandler [Thu, 21 Feb 2019 19:41:47 +0000 (11:41 -0800)]
Merge "Skip empty slice permissions files during backup" into pi-dev
am: 6024de3b89

Change-Id: I3ae49f47a943819447abf5ad27d9b383c7dba8c3

5 years agoFix NPE in color tint getting bitmap
Matthew Ng [Thu, 21 Feb 2019 19:38:45 +0000 (11:38 -0800)]
Fix NPE in color tint getting bitmap

Bug: 112934365
Test: manual

Change-Id: Ie25b5fa2764cbd61ab2b78b5554b08c760446d26

5 years agoMerge "Make notifications from the default dialer and SMS app unblockable." into...
Daniel Sandler [Thu, 21 Feb 2019 19:34:05 +0000 (11:34 -0800)]
Merge "Make notifications from the default dialer and SMS app unblockable." into pi-dev
am: 3293ab6229

Change-Id: Ic1675dfc9244f6f67ec6da0e08f3a24e837e75dc

5 years agoMark bucket as invalid when the condition was unknown at the start of
Olivier Gaillard [Thu, 21 Feb 2019 17:24:14 +0000 (17:24 +0000)]
Mark bucket as invalid when the condition was unknown at the start of
the bucket.

- since the condition was unknown, the bucket contains partial data.
- we need to do the same for other metrics

Bug: 124100912
Test: atest statsd_test
Change-Id: If803e28667c1e8a74d5b809bcab2eb54d1961f46

5 years agoMerge "Remove title from header"
Mady Mellor [Thu, 21 Feb 2019 18:48:10 +0000 (18:48 +0000)]
Merge "Remove title from header"

5 years agoMerge "Update space around expanded state to be 4dp instead of 8"
TreeHugger Robot [Thu, 21 Feb 2019 18:45:03 +0000 (18:45 +0000)]
Merge "Update space around expanded state to be 4dp instead of 8"

5 years agoRefactored Autofill properties that are optimized on application level.
Felipe Leme [Tue, 19 Feb 2019 23:08:59 +0000 (15:08 -0800)]
Refactored Autofill properties that are optimized on application level.

Prior to this CL we were just caching whether the service supported compatibility mode for the app,
but now we're also caching the logging level and whether the app is whitelisted for augmented
autofill - although right now the augmented autofill info is not used, it will allow us to trigger
it in the scenarios where autofill is disabled for the app.

Bug: 123099842
Bug: 123100824
Test: atest CtsAutoFillServiceTestCases:AugmentedLoginActivityTest \
            CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest
      atest CtsAutoFillServiceTestCases # sanity check, although still flaky

Change-Id: Iaf8ea6634ca94e5e61131890ec17c96c2fbb329a

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 21 Feb 2019 18:42:40 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Feb 2019 18:40:38 +0000 (10:40 -0800)]
Import translations. DO NOT MERGE

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

5 years agoMerge "Tracks the total number of buckets."
Olivier Gaillard [Thu, 21 Feb 2019 18:39:09 +0000 (18:39 +0000)]
Merge "Tracks the total number of buckets."

5 years agoMerge "Move bubbles away from the IME if needed."
Josh Tsuji [Thu, 21 Feb 2019 18:36:09 +0000 (18:36 +0000)]
Merge "Move bubbles away from the IME if needed."

5 years agoMerge "Update VirtualKeyMap usage"
TreeHugger Robot [Thu, 21 Feb 2019 18:32:26 +0000 (18:32 +0000)]
Merge "Update VirtualKeyMap usage"

5 years agoMerge "Skip empty slice permissions files during backup" into pi-dev
Daniel Sandler [Thu, 21 Feb 2019 18:27:45 +0000 (18:27 +0000)]
Merge "Skip empty slice permissions files during backup" into pi-dev

5 years agoMerge "Make notifications from the default dialer and SMS app unblockable." into...
Daniel Sandler [Thu, 21 Feb 2019 18:27:36 +0000 (18:27 +0000)]
Merge "Make notifications from the default dialer and SMS app unblockable." into pi-dev

5 years agoMerge changes from topic "cts-launcher-api"
Ruslan Tkhakokhov [Thu, 21 Feb 2019 18:20:05 +0000 (18:20 +0000)]
Merge changes from topic "cts-launcher-api"

* changes:
  Fix BackupManager#getUserForSerialNumber
  Do lazy init of BMS at the beginning of every BackupManager method

5 years agoMerge "Remove extra logging for volume dialog close when the dialog visibility doesn...
TreeHugger Robot [Thu, 21 Feb 2019 18:07:24 +0000 (18:07 +0000)]
Merge "Remove extra logging for volume dialog close when the dialog visibility doesn't change."

5 years agoMerge "Make WindowContainer surfaces container layers by default."
Chavi Weingarten [Thu, 21 Feb 2019 18:03:14 +0000 (18:03 +0000)]
Merge "Make WindowContainer surfaces container layers by default."

5 years agoMake DynamicDrawableSpan#ALIGN_CENTER public API
Lucas Dupin [Wed, 13 Feb 2019 19:52:11 +0000 (11:52 -0800)]
Make DynamicDrawableSpan#ALIGN_CENTER public API

Bug: 123340905
Test: make update-api
Test: atest DynamicDrawableSpanTest
Change-Id: I0951091710a46434425359b148a9e7ea0adbc3d1

5 years agoMerge "Adding a null check for a @NonNull arg"
TreeHugger Robot [Thu, 21 Feb 2019 17:57:32 +0000 (17:57 +0000)]
Merge "Adding a null check for a @NonNull arg"

5 years agoMerge "Remove verbose log from SyncManager"
Makoto Onuki [Thu, 21 Feb 2019 17:51:42 +0000 (17:51 +0000)]
Merge "Remove verbose log from SyncManager"

5 years agoMerge "Add API so apps can know when a user dismisses a bubble"
Mady Mellor [Thu, 21 Feb 2019 17:14:56 +0000 (17:14 +0000)]
Merge "Add API so apps can know when a user dismisses a bubble"

5 years agoMerge "Add minimum brightness curve to dumpsys"
TreeHugger Robot [Thu, 21 Feb 2019 17:13:20 +0000 (17:13 +0000)]
Merge "Add minimum brightness curve to dumpsys"

5 years agoLog whether notification channel updates are user initiated
Jan Althaus [Thu, 21 Feb 2019 15:24:19 +0000 (16:24 +0100)]
Log whether notification channel updates are user initiated

Bug: 124785950
Test: atest core/tests/coretests/src/android/service/notification
Test: (MANUAL):
      1. adb logcat -b events | grep sysui_multi_action
      2. Change priority of notification channel
      3. Observe event "757,856,..."

Change-Id: I34005c092290dd8bc5380f937a386e567dab38b0

5 years agoDon't get child sessions while holding session lock.
Richard Uhler [Tue, 12 Feb 2019 11:59:51 +0000 (11:59 +0000)]
Don't get child sessions while holding session lock.

To avoid a deadlock that happens from inconsistent lock ordering between
the session lock and the session provider lock.

Bug: 123391593
Bug: 123886893
Test: atest RollbackTest
Change-Id: If4e6a8a7e6399e99ebc5c2822c2979678cd15096

5 years agoDon't allow addChildSessionId after session is sealed.
Richard Uhler [Thu, 21 Feb 2019 16:02:01 +0000 (16:02 +0000)]
Don't allow addChildSessionId after session is sealed.

To be consistent with the documented behavior of sealed sessions:

  "Once sealed, no further changes may be made to the session. A session
  is sealed the moment {@link Session#commit(IntentSender)} is called."

Bug: 123391593
Test: atest RollbackTest
Change-Id: I5d552ef1c115bd98c5a552e2b108d0ee6fbb297f

5 years agoMerge "Add bubble logging for permission dialog shown."
TreeHugger Robot [Thu, 21 Feb 2019 16:30:43 +0000 (16:30 +0000)]
Merge "Add bubble logging for permission dialog shown."

5 years agoRemove extra logging for volume dialog close when the dialog
Steven Wu [Thu, 21 Feb 2019 16:22:32 +0000 (11:22 -0500)]
Remove extra logging for volume dialog close when the dialog
visibility doesn't change.

Bug: 80529582
Test: manual
Change-Id: Ief028e7bd951039939a4cadee2470932be5c2387

5 years agoIncrease binder/looper sampling.
Olivier Gaillard [Thu, 21 Feb 2019 16:05:27 +0000 (16:05 +0000)]
Increase binder/looper sampling.

It will reduce the resource usage of binder/looper instrumentation.

Test: atest BinderCallsStatsTest LooperStatsTest
Change-Id: Ide843ae3e4d30a58f547df1cd338ffb5531e9426

5 years agoTracks the total number of buckets.
Olivier Gaillard [Thu, 21 Feb 2019 15:56:58 +0000 (15:56 +0000)]
Tracks the total number of buckets.

To be able to normalize the other counters, e.g. % of invalid buckets.

Test: atest statsd_test
Change-Id: I7bef93f3acfa133baf3618ce0ffee919d23a1ad3

5 years agoFix BackupManager#getUserForSerialNumber
Ruslan Tkhakokhov [Wed, 20 Feb 2019 14:33:58 +0000 (14:33 +0000)]
Fix BackupManager#getUserForSerialNumber

Test: atest ProfileSerialNumberHostSideTest

Currently BackupManager#getUserForSerialNumber goes through users
associated with the calling user (inluding the calling user itself) and
looks for the given serial number. However, to get the list of users it calls
UserManager#getUserProfiles that operates for the users associated with
the calling process (in our case - system user since the call is made
from BMS). While this works for our current use case (only support
backup for system user and their work profile, meaning
BackupManager#getUserForSerialNumber will only be called for system
user), it won't work for a full multi-user case.

Change-Id: Ia42a69a1216ed9a5dae596e44336290d2718de7a

5 years agoMerge "Adds TaskInfo to some TaskChangeListener methods"
Mark Renouf [Thu, 21 Feb 2019 15:11:05 +0000 (15:11 +0000)]
Merge "Adds TaskInfo to some TaskChangeListener methods"

5 years agoLanguage detection fixes.
Abodunrinwa Toki [Tue, 19 Feb 2019 23:42:30 +0000 (23:42 +0000)]
Language detection fixes.

- Load foreign language detection score threshold from model
- Pass resource config language to native code instead of Locale.getDefault()
- Avoid nullpointer exception in ExtrasUtils
- Don't set action_intents extras if empty

Bug: 124791964
Bug: 124794807
Test: atest core/tests/coretests/src/android/view/textclassifier
Change-Id: I2593d7cb4d364d8bf26239ed59b7212f79ddc350

5 years agoMerge "Add TEST_MAPPING for CtsSystemApiSignatureTestCases"
TreeHugger Robot [Thu, 21 Feb 2019 14:53:28 +0000 (14:53 +0000)]
Merge "Add TEST_MAPPING for CtsSystemApiSignatureTestCases"

5 years agoMerge "Do not engage IAuthSecret when running a GSI."
David Anderson [Thu, 21 Feb 2019 14:49:15 +0000 (14:49 +0000)]
Merge "Do not engage IAuthSecret when running a GSI."

5 years agoMerge "Don't overwrite the host FRP when running a GSI."
David Anderson [Thu, 21 Feb 2019 14:37:36 +0000 (14:37 +0000)]
Merge "Don't overwrite the host FRP when running a GSI."

5 years agoAdd minimum brightness curve to dumpsys
Kenny Guy [Thu, 21 Feb 2019 13:04:05 +0000 (13:04 +0000)]
Add minimum brightness curve to dumpsys

Test: manual, adb dumpsys display and check result
Bug: 125234919

Change-Id: I24e7979b7a8b42041e9f4a36de4c142d70b27422

5 years agoMerge "Remove STOPSHIP for adding activity recognition icon to permission"
TreeHugger Robot [Thu, 21 Feb 2019 14:29:49 +0000 (14:29 +0000)]
Merge "Remove STOPSHIP for adding activity recognition icon to permission"

5 years agoImplement USB-C overheat warning
Sherry Huang [Thu, 17 Jan 2019 12:37:29 +0000 (20:37 +0800)]
Implement USB-C overheat warning

When device USB-C port is susceptible to short circuits and
overheating, pop up a warning dialog and keep showing until
user clicks OK button or see care steps.

Test: manually set the emulated temperature to trigger warning
Test: atest SystemUITests

Change-Id: I4f6080187196a9716f12a9817dc10d3265dc202b
Bug: 110134720
Bug: 116866524
Bug: 77790357
Bug: 117178820