OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Offer listener to observe StrictMode violations." into oc-dev
Jeff Sharkey [Thu, 25 May 2017 23:07:04 +0000 (23:07 +0000)]
Merge "Offer listener to observe StrictMode violations." into oc-dev

7 years agoMerge "Update ActivityStack#removeActivityFromHistoryLocked documentation." into...
TreeHugger Robot [Thu, 25 May 2017 23:03:49 +0000 (23:03 +0000)]
Merge "Update ActivityStack#removeActivityFromHistoryLocked documentation." into oc-dev

7 years agoMerge changes from topic 'multinetwork_vndk' into oc-dev
Lorenzo Colitti [Thu, 25 May 2017 23:02:36 +0000 (23:02 +0000)]
Merge changes from topic 'multinetwork_vndk' into oc-dev

* changes:
  Allow vendor code to link to libandroid_net.
  Move libandroid_net from Android.mk to Android.bp.

7 years agoMerge "Fix safezone and getAlpha b/38361276 Test: frameworks/base/core/tests/coretest...
TreeHugger Robot [Thu, 25 May 2017 22:55:51 +0000 (22:55 +0000)]
Merge "Fix safezone and getAlpha b/38361276 Test: frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java" into oc-dev

7 years agoMerge "Force a light to be set for the first time" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 22:54:59 +0000 (22:54 +0000)]
Merge "Force a light to be set for the first time" into oc-dev

7 years agoMerge "Fixed memory leak with the inflater" into oc-dev
Selim Cinek [Thu, 25 May 2017 22:54:08 +0000 (22:54 +0000)]
Merge "Fixed memory leak with the inflater" into oc-dev

7 years agoMerge "Fix and clarify behavior of vertical/horizontal attributes" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 22:51:14 +0000 (22:51 +0000)]
Merge "Fix and clarify behavior of vertical/horizontal attributes" into oc-dev

7 years agoMerge "Fixed an issue when inflating too many notifications" into oc-dev
Selim Cinek [Thu, 25 May 2017 22:42:11 +0000 (22:42 +0000)]
Merge "Fixed an issue when inflating too many notifications" into oc-dev

7 years agoMerge "Handle install time ephemeral permissions" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 22:28:24 +0000 (22:28 +0000)]
Merge "Handle install time ephemeral permissions" into oc-dev

7 years agoMerge "Add test to verify all sysui tests extend the right stuff" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 22:21:23 +0000 (22:21 +0000)]
Merge "Add test to verify all sysui tests extend the right stuff" into oc-dev

7 years agoMerge "Allow the creation of IMPORTANCE_NONE channels" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 22:14:31 +0000 (22:14 +0000)]
Merge "Allow the creation of IMPORTANCE_NONE channels" into oc-dev

7 years agoMerge "Add a function to verify if idmap is made from given target/overlay packages...
TreeHugger Robot [Thu, 25 May 2017 21:50:52 +0000 (21:50 +0000)]
Merge "Add a function to verify if idmap is made from given target/overlay packages" into oc-dev

7 years agoMerge "Fix up the QS gutter" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 21:41:47 +0000 (21:41 +0000)]
Merge "Fix up the QS gutter" into oc-dev

7 years agoMerge "AOD: Fix camera icon visibility" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 21:40:50 +0000 (21:40 +0000)]
Merge "AOD: Fix camera icon visibility" into oc-dev

7 years agoAllow vendor code to link to libandroid_net.
Lorenzo Colitti [Wed, 17 May 2017 07:50:17 +0000 (16:50 +0900)]
Allow vendor code to link to libandroid_net.

This library contains only the multinetwork API, which is part
of the NDK and has long-term support. It is needed by any native
that wants to use network communications on a different network
than the default network, and thus is necessary for vendor code
such as IMS clients or carrier applications.

Bug: 37527489
Test: marlin builds and boots
Test: MultinetworkApiTest CTS tests passes
Change-Id: I2aa592d1d082aae410173adf2a09f6d1dd8092dc
Merged-In: I2aa592d1d082aae410173adf2a09f6d1dd8092dc

7 years agoMove libandroid_net from Android.mk to Android.bp.
Lorenzo Colitti [Wed, 17 May 2017 07:46:02 +0000 (16:46 +0900)]
Move libandroid_net from Android.mk to Android.bp.

This is the first step of making libandroid_net available to
vendor code. This is a partial cherry-pick of ag/2210044 that
only moves the build target (hence the Merged-In change ID).

