OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Add way for the user to forget previously used printers." into klp-dev
Svetoslav [Tue, 5 Nov 2013 03:32:08 +0000 (03:32 +0000)]
Merge "Add way for the user to forget previously used printers." into klp-dev

10 years agoMerge "Add explicit refererences and logging to KeyguardSim/Puk" into klp-dev
Jim Miller [Tue, 5 Nov 2013 03:18:42 +0000 (03:18 +0000)]
Merge "Add explicit refererences and logging to KeyguardSim/Puk" into klp-dev

10 years agoDoc change: Edits to graphics highlights.
Dirk Dougherty [Tue, 5 Nov 2013 01:03:45 +0000 (17:03 -0800)]
Doc change: Edits to graphics highlights.

Change-Id: I9c532b4b38bff1cfeebd6005a54ca26346de03b0

10 years agoAdd explicit refererences and logging to KeyguardSim/Puk
Jim Miller [Tue, 5 Nov 2013 00:47:48 +0000 (16:47 -0800)]
Add explicit refererences and logging to KeyguardSim/Puk

Adds explicit references to the given threads in case they
are the victims of a GC and adds logging to help track down
this issue if not.

Bug 10323372

Change-Id: I8e2fe46e10bbc5d14e631d45d8869b3214213045

10 years agoMerge "Fix bug #11256076 Spinner text is too close from the opening triangle in RTL...
Fabrice Di Meglio [Tue, 5 Nov 2013 00:46:18 +0000 (00:46 +0000)]
Merge "Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales" into klp-dev

10 years agoMerge "Fix bug #11252410 Recents items stuck behind hammerhead navigation panel in...
Fabrice Di Meglio [Tue, 5 Nov 2013 00:45:41 +0000 (00:45 +0000)]
Merge "Fix bug #11252410 Recents items stuck behind hammerhead navigation panel in landscape" into klp-dev

10 years agoMerge "Add PhoneNumberUtils method for CDMA SMS number formatting." into klp-dev
Jake Hamby [Mon, 4 Nov 2013 23:58:27 +0000 (23:58 +0000)]
Merge "Add PhoneNumberUtils method for CDMA SMS number formatting." into klp-dev

10 years agoMerge "Focus security fields before widgets." into klp-dev
Craig Mautner [Mon, 4 Nov 2013 23:55:22 +0000 (23:55 +0000)]
Merge "Focus security fields before widgets." into klp-dev

10 years agoAdd PhoneNumberUtils method for CDMA SMS number formatting.
Jake Hamby [Mon, 4 Nov 2013 23:22:55 +0000 (15:22 -0800)]
Add PhoneNumberUtils method for CDMA SMS number formatting.

For CDMA networks, convert "+" prefix to "011" if the home network
is using the North American Numbering Plan (NANP). New method is
only used for MO SMS messages.

Bug: 11360679
Change-Id: I534e0322b566de3fb49d7333bfcf62cfbfafb78a

10 years agoAdd way for the user to forget previously used printers.
Svetoslav [Mon, 4 Nov 2013 20:30:08 +0000 (12:30 -0800)]
Add way for the user to forget previously used printers.

We keep track of historical printers but some of them may disappear
forever, say the user changes his printer. In such a case the print
system has no idea that the previous printer will never appear so
this change allows the user to remove historical printers.

In the all printers list the user can now long press on a printer
and if the printer is available he can select it from the context
menu. If the printer was used before regardless if it is active the
user may choose to forget it.

bug:11282742

Change-Id: Idc2dda70920ad045149eea1bcfc75ad1992827e9

10 years agoFocus security fields before widgets.
Craig Mautner [Mon, 4 Nov 2013 18:45:22 +0000 (10:45 -0800)]
Focus security fields before widgets.

Focus normally proceeds top down through the view tree. Change the
order of focus so that the security fields have a chance to receive
focus before the widget fields.

Fixes bug 11203748.

