OSDN Git Service

android-x86/frameworks-base.git
8 years agoRestrict dock sides after rotation
Jorim Jaggi [Sat, 20 Feb 2016 01:12:19 +0000 (17:12 -0800)]
Restrict dock sides after rotation

Bug: 27167078
Change-Id: If51626b75321eebc277eb2399ee753ffe489642b

8 years agoFix leaking animation
Jorim Jaggi [Sat, 20 Feb 2016 03:33:26 +0000 (19:33 -0800)]
Fix leaking animation

Clear animation when destroying window surface.

Because we are not stepping in animations for windows if they don't
have a surface, we can't use it as a detached wallpaper target
animation.

When the surface was destroyed while animating,
winAnimator.mAnimating was still true, and never got false, because
we didn't call stepAnimation on the WindowAnimator anymore.

Thus, we were constantly animating, using a lot of battery (surface
flinger was constantly pushing frames) and impacting overall system
performance.

Bug: 27276043
Change-Id: I8b0943da0908c85740dc1113aedb573fb440f162

8 years agoMerge "Support drawing circles with drawArc in new pipeline" into nyc-dev
Chris Craik [Sat, 20 Feb 2016 00:18:13 +0000 (00:18 +0000)]
Merge "Support drawing circles with drawArc in new pipeline" into nyc-dev

8 years agoMerge "Cleanup cached state in TestUtils::runOnRenderThread" into nyc-dev
Chris Craik [Sat, 20 Feb 2016 00:13:28 +0000 (00:13 +0000)]
Merge "Cleanup cached state in TestUtils::runOnRenderThread" into nyc-dev

8 years agoSupport drawing circles with drawArc in new pipeline
Chris Craik [Fri, 19 Feb 2016 23:20:35 +0000 (15:20 -0800)]
Support drawing circles with drawArc in new pipeline

bug:26764636

Change-Id: I37d2384fa5e6c1074bb8de85821d58c15659b762

8 years agoMerge "Add Wallpaper.getBitmapAsUser()" into nyc-dev
Vadim Tryshev [Sat, 20 Feb 2016 00:11:40 +0000 (00:11 +0000)]
Merge "Add Wallpaper.getBitmapAsUser()" into nyc-dev

8 years agoMerge "Ensure invalidate is called after start()/reverse()" into nyc-dev
Doris Liu [Sat, 20 Feb 2016 00:04:56 +0000 (00:04 +0000)]
Merge "Ensure invalidate is called after start()/reverse()" into nyc-dev

8 years agoMerge "Fix minor bugs:" into nyc-dev
Arunesh Mishra [Fri, 19 Feb 2016 23:57:58 +0000 (23:57 +0000)]
Merge "Fix minor bugs:" into nyc-dev

8 years agoCleanup cached state in TestUtils::runOnRenderThread
Chris Craik [Fri, 19 Feb 2016 23:57:45 +0000 (15:57 -0800)]
Cleanup cached state in TestUtils::runOnRenderThread

Change-Id: I097217c80db5c509d97ef050633946110fccbc80

8 years agoMerge "Relax protected broadcast check to allow shell." into nyc-dev
Jeff Sharkey [Fri, 19 Feb 2016 23:52:19 +0000 (23:52 +0000)]
Merge "Relax protected broadcast check to allow shell." into nyc-dev

8 years agoRelax protected broadcast check to allow shell.
Jeff Sharkey [Fri, 19 Feb 2016 23:49:26 +0000 (16:49 -0700)]
Relax protected broadcast check to allow shell.

The shell is often used for developer testing, so we shouldn't
require all of its broadcasts to be protected.

Bug: 27273532
Change-Id: Ic6f262dd11223dee5655614aad30365d51e180c5

8 years agoMerge "Clean-up WindowState if exit animation is done before app finishes" into nyc-dev
Wale Ogunwale [Fri, 19 Feb 2016 23:35:39 +0000 (23:35 +0000)]
Merge "Clean-up WindowState if exit animation is done before app finishes" into nyc-dev

8 years agoMerge "NPE Fix in SyncStorageEngine" into nyc-dev
Shreyas Basarge [Fri, 19 Feb 2016 23:31:21 +0000 (23:31 +0000)]
Merge "NPE Fix in SyncStorageEngine" into nyc-dev

8 years agoMerge "Fix a set of random warnings in frameworks/base/" into nyc-dev
Aurimas Liutikas [Fri, 19 Feb 2016 23:20:04 +0000 (23:20 +0000)]
Merge "Fix a set of random warnings in frameworks/base/" into nyc-dev