Bug: 37527489
Test: marlin builds and boots
Change-Id: Id9e4d13d4e75f6f6381c675c4e9f72e9f4769d22
Merged-In: Ie3c9c3d3c8c75ade36422d1e8ee0a5fe117e9091

7 years agoUpdate ActivityStack#removeActivityFromHistoryLocked documentation.
Bryce Lee [Thu, 25 May 2017 20:57:46 +0000 (13:57 -0700)]
Update ActivityStack#removeActivityFromHistoryLocked documentation.

Followup to ag/2187696

Test: Documentation only
Bug: 37752430
Change-Id: I6e6a1e6727793037b398ef5b2da58d9efad4ada0

7 years agoMerge "Use cached keyguard flags during relaunch." into oc-dev
Bryce Lee [Thu, 25 May 2017 20:43:30 +0000 (20:43 +0000)]
Merge "Use cached keyguard flags during relaunch." into oc-dev

7 years agoMerge "Do not remove task until all activities have been destroyed." into oc-dev
Bryce Lee [Thu, 25 May 2017 20:42:15 +0000 (20:42 +0000)]
Merge "Do not remove task until all activities have been destroyed." into oc-dev

7 years agoMerge "Ensure that windows are drawn before starting transition into PiP." into oc-dev
TreeHugger Robot [Thu, 25 May 2017 20:30:21 +0000 (20:30 +0000)]
Merge "Ensure that windows are drawn before starting transition into PiP." into oc-dev

7 years agoMerge "Don’t reset the menu state if the menu is showing during an update" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 20:08:54 +0000 (20:08 +0000)]
Merge "Don’t reset the menu state if the menu is showing during an update" into oc-dev

7 years agoMerge "Update preloaded classes for O" into oc-dev
Mathieu Chartier [Thu, 25 May 2017 19:54:38 +0000 (19:54 +0000)]
Merge "Update preloaded classes for O" into oc-dev

7 years agoMerge "ClientMonitor should only send cancel() once to fp daemon" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 19:45:45 +0000 (19:45 +0000)]
Merge "ClientMonitor should only send cancel() once to fp daemon" into oc-dev

7 years agoFixed memory leak with the inflater
Selim Cinek [Thu, 25 May 2017 17:27:28 +0000 (10:27 -0700)]
Fixed memory leak with the inflater

Because min priority children could be removed from
their parents after the removal, a new inflation task
would be started, leading to the view being instantly
readded again. This lead to memory leaks.

It also fixes a bug where the inflation would not inflate
enough views that could lead to crashes / wrong layouts.

Finally there was a indexing error when handling removal
of group summaries.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
Change-Id: Iac242946bd30060967ee7877560d40e63f39f996
Fixes: 62067645

7 years agoMerge "Add ability to add existing connection AND set parent at the same time." into...
Tyler Gunn [Thu, 25 May 2017 19:33:58 +0000 (19:33 +0000)]
Merge "Add ability to add existing connection AND set parent at the same time." into oc-dev

7 years agoAOD: Fix camera icon visibility
Adrian Roos [Thu, 25 May 2017 19:33:17 +0000 (12:33 -0700)]
AOD: Fix camera icon visibility

Fixes a bug where the camera icon could become
visible in AOD even though it should not.

Fixes: 62038727
Test: Trigger ambient display, uninstall button provider plugin, observe camera button does not show
Change-Id: Ie97085dff58b6ecd0157126e30b86138f585d454

7 years agoAdd test to verify all sysui tests extend the right stuff
Jason Monk [Tue, 23 May 2017 14:42:59 +0000 (10:42 -0400)]
Add test to verify all sysui tests extend the right stuff

And then make it pass.

Test: runtest systemui
Fixes: 38500852
Change-Id: I377164219e4a4f4d1a99f11ef06da03c2b527eb0

7 years agoMerge "[PackageManagerService]:Fix system app can't uninstall apps silently" into...
Sudheer Shanka [Thu, 25 May 2017 19:17:44 +0000 (19:17 +0000)]
Merge "[PackageManagerService]:Fix system app can't uninstall apps silently" into oc-dev

7 years agoMerge "Fix permission is not granted to work profile system app by default" into...
Tony Mak [Thu, 25 May 2017 18:57:32 +0000 (18:57 +0000)]
Merge "Fix permission is not granted to work profile system app by default" into oc-dev

7 years agoMerge "Fix backup and restore of package blocks" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 18:48:56 +0000 (18:48 +0000)]
Merge "Fix backup and restore of package blocks" into oc-dev

