OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Add callback to sendCecCommand in SendKeyEventAction when handling volume...
Shubang Lu [Mon, 4 Feb 2019 18:47:15 +0000 (18:47 +0000)]
Merge "Add callback to sendCecCommand in SendKeyEventAction when handling volume key forwarding."

5 years agoMerge "Implement findAudioReceiverAddress for playback device."
Shubang Lu [Mon, 4 Feb 2019 18:47:15 +0000 (18:47 +0000)]
Merge "Implement findAudioReceiverAddress for playback device."

5 years agoMerge "Add sendVolumeKeyEvent API to handle forwarding volume key separately."
Shubang Lu [Mon, 4 Feb 2019 18:47:15 +0000 (18:47 +0000)]
Merge "Add sendVolumeKeyEvent API to handle forwarding volume key separately."

5 years agoMerge "Do not report GNSS requests from location providers to AppOps"
Anil Admal [Mon, 4 Feb 2019 18:19:26 +0000 (18:19 +0000)]
Merge "Do not report GNSS requests from location providers to AppOps"

5 years agoMerge "Revert "Convert RollbackTest Android.mk to an Android.bp.""
TreeHugger Robot [Mon, 4 Feb 2019 18:05:32 +0000 (18:05 +0000)]
Merge "Revert "Convert RollbackTest Android.mk to an Android.bp.""

5 years agoMerge "Track and dump notification lifetime extension"
Ned Burns [Mon, 4 Feb 2019 17:57:44 +0000 (17:57 +0000)]
Merge "Track and dump notification lifetime extension"

5 years agoMerge "Allow for different log levels on WM traces"
Nataniel Borges [Mon, 4 Feb 2019 17:45:15 +0000 (17:45 +0000)]
Merge "Allow for different log levels on WM traces"

5 years agoMerge "Clean up some CarSystemUI color elements so they are derived from device default."
TreeHugger Robot [Mon, 4 Feb 2019 17:42:17 +0000 (17:42 +0000)]
Merge "Clean up some CarSystemUI color elements so they are derived from device default."

5 years agoMerge "Verify config push to launchTaskBehind activities."
TreeHugger Robot [Mon, 4 Feb 2019 17:38:33 +0000 (17:38 +0000)]
Merge "Verify config push to launchTaskBehind activities."

5 years agoMerge "Make sure notifications from the default sms app do not get filtered to the...
Nadia Benbernou [Mon, 4 Feb 2019 17:25:31 +0000 (17:25 +0000)]
Merge "Make sure notifications from the default sms app do not get filtered to the non-interruptive section."

5 years agoMerge "Plumming of perm restore via permission controller"
Philip P. Moltmann [Mon, 4 Feb 2019 17:13:37 +0000 (17:13 +0000)]
Merge "Plumming of perm restore via permission controller"

5 years agoMerge "Combining background color transactions"
Valerie Hau [Mon, 4 Feb 2019 16:59:37 +0000 (16:59 +0000)]
Merge "Combining background color transactions"

5 years agoMerge "Add availability query method to TintController"
Christine Franks [Mon, 4 Feb 2019 16:39:12 +0000 (16:39 +0000)]
Merge "Add availability query method to TintController"

5 years agoMerge "Add SystemUI icon pack overlays."
TreeHugger Robot [Mon, 4 Feb 2019 16:29:21 +0000 (16:29 +0000)]
Merge "Add SystemUI icon pack overlays."

5 years agoMerge "Add compat for secondary splitscreen window option"
Nadia Benbernou [Mon, 4 Feb 2019 16:18:12 +0000 (16:18 +0000)]
Merge "Add compat for secondary splitscreen window option"

5 years agoMerge "XmlBlock: Avoid potential NULL dereference"
TreeHugger Robot [Mon, 4 Feb 2019 16:09:32 +0000 (16:09 +0000)]
Merge "XmlBlock: Avoid potential NULL dereference"

5 years agoMerge "Add mIsStaged and mCommittedSessionId to RollbackInfo."
TreeHugger Robot [Mon, 4 Feb 2019 16:01:35 +0000 (16:01 +0000)]
Merge "Add mIsStaged and mCommittedSessionId to RollbackInfo."

