237244 Commits

Author SHA1 Message Date
Dianne Hackborn
7a6dc6cdff Merge "Work on issue #26879170: Adjust doze maintenance windows..." into nyc-dev 2016-03-30 00:41:39 +00:00
Mitchell Wills
ad95b6a6ea Send WorkSource for scan requests so the origin can be overridden
Bug: 27903217
Change-Id: I37b24c0f5b8e9408a9f25e4479cdbb71235757a6
2016-03-29 17:36:41 -07:00
Daichi Hirono
c124427880 Merge "Use AppFuse to write document." into nyc-dev 2016-03-30 00:20:39 +00:00
Siyamed Sinir
d225f87ebc Merge "Revert "TextView setText/append methods set movement method"" into nyc-dev 2016-03-29 23:59:15 +00:00
Evan Rosky
eff74b48a8 Make part of KeyguardSecurityContainer protected
In order to apply different styling to security methods,
we need getLayoutIdFor() to be protected instead of private.

Change-Id: Icc92240eec763c910ef334c22ff4b92fcdd83fe8
2016-03-29 23:55:52 +00:00
Miao Wang
2d92afbef7 Merge "[RenderScript] Fix IntrinsicConvolve documentation." into nyc-dev 2016-03-29 23:55:44 +00:00
Miao Wang
44fa90868c Merge "[RenderScript] Update the documentation of Script.LaunchOptions" into nyc-dev 2016-03-29 23:55:26 +00:00
Rob Carr
ffe3098169 Merge "Ensure we change SurfaceView size from UI thread." into nyc-dev 2016-03-29 23:50:47 +00:00
Chris Craik
6246d27813 Support buildLayer in new pipeline
bug:26561995
bug:27620686

Change-Id: I6c39f9a077e7e6002d3c01b8888238fd17b0f02a
2016-03-29 16:50:32 -07:00
Makoto Onuki
e3ae7ec14a ShortcutManager: Support secondary text field.
Bug 27548047

Change-Id: I2d184bab2c26e351b7326945fa0cacf826f16d1e
2016-03-29 16:42:12 -07:00
Christopher Tate
ea33b945b1 Offload killProcessGroup to a worker thread
It can take ~hundreds of ms to complete, so we want to avoid
blocking callers or monopolizing locks while waiting for it.

Bug 27821754

Change-Id: I522cadae7cfda9cce7c3d1a230cfd91cf4f9e730
2016-03-29 16:40:53 -07:00
Prashant Malani
99e6d43def Make display brightness ramp rate fast configurable
Add an overlay setting, and keep the default to its existing value of
200.

Bug: 26552257
Change-Id: Ifd29d80e28e57c5cfc640d519a62144ab5e963fa
2016-03-29 23:38:25 +00:00
zhangshuxiao
f51097c743 When wifi ssid is empty, return WifiSsid.NONE
Issue 199610

When WifistateMachine enter Roaming State, WifiInfo
getSSID will return 0x, statusbar show "0x", because
roaming State do not update WifiInfo mWifiSsid.

Cherry pick from I241f8e9c11dc16db26cadde133043745f2f19573

BUG=27403109
TEST=compile and unittests
Signed-off-by: zhangshuxiao <zhangshuxiao@xiaomi.com>

Change-Id: Ieb7429511898a5ed3d44fd15fc1f250c122e802a
2016-03-29 16:35:47 -07:00
Phil Weaver
65c067083e Stop non-touchable regions affecting magnification
A window's magnifiability only applies to its touchable regions, so a
non-touchable shadow over an IME won't affect the IME's magnifiability.

Bug: 27179277
Change-Id: I86076e001035678c73973d7a98e0dcac6143553e
2016-03-29 16:20:14 -07:00
Ben Wagner
008c6c5490 Fix shift precedence in FontListParser.
BUG=27707457

Change-Id: I7ea7a5fa67ec540401454136427b37562a4eef30
2016-03-29 23:13:49 +00:00
Teng-Hui Zhu
5339428d22 Add radio button as a bundle XML file in the manual test
This will make the reproducing and isolating the bug easier b/c everything is
in one single file.

b/27343522

Change-Id: I25445127f6fb44a8613701a7195a605e052730e5
2016-03-29 23:06:35 +00:00
Jeff Sharkey
af64f6341b Merge "AccessibilityNodeInfo shouldn't touch extras." into nyc-dev 2016-03-29 22:47:17 +00:00
Makoto Onuki
d5b745a9e6 Merge "ShortcutManager: proper work profile support" into nyc-dev 2016-03-29 22:45:03 +00:00
Andy Hung
0474773aab Stop SoundPool decode if NdkMediaCodec returns null buffers
Also increase error checking.

Bug: 27346228
Change-Id: Ib94505f852344298f88a3fdcbd65ca8031084188
2016-03-29 15:43:02 -07:00
Jeff Sharkey
297017d154 AccessibilityNodeInfo shouldn't touch extras.
The extras may contain custom Parcelables which aren't in the
system's default classpath, so touching them would end up clobbering
the contents.