7 years agoMerge "Creating HW bitmaps from RenderNode" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 18:48:18 +0000 (18:48 +0000)]
Merge "Creating HW bitmaps from RenderNode" into oc-dev

7 years agoEnsure that windows are drawn before starting transition into PiP.
Winson Chung [Wed, 24 May 2017 19:13:33 +0000 (12:13 -0700)]
Ensure that windows are drawn before starting transition into PiP.

- Building upon ag/2125930, we ensure that all windows are drawn before
  starting the enter PiP animation.

Bug: 37420370
Test: bit FrameworksServicesTests:com.android.server.wm.BoundsAnimationControllerTests
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I73fb71681f62bbc684efedbd3d40c3e1a670db46

7 years agoMerge "docs: Clarifying code snippet for View.autoFill()" into oc-dev
Felipe Leme [Thu, 25 May 2017 18:39:09 +0000 (18:39 +0000)]
Merge "docs: Clarifying code snippet for View.autoFill()" into oc-dev

7 years agoFix up the QS gutter
Jason Monk [Wed, 24 May 2017 18:57:10 +0000 (14:57 -0400)]
Fix up the QS gutter

 - Don't show when collapsed, show divider instead
 - Don't show when no notifications
 - Animate between states while expanding/collapsing
 - Other visual cleanup

Test: visual
Change-Id: I923c963fa70d63601b6a181299b04c5fc49922bb
Fixes: 38199857
Fixes: 38483355
Fixes: 38409326
Fixes: 38417776

7 years agoMerge "Respect empty vibration effect configs in PhoneWindowManager and VibratorServi...
TreeHugger Robot [Thu, 25 May 2017 18:10:22 +0000 (18:10 +0000)]
Merge "Respect empty vibration effect configs in PhoneWindowManager and VibratorService" into oc-dev

7 years agoMerge "Working around bugreport crash issues" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 18:07:23 +0000 (18:07 +0000)]
Merge "Working around bugreport crash issues" into oc-dev

7 years agoMerge "Camera2: Fix broken onCaptureBufferLost callback" into oc-dev
Eino-Ville Talvala [Thu, 25 May 2017 17:11:00 +0000 (17:11 +0000)]
Merge "Camera2: Fix broken onCaptureBufferLost callback" into oc-dev

7 years agoMerge "Fix guest tint" into oc-dev
Jason Monk [Thu, 25 May 2017 17:09:09 +0000 (17:09 +0000)]
Merge "Fix guest tint" into oc-dev

7 years agoMerge "Fix flaky tests" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 16:47:08 +0000 (16:47 +0000)]
Merge "Fix flaky tests" into oc-dev

7 years agoMerge "Triggering quiescent reboot during OTA" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 16:46:32 +0000 (16:46 +0000)]
Merge "Triggering quiescent reboot during OTA" into oc-dev

7 years agoUse cached keyguard flags during relaunch.
Bryce Lee [Thu, 25 May 2017 14:52:12 +0000 (07:52 -0700)]
Use cached keyguard flags during relaunch.

It is possible for the display to be unfrozen before an
AppWindowToken is finished relaunching. This allows for other window
containers (such as the StatusBar) to influence the rotation when
unfreezing.

This changelist prevents the cached keyguard flag values for the
AppWindowToken when relaunching. This prevents incorrect values from
being reported during transient relaunch window states.

Fixes: 38262879
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests#testKeyguardFlagsDuringRelaunch

Change-Id: I2aa23ac282cf7626bb187c6cd1a4a3524f788877

7 years agoFix backup and restore of package blocks
Julia Reynolds [Mon, 22 May 2017 12:45:27 +0000 (08:45 -0400)]
Fix backup and restore of package blocks

-Restore block status for apps that already exist
E.g. apps on the system image
- Stop depending on appops, it's duplicative and
not backuped/restored

Fixes: 38340377
Test: runtest systemui-notification, toast and notification
cts tests, backup android, clear data on packages, restore android,
verify that blocked apps stay blocked.
Change-Id: I29a33d7db2701bd64a7b30411dcf77c0a2f321d1

7 years agoMerge "Autofill UI should still show when dataset authentication is cancelled." into...
Felipe Leme [Thu, 25 May 2017 14:32:04 +0000 (14:32 +0000)]
Merge "Autofill UI should still show when dataset authentication is cancelled." into oc-dev

