197613 Commits

Author SHA1 Message Date
Raph Levien
22ba7869f6 Release text when finishing StaticLayout.Builder
DynamicLayout reuses a StaticLayout.Builder object to avoid having to
allocate. There is a "finish" method that releases any expensive
internal state of the builder object, but it didn't release a
reference to the text object (which in turn may contain references to
lots of other things, especially if it's a Spannable).

This patch releases the text, as well as a few other arrays, at time
of finish.

Bug: 22822416
Change-Id: Icc8b6cd41a9a2d11689df7bd1b9f524c6524f706
2015-07-29 12:34:13 -07:00
George Mount
9c450936aa am c571a9a1: am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
* commit 'c571a9a1d026cbf262cf36a5348f99d1ca0ec835':
  Update data binding for RC1.
2015-07-27 14:49:16 +00:00
George Mount
c0231f26fe am a29cfefe: (-s ours) am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs
* commit 'a29cfefe2c157a28b256771b1dce4653d405dcf1':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.
2015-07-27 14:49:11 +00:00
George Mount
c571a9a1d0 am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
* commit '6397ae6a0aedb8c7d085bb8907fc46a0e5bd7065':
  Update data binding for RC1.
2015-07-27 14:35:50 +00:00
George Mount
a29cfefe2c am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs
* commit '95e6ae3ad1ba8647494f0b5007b7beee76493e03':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.
2015-07-27 14:35:45 +00:00
George Mount
6397ae6a0a Merge "Update data binding for RC1." into mnc-preview-docs 2015-07-27 14:24:34 +00:00
George Mount
95e6ae3ad1 Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs 2015-07-27 14:24:17 +00:00
Chris Wren
11f4cb1bcc Merge "decide interruptions based on current data, not previous data." into mnc-dev 2015-07-27 13:10:11 +00:00
Chris Wren
45a0bb18fe Merge "add ticker to enqueue message for easier debugging" into mnc-dev 2015-07-27 13:09:15 +00:00
Erik Kline
a7bdace262 Merge "Change to connectivitycheck.gstatic.com" into mnc-dev 2015-07-27 02:35:09 +00:00
Jeff Sharkey
8be305dd65 Merge "Also check app-ops on path-permissions." into mnc-dev 2015-07-25 02:05:56 +00:00
Selim Cinek
d9f1a0c3a4 Merge "Fixed wake to unlock when the device has never been unlocked" into mnc-dev 2015-07-25 01:48:16 +00:00
Jorim Jaggi
f325548992 Fix ambient display
Due to a refactoring for touch, wake and unlock for fingerprint
devices PhoneWindowManager now waits for Keyguard to draw its first
frame in all cases, including when screen turns on for pulsing.
However, since in this case the device is not awake, we need to check
for screen on instead of awakeness when proceeding with the wake-up
sequence. Without this change, screen on was blocked forever in the
pulsing case.

Bug: 22605235
Change-Id: Ib6089fd14b673e62347f2c9108d9a6783caa26b7
2015-07-25 01:42:29 +00:00
Selim Cinek
ad7310f013 Fixed wake to unlock when the device has never been unlocked
Previously the fingerprint could still unlock the device
when waking up with the fingerprint sensor, since we were not
checking if it is allowed.

Bug: 22622999
Change-Id: I039a4e0701c1f161f227cf6f1d25e8147548db47
2015-07-24 18:15:43 -07:00
Adam Lesinski
2a493532e6 Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev 2015-07-25 01:14:07 +00:00
Selim Cinek
f8acd1d8d6 Merge "Adapted the behavior when unlocking with fingerprint is not allowed" into mnc-dev 2015-07-25 00:33:14 +00:00
Chris Banes
c174de0ab3 am 5442932a: am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
* commit '5442932a4befd66394fb155ae95a2eaadd2001a9':
  v22.2.1 support api diff
2015-07-24 22:41:35 +00:00
Adrian Roos
384b5d20b6 am a65de4fd: am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit 'a65de4fde99c84ae7c7cab242e8e1e46ee6c0a5d':
  Prevent insanely long passwords from crashing SystemUI
2015-07-24 22:41:26 +00:00
Jeff Sharkey
0e621c3921 Also check app-ops on path-permissions.
Any place that we check permissions we also need to check any
app-ops associated with those permissions.  In the case of providers
with both <provider> and <path-permission> permissions, track and
report the strongest app-ops denial.

Bug: 22718722
Change-Id: I45e62de39b04d16d071558ad980b701667cfcb9a
2015-07-24 15:16:11 -07:00
John Reck
68fbd6a496 Merge "Use process state to filter >= UI_HIDDEN" into mnc-dev 2015-07-24 22:15:47 +00:00
Adrian Roos
4629f1c58c Merge "Fix janky add guest transition" into mnc-dev 2015-07-24 21:42:46 +00:00
Andreas Gampe
9a755e3650 Merge "Frameworks/base: Hand fingerprint to ART" into mnc-dev 2015-07-24 21:25:09 +00:00
Andreas Gampe
e60825033f Frameworks/base: Hand fingerprint to ART
To allow ANR dumps to be symbolized easily, hand the build
fingerprint to the runtime.

Bug: 22693991
Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508
2015-07-24 14:19:44 -07:00
Chris Banes
5442932a4b am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
* commit '7b099152b6bd5844c30464a7c08dde2e22124491':
  v22.2.1 support api diff
2015-07-24 20:19:09 +00:00
Adam Lesinski
515702c29e BatteryStats: Decode wakeup reasons in Java
Wakeup reasons come from drivers and sometimes are malformed UTF-8.
Decode them in Java so we can easily replace malformed characters
and still have user visible strings.

Bug:22368519
Change-Id: Ifade1a7fcdf6545e7e344d74390200c329430e14
2015-07-24 12:56:37 -07:00
Robert Greenwalt
f0bead2801 Merge "DO NOT MERGE Enhance local log." into mnc-dev 2015-07-24 19:54:07 +00:00
Adrian Roos
a65de4fde9 am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit 'b2f8c716e8d2cf575c690b5a360c4efdd9f06bc8':
  Prevent insanely long passwords from crashing SystemUI
2015-07-24 19:45:24 +00:00
Robert Greenwalt
dd6f844129 DO NOT MERGE Enhance local log.
to be reverted with ag/733658
bug:22632129

Change-Id: Id3899ee8e987ccc469394dd4d0c41465c48dc37e
2015-07-24 12:44:03 -07:00
Amith Yamasani
2c5aeeaaaa Merge "Require permission for internal broadcast" into mnc-dev 2015-07-24 19:12:16 +00:00
Fyodor Kupolov
a5e25f33a5 Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev 2015-07-24 17:54:14 +00:00
Andrei Stingaceanu
4579491003 Merge "Disallow dragging text in extracted mode" into mnc-dev 2015-07-24 14:35:48 +00:00
Julia Reynolds
ea00f320ee Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev 2015-07-24 14:34:02 +00:00
Jim Miller
abd35bfc81 Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev 2015-07-24 02:41:00 +00:00
John Reck
c5dce0169b Use process state to filter >= UI_HIDDEN
Bug: 22701182
Change-Id: Ia192016397c8115a19a0dca409aa70dea154c41e
2015-07-24 01:28:04 +00:00
Amith Yamasani
d81f8270be Require permission for internal broadcast
It was possible for other apps to request removal of the guest user
that was handled by an internal receiver in SystemUI.

Fix requires the broadcast sender to have an internal permission
so that only SystemUI can send that broadcast (PendingIntent).

Bug: 22671268
Change-Id: I63a8ced692e6d1cb2872b962ad247a827dbafbc6
2015-07-23 17:59:41 -07:00
Jean-Michel Trivi
7b9968538b Merge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev 2015-07-24 00:46:15 +00:00
John Reck
6b66a4a8a3 use findProcess instead of getProcess
Bug: 22701182
Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672
2015-07-24 00:37:23 +00:00
Amit Mahajan
eea9892d9e Merge "UICC : discard language setting of SIM" into mnc-dev 2015-07-23 23:59:40 +00:00
Adrian Roos
0063e0bcd5 Merge "Disable Keyguard affordances before setup is completed" into mnc-dev 2015-07-23 23:56:37 +00:00
Svetoslav Ganov
28762e61e2 Merge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev 2015-07-23 23:56:31 +00:00
John Reck
8b1154c487 Merge "Move updateMatrix() call to animateCommon" into mnc-dev 2015-07-23 23:48:40 +00:00
Svet Ganov
315c4ac1b6 Keep default permission grants uninstalling a sys package upgrade
bug:22665508

Change-Id: I1cb1e53a8643ddad77f0be9e40d5b504501e06de
2015-07-23 16:47:40 -07:00
Deepanshu Gupta
f199ac84f3 Merge "Set support flag for custom layouts for RecyclerView." into mnc-dev 2015-07-23 23:47:10 +00:00
Deepanshu Gupta
f7712d3524 Set support flag for custom layouts for RecyclerView.
Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4
2015-07-23 16:40:23 -07:00
Yohei Yukawa
0526ee5298 Merge "Don't rely on broadcast intent for waking up input method." into mnc-dev 2015-07-23 23:24:58 +00:00
Jean-Michel Trivi
cab361c9bb MediaPlayer subtitle controller: use debug log instead of warning
Don't use warning log for debug message.

Bug 22698299

Change-Id: Ibe3526fffffc9a7bdcda83c02fd745325db1238b
2015-07-23 23:03:45 +00:00
Deepanshu Gupta
49fcfdd4ba Merge changes I9c294329,Ie4db5d28 into mnc-dev
* changes:
  LayoutLib: translucent sys ui bars
  Move the layout code out of RenderSessionImpl.
2015-07-23 23:02:57 +00:00
Deepanshu Gupta
f33c0f8516 Merge "CalendarView rendering: use R.styleable to find attr." into mnc-dev 2015-07-23 23:02:46 +00:00
Deepanshu Gupta
fc8f4aad73 LayoutLib: translucent sys ui bars
Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
2015-07-23 15:54:26 -07:00
John Reck
49dec430e8 Move updateMatrix() call to animateCommon
Bug: 22667315

HWUI internally always assumes that RenderNode->properties()
has a fully-baked matrix. However, RenderThread animations violate
this and will perform an update of that matrix after they run. This
was missing in the fallback scenario where an animation was
running on a View that is detached from the tree.

If a RenderThread animation is started on an attached view, it becomes
detached, and is then re-attached it will crash in the staging
properties push. The fix for this is to move the call to updateMatrix
from animate() to animateCommon() so that the animateNoDamage()
path will similarly perform the necessary matrix update.

Change-Id: I4c899a6f68659342a6515f1d7f20d3c4af65caf0
2015-07-23 22:37:21 +00:00