Update code to leave the parcelled data untouched inside the bundle
until someone tries reading the extras.

Bug: 27897919
Change-Id: I99381dd50c9a0e8887667076362ea98805f0437c
2016-03-29 16:38:55 -06:00
Dianne Hackborn
953fc94599 Work on issue #26879170: Adjust doze maintenance windows...
...based on network availability

But first, make the light idle timing more dynamic, with this
pattern:

1. Screen off for 5 minutes.
2. Light idle for 5 minutes.
3. Idle maintenance.
4. Light idle for 10 minutes.
5. Idle maintenance.
6. Light idle for 15 minutes.
7. Idle maintenance.
...

Also fix issue #27793980: Log message about unrecognized alarm listener

Change-Id: I42012f8085afbd5becaecdadf93a777370ca34be
2016-03-29 15:36:24 -07:00
Miao Wang
3d23dce433 [RenderScript] Fix IntrinsicConvolve documentation.
Bug: 25117120

  - Better format.
  - Typo fixes.

Change-Id: Ic6f8d1dacecdaf9993dd8298de7a801f5fd2a937
2016-03-29 15:29:10 -07:00
Tenghui Zhu
5eea9afe44 Merge "Add test for AVD on SW Layer" into nyc-dev 2016-03-29 22:25:19 +00:00
Miao Wang
53fdcfbe63 [RenderScript] Update the documentation of Script.LaunchOptions
Bug: 26916665

  - Add description of the endArg.
  - Update the example.
  - Update the incorrect description.

Change-Id: Idd07db5d790e2d6462fff9cb580115ec45cfd4f0
2016-03-29 15:14:21 -07: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
Brian Carlstrom
b61a0dae09 Fix typo in Conversion Functions doc
Bug: 27529815
Change-Id: I470348a232d9955d23463ec32c2de60abb44bc3f
2016-03-29 14:49:09 -07:00
Suprabh Shukla
7a3bff1847 Merge "Removing unused intent extra" into nyc-dev 2016-03-29 21:48:37 +00:00
Philip P. Moltmann
7134fcc07c RemotePrintDocument might get destroyed in constructor
... if it cannot connect to remote PrintDocumentAdapter. Then the state
will be set to destroyed and the print activity will be aborted via the
onDied callback.

Bug: 27899066
Change-Id: Ieb287b92ac21fc71a56b491a1035feaff6cd2837
2016-03-29 14:47:04 -07:00
Dmitri Plotnikov
a8213eebdd Merge "Allowing AppWidgetService to start without FEATURE_APP_WIDGETS" into nyc-dev 2016-03-29 21:46:28 +00:00
Siyamed Sinir
6ffb0a6818 Revert "TextView setText/append methods set movement method"
This reverts commit 4ba0aa598ea86b7cffab8cd6ccd007e4e29cf883.

Change-Id: I7d6eb2584a1348014ce9c3fc3e53b4cf96e30db1
2016-03-29 21:43:27 +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
Mitchell Wills
d24427fabd Add WifiScanner API that accepts a WorkSource for scans
Bug: 27903217
Change-Id: I2303a2b91a4914e6cacc3108d29697f7a2dad056
2016-03-29 14:13: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
Robert Carr
0b10c335c7 Ensure we change SurfaceView size from UI thread.
We need to change the SurfaceView size from the UI thread
so that we can appropriately deliver the SurfaceChanged
callback. We also need to not preserve geometry
in this case, as if we don't update the surface
and layout size together we could get scaling. This still has
some potential for holes, as transactions are not synced with
the parent renderer, but we have other methods to avoid
these in the case of resizing. This fixes the remaining
issues with content sizing and surface view "out of sync".

Bug: 27780983
Bug: 27687126
Bug: 27676101

Change-Id: Idd7864f00e5cf7a4eb32dd66c0b389292a788069
2016-03-29 13:42:06 -07:00
Aga Wronska
198cbf65a4 Fix dialogs layout after keyboard shows up
Change-Id: I58e3984586e33855e95e5c2879e51f565759025b
Fixed: 27900202
2016-03-29 13:37:52 -07: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
Jason Monk
f7d9c49223 QS: Only allow clicking in the expand button
Also ditch the header BG so the panel can feel like one surface, as
a result need to set some clip bounds on the QSPanel to avoid some
collisions between the header and QS.

Bug: 27881430
Change-Id: Ia78c5b8a7a90bd02b97fa448efa06fc056f624ef
2016-03-29 16:29:39 -04: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
Lifu Tang
4fb5dc1e4a Returns the correct elevation in GnssStatus
Bug: 27902867
Change-Id: I57ea191e531305268d4a87f9d444425f20ef7f8e
2016-03-29 13:15:02 -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