7 years agoMerge "Expand logging capabilities of Tethering subsystem" into oc-dev
TreeHugger Robot [Thu, 25 May 2017 09:04:33 +0000 (09:04 +0000)]
Merge "Expand logging capabilities of Tethering subsystem" into oc-dev

7 years agoMerge "Revert fix for FingerprintManager leak" into oc-dev
Kevin Chyn [Thu, 25 May 2017 04:28:09 +0000 (04:28 +0000)]
Merge "Revert fix for FingerprintManager leak" into oc-dev

7 years agoMerge "Fixed an issue where groups could stay userlocked" into oc-dev
Selim Cinek [Thu, 25 May 2017 03:29:10 +0000 (03:29 +0000)]
Merge "Fixed an issue where groups could stay userlocked" into oc-dev

7 years agoTriggering quiescent reboot during OTA
Dmitri Plotnikov [Wed, 10 May 2017 23:26:38 +0000 (16:26 -0700)]
Triggering quiescent reboot during OTA

Bug: 34201965
Test: follow instructions in https://docs.google.com/document/d/1RjvUGRi_Ys5-BRoJz6_SnixuipFiF-GAs6CNc7w-Qj0/edit and use fake-ota
Change-Id: I540f86cf11746faefc25bc74319512eba6d0d783

7 years agoFix and clarify behavior of vertical/horizontal attributes
Chet Haase [Thu, 25 May 2017 01:27:14 +0000 (18:27 -0700)]
Fix and clarify behavior of vertical/horizontal attributes

There were a couple of problems with the new paddingHorizontal
and layout_mareginHorizontal attributes. For one thing, the behavior
of layout_marginHorizontal needed to change with respect to marginStart/End.
Instead of the implemented behavior where Horizontal took precedence over
start/end, the behavior is being changed such that start/end can override
horizontal. This makes it consistent with the way that the attributes work
for padding.

Also, the attribute docs were not correct. For one thing, they needed to be
updated to match the new behavior for marginHorizontal. Also, the docs for
the padding attributes (including the docs for the existing "padding") were
not correct for the behavior as-implemented (specifically with respect to the
precedence of the attributes where paddingStart/End are concerned).

Bug: 37756178  double-check logic of horizontal/vertical attributes wrt start/end attributes
Test: Updated cts tests, submitting at the same time
Change-Id: I85a102549022cbec7d7b5c76f31ac985db103372

7 years agoUpdate preloaded classes for O
Mathieu Chartier [Fri, 19 May 2017 23:41:46 +0000 (16:41 -0700)]
Update preloaded classes for O

PSS changes don't seem to be non-noise.

Changed the process slightly, the threshold for persistent processes or
foreground processes is 3. The threshold for other apps is 10. The
reasoning for this is that these apps are always running so their
classes should be weighted more heavily.

The processes that had increased weighing were:
system
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.apps.nexuslauncher
com.google.android.gms
com.google.android.gms.persistent
com.google.android.inputmethod.latin

Preloaded classes: 4148 -> 4592
Compiled classes: 8677 -> 8524
Boot.oat size: 45474248 -> 45434448
Boot.art size: 13615104 -> 13733888

Bug: 34890992
Bug: 37689251
Test: N6P boots

Change-Id: Ief81bfb6d8ae2d971b85bf3e5e9ff11cb2236bab

7 years agoFix safezone and getAlpha
Hyunyoung Song [Mon, 22 May 2017 21:15:14 +0000 (14:15 -0700)]
Fix safezone and getAlpha
b/38361276
Test: frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java

Change-Id: I3e1c73276968747249b053fd581f289c340d98af

7 years agoWorking around bugreport crash issues
Makoto Onuki [Wed, 24 May 2017 21:58:25 +0000 (14:58 -0700)]
Working around bugreport crash issues

Overall we need more synchronization, but I'm taking a safe approach
here for oc-dev for now.

Bug: 62043115
Test: adb shell am instrument -w com.android.shell.tests
Change-Id: I0e22c5160cb96ce51dc1775237f01b7bf5c97a17

7 years agoMerge "Don't WTF when assist structure is missing." into oc-dev
TreeHugger Robot [Thu, 25 May 2017 00:05:49 +0000 (00:05 +0000)]
Merge "Don't WTF when assist structure is missing." into oc-dev

7 years agoRevert fix for FingerprintManager leak
Kevin Chyn [Wed, 24 May 2017 23:56:56 +0000 (16:56 -0700)]
Revert fix for FingerprintManager leak

