233483 Commits

Author SHA1 Message Date
John Reck
412eee17cd Merge "Temporarily enable fine-grained error checking" into nyc-dev 2016-02-19 20:11:56 +00:00
Jorim Jaggi
42625d1bc7 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
2016-02-19 12:11:11 -08:00
Diego Perez
44f92b00d1 Merge "Revert "Fix Canvas memory leak"" into mnc-ub-dev 2016-02-19 20:09:09 +00:00
Diego Perez
cf93572889 Revert "Fix Canvas memory leak"
This reverts commit e82bd72b6e7ab3135d3b28fc2c2694d08af45c3d.

Change-Id: Ie9ef25b17d5f725d5054c039992a8cd2912868a6
2016-02-19 20:07:44 +00:00
Selim Cinek
34eda5ed70 Fixed a clicking bug on the lockscreen
Parts of custom notficications were not singeclickable

Bug: 27247884
Change-Id: I7c52500a77929059b24e8119f50492e0f1399401
2016-02-19 11:54:43 -08:00
Selim Cinek
03eb3b7c44 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
2016-02-19 11:54:42 -08:00
Selim Cinek
247fa01931 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
2016-02-19 11:54:41 -08:00
Selim Cinek
d2feb63aaf Media notifications now properly respect font size changes
Bug: 24866646
Change-Id: I6e38aea518bee1b933fdc8efd460e95eaaaed3b0
2016-02-19 11:54:41 -08:00
Selim Cinek
f619ffccd7 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
2016-02-19 11:54:15 -08:00
Adrian Roos
6e99febd18 Merge "Use actual lockscreen wallpaper" into nyc-dev 2016-02-19 19:53:20 +00:00
Selim Cinek
593610c248 Added the possibility to show custom notifications decorated.
Bug: 26961842
Change-Id: I3966a4e6ecb05b9f284ec5b244b2594f78bcb337
2016-02-19 11:52:12 -08:00
Sudheer Shanka
f498c8ddc1 Merge "Part1 - Don't add padlock if the restriction is not set by admin." into nyc-dev 2016-02-19 19:31:47 +00:00
Tao Bao
e8a403d57c Add support for update-on-boot feature.
Add a separate system service RecoverySystemService to handle recovery
related requests (calling uncrypt to de-encrypt the OTA package on the
/data partition, setting up bootloader control block (aka BCB) and etc).

We used to trigger uncrypt in ShutdownThread before rebooting into
recovery. Now we expose new SystemApi (RecoverySystem.processPackage())
to allow the caller (e.g. GmsCore) to call that upfront before
initiating a reboot. This will reduce the reboot time and get rid of the
progress bar ("processing update package"). However, we need to reserve
the functionality in ShutdownThread to optionally call uncrypt if
finding that's still needed.