Change-Id: Ie7f16e59652edbe64fa8342197fda81b53976360

10 years agoMerge "Doc change: minor fixes to highlights and images." into klp-dev
Dirk Dougherty [Mon, 4 Nov 2013 19:41:12 +0000 (19:41 +0000)]
Merge "Doc change: minor fixes to highlights and images." into klp-dev

10 years agoDoc change: minor fixes to highlights and images.
Dirk Dougherty [Mon, 4 Nov 2013 18:15:46 +0000 (10:15 -0800)]
Doc change: minor fixes to highlights and images.

Change-Id: I9dc52258aff3f97b71ff8b749865f699d3c9c0d2

10 years agoMerge "Layout hidden windows on Configuration change." into klp-dev
Craig Mautner [Mon, 4 Nov 2013 19:32:08 +0000 (19:32 +0000)]
Merge "Layout hidden windows on Configuration change." into klp-dev

10 years agoMerge "PreferenceFragment showing the breadcrumb when not needed." into klp-dev
Svetoslav [Mon, 4 Nov 2013 19:09:49 +0000 (19:09 +0000)]
Merge "PreferenceFragment showing the breadcrumb when not needed." into klp-dev

10 years agoMerge "Don't clear the interacting bit if panel handled touch." into klp-dev
John Spurlock [Mon, 4 Nov 2013 18:25:09 +0000 (18:25 +0000)]
Merge "Don't clear the interacting bit if panel handled touch." into klp-dev

10 years agoMerge "Treat UnsatisfiedLinkError as non-fatal" into klp-dev
Brian Carlstrom [Mon, 4 Nov 2013 17:57:14 +0000 (17:57 +0000)]
Merge "Treat UnsatisfiedLinkError as non-fatal" into klp-dev

10 years agoMerge "Fix action menu visibility callbacks for nested popups" into klp-dev
Adam Powell [Mon, 4 Nov 2013 17:55:23 +0000 (17:55 +0000)]
Merge "Fix action menu visibility callbacks for nested popups" into klp-dev

10 years agoMerge "Fix incorrect content description on action bar home/up" into klp-dev
Adam Powell [Mon, 4 Nov 2013 17:55:05 +0000 (17:55 +0000)]
Merge "Fix incorrect content description on action bar home/up" into klp-dev

10 years agoMerge "use SpannedStringBuilder to build a SpannedString" into klp-dev
Victoria Lease [Mon, 4 Nov 2013 16:23:15 +0000 (16:23 +0000)]
Merge "use SpannedStringBuilder to build a SpannedString" into klp-dev

10 years agoMerge "Compose singleLine & textAllCaps transforms" into klp-dev
Victoria Lease [Mon, 4 Nov 2013 15:53:52 +0000 (15:53 +0000)]
Merge "Compose singleLine & textAllCaps transforms" into klp-dev

10 years agoDon't clear the interacting bit if panel handled touch.
John Spurlock [Mon, 4 Nov 2013 15:28:05 +0000 (10:28 -0500)]
Don't clear the interacting bit if panel handled touch.

Bug:11489729
Change-Id: Ie225cf9ff27f1490643ba4b1c02aa09896bd6724

10 years agoTreat UnsatisfiedLinkError as non-fatal
Brian Carlstrom [Mon, 4 Nov 2013 06:47:11 +0000 (22:47 -0800)]
Treat UnsatisfiedLinkError as non-fatal

Bug: 11466297
Change-Id: I12be43564da37290b3ee52b1858e44f2229711d9

10 years agoMerge "Fix crashes for images that are not PNG or JPEG" into klp-dev
Michael Jurka [Sat, 2 Nov 2013 17:05:17 +0000 (17:05 +0000)]
Merge "Fix crashes for images that are not PNG or JPEG" into klp-dev

10 years agoFix action menu visibility callbacks for nested popups
Adam Powell [Sat, 2 Nov 2013 01:22:11 +0000 (18:22 -0700)]
Fix action menu visibility callbacks for nested popups