5 years agoMerge changes I1811ad12,I8d8800a6
Olivier Gaillard [Mon, 4 Feb 2019 15:49:58 +0000 (15:49 +0000)]
Merge changes I1811ad12,I8d8800a6

* changes:
  Bug fix: Do not track the looper exception if the session is not sampled
  Bug fix: looper not enabled

5 years agoAdd SystemUI icon pack overlays.
Amin Shaikh [Thu, 31 Jan 2019 23:26:36 +0000 (18:26 -0500)]
Add SystemUI icon pack overlays.

This change includes most QS icon overlays. Also renamed android
targetted icon packs to include Android in the overlay name.

Bug: 118757293
Test: adb shell cmd overlay enable-exclusive --user 0 com.android.theme.icon_pack.{circular,filled,rounded}.systemui
Change-Id: I87d7514c03231408fb0f6815279e9bc1c18b52e9

5 years agoXmlBlock: Avoid potential NULL dereference
Greg Kaiser [Mon, 4 Feb 2019 14:26:03 +0000 (06:26 -0800)]
XmlBlock: Avoid potential NULL dereference

We move our dereference after the NULL check.

Test: TreeHugger
Change-Id: I8334be8faf67752e9c0dddf97b133b92b4a7f345

5 years agoAdd mIsStaged and mCommittedSessionId to RollbackInfo.
Richard Uhler [Mon, 4 Feb 2019 14:04:52 +0000 (14:04 +0000)]
Add mIsStaged and mCommittedSessionId to RollbackInfo.

These will be needed for the rollback manager to support rollback of
staged sessions.

Bug: 112431924
Test: atest RollbackTest

Change-Id: I22c02ba2de023af6cf6908207bf69ab36ca9291c

5 years agoMerge "Logging getPasswordComplexity events with the calling app package name"
TreeHugger Robot [Mon, 4 Feb 2019 13:45:45 +0000 (13:45 +0000)]
Merge "Logging getPasswordComplexity events with the calling app package name"

5 years agoBug fix: Do not track the looper exception if the session is not sampled
Olivier Gaillard [Mon, 4 Feb 2019 10:47:48 +0000 (10:47 +0000)]
Bug fix: Do not track the looper exception if the session is not sampled

Test: atest LooperStatsTest
Change-Id: I1811ad12bdf9830699c615fff02f5aceea74c175

5 years agoBug fix: looper not enabled
Olivier Gaillard [Mon, 4 Feb 2019 10:42:34 +0000 (10:42 +0000)]
Bug fix: looper not enabled

Looper should not be enabled when we build the LooperStatsService so
that setEnabled is called and the observer is installed.

Test: atest LooperStatsTest
Change-Id: I8d8800a6a2222b2d67a2aacdc58ce631dc1c8217

5 years agoRevert "Convert RollbackTest Android.mk to an Android.bp."
Richard Uhler [Mon, 4 Feb 2019 12:51:58 +0000 (12:51 +0000)]
Revert "Convert RollbackTest Android.mk to an Android.bp."

This reverts commit 0145c883e00619a3270ca14d5e5cfdd3331fc413.

Reason for revert: Causes the RollbackTest apps to be installed to the system partition, which breaks the rollback tests.
Bug: 123695037

Change-Id: I3ee89ecb370144c67fe88bb389abafdda59dc502

5 years agoMerge "Apply visibility at the beginning of the animation"
Jorim Jaggi [Mon, 4 Feb 2019 11:54:45 +0000 (11:54 +0000)]
Merge "Apply visibility at the beginning of the animation"

5 years agoMerge "Make method private to fix checkstyle error."
TreeHugger Robot [Mon, 4 Feb 2019 11:05:34 +0000 (11:05 +0000)]
Merge "Make method private to fix checkstyle error."

5 years agoMerge "Include APEX information in PackageManager dumpsys."
Dario Freni [Mon, 4 Feb 2019 10:37:23 +0000 (10:37 +0000)]
Merge "Include APEX information in PackageManager dumpsys."

5 years agoMerge "Add STAGED_SESSION_ prefix to error codes."
Dario Freni [Mon, 4 Feb 2019 10:34:09 +0000 (10:34 +0000)]
Merge "Add STAGED_SESSION_ prefix to error codes."

5 years agoMerge "Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification."
Gavin Corkery [Mon, 4 Feb 2019 10:08:00 +0000 (10:08 +0000)]
Merge "Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification."

