114233 Commits

Author SHA1 Message Date
Baligh Uddin
2bc2574e60 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:34:40 +00:00
Michael Jurka
b2552648ce Fix crashes for images that are not PNG or JPEG
Bug: 11342816

Change-Id: Ib8bbd30c1cc2d4f984af889895fb78412a1ab004
2013-11-01 13:31:14 +01:00
Brian Carlstrom
e6411e6810 Merge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev 2013-11-01 04:32:46 +00:00
Adam Cohen
3f1c3c7436 Fix weird page snap bug when long pressing on music controls (issue 11420449)
Change-Id: Ie789d74c03656b93f26b9afef16356862f1982a8
2013-10-31 18:41:59 -07:00
Jeff Sharkey
c09b6a46a3 Merge "Better enforcement in DocumentsProvider.call()." into klp-dev 2013-11-01 00:56:26 +00:00
Svetoslav
a9f28eea36 Merge "Temporary detached views not properly reported to accessibility layer." into klp-dev 2013-11-01 00:44:50 +00:00
Svetoslav
a84e1197f5 Merge "Uninitialized UiAutomationConnection incorrectly enforces caller id." into klp-dev 2013-11-01 00:31:02 +00:00
Svetoslav
d4bdd6befa Temporary detached views not properly reported to accessibility layer.
A view may be temporary detached. While in this state the view
state may change for which we fire accessibility events. Clients
use them to know when the view changed and what the change is.
However, detached views do not fire accessibility events.
Hence, a client may hold a stale AccessibilityNodeInfo since
the changes to its source view happened in a temporary detached
state.

bug:11388752

Change-Id: I9052700ca9195841cc2881b65c17f5615e6f71fb
2013-10-31 17:25:06 -07:00
Dianne Hackborn
fbefe9bf74 Merge "Fix issue #11168649: LRU logic for Chrome renderers seems..." into klp-dev 2013-11-01 00:18:12 +00:00
Dianne Hackborn
db92608de9 Fix issue #11168649: LRU logic for Chrome renderers seems...
...not to work on KitKat (was: Janky exit animation)

Reworking the LRU list (splitting it into an activity vs. empty
section) accidentally broken the old behavior of "client activity"
processes being prioritized with activity processes.  In fact, we
were no longer marking "client activity" processes at all.

In this change, we rework how we manage "client activity" processes
by putting them on the main activity LRU section.  This is generally
simple -- ActiveServices now keeps track of whether a process is
a "client activity" process based on its bindings, and updateLruProcess
treats these as regular activity processes.  However, we don't want
to allow processes doing this to spam our LRU list so that we lose
everything else, so there is some additional complexity in managing
that list where we spread client activity processes across is so
that the intermingle with other activity processes.

The rest of the change is fairly simple -- the old client activity
process management is gone, but that doesn't matter because it wasn't
actually running any more.  There is a new argument to updateLruProcess
to indicate a client process it comes from (since we now need to update
this based on bindings) which is just used to limit how high in the
LRU list we can move things.  The ProcessRecord.hasActivities field is
simply removied, because ProcessRecord.activities.size() > 0 means the
same thing, and that is actually what all of the key mechanisms are using
at this point.

Finally, note there is some commented out code of a new way to manage
the LRU movement.  This isn't in use, but something I would like to
move to in the next release so it is staying there for now for further
development.

Change-Id: Id8a21b4e32bb5aa9c8e7d443de4b658487cfbe18
2013-10-31 16:32:44 -07:00
Svetoslav
9663fd09e9 Uninitialized UiAutomationConnection incorrectly enforces caller id.
When a client of a UiAutomationConnection is set it remembers its UID
and allows subsequent operations only from this UID. The connection
If the connection was not used, i.e. its client is not set, and an
attempt to destroy it is made the connection enforces the caller UID
to be that of the owner but it does not have an owner yet. Now if the
destroy method is called on a connection that is never used (has no
client) we do not enforce caller UID.

bug:11465888

Change-Id: I739dfc45e772ea970b6ab384e4420184724333a3
2013-10-31 16:28:24 -07:00
Ruben Brunk
decfe95fce gcam: Avoid leaking repeating CaptureRequests.
Bug: 11352359
Change-Id: I598416c08c0a7c3e5a8054a4d80ed29d82870bd2
2013-10-31 15:33:46 -07:00
Brian Carlstrom
ad46405358 Set persist.sys.dalvik.vm.lib at system server startup
Bug: 11463182
Change-Id: I4409e84570c4e27bf8da36d0aca87812a1c032a6
2013-10-31 15:29:40 -07:00
Jim Miller
43ef1c8c34 Merge "Remove deprecated API calls to KeyguardManager from statusbar" into klp-dev 2013-10-31 22:22:58 +00:00
Jeff Sharkey
8a2998eade Better enforcement in DocumentsProvider.call().
Use ContentProvider.enforceWritePermissionInner() to handle all edge
cases around checking if caller has write permissions.  This fixes
bug where call() would throw if caller and provider were the same app.