When opening a submenu from a popup in ActionMenuPresenter, delegate
the submenu callbacks to the presenter callback registered on the
ActionMenuPresenter. This allows menu visibility callbacks to
propagate properly so that apps that hide their action bars after a
timeout can detect open menus that are deeply nested.

Bug 11429613

Change-Id: I3332886f08d4f9010f0875057c457566301d12ec

10 years agoMerge "Fix flash caused by frame resize code" into klp-dev
Jim Miller [Sat, 2 Nov 2013 01:17:19 +0000 (01:17 +0000)]
Merge "Fix flash caused by frame resize code" into klp-dev

10 years agoCompose singleLine & textAllCaps transforms
Victoria Lease [Fri, 1 Nov 2013 23:34:03 +0000 (16:34 -0700)]
Compose singleLine & textAllCaps transforms

TextView only supports a single TransformationMethod per TextView, and
singleLine and textAllCaps are both implemented as
TransformationMethods. Composing both operations into a single
TransformationMethod gives us all-caps text (if requested by
kg_use_all_caps) on a single line.

Bug: 11421105
Change-Id: I069721b887ea90b8daf2af2cf82081319e499962

10 years agoFix incorrect content description on action bar home/up
Adam Powell [Fri, 1 Nov 2013 23:32:37 +0000 (16:32 -0700)]
Fix incorrect content description on action bar home/up

Some stray code from a previous change caused an erroneous content
description to be set on the wrong view in the action bar. Correct
this and sync with the right behavior.

Bug 10969992

Change-Id: I4deaa3528b4bc222e25354679fa93f8316fa2d70

10 years agoMerge "Fix issue #11223338: Not retaining service started state while restarting...
Dianne Hackborn [Fri, 1 Nov 2013 23:20:08 +0000 (23:20 +0000)]
Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev

10 years agoLayout hidden windows on Configuration change.
Craig Mautner [Fri, 1 Nov 2013 23:12:14 +0000 (16:12 -0700)]
Layout hidden windows on Configuration change.

Apply the test for configuration change to all windows. A year ago
this was the test but CL ag/247731 which fixed b/7428221 limited the
test to just Keyguard windows. A week later CL ag/248223 which fixed
b/7444971 applied the test to Wallpaper as well. Then two days after
that CL ag/249762 which fixed b/7453222 reverted the wallpaper. This
fix reverts the Keyguard qualification and restores the test to all
windows.

This fix has been tested against the repro steps for all three bugs
above. In addition this fixes bug 11033407. The fix for the bug is
described in the bug.

Change-Id: Ie0f4c7cd4697c1689c4f331d572359cf7ce934cf

10 years agoMerge "Move set of persist.sys.dalvik.vm.lib to SystemServer only" into klp-dev
Brian Carlstrom [Fri, 1 Nov 2013 22:51:07 +0000 (22:51 +0000)]
Merge "Move set of persist.sys.dalvik.vm.lib to SystemServer only" into klp-dev

10 years agoFix flash caused by frame resize code
Jim Miller [Tue, 29 Oct 2013 02:08:42 +0000 (19:08 -0700)]
Fix flash caused by frame resize code

This fixes a problem where the frame would resize mid-animation because
the widget frame was being always being resized.

The issue was caused by having an extra fadeOutChallenge() in
onPageSwitching().   The fix is to remove this and handle this case
special for warping in onPageEndWarp()

Fixes bug 11190745

Change-Id: I6dbda4d09c77e3923887f8d41efb2215e1afb1b9

10 years agoMove set of persist.sys.dalvik.vm.lib to SystemServer only
Brian Carlstrom [Fri, 1 Nov 2013 21:51:58 +0000 (14:51 -0700)]
Move set of persist.sys.dalvik.vm.lib to SystemServer only