8 years agoClean-up WindowState if exit animation is done before app finishes
Wale Ogunwale [Fri, 19 Feb 2016 23:18:45 +0000 (15:18 -0800)]
Clean-up WindowState if exit animation is done before app finishes

In ag/862571 we prevent window states from been removed before the
app is stopped since it can still be rendering to the surface.
The CL also left WindowState.mExiting as true after the exit
transition animation runs. This is okay if the app finishes before
the exit animation is done, but if the exit animation finishes before
the app finishes, then we will always think we need to run an exit
animation and not remove the windows when the app and later activity
manager tries to remove the windows.
mExiting is used to mean exiting animation is running, if it is set to
true then all the code assumes an exit animation is still running and
doesn't remove the window state.
- Always set mExiting when animation is done.
- Renamed mExiting to mAnimatingExit so it is more clear what it is used
for
- Allow window state to be removed is the current surface isn't shown.
This should be save since there won't be any visual effect to the user.
- Rename WindowState.mClientRemoveRequested to WindowState.mWindowRemovalAllowed
and move setting it to true into WMS.removeWindow() so it catches all cases.
- Cleaned-up the code some to be a little clearer.

Bug: 27112965
Change-Id: I6f03d3c75b5b7728e42ceadc8703df40a3b4ae63

8 years agoFix minor bugs:
Arunesh Mishra [Thu, 18 Feb 2016 23:31:54 +0000 (15:31 -0800)]
Fix minor bugs:

 - Fix issue when multiple starts cause multiple spurious loads to be sent to
   the native layer.
 - Fix scrolling issue in the native app.

Bug: 27222043
Change-Id: Iddf36a8b68637f478dc23b001ecbde352db3a5f0

8 years agoMerge "Fixed a clicking bug on the lockscreen" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:54 +0000 (23:04 +0000)]
Merge "Fixed a clicking bug on the lockscreen" into nyc-dev

8 years agoMerge "Add support for custom media notifications" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:41 +0000 (23:04 +0000)]
Merge "Add support for custom media notifications" into nyc-dev

8 years agoMerge "Cleaned up the logic for the picture end margin" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:25 +0000 (23:04 +0000)]
Merge "Cleaned up the logic for the picture end margin" into nyc-dev

8 years agoMerge "Media notifications now properly respect font size changes" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:04:14 +0000 (23:04 +0000)]
Merge "Media notifications now properly respect font size changes" into nyc-dev

8 years agoMerge "Adapted the measuring of notification content view" into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:03:58 +0000 (23:03 +0000)]
Merge "Adapted the measuring of notification content view" into nyc-dev

8 years agoMerge "Added the possibility to show custom notifications decorated." into nyc-dev
Selim Cinek [Fri, 19 Feb 2016 23:03:37 +0000 (23:03 +0000)]
Merge "Added the possibility to show custom notifications decorated." into nyc-dev

8 years agoFix configuration calculation when task is non-fullscreen
Jorim Jaggi [Fri, 5 Feb 2016 23:10:33 +0000 (15:10 -0800)]
Fix configuration calculation when task is non-fullscreen

Apparently only the navigation bar is excluded when calculating
Configuration.screenLayout. Make the calculation for non-fullscreen
tasks consistent with fullscreen tasks.

Change-Id: I027e41e49ffe95245116f3d134e0bc93af0ee450

8 years agoAdd Wallpaper.getBitmapAsUser()
Yorke Lee [Fri, 8 Jan 2016 22:12:55 +0000 (14:12 -0800)]
Add Wallpaper.getBitmapAsUser()

Add a new API to allow a wallpaper bitmap to be obtained for
a specific user.

Without this API, using only getWallpaperFile(..., userId), one
can't get a default wallpaper bitmap if the wallpaper is not set.

Bug: 25185253
Change-Id: Ibe1e9a49d22bee08fd4bed415573c1ee28526aea

8 years agoMerge "End staging animators when destroy RootRenderNode" into nyc-dev
Doris Liu [Fri, 19 Feb 2016 22:45:53 +0000 (22:45 +0000)]
Merge "End staging animators when destroy RootRenderNode" into nyc-dev

8 years agoMerge "Revert "Revert "Check RenderNode's owning view before attaching animators...
Doris Liu [Fri, 19 Feb 2016 22:45:14 +0000 (22:45 +0000)]
Merge "Revert "Revert "Check RenderNode's owning view before attaching animators""" into nyc-dev

