236893 Commits

Author SHA1 Message Date
Makoto Onuki
d5b745a9e6 Merge "ShortcutManager: proper work profile support" into nyc-dev 2016-03-29 22:45:03 +00:00
Tenghui Zhu
5eea9afe44 Merge "Add test for AVD on SW Layer" into nyc-dev 2016-03-29 22:25:19 +00:00
Adam Powell
b3eca3161d Merge "Add contentInsetStartWithNavigation/EndWithActions" into nyc-dev 2016-03-29 22:12:34 +00:00
Jeff Sharkey
d974605c73 Merge "Delay vold connectors until published, fix NPE." into nyc-dev 2016-03-29 22:04:55 +00:00
Jeff Sharkey
cd57599273 Delay vold connectors until published, fix NPE.
If they connect too quickly, PackageManager could end up trying to
obtain the yet-unpublished MountService.

Fix NPE in UserManagerService when trying to persist fingerprints,
and fix write ordering to always write [id].xml before userlist.xml
to avoid battery pull issues.  Simlarly, delete [id].xml only after
updating userlist.xml.

Bug: 27869443
Change-Id: I43d8552e5e37b9ca4137cca3e3e76684c7dee605
2016-03-29 15:53:50 -06:00
Suprabh Shukla
7a3bff1847 Merge "Removing unused intent extra" into nyc-dev 2016-03-29 21:48:37 +00:00
Dmitri Plotnikov
a8213eebdd Merge "Allowing AppWidgetService to start without FEATURE_APP_WIDGETS" into nyc-dev 2016-03-29 21:46:28 +00:00
Makoto Onuki
9da23fc6ac ShortcutManager: proper work profile support
Bug 27548047

Change-Id: I8acea3355f8974a551f53814624dec30732f7b2f
2016-03-29 14:42:02 -07:00
Chris Craik
80a67f363f Merge "Overdraw avoidance in new pipeline" into nyc-dev 2016-03-29 21:41:52 +00:00
Oren Blasberg
d86fd61cd8 Merge "Call the onDismiss listener in submenus." into nyc-dev 2016-03-29 21:34:46 +00:00
Adam Powell
679be2d6c4 Add contentInsetStartWithNavigation/EndWithActions
Allow developers to set different content insets on toolbars and
action bars to be used when navigation buttons or menu actions are
present. Set the default values for these according to the material
spec.

Bug 19317855