Bug: 11463182
Bug: 11479647
Change-Id: I38efdecdd65fe3efc9c33b4dc204a64543ae6377

10 years agoRevert "Add PLAY and PAUSE keycodes and remove PLAY_PAUSE keycode."
Matthew Xie [Fri, 1 Nov 2013 20:34:21 +0000 (20:34 +0000)]
Revert "Add PLAY and PAUSE keycodes and remove PLAY_PAUSE keycode."

This reverts commit 7a863b4bdae1d01d4ac972fe8ff8968bbfed6709.

bug 11325212
Change-Id: I8b50aec4ae39894a854583a74bda4db3445d3d67

10 years agoMerge "Handle surrogate pairs in Html.toHtml()" into klp-dev
Victoria Lease [Fri, 1 Nov 2013 20:22:41 +0000 (20:22 +0000)]
Merge "Handle surrogate pairs in Html.toHtml()" into klp-dev

10 years agoMerge "Only call dump when a ViewRoot actually exists" into klp-dev
Michael Wright [Fri, 1 Nov 2013 20:11:48 +0000 (20:11 +0000)]
Merge "Only call dump when a ViewRoot actually exists" into klp-dev

10 years agoOnly call dump when a ViewRoot actually exists
Michael Wright [Fri, 1 Nov 2013 19:42:49 +0000 (12:42 -0700)]
Only call dump when a ViewRoot actually exists

Bug: 11446494
Change-Id: I47e35d7b4d49d6893ba0c9f8ad05b31f91be85d2

10 years agoCheck view and focus invariants after calling into app
Michael Wright [Fri, 1 Nov 2013 00:47:45 +0000 (17:47 -0700)]
Check view and focus invariants after calling into app

When we dispatch input events into the actual application, make sure
the input invariants we rely on haven't changed. If they have, we
drop the event and log why.

Bug: 11399505

Change-Id: Id772e41ca41dc332bb02725ab486e3b10a73c220

10 years agoPreferenceFragment showing the breadcrumb when not needed.
Svetoslav [Fri, 1 Nov 2013 18:47:28 +0000 (11:47 -0700)]
PreferenceFragment showing the breadcrumb when not needed.

The breadcrumb section is used for a single pane mode for showing
the current user location. The breadcrumb should not be shown if
its title and subtitle are empty. The code in PreferenceActivity
onCreate updates the breadcrumb with the title and subtitle in
a single page mode but does not hide it if they are empty. This
change fixes that.

bug:11242762

Change-Id: Ib1ba9e8afd9d0ab2e85d78a65ca7c18489464f6d

10 years agoMerge "Doc change: Extend link to image." into klp-dev
Dirk Dougherty [Fri, 1 Nov 2013 18:55:14 +0000 (18:55 +0000)]
Merge "Doc change: Extend link to image." into klp-dev

10 years agoMerge "Fix weird page snap bug when long pressing on music controls (issue 11420449...
Adam Cohen [Fri, 1 Nov 2013 18:48:42 +0000 (18:48 +0000)]
Merge "Fix weird page snap bug when long pressing on music controls (issue 11420449)" into klp-dev

10 years agoMerge "Manage keyguard nav elements using transitions." into klp-dev
John Spurlock [Fri, 1 Nov 2013 18:48:00 +0000 (18:48 +0000)]
Merge "Manage keyguard nav elements using transitions." into klp-dev

10 years agoMerge "Fixing issues in the TouchExplorer." into klp-dev
Svetoslav [Fri, 1 Nov 2013 18:46:10 +0000 (18:46 +0000)]
Merge "Fixing issues in the TouchExplorer." into klp-dev

10 years agoFixing issues in the TouchExplorer.
Svetoslav [Fri, 1 Nov 2013 18:03:01 +0000 (11:03 -0700)]
Fixing issues in the TouchExplorer.

1. The up event for a long press was not properly adjusted as the
   long pressing finger may not be on top of the accessibility
   focused item.