8 years agoMerge "VectorDrawable native rendering - Step 5 of MANY" into nyc-dev
Doris Liu [Fri, 19 Feb 2016 22:44:51 +0000 (22:44 +0000)]
Merge "VectorDrawable native rendering - Step 5 of MANY" into nyc-dev

8 years agoEnsure invalidate is called after start()/reverse()
Doris Liu [Wed, 17 Feb 2016 23:38:38 +0000 (15:38 -0800)]
Ensure invalidate is called after start()/reverse()

Change-Id: Iec96ada74cc7b845e21b5f0eb208ff7c7b1071ed

8 years agoMerge "Fix clip reveal animation in docked window case" into nyc-dev
Jorim Jaggi [Fri, 19 Feb 2016 22:27:31 +0000 (22:27 +0000)]
Merge "Fix clip reveal animation in docked window case" into nyc-dev

8 years agoEnd staging animators when destroy RootRenderNode
Doris Liu [Fri, 19 Feb 2016 22:20:37 +0000 (14:20 -0800)]
End staging animators when destroy RootRenderNode

When animation happens in a dialog, it is possible for the dialog to
be dismissed and RootRenderNode to be destroyed before we create
animation handle for the staged animators. In that case, we need
to remove the staged animators so they will not run without a
animation handle.

Bug: 26975079
Change-Id: I0c2c6c1b530beaec3984c0b1c410df4fd8f25c95

8 years agoMerge "Improve touch target for the gear beneath a notification" into nyc-dev
Mady Mellor [Fri, 19 Feb 2016 22:15:54 +0000 (22:15 +0000)]
Merge "Improve touch target for the gear beneath a notification" into nyc-dev

8 years agoFix clip reveal animation in docked window case
Jorim Jaggi [Sat, 13 Feb 2016 03:43:39 +0000 (19:43 -0800)]
Fix clip reveal animation in docked window case

- Move ClipRectTB/LRAnimation to wm package, because that's the only
place we use it.
- Extend ClipRectTBAnimation to combine it with translation animation
so the clipping gets applied after the translation.
- Fix clip reveal transitions when a window is docked.
- Make the docked divider minimizing animations synchronized with clip
reveal animation.

Bug: 27154882
Bug: 22174716

Change-Id: If5c94c777f3b51c6f53f6f34cc261bf3439cfc88

8 years agoMerge "New behavior for docked stack when going home" into nyc-dev
Jorim Jaggi [Fri, 19 Feb 2016 22:14:45 +0000 (22:14 +0000)]
Merge "New behavior for docked stack when going home" into nyc-dev

8 years agoMerge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev
Mady Mellor [Fri, 19 Feb 2016 22:06:31 +0000 (22:06 +0000)]
Merge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev

8 years agoMerge changes Iaf1ee1e6,I861cb65d into nyc-dev
Jason Monk [Fri, 19 Feb 2016 21:53:43 +0000 (21:53 +0000)]
Merge changes Iaf1ee1e6,I861cb65d into nyc-dev

* changes:
  Add TileService settings API
  Add QS long-press -> Settings

8 years agoRevert "Revert "Check RenderNode's owning view before attaching animators""
Doris Liu [Fri, 19 Feb 2016 21:46:06 +0000 (21:46 +0000)]
Revert "Revert "Check RenderNode's owning view before attaching animators""

This reverts commit eb40178af3b7c8d925eaf6c1aa0bef739c8ea47e.

Change-Id: I6838ecb35b50847746ee66ac204f14eb5f579b91

8 years agoVectorDrawable native rendering - Step 5 of MANY
Doris Liu [Fri, 19 Feb 2016 21:39:21 +0000 (21:39 +0000)]
VectorDrawable native rendering - Step 5 of MANY

This is reverting the revert of what reverts the revert of the original
implementation. Fourth revert is a charm!

This reverts commit df7fdb1e0bdb5c289bbc08047e5c710185503309.

Change-Id: I6fc3a5accfd8b79c3da31bbc101ad9e9b4d6e7dd

8 years agoFix a set of random warnings in frameworks/base/
Aurimas Liutikas [Fri, 19 Feb 2016 21:44:25 +0000 (13:44 -0800)]
Fix a set of random warnings in frameworks/base/

Bug: 26936282
Change-Id: Ic411d7a1673503d5945f952ebf5a8be964bb54a4

8 years agoAdd TileService settings API
Jason Monk [Fri, 19 Feb 2016 21:43:00 +0000 (16:43 -0500)]
Add TileService settings API