Bug: 11464234
Change-Id: Iace8e0e4243d56ed1cdcc9680383103975107036
2013-10-31 14:55:44 -07:00
Svetoslav
6ce161d176 Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev 2013-10-31 21:42:06 +00:00
Chet Haase
5747919fed Merge "Fix leak in TransitionInflater" into klp-dev 2013-10-31 21:38:21 +00:00
Jim Miller
a999d463c1 Remove deprecated API calls to KeyguardManager from statusbar
Fixes bug 11448304

Change-Id: I3049a20d9320af0425d7a8f08d5aa208e470e292
2013-10-31 14:32:29 -07:00
Svetoslav
d270cb9264 Cancel current work in PrintDocumentAdatper if printing is cancelled.
Layout and write may take some time during which the user can
cancel printing. Currently we wait for the last operation,
being write or layout, to complete before closing the print
dialog. Now in such a scenario we request a cancellation of
the ongoing operation.

bug:11329523

Change-Id: Ia9d747163cc73509369a86c8b5afc83b7ee54859
2013-10-31 14:30:58 -07:00
Chet Haase
58ad12208a Fix leak in TransitionInflater
A static map in TransitionInflater keyed off of Context instances,
which could cause contexts/activities to leak over time. This
fix removes that map and simply creates a new inflater each time.
The savings of the cached inflater was minimal an unnecessary, and the
intended sharing is in the context embedded in the inflater anyway.

Issue #11436919 leak in TransitionInflator

Change-Id: Ic05ca47f57723bd572bb6143df4035d66eedf5ad
2013-10-31 14:25:56 -07:00
Wink Saville
b4f673e25f Merge "Use HttpsURLConnection to by pass proxies." into klp-dev 2013-10-31 21:18:03 +00:00
Dirk Dougherty
9e45568cdb Doc change: Extend link to image.
Change-Id: I240e01af0bad80587951dd46d91af148948cd90f
2013-10-31 14:16:01 -07:00
Dirk Dougherty
2761791ab5 Merge "Doc change: fix url." into klp-dev 2013-10-31 21:04:21 +00:00
Dirk Dougherty
0d18ac65cc Doc change: fix url.
Change-Id: Ie62406af515d43d0f4dbd0f89d06823612547dda
2013-10-31 14:01:56 -07:00
Scott Main
932edc973e Merge "Add ZIP download for DevBytes: Immersive Mode." into klp-dev 2013-10-31 19:20:31 +00:00
Jason Monk
86f5a1499b Merge "Change PacProxySelector to return unresolved addr" into klp-dev 2013-10-31 18:43:53 +00:00
John Spurlock
a0bc738f46 Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev 2013-10-31 18:41:08 +00:00
Jason Monk
179d6e8e20 Change PacProxySelector to return unresolved addr
This was found by a bug in Firefox where it expects the addresses from a
ProxySelector to be unresolved.  Since ProxySelectorImpl returns unresolved
addresses the PAC version should as well to avoid breaking apps.

The ProxyServer also needed to be updated to reflect this change as it was
expecting a resolved InetSocketAddress.

Bug: 11443853
Change-Id: I3a4e9e248d22d7808603c147660df708e01cdf82
2013-10-31 14:17:48 -04:00
Chris Craik
b320f4d5a6 Merge "Revert "Fixed incorrect calculation of dirty invalidation area"" into klp-dev 2013-10-31 18:12:05 +00:00
Chris Craik
7546a4bea7 Revert "Fixed incorrect calculation of dirty invalidation area"
bug:11351836

Because SeekBar's thumb Drawable (among others) is positioned without
padding offset baked in, include that offset when invalidating.

This revert fixes invalidate positioning in the system volume SeekBar,
where the original CL broke full redrawing of the thumb Drawable when
it switched states.

This reverts commit e9018f7716d3d2f61602c07c273674585482653d.