In order to support the update-on-boot feature, we also add new
SystemApis scheduleUpdateOnBoot() and cancelScheduledUpdate() into
android.os.RecoverySystem. They allow the caller (e.g. GmsCore) to
schedule / cancel an update by setting up the BCB, which will be read by
the bootloader and the recovery image. With the new SystemApis, an
update package can be processed (uncrypt'd) in the background and
scheduled to be installed at the next boot.

Bug: 26830925
Change-Id: Ic606fcf5b31c54ce54f0ab12c1768fef0fa64560
2016-02-19 11:31:45 -08:00
Adrian Roos
e381c169fc Use actual lockscreen wallpaper
Bug: 25454162
Change-Id: I30ff02420bc4b72d7e4bf9105f2fd4c8017f5756
2016-02-19 11:29:16 -08:00
Sudheer Shanka
a8fbbb30ea Part1 - Don't add padlock if the restriction is not set by admin.
Bug: 26687435
Change-Id: I2fd740b1fa0d76eceedc4dde73e41d779820bbcf
2016-02-19 19:21:57 +00:00
Steve McKay
fdfd5b60fc Merge "Undo generalization isDownloads > supportsChildren." into nyc-dev 2016-02-19 19:17:59 +00:00
Julia Reynolds
73d96fb4bb Merge "Remove Notification Topics." into nyc-dev 2016-02-19 19:17:25 +00:00
Siyamed Sinir
c7ff969b47 JavaDoc for ReplacementSpan getSize & draw functions.
Added JavaDoc for ReplacementSpan’s getSize and draw functions.

Bug: 20616288
Change-Id: I033ae82b5de672c508d8cbcd69e942c236b2e674
2016-02-19 11:15:09 -08:00
Glen Kuhne
b6cd6fa5a7 Add EID_TIM to ScanResult.InformationElement
Added EID_TIM to enable parsing of TrafficIndicationMap
InformationElements.

BUG=25691077
Change-Id: I99450f0b720175660486da15d6b13affbdb61adc
2016-02-19 10:54:51 -08:00
Mady Mellor
f062580d39 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
2016-02-19 10:52:06 -08:00
Jason Monk
ea168d229d Merge changes Ie427a2d8,I213f1f76 into nyc-dev
* changes:
  SysUI Tuner: UI cleanup and grouping
  SysUI Tuner: Night mode v3
2016-02-19 18:50:05 +00:00
Lajos Molnar
0ab076c5c9 Merge "media: expose audio sample format in MediaFormat" into nyc-dev 2016-02-19 18:47:06 +00:00
John Reck
6cc3a25db5 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
2016-02-19 10:39:17 -08:00
Mitchell Wills
8e2602ea26 Merge "Fix FastXmlSerializerTest" into mm-wireless-dev
am: 3ca1ccb419

* commit '3ca1ccb419ec56a191d724ff75c6943200c8cebe':
  Fix FastXmlSerializerTest
2016-02-19 18:22:51 +00:00
Mitchell Wills
e8bab3cd37 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
2016-02-19 18:19:27 +00:00
Mitchell Wills
9a5c5fba25 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
2016-02-19 18:18:14 +00:00
Sudheer Shanka
82f927bd28 Merge "Update string used as summary when an option is disabled by policy." into nyc-dev 2016-02-19 18:15:33 +00:00
Mitchell Wills
3ca1ccb419 Merge "Fix FastXmlSerializerTest" into mm-wireless-dev 2016-02-19 18:13:58 +00:00
Mitchell Wills
acd97e2e0f Merge "Remove AsyncChannelTest because it does not test anything" into mm-wireless-dev 2016-02-19 18:11:20 +00:00
Mitchell Wills
9272fd8f4c Merge "DO NOT MERGE Disable failing test case" into mm-wireless-dev 2016-02-19 18:10:54 +00:00
Diego Perez
1d3c41e563 Merge "Fix Canvas memory leak" into mnc-ub-dev
am: bad0e07ee9

* commit 'bad0e07ee9163d6b0f0bf73ad591ff6e453199ef':
  Fix Canvas memory leak
2016-02-19 18:08:00 +00:00
Mady Mellor
4b80b1025f 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
2016-02-19 10:04:27 -08:00
Diego Perez
bad0e07ee9 Merge "Fix Canvas memory leak" into mnc-ub-dev 2016-02-19 17:58:17 +00:00
Diego Perez
e82bd72b6e 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
2016-02-19 17:57:36 +00:00
Polina Bondarenko
f8754ac212 Added hardwareproperties SystemService
Add HardwarePropertiesManagerService which call native methods to
get CPU, GPU, battery temperatures, CPU usage info, fan speeds.
Restrict hardware properties retrieval only for device and profile
owners.

Bug: 26945055
Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
2016-02-19 18:24:29 +01:00
Svetoslav Ganov
5350306989 Merge "Don't hold a lock while reading shared preferences from disk." into nyc-dev 2016-02-19 17:12:40 +00:00
Svet Ganov
96db26032e 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
2016-02-19 09:11:39 -08:00
Esteban Talavera
552a561b5c Updated removeActiveAdmin documentation
Bug: 13176294
Change-Id: I0554c2c9a1f4aaa4283474ab7810678004985a2f
2016-02-19 17:02:24 +00:00
Yohei Yukawa
9f1ab4fcc7 Merge "Reset IMMS when the device is unlocked." into nyc-dev 2016-02-19 16:04:59 +00:00
Shreyas Basarge
cf939c1409 Revert "Add defaultPeriodic to every authority"
This reverts commit 6275d4900727415807455af400083a7cf75f8edd. The fix has been pushed to droidfood. It should be reverted now.

Change-Id: I656c1a49fe8b2db5dc427119ec3278c6bfdcd570
2016-02-19 15:45:29 +00:00
Geoff Mendal
b0e07aa0d6 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-19 15:33:54 +00:00
Geoff Mendal
2b2332b47c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 27213136
Bug: 27262078
Change-Id: If76097a0645fbc162dd35af9d74e1ac42a21c9f5
2016-02-19 15:33:26 +00:00
Paul Stewart
173aa05908 Properly map EAP-GTC for TTLS
am: 274042519d

* commit '274042519d84ad837f03572865bc096a537c73fb':
  Properly map EAP-GTC for TTLS
2016-02-19 15:29:04 +00:00
Paul Stewart
274042519d 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
2016-02-19 07:10:31 -08:00
Ben Wagner
31af215b26 Merge "Use UTF32 directly in HarfBuzz<->Skia interface." into nyc-dev 2016-02-19 15:03:48 +00:00
Kenny Guy
477ecd7622 Merge "Allow widget hosts to see widgets from locked profiles." into nyc-dev 2016-02-19 14:40:07 +00:00
Kenny Guy
33f9a9c21a 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
2016-02-19 14:31:29 +00:00
Narayan Kamath
92584673d6 Merge "Track libcore commit aaebe4e16c487da7555cd230265acc211389781d." into nyc-dev 2016-02-19 13:46:38 +00:00
Calin Juravle
d96d2ddc23 Change the location of profile files.
Bug: 26719109
Bug: 26563023
Change-Id: I8e9e03a58a7926c72283788c5eb49ae680e85cc3
2016-02-19 13:42:02 +00:00
Narayan Kamath
02545f5dd2 Track libcore commit aaebe4e16c487da7555cd230265acc211389781d.
bug: 27186457
Change-Id: Ibd7d246893d9a97c8eea0e80d181cf2a5313b2d3
2016-02-19 11:41:27 +00:00