It will be used for long-clicks on TileServices when available.
Otherwise will default back to app info for the app providing the
tile.

Bug: 27269699
Change-Id: Iaf1ee1e6fe6e1357cda32c74bfdc0c26af0f5901

8 years agoAdd QS long-press -> Settings
Jason Monk [Fri, 19 Feb 2016 19:49:42 +0000 (14:49 -0500)]
Add QS long-press -> Settings

Bug: 27269699
Change-Id: I861cb65dbb6609d9c95d5341f5f5aebc3cc519f3

8 years agoMerge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
Glen Kuhne [Fri, 19 Feb 2016 21:39:41 +0000 (21:39 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
am: 70fc162330

* commit '70fc1623301ab5268c54bb203329893893ed35cb':
  Add EID_TIM to ScanResult.InformationElement

8 years agoMerge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev
Glen Kuhne [Fri, 19 Feb 2016 21:35:09 +0000 (21:35 +0000)]
Merge "Add EID_TIM to ScanResult.InformationElement" into mm-wireless-dev

8 years agoRemove extraneous field from batterystats dumpsys
Adam Lesinski [Fri, 19 Feb 2016 20:53:31 +0000 (12:53 -0800)]
Remove extraneous field from batterystats dumpsys

Change-Id: Iea913e993e61d114c499e6218ad0abf9a8e80690

8 years agoMerge "Revert "Fix Canvas memory leak"" into mnc-ub-dev
Diego Perez [Fri, 19 Feb 2016 20:18:28 +0000 (20:18 +0000)]
Merge "Revert "Fix Canvas memory leak"" into mnc-ub-dev
am: 44f92b00d1

* commit '44f92b00d1a060773625de5884fc86e7218e2dd5':
  Revert "Fix Canvas memory leak"

8 years agoMerge "Temporarily enable fine-grained error checking" into nyc-dev
John Reck [Fri, 19 Feb 2016 20:11:54 +0000 (20:11 +0000)]
Merge "Temporarily enable fine-grained error checking" into nyc-dev

8 years agoNew behavior for docked stack when going home
Jorim Jaggi [Fri, 12 Feb 2016 04:11:07 +0000 (20:11 -0800)]
New behavior for docked stack when going home

- We keep the docked stack visible when home task is visible even
though it's not resizable.
- We introduce the a new concept called "minimizing" the docked stack,
which happens when going home. In this state, the docked stack is
clipped of almost completely.
- To achieve that, we introduce TaskStackBoundsAdjustController,
which adjusts the bounds of the docked stack when minimized. Also,
migrate the IME handling to this new class.
- We also need to inform SysUI that it is now minimized so it can
remove the drag affordance on the divider, and also make it a bit
smaller.
- When we detect an app transition, we check whether the home stack
gets visible/invisible. We then start an animation which runs in
sync with the normal app transition. For that we introduce
DockedStackDividerController.animate(), which performs the animation.

Bug: 27137961
Change-Id: I8623bc73cc6872bf28c5b1b8d5795974576811b2

8 years agoMerge "Revert "Fix Canvas memory leak"" into mnc-ub-dev
Diego Perez [Fri, 19 Feb 2016 20:09:08 +0000 (20:09 +0000)]
Merge "Revert "Fix Canvas memory leak"" into mnc-ub-dev

8 years agoRevert "Fix Canvas memory leak"
Diego Perez [Fri, 19 Feb 2016 20:07:44 +0000 (20:07 +0000)]
Revert "Fix Canvas memory leak"

This reverts commit e82bd72b6e7ab3135d3b28fc2c2694d08af45c3d.

Change-Id: Ie9ef25b17d5f725d5054c039992a8cd2912868a6

8 years agoFixed a clicking bug on the lockscreen
Selim Cinek [Fri, 19 Feb 2016 01:10:43 +0000 (17:10 -0800)]
Fixed a clicking bug on the lockscreen

Parts of custom notficications were not singeclickable

Bug: 27247884
Change-Id: I7c52500a77929059b24e8119f50492e0f1399401

8 years agoAdd support for custom media notifications
Selim Cinek [Thu, 18 Feb 2016 18:39:45 +0000 (10:39 -0800)]
Add support for custom media notifications

Custom media notifications can now also be decorated by the system
instead of going fully custom.

Bug: 26961842
Change-Id: I1d85a652b93f10988939b471a14b372671acfaf1

8 years agoCleaned up the logic for the picture end margin
Selim Cinek [Thu, 18 Feb 2016 17:50:48 +0000 (09:50 -0800)]
Cleaned up the logic for the picture end margin

This allows decorated custom remote views to be properly
showing with a large image.

Bug: 24866646
Change-Id: Ie355e503437f19ace2503d42f44bee4bd22f03c8

8 years agoMedia notifications now properly respect font size changes
Selim Cinek [Thu, 18 Feb 2016 01:05:41 +0000 (17:05 -0800)]
Media notifications now properly respect font size changes

Bug: 24866646
Change-Id: I6e38aea518bee1b933fdc8efd460e95eaaaed3b0

8 years agoAdapted the measuring of notification content view
Selim Cinek [Wed, 17 Feb 2016 22:53:05 +0000 (14:53 -0800)]
Adapted the measuring of notification content view

We are now measuring all notifications content views
with AT_MOST but with an upperboundary. This allows us
to put custom views inside our normal views and still not
blow up the small size. Also adapted the dimens not to
clamp the templates

Bug: 24866646
Change-Id: If9053d84a9d91e6bc9964f64b170e3c3260a807d

8 years agoMerge "Use actual lockscreen wallpaper" into nyc-dev
Adrian Roos [Fri, 19 Feb 2016 19:53:19 +0000 (19:53 +0000)]
Merge "Use actual lockscreen wallpaper" into nyc-dev

8 years agoAdded the possibility to show custom notifications decorated.
Selim Cinek [Wed, 17 Feb 2016 02:42:57 +0000 (18:42 -0800)]
Added the possibility to show custom notifications decorated.

Bug: 26961842
Change-Id: I3966a4e6ecb05b9f284ec5b244b2594f78bcb337

8 years agoMerge "Part1 - Don't add padlock if the restriction is not set by admin." into nyc-dev
Sudheer Shanka [Fri, 19 Feb 2016 19:31:44 +0000 (19:31 +0000)]
Merge "Part1 - Don't add padlock if the restriction is not set by admin." into nyc-dev

8 years agoUse actual lockscreen wallpaper
Adrian Roos [Thu, 11 Feb 2016 23:26:42 +0000 (15:26 -0800)]
Use actual lockscreen wallpaper

Bug: 25454162
Change-Id: I30ff02420bc4b72d7e4bf9105f2fd4c8017f5756

8 years agoPart1 - Don't add padlock if the restriction is not set by admin.
Sudheer Shanka [Thu, 11 Feb 2016 17:17:57 +0000 (17:17 +0000)]
Part1 - Don't add padlock if the restriction is not set by admin.

Bug: 26687435
Change-Id: I2fd740b1fa0d76eceedc4dde73e41d779820bbcf

8 years agoMerge "Undo generalization isDownloads > supportsChildren." into nyc-dev
Steve McKay [Fri, 19 Feb 2016 19:17:58 +0000 (19:17 +0000)]
Merge "Undo generalization isDownloads > supportsChildren." into nyc-dev

8 years agoMerge "Remove Notification Topics." into nyc-dev
Julia Reynolds [Fri, 19 Feb 2016 19:17:23 +0000 (19:17 +0000)]
Merge "Remove Notification Topics." into nyc-dev

8 years agoAdd EID_TIM to ScanResult.InformationElement
Glen Kuhne [Wed, 10 Feb 2016 23:08:33 +0000 (15:08 -0800)]
Add EID_TIM to ScanResult.InformationElement

Added EID_TIM to enable parsing of TrafficIndicationMap
InformationElements.

BUG=25691077
Change-Id: I99450f0b720175660486da15d6b13affbdb61adc

8 years agoImprove touch target for the gear beneath a notification
Mady Mellor [Fri, 12 Feb 2016 02:03:48 +0000 (18:03 -0800)]
Improve touch target for the gear beneath a notification

This CL increases the touch target size of the gear beneath
a notification.

It also adds the logic:
- If the gear is displayed and the notification is touched
then the notification slides back over the gear
- If the grey background is touched rather than the gear
  nothing happens

Bug: 22451710
Change-Id: I7c1d8943e066fdd821446c2f90807891d6b74e5c

8 years agoMerge changes Ie427a2d8,I213f1f76 into nyc-dev
Jason Monk [Fri, 19 Feb 2016 18:50:04 +0000 (18:50 +0000)]
Merge changes Ie427a2d8,I213f1f76 into nyc-dev

* changes:
  SysUI Tuner: UI cleanup and grouping
  SysUI Tuner: Night mode v3

8 years agoMerge "media: expose audio sample format in MediaFormat" into nyc-dev
Lajos Molnar [Fri, 19 Feb 2016 18:47:06 +0000 (18:47 +0000)]
Merge "media: expose audio sample format in MediaFormat" into nyc-dev

8 years agoTemporarily enable fine-grained error checking
John Reck [Fri, 19 Feb 2016 18:39:17 +0000 (10:39 -0800)]
Temporarily enable fine-grained error checking

Bug: 27186019

Quick testing shows negligable performance impact, so turn
this on temporarily to track down some GL errors

Change-Id: I5700075d5640af0951d832acfde3179ec7511912

8 years agoMerge "Fix FastXmlSerializerTest" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:22:51 +0000 (18:22 +0000)]
Merge "Fix FastXmlSerializerTest" into mm-wireless-dev
am: 3ca1ccb419

* commit '3ca1ccb419ec56a191d724ff75c6943200c8cebe':
  Fix FastXmlSerializerTest

8 years agoMerge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:19:27 +0000 (18:19 +0000)]
Merge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev
am: acd97e2e0f