Bug: 38509779
Bug: 32295793

Setting to null causes problem seen in b/38509779
Using weakreference will cause problems if the application
declares AuthenticationClient as a weak reference as well and would
very likely break a lot of existing apps.

Test: manual
Change-Id: Iedbdd76f3a402b766ce8a799bf76324d1164a0ec

7 years agoAutofill UI should still show when dataset authentication is cancelled.
Felipe Leme [Wed, 24 May 2017 20:16:31 +0000 (13:16 -0700)]
Autofill UI should still show when dataset authentication is cancelled.

Test: manual verification
Test: existing CtsAutoFillServiceTestCases pass
Test: LoginActivityTest.testDatasetAuthTwoFieldsUserCancelsFirstAttempt

Fixes: 38427468

Change-Id: If8785ad8fda1408a5dee66c53f7dcb4c85d78262

7 years agoMerge "Update the app window's thumbnail layer after starting window is removed"...
TreeHugger Robot [Wed, 24 May 2017 23:44:10 +0000 (23:44 +0000)]
Merge "Update the app window's thumbnail layer after starting window is removed" into oc-dev

7 years agodocs: Clarifying code snippet for View.autoFill()
Andrew Solovay [Mon, 22 May 2017 22:36:11 +0000 (15:36 -0700)]
docs: Clarifying code snippet for View.autoFill()

Per bug, updating code snippet to clarify that it's an example of an
implementation of the method. Oscar & Felipe, please check that I did
it right!

Also fixed a couple of HTML syntax errors while I had the file open
(badly formatted escape-characters that Chrome figured out, but other
browsers might choke on) and a spelling error.

Revised Javadoc is staged to:

http://go/dac-stage/reference/android/view/View.html#autofill(android.view.autofill.AutofillValue)

Test: make ds-docs
Bug: 38347106
Change-Id: I587a66c53fd5ebeeb6108529723d2d7a74c61cf7

7 years agoAdd ability to add existing connection AND set parent at the same time.
Tyler Gunn [Tue, 9 May 2017 21:34:57 +0000 (14:34 -0700)]
Add ability to add existing connection AND set parent at the same time.

This is useful for IMS conferences where we want to add a connection and
set it as a child of a conference at the same time.

Test: Manual
Bug: 37581781
Change-Id: Id09c8296ffe18893c5642d403c6a69ad6c9765e2

7 years agoCreating HW bitmaps from RenderNode
John Reck [Tue, 23 May 2017 21:45:22 +0000 (14:45 -0700)]
Creating HW bitmaps from RenderNode

Allows creating a HW Bitmap from the drawing
commands of a RenderNode.

Bug: 38507414
Bug: 37698012
Test: Sample in HwAccelerationTest

Change-Id: I57c60b2c8bf5194f4412ad4b7f1c1f35e2e4c757

7 years agoMerge "Fix QS tiles not rippling" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:50:15 +0000 (21:50 +0000)]
Merge "Fix QS tiles not rippling" into oc-dev

7 years agoMerge "AOD: Fix wakeAndUnlockPulsing transition" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:36:32 +0000 (21:36 +0000)]
Merge "AOD: Fix wakeAndUnlockPulsing transition" into oc-dev

7 years agoMerge "[DO NOT MERGE] Do not start the IpSecService" into oc-dev
Nathan Harold [Wed, 24 May 2017 21:36:15 +0000 (21:36 +0000)]
Merge "[DO NOT MERGE] Do not start the IpSecService" into oc-dev

7 years agoMerge "Check VintfObject compatibility on boot" into oc-dev
Michael Schwartz [Wed, 24 May 2017 21:34:03 +0000 (21:34 +0000)]
Merge "Check VintfObject compatibility on boot" into oc-dev

7 years agoMerge "Fixed assertions on bugreport share notification." into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:32:56 +0000 (21:32 +0000)]
Merge "Fixed assertions on bugreport share notification." into oc-dev

7 years agoForce a light to be set for the first time
Oleksiy Avramchenko [Tue, 25 Apr 2017 10:30:49 +0000 (12:30 +0200)]
Force a light to be set for the first time

The check in LightImpl::setLightLocked skips HAL call if light
parameters aren't changed. During initialization these parameters
are zeroed, thus it's not possible to turn the light off at the
startup.

As an example this fixes the issue with "stuck" battery light
in the following scenario:
1. Device has secure start-up option set (either pin or pattern).
2. Charger is connected at the startup and battery light shows the
   charging state on pin or pattern prompt.