5 years agoMerge "Fix a bug with worksource propagation."
Olivier Gaillard [Mon, 4 Feb 2019 09:54:37 +0000 (09:54 +0000)]
Merge "Fix a bug with worksource propagation."

5 years agoMerge "Factor out common code for APK and APEX backups."
Richard Uhler [Mon, 4 Feb 2019 09:44:26 +0000 (09:44 +0000)]
Merge "Factor out common code for APK and APEX backups."

5 years agoMerge "[KA02] internal cleanup and refactor for SocketKeepalive"
Chalard Jean [Mon, 4 Feb 2019 08:23:07 +0000 (08:23 +0000)]
Merge "[KA02] internal cleanup and refactor for SocketKeepalive"

5 years ago[KA02] internal cleanup and refactor for SocketKeepalive
junyulai [Thu, 3 Jan 2019 10:50:15 +0000 (18:50 +0800)]
[KA02] internal cleanup and refactor for SocketKeepalive

In previous change, the new SocketKeepalive API was exported.
But internally, old PacketKeepalive names and structures are
still used.

This change rename them properly for code consistency and also
refactor KeepalivePacketData to support different types of
KeepalivePacketData.

(clean cherry-pick from aosp/860394)

Bug: 114151147
Test: 1. atest FrameworksNetTests
      2. atest FrameworksWifiTests
      3. atest FrameworksTelephonyTests

Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e

5 years agoAdd tests for window decor caption and fix a flaky test
Yunfan Chen [Thu, 31 Jan 2019 09:38:45 +0000 (18:38 +0900)]
Add tests for window decor caption and fix a flaky test

We introduced display windowing mode and freeform policy to our decor
view handling. The tests are unit tests to make sure the
WindowConfiguration has the correct return value of
hasWindowDecorCaption with the new conditions.

The WindowConfigurationTests was flaky because the AppBounds root
configuration now should consider the cutout and the test expected
result doesn't. This patch also fixed it.