Change-Id: I13e04e1f19f0982bf551a3027eb70904d6b4674c
2016-03-29 14:24:15 -07:00
Chong Zhang
4c78ba6543 Merge "Animate IME adjustment for docked stack through the divider" into nyc-dev 2016-03-29 21:07:56 +00:00
Oren Blasberg
77f30ccc7c Merge "Make context menu titles a nicer color." into nyc-dev 2016-03-29 20:56:04 +00:00
Alan Viverette
11c041576d Merge "Always use existing PopupWindow dimension if not otherwise specified" into nyc-dev 2016-03-29 20:35:59 +00:00
Michal Karpinski
53937849fc Merge "Moving app process logging from AMS to PMS" into nyc-dev 2016-03-29 20:35:47 +00:00
Oren Blasberg
4348688ed3 Call the onDismiss listener in submenus.
For StandardMenuPopup, if user opens a submenu, the ondismiss listener is no
longer called. Instead, it is called when the submenu (which is now open in
the top level menu's place) is dismissed.

Bug: 27877103

Change-Id: I069388fd173142620c667fa8d1cb21e88d5266fe
2016-03-29 13:31:56 -07:00
Chris Craik
80d2ade939 Overdraw avoidance in new pipeline
bug:27873093

Adds the simple overdraw avoidance optimization to the new
pipeline. This means when LayerBuilder defers draws that are opaque over
the full area of the repaint region, it will discard all drawing content
beneth.

Also moves a lot of complexity out of BakedOpState's header.

Change-Id: Iffca6d8e1b170ef31a5d6c83d25592670e02323d
2016-03-29 13:30:15 -07:00
Muyuan Li
415ebdb880 Merge "sysui: refactor for extensibility" into nyc-dev 2016-03-29 20:29:51 +00:00
Teng-Hui Zhu
06a353d37c Add test for AVD on SW Layer
Now we can put both HW Layer and SW Layer side by side.

Change-Id: I105d0aa6baad0e096cf71c05568323e81301e9b0
2016-03-29 13:18:16 -07:00
Chong Zhang
baba78319b Animate IME adjustment for docked stack through the divider
This makes sure the top stack crop, divider position and bottom stack
surface position moves together with the IME window. Currently the
bottom stack and divider are moving together but top stack crop is
changed immediately.

bug: 27779495
Change-Id: I653ad9093621b218d9c11b0bb2efdddb1d33763e
2016-03-29 13:15:00 -07:00
Muyuan Li
8303bd2b17 sysui: refactor for extension
Refactored ZenModePanel:
1. Button creation is split from onFinishInflate.
2. Added a method to query current Zen condition
3. Made mZenButtonsCallback protected.

Change-Id: I959fa2f7770ba1888af01eababe7c4512981332d
(cherry picked from commit 79df200108c5240c0d2a041d7d841f8d9d143ec0)
2016-03-29 20:09:46 +00:00
Muyuan Li
94fa1df713 sysui: refactor for extensibility
Split button creation code from init in ZenModePanel

Bug: 27101250
Change-Id: Id4bbd505b4e311fdcd2d330f20b73d2338fa9686
(cherry picked from commit 80870e93a49c08f4f4e57d2c0902d2308faa3f7a)
2016-03-29 20:08:29 +00:00
John Reck
a5c45459d3 Merge "Add a font microbench" into nyc-dev 2016-03-29 20:07:56 +00:00
George Mount
e6ef0f9d77 Merge "Ensure window has been added in isTopOfTask" into nyc-dev 2016-03-29 20:02:27 +00:00
George Mount
58cf2c3da0 Merge "Run cleanup before end actions of ViewPropertyAnimator." into nyc-dev 2016-03-29 19:54:36 +00:00
Udam Saini
bc5aa7a736 Merge "Calling setIsDrawerPresent(false) twice causes a crash." into nyc-dev 2016-03-29 19:42:43 +00:00
Jorim Jaggi
75c21ca948 Revert "Start drawing immediately"
This reverts commit 3127c2a471dbefda916701d9b3837ce109ea7d49.

The original CL caused various issues for which we don't have the
time/not willing to take the risk.

Bug: 27864389
Bug: 27451341
2016-03-29 19:30:21 +00:00
Jorim Jaggi
c28230cf97 Merge "Intersect task with stack bounds for dimming" into nyc-dev 2016-03-29 19:28:44 +00:00
Makoto Onuki
021a48d50e Merge "Extract signature related utilities" into nyc-dev 2016-03-29 19:25:49 +00:00
Chet Haase
fd48a321c9 Merge "Add setHasOverlappingRendering() method" into nyc-dev 2016-03-29 19:19:14 +00:00
Jason Monk
809077d43c Merge "Fix QS expand on tablets" into nyc-dev 2016-03-29 19:16:39 +00:00
Tyler Gunn
53befa2e0b Merge "Add missing null checks on Conference and Connection." into nyc-dev 2016-03-29 19:02:08 +00:00
Alan Viverette
b91d6d06b8 Always use existing PopupWindow dimension if not otherwise specified
Removes mPopupWidth/Height, which have been moved entirely into the
width and height of the LayoutParams.

Bug: 27878812
Change-Id: Id9fe99c7d57d5c15c7fe10ea95d97be562301a8e
2016-03-29 14:55:04 -04:00
Andrii Kulian
029a28b7d6 Merge "Add minimal width and height logging to AM dump." into nyc-dev 2016-03-29 18:28:10 +00:00
Alan Viverette
f25ea2fece Merge "Use default implementation for onForwardingStopped() in action menu" into nyc-dev 2016-03-29 18:25:32 +00:00
Paul Crowley
f41024461b Merge "Continue to remove users when destroyUserKey fails." into nyc-dev 2016-03-29 18:25:12 +00:00
Chris Tate
09d83b032e Merge "Clean up a couple of bugs about transport init staging" into nyc-dev 2016-03-29 18:18:12 +00:00
John Reck
f01e4af5a3 Merge "Fix array out of bounds access in JankTracker" into nyc-dev 2016-03-29 18:08:51 +00:00
Michal Karpinski
b52a461851 Moving app process logging from AMS to PMS
Bug: 26796347
Change-Id: I21894c2edb41929f6ecd3880667c53e00acef677
2016-03-29 19:07:29 +01:00
Roshan Pius
89d9480be2 Merge changes from topic 'wifi_tx_power_levels' into nyc-dev
* changes:
  Add new wifi tx power levels in Wifi activity energy
  Add new wifi tx power levels in link layer stats
2016-03-29 18:03:37 +00:00
Chet Haase
15b6ba5859 Add setHasOverlappingRendering() method
View.hasOverlappingRendering() is an important performance tweak that
subclasses can override to do the right thing return false when appropriate
to avoid expensive operations when view is translucent).
But this requires subclassing View to get this behavior.