3. Device is unlocked and charger disconnected after some time,
   e.g. after com.android.server.lights.LightsService restarted.
4. The battery light is not off and stuck in the previous state
   until charger is connected / disconnected again.

Fixes: 37662368
Test: manual - follow the above step-by-step
Merged-In: I45470e945fe4d26d37a5641dfff3311968f51ee4
Change-Id: I45470e945fe4d26d37a5641dfff3311968f51ee4

7 years agoMerge "Consider the last inserted SIM for EmergencyAffordance" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:28:05 +0000 (21:28 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance" into oc-dev

7 years agoHandle install time ephemeral permissions
Chad Brubaker [Wed, 24 May 2017 21:23:07 +0000 (14:23 -0700)]
Handle install time ephemeral permissions

Normal install time permissions can still be denied to apps that are
running as Instant Apps, properly report such permissions as not
granted.

This fix isn't the perfect fix where PermissionState handles install
time permissions and Instant Apps but that fix is more invasive and
involves a lot of code change.

Bug: 37871983
Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.EphemeralTest#testInstallPermissionNotGranted

Change-Id: Ie47fb92953bc5f2ff3a58a6420b1cb524cf1ed9e

7 years agoMerge "Add documentation about 0 scale matrix to Shader" into oc-dev
Tenghui Zhu [Wed, 24 May 2017 21:06:52 +0000 (21:06 +0000)]
Merge "Add documentation about 0 scale matrix to Shader" into oc-dev

7 years agoMerge "Correctly save retained fragments in the backstack" into oc-dev
Sergey Vasilinets [Wed, 24 May 2017 21:05:34 +0000 (21:05 +0000)]
Merge "Correctly save retained fragments in the backstack" into oc-dev

7 years agoMerge "Keyguard: Update clock size" into oc-dev
Adrian Roos [Wed, 24 May 2017 21:01:39 +0000 (21:01 +0000)]
Merge "Keyguard: Update clock size" into oc-dev

7 years agoFixed an issue where groups could stay userlocked
Selim Cinek [Wed, 24 May 2017 18:08:55 +0000 (11:08 -0700)]
Fixed an issue where groups could stay userlocked

It also fixes an issue where the reinflation wasn't
working properly.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Merged-In: If359256a3ac0c574260b5ff5af3fc2042e1dce9a
Change-Id: If359256a3ac0c574260b5ff5af3fc2042e1dce9a
Fixes: 36469584

7 years agoOffer listener to observe StrictMode violations.
Jeff Sharkey [Wed, 24 May 2017 18:45:40 +0000 (12:45 -0600)]
Offer listener to observe StrictMode violations.

Primarily used by tests to be more robust, since reading raw logcat
data recently became very flaky.

Bug: 37915178
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.StrictModeTest
Change-Id: I3f12508bb6206c53005356b5d8d9ba57aac2436e

7 years agoMerge "Keyguard: Remove all caps from keyguard status view" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:50:57 +0000 (20:50 +0000)]
Merge "Keyguard: Remove all caps from keyguard status view" into oc-dev

7 years agoMerge "Regression test: Menu item title updates." into oc-dev
Abodunrinwa Toki [Wed, 24 May 2017 20:48:02 +0000 (20:48 +0000)]
Merge "Regression test: Menu item title updates." into oc-dev

7 years agoMerge "Fixed that pinned huns could become clipped" into oc-dev
Selim Cinek [Wed, 24 May 2017 20:44:56 +0000 (20:44 +0000)]
Merge "Fixed that pinned huns could become clipped" into oc-dev

7 years agoAllow the creation of IMPORTANCE_NONE channels
Julia Reynolds [Wed, 24 May 2017 20:33:32 +0000 (16:33 -0400)]
Allow the creation of IMPORTANCE_NONE channels

- Users will still be notified of foreground services
by the system even if the app posts their fg service
notification to a blocked channel so this restriction isn't needed
- This allows apps to cleanly port over their pre-channels notification
settings

Fixes: 62028083
Test: runtest systemui-notification

(cherry picked from commit 3f25f4d6fe24f3782d6e156f9969d98ab3c8b4bf)

Change-Id: I1cd8cfaf31f00088e267bd3fb1bd7912f4397c69

7 years agoMerge "System installed launcher can see instant apps" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:38:51 +0000 (20:38 +0000)]
Merge "System installed launcher can see instant apps" into oc-dev