2. There was a scenario where two finger swipe leads to a crash.
   One finger moves, second finger goes down but no finger moves,
   the first finger goes up, and now the second finger moves. All
   this has to happen before we decided that user is touch exploring.
   Very hard to happen, this is why we could not easily repro the
   crash.

3. We use the two finger vector angle to determine whether the
   user is dragging or not. However, in some cases we were
   unnecessarily waiting too long before performing the check
   and as a result the notification shade on Manta was not
   expandable.

bug:11341530
bug:11189225

Change-Id: Ieea39783444a1c20581f8addfd518d1c11485099

10 years agoDoc change: remove staging urls for chrome and wallet sites.
Dirk Dougherty [Fri, 1 Nov 2013 17:51:59 +0000 (10:51 -0700)]
Doc change: remove staging urls for chrome and wallet sites.

Change-Id: I804d0386a3a518052ac8265cad9d20a8d1f6d462

10 years agoFix issue #11223338: Not retaining service started state while restarting
Dianne Hackborn [Fri, 1 Nov 2013 16:58:45 +0000 (09:58 -0700)]
Fix issue #11223338: Not retaining service started state while restarting

Actually, the state representation seems fine, but there was a problem
we are now hitting where the restart interval could get reset back to
0 when it shouldn't be.  Also tune the restart parameters a bit.

Change-Id: I364f38e52f5387b2ec3f81009ccc78976ff48891

10 years agoManage keyguard nav elements using transitions.
John Spurlock [Mon, 28 Oct 2013 22:40:56 +0000 (18:40 -0400)]
Manage keyguard nav elements using transitions.

Move the logic for managing dimming the navigation bar
elements on the lockscreen into BarTransitions.

Replace search light + camera assets with new
versions at full brightness, and apply 50% dimming
at runtime, including the IME dismiss button.

Remove unused StatusBarManager _NOP hints.

Improve choreography between camera button +
password security (w/ IME).  Fix a few found bugs
in PagedView.

Improve password security unlock transition, manually
fade in back along with the rest of the icons.