* commit 'acd97e2e0fdcc50f20bc4836188e781583b10f1e':
  Remove AsyncChannelTest because it does not test anything

8 years agoMerge "DO NOT MERGE Disable failing test case" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:18:14 +0000 (18:18 +0000)]
Merge "DO NOT MERGE Disable failing test case" into mm-wireless-dev
am: 9272fd8f4c  -s ours

* commit '9272fd8f4c74384927ad6502c57153bf188a66ea':
  DO NOT MERGE Disable failing test case

8 years agoMerge "Update string used as summary when an option is disabled by policy." into...
Sudheer Shanka [Fri, 19 Feb 2016 18:15:32 +0000 (18:15 +0000)]
Merge "Update string used as summary when an option is disabled by policy." into nyc-dev

8 years agoMerge "Fix FastXmlSerializerTest" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:13:58 +0000 (18:13 +0000)]
Merge "Fix FastXmlSerializerTest" into mm-wireless-dev

8 years agoMerge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:11:20 +0000 (18:11 +0000)]
Merge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev

8 years agoMerge "DO NOT MERGE Disable failing test case" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 18:10:54 +0000 (18:10 +0000)]
Merge "DO NOT MERGE Disable failing test case" into mm-wireless-dev

8 years agoMerge "Fix Canvas memory leak" into mnc-ub-dev
Diego Perez [Fri, 19 Feb 2016 18:08:00 +0000 (18:08 +0000)]
Merge "Fix Canvas memory leak" into mnc-ub-dev
am: bad0e07ee9