Test: atest WindowConfigurationTests
Bug: 123425316
Bug: 74078662
Change-Id: I5c7f4484b240f9a2bf9d18e9414b8201dc4c0ec3

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 02:55:26 +0000 (02:55 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:49:37 +0000 (01:49 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:49:34 +0000 (01:49 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:45:21 +0000 (01:45 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:38:13 +0000 (01:38 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:25:38 +0000 (01:25 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:25:35 +0000 (01:25 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 3 Feb 2019 01:21:29 +0000 (01:21 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 22:26:51 +0000 (14:26 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 22:19:25 +0000 (14:19 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 20:17:08 +0000 (12:17 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 20:10:07 +0000 (12:10 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 20:02:52 +0000 (12:02 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 19:55:48 +0000 (11:55 -0800)]
Import translations. DO NOT MERGE

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

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 18:28:30 +0000 (18:28 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 18:10:31 +0000 (18:10 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoPlumming of perm restore via permission controller
Philip P. Moltmann [Sun, 20 Jan 2019 17:01:19 +0000 (09:01 -0800)]
Plumming of perm restore via permission controller

On Android backup restoration first restores and inital state. Then with
the packages getting downloaded the leftover "delayed" backup gets
restored bit by bit.

This currently just created plumming mirroring the previously implemented
behavior.

Bug: 116738135
Test: Built
Change-Id: I528b5f76dfca5bbdc9f69d6402b23b3d2ef11706

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 18:00:35 +0000 (18:00 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 17:59:37 +0000 (17:59 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 17:46:29 +0000 (17:46 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Avoid NPE when Activity Manager calls notifyCleartextNetwork."
Varun Shah [Sat, 2 Feb 2019 17:44:52 +0000 (17:44 +0000)]
Merge "Avoid NPE when Activity Manager calls notifyCleartextNetwork."

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 17:42:38 +0000 (17:42 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 17:42:16 +0000 (17:42 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 2 Feb 2019 17:32:05 +0000 (17:32 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Disable multi-resumed activities for pre-Q app"
TreeHugger Robot [Sat, 2 Feb 2019 17:12:32 +0000 (17:12 +0000)]
Merge "Disable multi-resumed activities for pre-Q app"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:42:02 +0000 (08:42 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:35:07 +0000 (08:35 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:27:57 +0000 (08:27 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:21:02 +0000 (08:21 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:14:12 +0000 (08:14 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:07:09 +0000 (08:07 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 16:00:08 +0000 (08:00 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 15:53:03 +0000 (07:53 -0800)]
Import translations. DO NOT MERGE

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

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 15:19:27 +0000 (07:19 -0800)]
Import translations. DO NOT MERGE

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

5 years agoDisable multi-resumed activities for pre-Q app
Louis Chang [Thu, 3 Jan 2019 07:45:12 +0000 (15:45 +0800)]
Disable multi-resumed activities for pre-Q app

Only resume the top-most visible activities for pre-Q
app since these applications may have the assumption
that there is only one activity being resumed.

Bug: 122429803
Test: atest android.server.am.lifecycle
Test: atest ActivityManagerMultiDisplayTests
Test: atest ActivityLifecycleFreeformTests
Test: atest ActivityManagerSplitScreenTests

Change-Id: I696a4bf41684d5837a6b23818bd9f71df8947e22

5 years agoReplace hardcoded cgroup paths
Suren Baghdasaryan [Fri, 14 Dec 2018 18:32:22 +0000 (10:32 -0800)]
Replace hardcoded cgroup paths

Replace hardcoded cgroup paths with new processgroup library API calls,
include required headers. Add required dependencies.

Bug: 111307099
Test: builds, boots

Change-Id: Ic2dc2a94328cf1927fafaa9506537aeb213df413
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agoMake Editor.SuggestionsPopupWindow private again
Yohei Yukawa [Sat, 2 Feb 2019 07:38:30 +0000 (23:38 -0800)]
Make Editor.SuggestionsPopupWindow private again

Editor.SuggestionsPopupWindow was originally introduced as a private
class [1], then we made it public [2] so that a test class can access
it, but that test was later updated [3] and now doesn't have any
direct dependency on Editor.SuggestionsPopupWindow.

In short, we can make Editor.SuggestionsPopupWindow a private class
again without losing anything.  This actually addresses the following
warning from doclava.

   Public class android.widget.Editor.SuggestionsPopupWindow
   extends private class android.widget.Editor.PinnedPopupWindow

There should be no behavior change.

 [1]: If863107681ce82a1639f21315878f830c2991fb7
      6934044fd7d2de12c21e3cc9b7da589ec3b71e8e
 [2]: Idf166cbecb3e33be213e4104cf1afd827906f2ad
      a60160b30bf1b6aa27cdaf03cf9b6c245f338d84
 [3]: I12e522436a83fa264cd22176d054877eec411708
      31eb74fb2bc33aea6a8054c861a6e7aac7c41f4b

Fix: 117519592
Test: No doclava warning regarding SuggestionsPopupWindow during full build
Change-Id: Ie722156d3819d05d3cd479527abb8b4750b332f7

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 2 Feb 2019 06:28:55 +0000 (22:28 -0800)]
Import translations. DO NOT MERGE

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

5 years agoUpdate accent color to latest specs.
Priyank Singh [Sat, 2 Feb 2019 01:00:44 +0000 (17:00 -0800)]
Update accent color to latest specs.

Bug: 123081257
Test: Manual
Change-Id: Ic17ba9710d0c08fea106c5a719ceace636dfdaa4

5 years agoMerge "OverlayPlugin listener method called from main thread"
TreeHugger Robot [Sat, 2 Feb 2019 03:55:25 +0000 (03:55 +0000)]
Merge "OverlayPlugin listener method called from main thread"

5 years agoMerge "PermissionController is now part of the core system."
TreeHugger Robot [Sat, 2 Feb 2019 02:57:03 +0000 (02:57 +0000)]
Merge "PermissionController is now part of the core system."

5 years agoMerge "Fix attention service resolution timing"
TreeHugger Robot [Sat, 2 Feb 2019 02:26:11 +0000 (02:26 +0000)]
Merge "Fix attention service resolution timing"

5 years agoMerge "Answer "on" to TV querying system audio mode status when the audio system...
TreeHugger Robot [Sat, 2 Feb 2019 02:19:03 +0000 (02:19 +0000)]
Merge "Answer "on" to TV querying system audio mode status when the audio system is still initiating it."

5 years agoMerge "Atom: Add BluetoothSocketConnectionStateChanged"
TreeHugger Robot [Sat, 2 Feb 2019 02:14:55 +0000 (02:14 +0000)]
Merge "Atom: Add BluetoothSocketConnectionStateChanged"

5 years agoMerge "Better handling of DB corruption in SQLiteDatabase.open()"
TreeHugger Robot [Sat, 2 Feb 2019 01:34:58 +0000 (01:34 +0000)]
Merge "Better handling of DB corruption in SQLiteDatabase.open()"

5 years agoMerge "Make Drawable#createFrom* support incomplete images"
TreeHugger Robot [Sat, 2 Feb 2019 01:28:48 +0000 (01:28 +0000)]
Merge "Make Drawable#createFrom* support incomplete images"

5 years agoMerge "Fix illegal state in doze machine"
TreeHugger Robot [Sat, 2 Feb 2019 01:20:30 +0000 (01:20 +0000)]
Merge "Fix illegal state in doze machine"

5 years agoMerge "RTT LCI API (Client Side)"
TreeHugger Robot [Sat, 2 Feb 2019 01:19:53 +0000 (01:19 +0000)]
Merge "RTT LCI API (Client Side)"

5 years agoMerge "Fix acquire comments"
TreeHugger Robot [Sat, 2 Feb 2019 00:49:51 +0000 (00:49 +0000)]
Merge "Fix acquire comments"

5 years agoMerge "Ping userActivity when enroll progress is received"
TreeHugger Robot [Sat, 2 Feb 2019 00:48:09 +0000 (00:48 +0000)]
Merge "Ping userActivity when enroll progress is received"

5 years agoMerge "IWYU"
TreeHugger Robot [Sat, 2 Feb 2019 00:46:38 +0000 (00:46 +0000)]
Merge "IWYU"

5 years agoPermissionController is now part of the core system.
Hai Zhang [Sat, 2 Feb 2019 00:23:04 +0000 (16:23 -0800)]
PermissionController is now part of the core system.

PermissionController hosts default permission granting and role
management, so it's a critical part of the core system.

Bug: 123647060
Test: manual
Change-Id: I3cc1dc0c385676ab83b516b4d6b6642857b10865

5 years agoAtom: Add BluetoothSocketConnectionStateChanged
Jack He [Thu, 31 Jan 2019 01:24:55 +0000 (17:24 -0800)]
Atom: Add BluetoothSocketConnectionStateChanged

* Logs when a Bluetooth socket's connection state is changed
* A Bluetooth socket can be:
  - RFCOMM socket
  - SCO socket
  - BR/EDR L2CAP socket
  - BLE L2CAP socket

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I97b1e650e197a0dad1e2959e2f5b4dd98370d892

5 years agoMerge "Pull dangerous permission state as atom"
TreeHugger Robot [Fri, 1 Feb 2019 23:58:34 +0000 (23:58 +0000)]
Merge "Pull dangerous permission state as atom"

5 years agoApply visibility at the beginning of the animation
Jorim Jaggi [Tue, 22 Jan 2019 16:36:34 +0000 (17:36 +0100)]
Apply visibility at the beginning of the animation

Such that elements are more in sync, and this is also how it was
handled previously.

Furthermore we ensure that surface visibility is correct after the
animation for both show and hide.

Test: Show/hide IM
Bug: 111084606
Change-Id: I47b3d3b430fa38f80203276b9984df1f71008f6e

5 years agoVerify config push to launchTaskBehind activities.
Garfield Tan [Fri, 1 Feb 2019 23:27:35 +0000 (15:27 -0800)]
Verify config push to launchTaskBehind activities.

Bug: 123540760
Test: atest WmTests:ActivityRecordTests
Change-Id: Ieb5d08e8f2380b85e06b37612859a12dbcd5a219

5 years agoMerge "[Color] Make setColorMode togglable."
Peiyong Lin [Fri, 1 Feb 2019 23:20:30 +0000 (23:20 +0000)]
Merge "[Color] Make setColorMode togglable."

5 years agoMerge "Fix wrong userData length and excessive userData issues" am: 13d5d5a1c8 am...
Amit Mahajan [Fri, 1 Feb 2019 23:05:34 +0000 (15:05 -0800)]
Merge "Fix wrong userData length and excessive userData issues" am: 13d5d5a1c8 am: 487b123d6f
am: d6a3556d48

Change-Id: I2aba632a1b30bc553830bab269e990164a8f40fc

5 years agoMerge "Fix wrong userData length and excessive userData issues" am: 13d5d5a1c8
Amit Mahajan [Fri, 1 Feb 2019 22:54:23 +0000 (14:54 -0800)]
Merge "Fix wrong userData length and excessive userData issues" am: 13d5d5a1c8
am: 487b123d6f

Change-Id: Iff63e14e601d32e6991ad651b4dc0917be6c11e7

5 years agoMerge "Fix wrong userData length and excessive userData issues"
Amit Mahajan [Fri, 1 Feb 2019 22:43:30 +0000 (14:43 -0800)]
Merge "Fix wrong userData length and excessive userData issues"
am: 13d5d5a1c8

Change-Id: I84defa9bfb4a90f97834f59e0c221bb99668c2b9

5 years agoAllow for different log levels on WM traces
Nataniel Borges [Wed, 16 Jan 2019 22:15:43 +0000 (14:15 -0800)]
Allow for different log levels on WM traces

Currently only a boolean value (trim) is supported. If trim is true then the configuration (Configuration.java) is written only once, otherwise it is written 3 times. With this implementation too much information is written in the log and it is not possible to activate a continuous tracing mode without affecting system performance. Trace logging currently consumes ~1ms for each log write  on a Pixel 2 device, divided into ~0.6ms to write the data to the ProtoBuf and ~0.4ms to it to the circular buffer.

This implementation converts this boolean into an enum and defines 3 different log levels (WindowTraceLogLevel enum): "Critical", "Trim" and "All".

"Trim" and "All" behave as the previously existing boolean. "Critical" is a new log level which logs only the elements which are visible with the minimum amount of information required for analysis. With this mode the average overhead of continuous logging drops to ~0.26ms on the same Pixel 2 device (0.2ms to write to ProtoBuf and 0.06 to add ot circular buffer).

The system automatically configures the log level between "Trim" and "Critical" according to the trace strategy used. When using continuous tracing mode it automatically uses the "Critical" level, otherwise it uses "Trim".

To activate the continuous mode use:
- adb shell cmd window tracing continuous true

Test: Flash a device. Set continuous mode to true and enable Winscope tracing. Start a systrace test for wm category and use the device. Check the "writeToProto" item to inspect the overhead.
Change-Id: I7abd74969b94abe44af4f7c65be5fefdd0860155

5 years agoMerge "Fix wrong userData length and excessive userData issues"
Amit Mahajan [Fri, 1 Feb 2019 22:25:37 +0000 (22:25 +0000)]
Merge "Fix wrong userData length and excessive userData issues"

5 years agoFix attention service resolution timing
Alex Salo [Fri, 1 Feb 2019 21:34:24 +0000 (13:34 -0800)]
Fix attention service resolution timing

Test: manually tested the lifecycle is as expected
Bug: 111939367
Change-Id: Idbc8c2975a9da5a0f871971c973b3a64960e9e3c

5 years agoAnswer "on" to TV querying system audio mode status when the audio
Amy [Fri, 1 Feb 2019 00:42:16 +0000 (16:42 -0800)]
Answer "on" to TV querying system audio mode status when the audio
system is still initiating it.

Note that System Audio Mode initiation from AVR side could take a while.
During the process, the internal sam status is false.

When TV queries the sam status, current framework responds with the status
at that moment. Which means it returns false when sam init is not done.

But since AVR is turning the feature on and it knows
that TV supports sam when receiving TV's query. AVR can answer with a
yes in this situation.

Test: manual
Bug: 123287727
Change-Id: I544d2a9af12b71c66cbc24327792993f621b2520

5 years agoOverlayPlugin listener method called from main thread
Beverly [Fri, 1 Feb 2019 21:55:48 +0000 (16:55 -0500)]
OverlayPlugin listener method called from main thread

- onPluginDisconnected is being called from non-main thread
causing fatal exception when calling setForcePluginOpen()
- this is a temporary fix

Test: manual
Bug: 123532083
Change-Id: I585c53844244f3acc2f87bc752ad7b564fb7d36d