This new API allows the property to be set from outside, enabling
standard views to have this behavior set. When the new method is called,
the behavior will derive from whatever it was set to. Otherwise, it
will default to the old/overriden behavior.

Issue #16561361  Make hasOverlappingRendering settable from outside/XML

Change-Id: If0fbc8667cdb82b1d85e795e782716a07196f3c0
2016-03-29 11:01:27 -07:00
Udam Saini
68dab67de2 Calling setIsDrawerPresent(false) twice causes a crash.
We should only call setDrawerLockMode(...) if mDrawerLayout isn't
null.

bug:26288300
Change-Id: I8a1b77e03414360f9cd7e3fa6e6c98ef0e139ebf
2016-03-29 10:55:01 -07:00
George Mount
d0ca0e0984 Ensure window has been added in isTopOfTask
Bug 27893230

When isTopOfTask is called prior to the window being added, it
will throw an IllegalArgumentException. This checks that the
window has been added before making the call.

Change-Id: Idd14c0f1051e16d96a0a1fa9f990f380a1f69911
2016-03-29 10:35:03 -07:00
Aga Wronska
160222a439 Merge "Action OPEN_DOCUMENT_TREE shows advanced roots ignoring config flag Fixed: 27856396" into nyc-dev 2016-03-29 17:34:45 +00:00
Aga Wronska
973168c142 Action OPEN_DOCUMENT_TREE shows advanced roots ignoring config flag
Fixed: 27856396

Change-Id: I2dc135ac6aa66452edf8bd8439d5e54bcc387070
2016-03-29 10:26:25 -07:00
Tyler Gunn
a8fb8aba7c Add missing null checks on Conference and Connection.
Also add missing bundle passing for Connection Events.

Bug: 27850430
Change-Id: I0f79635929cbe5da18b528b6c1119c7ce4d8e32b
2016-03-29 10:24:22 -07:00
Alan Viverette
736a85f166 Use default implementation for onForwardingStopped() in action menu
Otherwise we never exit forwarding if the popup has already been
dismissed.

Bug: 27886370
Change-Id: I3a7a51c18c15e12e2e9ef4cac853b87eb46d36de
2016-03-29 13:13:17 -04:00
Makoto Onuki
590096a0e3 Extract signature related utilities
So that they can be used from services/core.

Bug 27548047

Change-Id: I610e267cba320418e766c0e609fa26c485dc6e1f
2016-03-29 10:09:43 -07:00
John Reck
2c0f93798b Add a font microbench
Also remove a low-signal high-frequency trace mark

Fixes: 27894187

Change-Id: I090122a0db8e455eaa9dbce2b0f5b6778a218188
2016-03-29 09:55:13 -07:00
Jason Monk
85686d6ef6 Fix QS expand on tablets
Fix the way NotificationPanelView checks the X bounds of QS intercepts
since the translation is now on the density container, it should be
the source of truth for x and width.

Bug: 27865453
Change-Id: Id698a63563ed99a509a68386f289e6f28302e1e2
2016-03-29 12:34:28 -04:00