Bug:11221659
Change-Id: Ifd1f8c9f400d90542f0ca858b9a4deacabbd518a

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Fri, 1 Nov 2013 14:35:41 +0000 (14:35 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Fri, 1 Nov 2013 14:35:02 +0000 (14:35 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Fri, 1 Nov 2013 14:34:40 +0000 (14:34 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoFix crashes for images that are not PNG or JPEG
Michael Jurka [Thu, 31 Oct 2013 10:07:24 +0000 (11:07 +0100)]
Fix crashes for images that are not PNG or JPEG

Bug: 11342816

Change-Id: Ib8bbd30c1cc2d4f984af889895fb78412a1ab004

10 years agoMerge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev
Brian Carlstrom [Fri, 1 Nov 2013 04:32:45 +0000 (04:32 +0000)]
Merge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev

10 years agoFix weird page snap bug when long pressing on music controls (issue 11420449)
Adam Cohen [Fri, 1 Nov 2013 01:40:59 +0000 (18:40 -0700)]
Fix weird page snap bug when long pressing on music controls (issue 11420449)

Change-Id: Ie789d74c03656b93f26b9afef16356862f1982a8

10 years agoMerge "Better enforcement in DocumentsProvider.call()." into klp-dev
Jeff Sharkey [Fri, 1 Nov 2013 00:56:26 +0000 (00:56 +0000)]
Merge "Better enforcement in DocumentsProvider.call()." into klp-dev

10 years agoMerge "Temporary detached views not properly reported to accessibility layer." into...
Svetoslav [Fri, 1 Nov 2013 00:44:49 +0000 (00:44 +0000)]
Merge "Temporary detached views not properly reported to accessibility layer." into klp-dev

10 years agoMerge "Uninitialized UiAutomationConnection incorrectly enforces caller id." into...
Svetoslav [Fri, 1 Nov 2013 00:31:02 +0000 (00:31 +0000)]
Merge "Uninitialized UiAutomationConnection incorrectly enforces caller id." into klp-dev

10 years agoTemporary detached views not properly reported to accessibility layer.
Svetoslav [Fri, 1 Nov 2013 00:25:01 +0000 (17:25 -0700)]
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

10 years agoMerge "Fix issue #11168649: LRU logic for Chrome renderers seems..." into klp-dev
Dianne Hackborn [Fri, 1 Nov 2013 00:18:12 +0000 (00:18 +0000)]
Merge "Fix issue #11168649: LRU logic for Chrome renderers seems..." into klp-dev

10 years agoFix issue #11168649: LRU logic for Chrome renderers seems...
Dianne Hackborn [Thu, 31 Oct 2013 23:32:44 +0000 (16:32 -0700)]
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

10 years agoUninitialized UiAutomationConnection incorrectly enforces caller id.
Svetoslav [Thu, 31 Oct 2013 23:28:20 +0000 (16:28 -0700)]
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

10 years agoSet persist.sys.dalvik.vm.lib at system server startup
Brian Carlstrom [Thu, 31 Oct 2013 21:56:54 +0000 (14:56 -0700)]
Set persist.sys.dalvik.vm.lib at system server startup

Bug: 11463182
Change-Id: I4409e84570c4e27bf8da36d0aca87812a1c032a6

10 years agoMerge "Remove deprecated API calls to KeyguardManager from statusbar" into klp-dev
Jim Miller [Thu, 31 Oct 2013 22:22:57 +0000 (22:22 +0000)]
Merge "Remove deprecated API calls to KeyguardManager from statusbar" into klp-dev

10 years agoBetter enforcement in DocumentsProvider.call().
Jeff Sharkey [Thu, 31 Oct 2013 21:55:44 +0000 (14:55 -0700)]
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

10 years agoMerge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into...
Svetoslav [Thu, 31 Oct 2013 21:42:06 +0000 (21:42 +0000)]
Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev

10 years agoMerge "Fix leak in TransitionInflater" into klp-dev
Chet Haase [Thu, 31 Oct 2013 21:38:21 +0000 (21:38 +0000)]
Merge "Fix leak in TransitionInflater" into klp-dev

10 years agoRemove deprecated API calls to KeyguardManager from statusbar
Jim Miller [Wed, 30 Oct 2013 20:58:11 +0000 (13:58 -0700)]
Remove deprecated API calls to KeyguardManager from statusbar

Fixes bug 11448304

Change-Id: I3049a20d9320af0425d7a8f08d5aa208e470e292

10 years agoCancel current work in PrintDocumentAdatper if printing is cancelled.
Svetoslav [Thu, 31 Oct 2013 21:27:16 +0000 (14:27 -0700)]
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

10 years agoFix leak in TransitionInflater
Chet Haase [Wed, 30 Oct 2013 13:37:29 +0000 (06:37 -0700)]
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

10 years agoMerge "Use HttpsURLConnection to by pass proxies." into klp-dev
Wink Saville [Thu, 31 Oct 2013 21:18:03 +0000 (21:18 +0000)]
Merge "Use HttpsURLConnection to by pass proxies." into klp-dev

10 years agoDoc change: Extend link to image.
Dirk Dougherty [Thu, 31 Oct 2013 21:16:01 +0000 (14:16 -0700)]
Doc change: Extend link to image.

Change-Id: I240e01af0bad80587951dd46d91af148948cd90f

10 years agoMerge "Doc change: fix url." into klp-dev
Dirk Dougherty [Thu, 31 Oct 2013 21:04:21 +0000 (21:04 +0000)]
Merge "Doc change: fix url." into klp-dev

10 years agoDoc change: fix url.
Dirk Dougherty [Thu, 31 Oct 2013 21:01:56 +0000 (14:01 -0700)]
Doc change: fix url.

Change-Id: Ie62406af515d43d0f4dbd0f89d06823612547dda

10 years agoMerge "Add ZIP download for DevBytes: Immersive Mode." into klp-dev
Scott Main [Thu, 31 Oct 2013 19:20:30 +0000 (19:20 +0000)]
Merge "Add ZIP download for DevBytes: Immersive Mode." into klp-dev

10 years agoMerge "Change PacProxySelector to return unresolved addr" into klp-dev
Jason Monk [Thu, 31 Oct 2013 18:43:53 +0000 (18:43 +0000)]
Merge "Change PacProxySelector to return unresolved addr" into klp-dev

10 years agoMerge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev
John Spurlock [Thu, 31 Oct 2013 18:41:07 +0000 (18:41 +0000)]
Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev

10 years agoChange PacProxySelector to return unresolved addr
Jason Monk [Wed, 30 Oct 2013 16:37:28 +0000 (12:37 -0400)]
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

10 years agoMerge "Revert "Fixed incorrect calculation of dirty invalidation area"" into klp-dev
Chris Craik [Thu, 31 Oct 2013 18:12:04 +0000 (18:12 +0000)]
Merge "Revert "Fixed incorrect calculation of dirty invalidation area"" into klp-dev

10 years agoRevert "Fixed incorrect calculation of dirty invalidation area"
Chris Craik [Thu, 31 Oct 2013 02:49:37 +0000 (19:49 -0700)]
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

10 years agoMerge "Update ic_qs_ime assets to standard brightness." into klp-dev
John Spurlock [Thu, 31 Oct 2013 17:36:05 +0000 (17:36 +0000)]
Merge "Update ic_qs_ime assets to standard brightness." into klp-dev

10 years agoMerge "Doc change: adjust element spacing." into klp-dev
Dirk Dougherty [Thu, 31 Oct 2013 16:50:14 +0000 (16:50 +0000)]
Merge "Doc change: adjust element spacing." into klp-dev

10 years agoDoc change: adjust element spacing.
Dirk Dougherty [Thu, 31 Oct 2013 16:49:00 +0000 (09:49 -0700)]
Doc change: adjust element spacing.

Change-Id: I108dbf80e0be7af8ed9934a2fa39bba9cb080c8b

10 years agoMerge "Doc change: Update landing page for kitkat." into klp-dev
Dirk Dougherty [Thu, 31 Oct 2013 16:46:47 +0000 (16:46 +0000)]
Merge "Doc change: Update landing page for kitkat." into klp-dev

10 years agoDoc change: Update landing page for kitkat.
Dirk Dougherty [Sun, 20 Oct 2013 19:47:43 +0000 (12:47 -0700)]
Doc change: Update landing page for kitkat.

Change-Id: Ia552577811ed1cafe0a7c4f56bf0c1b55f8c61c0

10 years agoMerge "add HCE dev guide" into klp-dev
Scott Main [Thu, 31 Oct 2013 16:38:14 +0000 (16:38 +0000)]
Merge "add HCE dev guide" into klp-dev

10 years agoadd HCE dev guide
Scott Main [Thu, 31 Oct 2013 16:06:59 +0000 (09:06 -0700)]
add HCE dev guide

Change-Id: I48c196f7f4577304b660c52ba5cd847c0cabfaff

10 years agoMerge "docs: Code Samples landing page - listing fix" into klp-dev
Joe Fernandez [Thu, 31 Oct 2013 16:34:11 +0000 (16:34 +0000)]
Merge "docs: Code Samples landing page - listing fix" into klp-dev

10 years agodocs: Code Samples landing page - listing fix
Joe Fernandez [Thu, 31 Oct 2013 16:26:43 +0000 (09:26 -0700)]
docs: Code Samples landing page - listing fix

Change-Id: Id63110642e37bb9232cd1397acf9f47137cd2659

10 years agoMerge "Wrong index while dumping the print sub-system's state." into klp-dev
Svetoslav Ganov [Thu, 31 Oct 2013 16:25:21 +0000 (16:25 +0000)]
Merge "Wrong index while dumping the print sub-system's state." into klp-dev

10 years agoMerge "Update the PdfDocument docs with unsupported operations." into klp-dev
Svetoslav Ganov [Thu, 31 Oct 2013 15:54:16 +0000 (15:54 +0000)]
Merge "Update the PdfDocument docs with unsupported operations." into klp-dev

10 years agoWrong index while dumping the print sub-system's state.
Svetoslav Ganov [Thu, 31 Oct 2013 15:45:20 +0000 (08:45 -0700)]
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

10 years agoUpdate the PdfDocument docs with unsupported operations.
Svetoslav Ganov [Thu, 31 Oct 2013 03:52:04 +0000 (20:52 -0700)]
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

10 years agoMerge "docs: Sample Code landing page - typo fixes" into klp-dev
Joe Fernandez [Thu, 31 Oct 2013 14:53:26 +0000 (14:53 +0000)]
Merge "docs: Sample Code landing page - typo fixes" into klp-dev

10 years agoMove coalescing to callback, optimize KeyguardStatusView.
John Spurlock [Wed, 30 Oct 2013 23:40:48 +0000 (19:40 -0400)]
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

10 years agoMerge "add static landing pages for sample topics" into klp-dev
Scott Main [Thu, 31 Oct 2013 14:22:12 +0000 (14:22 +0000)]
Merge "add static landing pages for sample topics" into klp-dev

10 years agodocs: Sample Code landing page - typo fixes
Joe Fernandez [Thu, 31 Oct 2013 14:21:39 +0000 (07:21 -0700)]
docs: Sample Code landing page - typo fixes

Change-Id: I73e1be3e03bf4d217871cfe273489702292eb4c8

10 years agoadd static landing pages for sample topics
Scott Main [Thu, 31 Oct 2013 14:19:54 +0000 (07:19 -0700)]
add static landing pages for sample topics

Change-Id: I76c04e7916977d426c4d02554f2eb36309996cf4

10 years agoMerge "Doc change: Design guidelines update." into klp-dev
Dirk Dougherty [Thu, 31 Oct 2013 14:07:58 +0000 (14:07 +0000)]
Merge "Doc change: Design guidelines update." into klp-dev

10 years agoDoc change: Design guidelines update.
Dirk Dougherty [Sat, 19 Oct 2013 18:43:41 +0000 (11:43 -0700)]
Doc change: Design guidelines update.

Change-Id: Id37c0bfc1fe7e2c7156aab0ec85df123534c8c96
Bug-id: 11252971 11256762 11256765 11257156 11257769 11276296 11293924 11324992

10 years agoUse HttpsURLConnection to by pass proxies.
Wink Saville [Thu, 31 Oct 2013 13:35:22 +0000 (06:35 -0700)]
Use HttpsURLConnection to by pass proxies.

In isMobileOk attempting to connect to clients3.google.com/generate_204 we
sometimes see a proxy server will not let the connection go to our
server and instead returns 200 instead of 204. By using Https we by pass
proxy servers and we will always connected to our server.

The number of loops is increased from 3 to 4 and half the the retires
will use Http and half will use Https.

I also, added mTestingFailures which can be set to true by setting
persist.checkmp.testfailures to 1. This will cause checkMobileProvisiong
to always fail so we can test https & http.

Bug: 9972012
Change-Id: I870606037dcffe5250843980517ac52218266e02

10 years agoMerge "Catch MissingResourceException caused by bad locale in TTS." into klp-dev
Przemyslaw Szczepaniak [Thu, 31 Oct 2013 12:40:30 +0000 (12:40 +0000)]
Merge "Catch MissingResourceException caused by bad locale in TTS." into klp-dev