Change-Id: I5b3b07e47f466269f8d349e9a63dc29bf213120b
2013-10-31 10:45:24 -07:00
John Spurlock
b207ea9609 Merge "Update ic_qs_ime assets to standard brightness." into klp-dev 2013-10-31 17:36:06 +00:00
Dirk Dougherty
8097573dcd Merge "Doc change: adjust element spacing." into klp-dev 2013-10-31 16:50:14 +00:00
Dirk Dougherty
f810dc2e35 Doc change: adjust element spacing.
Change-Id: I108dbf80e0be7af8ed9934a2fa39bba9cb080c8b
2013-10-31 09:49:00 -07:00
Dirk Dougherty
0a5e5bd98c Merge "Doc change: Update landing page for kitkat." into klp-dev 2013-10-31 16:46:47 +00:00
Dirk Dougherty
f42010b171 Doc change: Update landing page for kitkat.
Change-Id: Ia552577811ed1cafe0a7c4f56bf0c1b55f8c61c0
2013-10-31 09:45:51 -07:00
Scott Main
8b0ec97788 Merge "add HCE dev guide" into klp-dev 2013-10-31 16:38:14 +00:00
Scott Main
c988ee664e add HCE dev guide
Change-Id: I48c196f7f4577304b660c52ba5cd847c0cabfaff
2013-10-31 09:36:54 -07:00
Joe Fernandez
7b8557dab4 Merge "docs: Code Samples landing page - listing fix" into klp-dev 2013-10-31 16:34:11 +00:00
Joe Fernandez
24807d7908 docs: Code Samples landing page - listing fix
Change-Id: Id63110642e37bb9232cd1397acf9f47137cd2659
2013-10-31 09:26:43 -07:00
Svetoslav Ganov
da59cd60b1 Merge "Wrong index while dumping the print sub-system's state." into klp-dev 2013-10-31 16:25:21 +00:00
Svetoslav Ganov
8856af5ac3 Merge "Update the PdfDocument docs with unsupported operations." into klp-dev 2013-10-31 15:54:16 +00:00
Svetoslav Ganov
3cb2be97a2 Wrong index while dumping the print sub-system's state.
The wrong method was used when getting the user states to dump
and as a result only the state for the current user was dumped
as we get an exception for the other users.

bug:11457875

Change-Id: I9a3bcac01f1f1cf4f6e72aefff7cff2e0c6bca94
2013-10-31 08:45:23 -07:00
Svetoslav Ganov
8db45b844b Update the PdfDocument docs with unsupported operations.
The PDF generating canvas we use does not yet support all
drawing operations. This change adds docs which operations
are not yet supported.

Change-Id: I8d5ee8c1e2a473ba783b5e62f23ab90a54bbf106
2013-10-31 08:10:12 -07:00
Joe Fernandez
f61c147557 Merge "docs: Sample Code landing page - typo fixes" into klp-dev 2013-10-31 14:53:26 +00:00
John Spurlock
385a63d56a Move coalescing to callback, optimize KeyguardStatusView.
Move the recent keyguard hidden coalescing down to the callback
level.  The lifetime of each callback can be short, make sure
they see visibility changes at least once for each change local
to their lifetime.

KeyguardStatusView.refresh() is called multiple times, and instances
are recreated often.  This results in expensive computations
filling the sysui/keyguard ui queue, adding to overall sluggishness.
Traceview points to DateFormat.getBestDateTimePattern as the
main culprit.

As of this change, refresh() will only call the expensive date pattern
computations when absolutely necessary, resulting in better
performance turning the screen off/on.

Bug:11221659
Bug:11447043
Change-Id: I3d4105af7db608803b82d8ef0ff141e42c154257
2013-10-31 10:49:50 -04:00
Scott Main
161406df5d Merge "add static landing pages for sample topics" into klp-dev 2013-10-31 14:22:12 +00:00
Joe Fernandez
5780db1edc docs: Sample Code landing page - typo fixes
Change-Id: I73e1be3e03bf4d217871cfe273489702292eb4c8
2013-10-31 07:21:39 -07:00
Scott Main
152e768335 add static landing pages for sample topics
Change-Id: I76c04e7916977d426c4d02554f2eb36309996cf4
2013-10-31 07:19:54 -07:00
Dirk Dougherty
857d58095d Merge "Doc change: Design guidelines update." into klp-dev 2013-10-31 14:07:59 +00:00
Dirk Dougherty
0b734038a6 Doc change: Design guidelines update.
Change-Id: Id37c0bfc1fe7e2c7156aab0ec85df123534c8c96
Bug-id: 11252971 11256762 11256765 11257156 11257769 11276296 11293924 11324992
2013-10-31 06:59:18 -07:00