7 years agoFixed an issue when inflating too many notifications
Selim Cinek [Sat, 20 May 2017 00:54:48 +0000 (17:54 -0700)]
Fixed an issue when inflating too many notifications

The pool of queued asynctask was limited and should really
not be, because we might be inflating a lot views at the
same time.

Test: runtest systemui
Change-Id: I3e724985e01483531051a3e9e255faa69d2591d2
Fixes: 38261831

7 years agoMerge "WifiMetrics: Add metrics for HAL/wificond crashes" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:20:58 +0000 (20:20 +0000)]
Merge "WifiMetrics: Add metrics for HAL/wificond crashes" into oc-dev

7 years agoMerge "Zygote: Allow arbitrary-length wrap property names" into oc-dev
Christopher Ferris [Wed, 24 May 2017 20:20:38 +0000 (20:20 +0000)]
Merge "Zygote: Allow arbitrary-length wrap property names" into oc-dev

7 years agoMerge "Fixed an issue where the panel could be stuck expanding" into oc-dev
Selim Cinek [Wed, 24 May 2017 20:13:18 +0000 (20:13 +0000)]
Merge "Fixed an issue where the panel could be stuck expanding" into oc-dev

7 years agoMerge "Disable state save/restore for inflated date/time picker views" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:50:51 +0000 (19:50 +0000)]
Merge "Disable state save/restore for inflated date/time picker views" into oc-dev

7 years agoMerge "Filter instant <--> full app" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:45:27 +0000 (19:45 +0000)]
Merge "Filter instant <--> full app" into oc-dev

7 years agoFix QS tiles not rippling
Jason Monk [Wed, 24 May 2017 19:31:11 +0000 (15:31 -0400)]
Fix QS tiles not rippling

It was due to complicated background changes added for the gutter,
add a transparent background for QS + header to give the ripples
a location to draw on.

Test: visual
Change-Id: I59c2d0b1fb543852e54980577b1ce7307b6e4de8
Fixes: 38330186

7 years agoMerge "Fix cast tile crash" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:29:54 +0000 (19:29 +0000)]
Merge "Fix cast tile crash" into oc-dev

7 years agoCheck VintfObject compatibility on boot
Michael Schwartz [Mon, 15 May 2017 18:40:40 +0000 (11:40 -0700)]
Check VintfObject compatibility on boot

Bug: 36814984
Test: Build, flash boot sailfish and shared system image.
Change-Id: Ibd6694079d9e2641a7b77d774a2df085e9a8545a

7 years agoMerge "Notifications: Fix janky group expansion animation" into oc-dev
Adrian Roos [Wed, 24 May 2017 19:03:24 +0000 (19:03 +0000)]
Merge "Notifications: Fix janky group expansion animation" into oc-dev

7 years agoMerge "Reset mHiddenSetFromTransferredStartingWindow when app set visibility" into...
TreeHugger Robot [Wed, 24 May 2017 19:00:56 +0000 (19:00 +0000)]
Merge "Reset mHiddenSetFromTransferredStartingWindow when app set visibility" into oc-dev

7 years agoFixed assertions on bugreport share notification.
Felipe Leme [Wed, 24 May 2017 18:51:10 +0000 (11:51 -0700)]
Fixed assertions on bugreport share notification.

Fixes: 36698286
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0f3586309103a07afca5be3d1e3073d8a5dd04ec

7 years ago[PackageManagerService]:Fix system app can't uninstall apps silently
luozhanwei [Thu, 6 Apr 2017 02:13:28 +0000 (10:13 +0800)]
[PackageManagerService]:Fix system app can't uninstall apps silently

System app in user space except Owner user can't uninstall apps silently

Bug: 62057943
Bug: 37324004
Test: manual

Change-Id: Ia168a5d757b4d8ae10fe9a82fc786626a3b5b2f7
Signed-off-by: luozhanwei <luozhanwei@xiaomi.com>
7 years agoZygote: Allow arbitrary-length wrap property names
Andreas Gampe [Thu, 11 May 2017 01:53:02 +0000 (18:53 -0700)]
Zygote: Allow arbitrary-length wrap property names

The restriction on system property key length has been lifted.
Update the invoke-with code to first check the full-length property.
Then fall back to the truncated version for backwards-compatibility.

Bug: 37276041

Test: m
Test: manual with long package name (Maps)
(cherry picked from commit 4c88a8c6848609333fa6058fcfc22ac58ed94dac)

Change-Id: Ic27a26a676f7ac5a998a9bea14259725e89b7e37