* commit 'bad0e07ee9163d6b0f0bf73ad591ff6e453199ef':
  Fix Canvas memory leak

8 years agoInitial implementation of dismiss gesture + inline settings icon
Mady Mellor [Fri, 22 Jan 2016 16:03:58 +0000 (08:03 -0800)]
Initial implementation of dismiss gesture + inline settings icon

- Added a view to display / control the gear behind the noti
- Updated SwipeHelper to hide / show the gear based on the gesture
- Only one notification or notification group can show the gear
  at a time

Couple of things left to do that will come in a follow up CL:
- Animation (to / from inline controls, fading gear based on movement)
- For children in a group there needs to be a grey background

Bug: 22451710
Change-Id: I2f93edf48109a82bab0839c73cbaba1535caee9a

8 years agoMerge "Fix Canvas memory leak" into mnc-ub-dev
Diego Perez [Fri, 19 Feb 2016 17:58:16 +0000 (17:58 +0000)]
Merge "Fix Canvas memory leak" into mnc-ub-dev

8 years agoFix Canvas memory leak
Diego Perez [Mon, 1 Feb 2016 11:48:16 +0000 (11:48 +0000)]
Fix Canvas memory leak

Every RenderSession would call the AttachInfo.setAttachInfo but wouldn't
issue a View.dispatchDetachedFromWindow.
This caused some Canvas to be slowly leaked in the DelegateManager in
every session.

Change-Id: I0322767e5fffc6053ce1be852dd8ca904dfaa137

8 years agoMerge "Don't hold a lock while reading shared preferences from disk." into nyc-dev
Svetoslav Ganov [Fri, 19 Feb 2016 17:12:39 +0000 (17:12 +0000)]
Merge "Don't hold a lock while reading shared preferences from disk." into nyc-dev