7 years agoRespect empty vibration effect configs in PhoneWindowManager and VibratorService
Erik Wolsheimer [Wed, 24 May 2017 18:18:25 +0000 (11:18 -0700)]
Respect empty vibration effect configs in PhoneWindowManager and VibratorService

Bug: 38084098
Change-Id: I9d9d3772b624af4f0f527f00c418e6c93cfff88e

7 years agoKeyguard: Update clock size
Adrian Roos [Wed, 10 May 2017 22:48:01 +0000 (15:48 -0700)]
Keyguard: Update clock size

Bug: 38138115
Test: Observe that clock on lockscreen is smaller
Change-Id: I3360d2f234a47947321e05fb96253bbb808919a8

7 years agoMerge "docs: Fixing malformatted HTML escape" into oc-dev
Andrew Solovay [Wed, 24 May 2017 17:56:23 +0000 (17:56 +0000)]
Merge "docs: Fixing malformatted HTML escape" into oc-dev

7 years agoFix guest tint
Jason Monk [Wed, 24 May 2017 17:55:23 +0000 (13:55 -0400)]
Fix guest tint

Manually apply some specific tinting to override what UserIcons
provides.

Test: visual
Change-Id: Icdae51b3037dc046ccad7a374282cd1ef6fc0206
Fixes: 38052832

7 years agoUpdate the app window's thumbnail layer after starting window is removed
Matthew Ng [Sat, 6 May 2017 00:12:18 +0000 (17:12 -0700)]
Update the app window's thumbnail layer after starting window is removed

This fixes the case when bottom app is resuming in portrait mode on a
tablet where the thumbnail's title bar appears over the docked app (from
the top) only when device slows down (or slow down the animation). This
is caused by the StartingWindow removing itself from the display and not
updating the thumbnail that is still animating while all the other
windows updated their z-ordering. When the apps update their z-order,
they lower the dock stack's z-order because the starting window (which
was behind the dock stack) is gone. However the thumbnail still has the
same z-order meaning that the thumbnail will sit on top of the docked
app. So when the starting window disappears, the z-order for the thumbnail
will also update to fit behind the docked app. Also simplified the
thumbnail layer code.

Fixes: 35860227
Bug: 62029108
Test: manual, dock an app in top and bottom, go to recents, slow down
device animations by 5-10x, resume any bottom task
Change-Id: I79bc92b79e50a7b646b7b6c22802e55e04cc1799

7 years agoDon't WTF when assist structure is missing.
Felipe Leme [Wed, 24 May 2017 17:46:23 +0000 (10:46 -0700)]
Don't WTF when assist structure is missing.

That could happen when app throws an exception while filling it.

Fixes: 38312929
Test: manual verification by forcing an app to throw an exception

Change-Id: I7e94e9d352c4c3fd8adf01bcf7b25f66535e070d

7 years agoFix cast tile crash
Jason Monk [Wed, 24 May 2017 17:29:19 +0000 (13:29 -0400)]
Fix cast tile crash

Switch from support library to internal implementation of cast
dialog.

Test: send menu event to dialog
Change-Id: If9c8bf0f544e712f3835977dd45a5adeeaac0c77
Fixes: 37216170

7 years agoMerge "reduce flunctuation in boot animation start / stopping time" into oc-dev
Keun-young Park [Wed, 24 May 2017 17:28:35 +0000 (17:28 +0000)]
Merge "reduce flunctuation in boot animation start / stopping time" into oc-dev

7 years agoMerge "Set the decay timer for all forked apps." into oc-dev
Christopher Ferris [Wed, 24 May 2017 17:17:27 +0000 (17:17 +0000)]
Merge "Set the decay timer for all forked apps." into oc-dev

7 years agoWifiMetrics: Add metrics for HAL/wificond crashes
Roshan Pius [Thu, 11 May 2017 16:05:58 +0000 (09:05 -0700)]
WifiMetrics: Add metrics for HAL/wificond crashes

New metrics added:
1. Number of times HAL crashed during operation.
2. Number of times wificond crashed during operation.
3. Number of times wifi start failed because of a native issue.
Basically the number of times calls to WifiNative.setupForClientMode() &
WifiNative.setupForSoftApMode() fails.

Bug: 36586897
Test: Compiles
Change-Id: Ie9683fd8bfea6b0c64605e407559ff561898c11b
(cherry picked from commit 3607a39bbf99889d964f985727d14bcbdbecfac6)