8 years agoDon't hold a lock while reading shared preferences from disk.
Svet Ganov [Fri, 19 Feb 2016 17:05:04 +0000 (09:05 -0800)]
Don't hold a lock while reading shared preferences from disk.

Shared prefrences loads thir content from disk on a separate
thread to improve performance, however it holds the lock
the whole time  while reading from disk which as a result blocks
operations that don't rely on reading data from being performed
intil load completes, e.g. reguistering a prefernces change
listener does not depend on having the data loaded.

bug:5254577

Change-Id: I5ad67b285631c34d5aadac7138ba8bfaa728cf94

8 years agoMerge "Reset IMMS when the device is unlocked." into nyc-dev
Yohei Yukawa [Fri, 19 Feb 2016 16:04:58 +0000 (16:04 +0000)]
Merge "Reset IMMS when the device is unlocked." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Fri, 19 Feb 2016 15:33:53 +0000 (15:33 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 19 Feb 2016 15:31:25 +0000 (07:31 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 27213136
Bug: 27262078
Change-Id: If76097a0645fbc162dd35af9d74e1ac42a21c9f5

8 years agoProperly map EAP-GTC for TTLS
Paul Stewart [Fri, 19 Feb 2016 15:29:04 +0000 (15:29 +0000)]
Properly map EAP-GTC for TTLS
am: 274042519d

* commit '274042519d84ad837f03572865bc096a537c73fb':
  Properly map EAP-GTC for TTLS

8 years agoProperly map EAP-GTC for TTLS
Paul Stewart [Sat, 16 Jan 2016 02:56:52 +0000 (18:56 -0800)]
Properly map EAP-GTC for TTLS

The "auth=GTC" method was never valid for the TTLS outer
authentication for wpa_supplicant.  Instead, to perform
GTC authentication within TTLS, we should use EAP-GTC.

This CL performs this mapping within WifiEnterpriseConfig.
It accomplishes this by making the EAP Method and Phase 2
Method parameters a part of the internal object state
instead of maintaining this value within the mFields
hashmap.

Further, the problematic "getFields" method is removed
since as this actually provided read/write access to the
entirety of the WifiEnterpriseConfig's internal state.
This was understandably suboptimal.  All callers have
been updated to either use getFieldValue() or to call
a newly added getSupplicantFields() / setSupplicantFields()
methods which make the WifiEnterpriseConfig object a sole
arbiter for the mapping between its internal state and
wpa_supplicant.

In the future it might be good to change this logic to
strip WifiEnterpriseConfig of all of the string hashmap
entirely, leaving WifiEnterpriseConfig as a "struct"
and move supplicant mappings to WifiConfigStore.

Bug:26400915
Change-Id: I866e2f77ad53d9a51c5f61acb9adef522661f721
Test:runtest frameworks-wifi # New unit test in the same topic
Test:cts-tradefed run cts -d --class android.net.wifi.cts.WifiEnterpriseConfigTest

8 years agoMerge "Use UTF32 directly in HarfBuzz<->Skia interface." into nyc-dev
Ben Wagner [Fri, 19 Feb 2016 15:03:47 +0000 (15:03 +0000)]
Merge "Use UTF32 directly in HarfBuzz<->Skia interface." into nyc-dev

8 years agoMerge "Allow widget hosts to see widgets from locked profiles." into nyc-dev
Kenny Guy [Fri, 19 Feb 2016 14:40:06 +0000 (14:40 +0000)]
Merge "Allow widget hosts to see widgets from locked profiles." into nyc-dev

8 years agoAllow widget hosts to see widgets from locked profiles.
Kenny Guy [Mon, 15 Feb 2016 19:04:31 +0000 (19:04 +0000)]
Allow widget hosts to see widgets from locked profiles.

Avoid launchers removing widgets by handling case
where a widget host is in an unlocked parent user and
widget providers are in a locked managed profile.
For this case allow launcher to see the widgets from
non-crypto aware widget providers.
Mask out widgets from locked profiles.
Fix issue with widgets not being masked when adding
new widgets when user is locked / quiet or package
is suspended.

Bug: 26721345
Bug: 27037962
Change-Id: I60b5bd934c1547110e374ab4eefbee6aade37dc6

8 years agoMerge "Track libcore commit aaebe4e16c487da7555cd230265acc211389781d." into nyc-dev
Narayan Kamath [Fri, 19 Feb 2016 13:46:37 +0000 (13:46 +0000)]
Merge "Track libcore commit aaebe4e16c487da7555cd230265acc211389781d." into nyc-dev

8 years agoTrack libcore commit aaebe4e16c487da7555cd230265acc211389781d.
Narayan Kamath [Fri, 19 Feb 2016 11:41:27 +0000 (11:41 +0000)]
Track libcore commit aaebe4e16c487da7555cd230265acc211389781d.

bug: 27186457
Change-Id: Ibd7d246893d9a97c8eea0e80d181cf2a5313b2d3

8 years agoAllow ephemeral users on the split-system-user systems only.
Lenka Trochtova [Wed, 17 Feb 2016 12:55:17 +0000 (13:55 +0100)]
Allow ephemeral users on the split-system-user systems only.

BUG: 27143201

Change-Id: I37f3ca7366648dbf07df39a7a972857e0ff78a9a

8 years agoMerge "Update DevicePolicyManager parent instance documentation" into nyc-dev
Esteban Talavera [Fri, 19 Feb 2016 09:37:22 +0000 (09:37 +0000)]
Merge "Update DevicePolicyManager parent instance documentation" into nyc-dev

8 years agoMerge "Add Java API for secure RTT protocol." into mm-wireless-dev
Wei Wang [Fri, 19 Feb 2016 09:27:19 +0000 (09:27 +0000)]
Merge "Add Java API for secure RTT protocol." into mm-wireless-dev
am: 0db6066c7b

* commit '0db6066c7b0583610769fb0f9bc80ceafedefb75':
  Add Java API for secure RTT protocol.

8 years agoMerge "Add Java API for secure RTT protocol." into mm-wireless-dev
Wei Wang [Fri, 19 Feb 2016 09:22:44 +0000 (09:22 +0000)]
Merge "Add Java API for secure RTT protocol." into mm-wireless-dev

8 years agoMerge "add developer setting for multiprocess webview" into nyc-dev
Toby Sargeant [Fri, 19 Feb 2016 09:14:55 +0000 (09:14 +0000)]
Merge "add developer setting for multiprocess webview" into nyc-dev

8 years agoDO NOT MERGE Disable failing test case
Mitchell Wills [Fri, 19 Feb 2016 06:57:10 +0000 (22:57 -0800)]
DO NOT MERGE Disable failing test case

Bug: 27258801

Change-Id: I832505e0feca9f0abbf627d009d5982a4437bf83

8 years agoFix FastXmlSerializerTest
Mitchell Wills [Fri, 19 Feb 2016 07:43:30 +0000 (23:43 -0800)]
Fix FastXmlSerializerTest

Change-Id: Ie984abae588927e65bdeffa5a6f5c58bd6ba0bf1

8 years agoRemove AsyncChannelTest because it does not test anything
Mitchell Wills [Fri, 19 Feb 2016 07:37:14 +0000 (23:37 -0800)]
Remove AsyncChannelTest because it does not test anything

Change-Id: I7d3fe580a8c32ef3bd10895b51a7fc436f79919f

8 years agoMerge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev
Lorenzo Colitti [Fri, 19 Feb 2016 06:08:15 +0000 (06:08 +0000)]
Merge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev
am: 5947d11119

* commit '5947d11119d2ca1426d358a6850bd5a8d8490ab5':
  Move tests for com.android.internal.util out of coretests

8 years agoMerge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev
Lorenzo Colitti [Fri, 19 Feb 2016 06:04:25 +0000 (06:04 +0000)]
Merge "Move tests for com.android.internal.util out of coretests" into mm-wireless-dev

8 years agoMerge "DO NOT MERGE Add a new WakeupMessage class" into mm-wireless-dev
Mitchell Wills [Fri, 19 Feb 2016 05:56:04 +0000 (05:56 +0000)]
Merge "DO NOT MERGE Add a new WakeupMessage class" into mm-wireless-dev
am: 019fb9f4e4  -s ours

* commit '019fb9f4e419da4aacfac17ea89112a2f410ecf5':
  DO NOT MERGE Add a new WakeupMessage class

8 years agoMove tests for com.android.internal.util out of coretests
Lorenzo Colitti [Fri, 19 Feb 2016 04:32:30 +0000 (13:32 +0900)]
Move tests for com.android.internal.util out of coretests

These are very simple tests with no dependencies, and moving them
out of FrameworksCoreTests makes it possible to iterate much more
quickly.  "runtest frameworks-core" takes almost a minute just to
push to the device, before any tests even start running.

Bug: 25691379
Change-Id: I8d99316a5940e0171883b97c578f9a6882b699a0