OSDN Git Service

android-x86/frameworks-base.git
13 years agoReduce the number of notification icons on narrow screens.
satok [Fri, 27 May 2011 10:15:01 +0000 (19:15 +0900)]
Reduce the number of notification icons on narrow screens.

For devices with minimum width between 600 and 720 dp, show
only 3 icons (and then, only in portrait). All other
configurations will show 5.

Bug: 4501374
Change-Id: I88168560fc2876c26cd3eb57f2db0b0cfe8b4fdd

13 years agoFix various places that were using the wrong display metrics.
Dianne Hackborn [Sat, 28 May 2011 00:09:19 +0000 (17:09 -0700)]
Fix various places that were using the wrong display metrics.

Change-Id: I1ac2a0c4a1b7c851dbc99d26f295c7dd49b0bd5c

13 years agoFix compat mode bugs when updating apps.
Dianne Hackborn [Fri, 27 May 2011 23:45:31 +0000 (16:45 -0700)]
Fix compat mode bugs when updating apps.

No longer accidentally puts an app into compatibility mode.

Also various cleanup, freezing screen while switching between modes.

Change-Id: Ic1b3958be7800189a93f68e9dee3c5adfc45fe57

13 years agoAdd "tv" density for 720p screens.
Dianne Hackborn [Fri, 27 May 2011 20:40:26 +0000 (13:40 -0700)]
Add "tv" density for 720p screens.

Change-Id: I028969b007f2fceea66947d77a2ae31ef1d1a630

13 years agoMerge "Small fixes and cleanup of resource config handling." into honeycomb-mr2
Dianne Hackborn [Fri, 27 May 2011 19:40:39 +0000 (12:40 -0700)]
Merge "Small fixes and cleanup of resource config handling." into honeycomb-mr2

13 years agoSmall fixes and cleanup of resource config handling.
Dianne Hackborn [Fri, 27 May 2011 19:09:11 +0000 (12:09 -0700)]
Small fixes and cleanup of resource config handling.

Change-Id: I402c31b68f2b4825cb4c610a65ee8e1da471c7bb

13 years agoMerge "Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."" into honeycomb-mr2
James Dong [Fri, 27 May 2011 18:26:24 +0000 (11:26 -0700)]
Merge "Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."" into honeycomb-mr2

13 years agoRevert "DO NOT MERGE Correctly implement the CLEAR xfermode."
James Dong [Fri, 27 May 2011 18:17:39 +0000 (11:17 -0700)]
Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."

This reverts commit e324197ecd14591d7db0572f50c0d21bbd269bb4.

13 years agoMerge "Fix InputType determination of WebTextView (DO NOT MERGE)" into honeycomb-mr2
Tadashi G. Takaoka [Fri, 27 May 2011 17:47:12 +0000 (10:47 -0700)]
Merge "Fix InputType determination of WebTextView (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "docs: adjust what's visible for online and offline docs" into honeycomb-mr2
Scott Main [Fri, 27 May 2011 17:17:41 +0000 (10:17 -0700)]
Merge "docs: adjust what's visible for online and offline docs" into honeycomb-mr2

13 years agodocs: adjust what's visible for online and offline docs
Scott Main [Fri, 27 May 2011 16:53:27 +0000 (09:53 -0700)]
docs: adjust what's visible for online and offline docs

Change-Id: Ie7490973001530098d5001d9ef5e4dbfab86ed08

13 years agoFix InputType determination of WebTextView (DO NOT MERGE)
Tadashi G. Takaoka [Fri, 27 May 2011 12:53:52 +0000 (21:53 +0900)]
Fix InputType determination of WebTextView (DO NOT MERGE)

The InpuType from <input type="email" /> has been broken.

Change-Id: Ie37de69682410cdd58c29910d483e924f5b614b6
Related-Bug: 4490948
Cherry-pick: Ibd7f2977a177f1d97e3a29ac44220e5136bbd653

13 years agoMerge "Add new supports-screens attributes for declaring the compatible screens....
Dianne Hackborn [Fri, 27 May 2011 00:07:52 +0000 (17:07 -0700)]
Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2

13 years agoMerge "DO NOT MERGE Correctly implement the CLEAR xfermode." into honeycomb-mr2
Romain Guy [Thu, 26 May 2011 23:55:33 +0000 (16:55 -0700)]
Merge "DO NOT MERGE Correctly implement the CLEAR xfermode." into honeycomb-mr2

13 years agoDO NOT MERGE Correctly implement the CLEAR xfermode.
Romain Guy [Thu, 26 May 2011 23:51:47 +0000 (16:51 -0700)]
DO NOT MERGE Correctly implement the CLEAR xfermode.

This bug is a regression from the software pipeline and prevents
applications from implementing an "eraser" type tool (for instance
a drawing/painting apps.) This issue affects external applications
when they turn on hardware acceleration.

The previous implementation was using glBlendFunc with the parameters
GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha
sources (anti-aliasing.) The correct implementation is GL_ZERO/
GL_ONE_MINUS_SRC_ALPHA.

Change-Id: I1446e83480e46174b880120069d76fcad14ba300

13 years agoMerge "ExternalStorageFormatter takes an optional StorageVolume target." into honeyco...
Gilles Debunne [Thu, 26 May 2011 22:44:18 +0000 (15:44 -0700)]
Merge "ExternalStorageFormatter takes an optional StorageVolume target." into honeycomb-mr2

13 years agocherry pick Change-Id: Ia5ac228612569684a4ffc79ab3914442c15edfe2
Scott Main [Wed, 25 May 2011 00:17:27 +0000 (17:17 -0700)]
cherry pick Change-Id: Ia5ac228612569684a4ffc79ab3914442c15edfe2
docs: fix typo and slight revision

Change-Id: I33ec5fef9f04dad6deae5681571c36bf70205569

13 years agocherry pick Change-Id: I58ae8210a17f76ff92ee9d064cf42fd4a81ad9b5
Scott Main [Wed, 25 May 2011 00:11:55 +0000 (17:11 -0700)]
cherry pick Change-Id: I58ae8210a17f76ff92ee9d064cf42fd4a81ad9b5
docs: fix markup and typos

Change-Id: Ib0c5a0b41bfa2e9faef9b9b8e2cad8a69e6e1c8b

13 years agocherry pick Change-Id: I183ff47e59617b2c17a92b876ca8c8bcc9b45262
Scott Main [Tue, 24 May 2011 00:27:17 +0000 (17:27 -0700)]
cherry pick Change-Id: I183ff47e59617b2c17a92b876ca8c8bcc9b45262
docs: add document for the compatibility library

Change-Id: I1825ae1fba0be664a7c6a8b0ba32166f216a893f

13 years agoAdd new supports-screens attributes for declaring the compatible screens.
Dianne Hackborn [Thu, 26 May 2011 21:20:23 +0000 (14:20 -0700)]
Add new supports-screens attributes for declaring the compatible screens.

Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d
android:requiresSmallestWidthDp provides the smallest supported width.
android:compatibleWidthLimitDp provides the largest compatible width.

13 years agoMerge "DO NOT MERGE - Fix bug 4489946 - Remove placeholder views for phones in smalle...
Adam Powell [Thu, 26 May 2011 20:26:33 +0000 (13:26 -0700)]
Merge "DO NOT MERGE - Fix bug 4489946 - Remove placeholder views for phones in smaller-screen decor layouts." into honeycomb-mr2

13 years agoDO NOT MERGE - Fix bug 4489946 - Remove placeholder views for phones
Adam Powell [Thu, 26 May 2011 20:21:32 +0000 (13:21 -0700)]
DO NOT MERGE - Fix bug 4489946 - Remove placeholder views for phones
in smaller-screen decor layouts.

Keep the internal id declared to keep code in sync with downstream
branches.

Change-Id: I25d2ff7c40c220ecc93b195dfd4e953fe0b4d944

13 years agoMerge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2
Kenny Root [Thu, 26 May 2011 20:10:23 +0000 (13:10 -0700)]
Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2

13 years agoDO NOT MERGE
Scott Main [Tue, 24 May 2011 23:55:56 +0000 (16:55 -0700)]
DO NOT MERGE
cherry pick Change-Id: I67ef29f8ccc7b4a754ebb24efd96e9821e3d8662
docs: add accepted values for setting status bar visibility

Change-Id: I255dcd62b71c1b4ca40187b395abce8d6836c249

13 years agoExternalStorageFormatter takes an optional StorageVolume target.
Gilles Debunne [Wed, 25 May 2011 23:27:13 +0000 (16:27 -0700)]
ExternalStorageFormatter takes an optional StorageVolume target.

Change-Id: Ic85689659dbf49a7fcc1b7aaf25e4a94e62848b9

13 years agoI am a dummy.
Dianne Hackborn [Thu, 26 May 2011 18:45:00 +0000 (11:45 -0700)]
I am a dummy.

Change-Id: Ie6908a8931954f83ab0e9b905173b576dbf3661d

13 years agoMerge "Rework how we decide whether to use system or status bar." into honeycomb-mr2
Dianne Hackborn [Thu, 26 May 2011 18:39:22 +0000 (11:39 -0700)]
Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2

13 years agoMerge "Import revised translations. DO NOT MERGE" into honeycomb-mr2
Eric Fischer [Thu, 26 May 2011 18:36:58 +0000 (11:36 -0700)]
Merge "Import revised translations.  DO NOT MERGE" into honeycomb-mr2

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Thu, 26 May 2011 18:23:32 +0000 (11:23 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I596d69bead9553185fd835c79123f354a06b3d5b

13 years agoRework how we decide whether to use system or status bar.
Dianne Hackborn [Thu, 26 May 2011 07:55:58 +0000 (00:55 -0700)]
Rework how we decide whether to use system or status bar.

The PhoneWindowManager is now responsible for determing this,
since it needs to do this before we can generate the configuration
since we need to take into account the system bar size we will use.

Also the Display should now report the screen height without
including the system bar.

Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757

13 years agoBreak apart queries to getInstalled* API DO NOT MERGE
Kenny Root [Sat, 16 Apr 2011 00:50:10 +0000 (17:50 -0700)]
Break apart queries to getInstalled* API DO NOT MERGE

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ia3a8cdaa94581ed9336f2e05694b8c8a5f757bce

13 years agoMerge "Spiffy new compatibility mode UI." into honeycomb-mr2
Dianne Hackborn [Thu, 26 May 2011 04:18:36 +0000 (21:18 -0700)]
Merge "Spiffy new compatibility mode UI." into honeycomb-mr2

13 years agoSpiffy new compatibility mode UI.
Dianne Hackborn [Thu, 26 May 2011 04:00:46 +0000 (21:00 -0700)]
Spiffy new compatibility mode UI.

Change-Id: I1207eaafae59a434fcc979ad60a83e2d685288af

13 years agoMerge "Touch pad UX improvements." into honeycomb-mr2
Jeff Brown [Thu, 26 May 2011 02:15:24 +0000 (19:15 -0700)]
Merge "Touch pad UX improvements." into honeycomb-mr2

13 years agoTouch pad UX improvements.
Jeff Brown [Thu, 26 May 2011 01:23:38 +0000 (18:23 -0700)]
Touch pad UX improvements.

Fade the pointer spot when swiping or performing a freeform
gesture.

Support configuring the gesture mode in the device IDC file.

Added workaround for devices that report individual finger
movements one at a time instead of all at once.

Bug: 4124987
Change-Id: I44628b00382ad59306e4ec5c4717d69cc6fbebb8

13 years agoMerge "Fix deadlock in dispatcher. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Thu, 26 May 2011 01:55:52 +0000 (18:55 -0700)]
Merge "Fix deadlock in dispatcher. (DO NOT MERGE)" into honeycomb-mr2

13 years agoFix deadlock in dispatcher. (DO NOT MERGE)
Jeff Brown [Thu, 26 May 2011 01:52:21 +0000 (18:52 -0700)]
Fix deadlock in dispatcher. (DO NOT MERGE)

This regression was caused due to a bad cherry-pick / merge.

Change-Id: I79e84285bbfd4cd4b66681461543fb185b60d3ba

13 years agoMerge "Updated popup dialog 9 patches (light)" into honeycomb-mr2
Adam Powell [Thu, 26 May 2011 01:10:22 +0000 (18:10 -0700)]
Merge "Updated popup dialog 9 patches (light)" into honeycomb-mr2

13 years agoMerge "Move status bar icons to sw600." into honeycomb-mr2
Joe Onorato [Thu, 26 May 2011 00:36:54 +0000 (17:36 -0700)]
Merge "Move status bar icons to sw600." into honeycomb-mr2

13 years agoMove status bar icons to sw600.
Joe Onorato [Thu, 26 May 2011 00:35:35 +0000 (17:35 -0700)]
Move status bar icons to sw600.

Change-Id: Idb85252b30cca90704f1cfebb7abce522e21b8a3

13 years agoUpdated popup dialog 9 patches (light)
Justin Ho [Wed, 25 May 2011 23:59:32 +0000 (16:59 -0700)]
Updated popup dialog 9 patches (light)

Change-Id: I04c55e02b76dd676e3e11fd9d5b63a685019bbf2

13 years agoMerge "Swap Mifare for MIFARE." into honeycomb-mr2
Jeff Hamilton [Wed, 25 May 2011 22:38:56 +0000 (15:38 -0700)]
Merge "Swap Mifare for MIFARE." into honeycomb-mr2

13 years agoSwap Mifare for MIFARE.
Jeff Hamilton [Wed, 25 May 2011 22:37:51 +0000 (17:37 -0500)]
Swap Mifare for MIFARE.

Change-Id: I45580d32f5ccebf906372c3c1664bc66718a672e

13 years agoMerge "move resources" into honeycomb-mr2
Joe Onorato [Wed, 25 May 2011 22:18:56 +0000 (15:18 -0700)]
Merge "move resources" into honeycomb-mr2

13 years agomove resources
Joe Onorato [Wed, 25 May 2011 22:17:41 +0000 (15:17 -0700)]
move resources

Change-Id: I5f89cd0480234dac99cbb187835f389cc6513aae

13 years agoMerge "Revert "Use pread() to get the decrypted data for container based DRM file...
James Dong [Wed, 25 May 2011 21:51:52 +0000 (14:51 -0700)]
Merge "Revert "Use pread() to get the decrypted data for container based DRM file."" into honeycomb-mr2

13 years agoFix bug reporting presence of orientation axis. (DO NOT MERGE)
Jeff Brown [Tue, 24 May 2011 22:17:57 +0000 (15:17 -0700)]
Fix bug reporting presence of orientation axis. (DO NOT MERGE)

Change-Id: I20aecca392d2843601e6e0ec4ac913c8ccdbbf89

13 years agoAdd tap/drag touchpad gesture. (DO NOT MERGE)
Jeff Brown [Wed, 20 Apr 2011 04:20:10 +0000 (21:20 -0700)]
Add tap/drag touchpad gesture. (DO NOT MERGE)

The mapper sends a DOWN when the finger is released then starts
a short timer.  If the finger is not pressed again before the timer
elapses, then the mapper sends an UP to complete the tap.  If the
finger is pressed again then the mapper starts sending MOVEs
as part of a drag.

Double/triple taps work as intended because we also start watching
for a new tap when the finger is pressed again.  If a new tap
occurs the old tap is also finished.  So each individual finger
short press/release cycle constitutes a distinct tap.

Change-Id: Id0a6ee10dd27e723f6cb04e56b43939abe9e940c

13 years agoInitial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
Jeff Brown [Wed, 13 Apr 2011 05:39:53 +0000 (22:39 -0700)]
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)

Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements.  The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e

13 years agoAdd a sprite controller. (DO NOT MERGE)
Jeff Brown [Mon, 11 Apr 2011 18:54:25 +0000 (11:54 -0700)]
Add a sprite controller. (DO NOT MERGE)

Refactored PointerController to extract the surface management
code to a new component called a SpriteController so that it can
be used to move finger tracking spots around the screen as well.
The SpriteController is designed to fully decouple the client from
any latency introduced by surface transactions and drawing.
All sprite updates are performed asynchronously on the Looper using
a copy of the sprite state.

Added a stub SpotController implementation for touch pad UX.
It will be implemented in a subsequent patch.

Fixed a little bug in pointer orientation changes when entering
DISPLAY_ORIENTATION_90 the x offset was clobbered.

Change-Id: I6d59d80df9af61e93af50290e7776337d10c9d5a

13 years agoCoalesce input events that arrive faster than 333Hz. (DO NOT MERGE)
Jeff Brown [Tue, 24 May 2011 18:23:27 +0000 (11:23 -0700)]
Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)

Some drivers report individual finger updates one at a time
instead of all at once.  When 10 fingers are down, this can
cause the framework to have to handle 10 times as many events
each with 10 times as much data.  Applications like
PointerLocation would get significantly bogged down by all
of the redundant samples.

This change coalesces samples that are closely spaced in time,
before they are dispatched, as part of the motion event batching
protocol.

Increased the size of the InputChannel shared memory buffer so
that applications can catch up faster if they accumulate a
backlog of samples.

Change-Id: Ibc6abf8af027d9003011ac75caa12941080caba3

13 years agoAllow batching samples onto the pending motion event. (DO NOT MERGE)
Jeff Brown [Thu, 7 Apr 2011 00:19:48 +0000 (17:19 -0700)]
Allow batching samples onto the pending motion event. (DO NOT MERGE)

This enlarges the window of opportunity for batching to
encompass time spent for the window to become ready (while it is
busy processing the last event).

Change-Id: I8870cc3081d27a4de659fb4e375f888fe966460b

13 years agoMinor Alt-TAB / Recent Apps Dialog improvements. (DO NOT MERGE)
Jeff Brown [Wed, 6 Apr 2011 22:33:01 +0000 (15:33 -0700)]
Minor Alt-TAB / Recent Apps Dialog improvements. (DO NOT MERGE)

Alt-TAB should have different semantics from the APP_SWITCH key
or long-press on HOME.  Accordingly, remove the fallback action
for Alt-TAB and initiate the task switching behavior directly
in the policy.

Modified RecentApplicationsDialog to be more precise about the
initial modifiers that it considers to be holding the dialog.

The dialog is now dismissed by a second press on the APP_SWITCH
key or by a second long press on HOME.

Change-Id: I07e72dc4e1f3cd8edaf357c1d49e79f60d6d1604

13 years agoSupport primitive ALT-TAB style navigation using Recent Apps. (DO NOT MERGE)
Jeff Brown [Wed, 30 Mar 2011 00:26:44 +0000 (17:26 -0700)]
Support primitive ALT-TAB style navigation using Recent Apps. (DO NOT MERGE)

Change-Id: I0296a09519ba9417c208d197ebd996b586ee3daa

13 years agoMerge "Support chorded fallback keys. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Wed, 25 May 2011 21:32:05 +0000 (14:32 -0700)]
Merge "Support chorded fallback keys. (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "Fix focused application handle. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Wed, 25 May 2011 21:32:00 +0000 (14:32 -0700)]
Merge "Fix focused application handle. (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "Optimize EventHub to process events in big chunks. (DO NOT MERGE)" into honeyc...
Jeff Brown [Wed, 25 May 2011 21:31:54 +0000 (14:31 -0700)]
Merge "Optimize EventHub to process events in big chunks. (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "Refactor how timeouts are calculated. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Wed, 25 May 2011 21:31:50 +0000 (14:31 -0700)]
Merge "Refactor how timeouts are calculated. (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "Improve VelocityTracker numerical stability. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Wed, 25 May 2011 21:31:44 +0000 (14:31 -0700)]
Merge "Improve VelocityTracker numerical stability. (DO NOT MERGE)" into honeycomb-mr2

13 years agoMerge "Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)" into honeyco...
Jeff Brown [Wed, 25 May 2011 21:31:38 +0000 (14:31 -0700)]
Merge "Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)" into honeycomb-mr2

13 years agoRevert "Use pread() to get the decrypted data for container based DRM file."
James Dong [Wed, 25 May 2011 19:17:33 +0000 (12:17 -0700)]
Revert "Use pread() to get the decrypted data for container based DRM file."

This reverts commit a6f1104b9d829c636b60b9387e379f9667b5df09.

13 years agoMerge "Make adb shell am display-size persistent." into honeycomb-mr2
Joe Onorato [Wed, 25 May 2011 18:40:59 +0000 (11:40 -0700)]
Merge "Make adb shell am display-size persistent." into honeycomb-mr2

13 years agoMake adb shell am display-size persistent.
Joe Onorato [Tue, 24 May 2011 20:48:43 +0000 (13:48 -0700)]
Make adb shell am display-size persistent.

Change-Id: If3d5d18729f4e89eb7e689994deadd996fd487e9

13 years agoMerge "Fix issue #4445007: DPM initializes some values to 1, instead of 0" into honey...
Dianne Hackborn [Wed, 25 May 2011 18:10:15 +0000 (11:10 -0700)]
Merge "Fix issue #4445007: DPM initializes some values to 1, instead of 0" into honeycomb-mr2

13 years agoMerge "More preference item visual adjustments for smaller tablets. DO NOT MERGE...
Amith Yamasani [Wed, 25 May 2011 17:58:24 +0000 (10:58 -0700)]
Merge "More preference item visual adjustments for smaller tablets. DO NOT MERGE" into honeycomb-mr2

13 years agoFix issue #4445007: DPM initializes some values to 1, instead of 0
Dianne Hackborn [Wed, 25 May 2011 17:48:28 +0000 (10:48 -0700)]
Fix issue #4445007: DPM initializes some values to 1, instead of 0

Also fix not writing the settings file when an admin is removed.

And take care of an old to-do about not removing an admin until
after it has received the broadcast about it being disabled.

Change-Id: I4ebe0ea0461222b65425b2c5438b646b572f18c8

13 years agoMerge "DO NOT MERGE-Refire the redraw event if webkit wasn't ready" into honeycomb-mr2
Russell Brenner [Wed, 25 May 2011 16:00:26 +0000 (09:00 -0700)]
Merge "DO NOT MERGE-Refire the redraw event if webkit wasn't ready" into honeycomb-mr2

13 years agoMerge "More compatibility mode improvements." into honeycomb-mr2
Dianne Hackborn [Wed, 25 May 2011 02:07:55 +0000 (19:07 -0700)]
Merge "More compatibility mode improvements." into honeycomb-mr2

13 years agoMore compatibility mode improvements.
Dianne Hackborn [Wed, 25 May 2011 01:11:57 +0000 (18:11 -0700)]
More compatibility mode improvements.

We now correctly adjust display metrics, fixing for example issues
seen in Barcode Scanner.  In addition the decision about when to use
compatibility mode has a bug fixed where certain apps would not go
out of compatibility mode even though they should be able to.

Change-Id: I5971206323df0f11ce653d1c790c700f457f0582

13 years agoDO NOT MERGE-Refire the redraw event if webkit wasn't ready
Russell Brenner [Tue, 24 May 2011 20:34:39 +0000 (13:34 -0700)]
DO NOT MERGE-Refire the redraw event if webkit wasn't ready

If webkit wasn't in a drawing mood, post a WEBKIT_DRAW event to
assure that the update is not lost.

bug: 4474358
Change-Id: Ib0c4cedb10f58821f95c439824c30043a906f8b8

13 years agoMore preference item visual adjustments for smaller tablets. DO NOT MERGE
Amith Yamasani [Tue, 24 May 2011 22:43:14 +0000 (15:43 -0700)]
More preference item visual adjustments for smaller tablets. DO NOT MERGE

Use medium text size for locale picker.
Hide icon region if there's no icon.

Bug: 4462313

Change-Id: I8062646f31bfec753bcd476f54c8ab5b66375b5e

13 years agoSupport chorded fallback keys. (DO NOT MERGE)
Jeff Brown [Tue, 29 Mar 2011 22:11:34 +0000 (15:11 -0700)]
Support chorded fallback keys. (DO NOT MERGE)

Also be more careful about canceling fallback keys during focus
transitions, when the application handles the key, or when the
policy decides to do something different.

Fixed a crash due to JNI CallObjectMethod returning an undefined
value (not null) when an exception is thrown.

Fixed a crash due to the policy trying to create a Dialog for
recent apps on the dispatcher thread.  It should happen on the
policy's Looper instead.

Bug: 4187302
Change-Id: I043f82913830f411b3bb4018d6422467b6ca454f

13 years agoFix focused application handle. (DO NOT MERGE)
Jeff Brown [Fri, 25 Mar 2011 18:58:46 +0000 (11:58 -0700)]
Fix focused application handle. (DO NOT MERGE)

Fix a bug where we were always setting the focused application
handle to NULL.  This broke ANR processing while starting
applications and caused input events to be dropped while
starting applications.

Bug: 4174573
Change-Id: Ice7ce3a2b65219568a8227fc1383bafb294666b5

13 years agoOptimize EventHub to process events in big chunks. (DO NOT MERGE)
Jeff Brown [Sat, 19 Mar 2011 01:14:26 +0000 (18:14 -0700)]
Optimize EventHub to process events in big chunks. (DO NOT MERGE)

When 10 fingers are down, reduces the CPU time spent by the InputReader
thread from ~30% to ~5% on Stingray.

Change-Id: I42ee5c67b8521af715cbab43e763a4af4eb1f914

13 years agoMerge "Fix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypas...
Kristian Monsen [Tue, 24 May 2011 18:16:39 +0000 (11:16 -0700)]
Merge "Fix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypass proxy DO NOT MERGE" into honeycomb-mr2

13 years agoMerge "Update the Desktop UA to Chrome" into honeycomb-mr2
John Reck [Tue, 24 May 2011 18:03:11 +0000 (11:03 -0700)]
Merge "Update the Desktop UA to Chrome" into honeycomb-mr2

13 years agoFix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypass proxy...
Kristian Monsen [Mon, 23 May 2011 13:25:27 +0000 (14:25 +0100)]
Fix for bug 4144936: [Proxy setting]: traffic to a bypass domain doesn't bypass proxy DO NOT MERGE

This is the WebView part, passing the bypass list to
the native side.

Moved some code to JWebCoreJavaBridge.java because
because sendStaticMessage only takes one argument.

Needs CL in external/webkit:
https://android-git.corp.google.com/g/#change,111108

Needs following CL in external/chromium:
https://android-git.corp.google.com/g/#change,111107

Change-Id: Ib548bdcbc9eb22bbb8f2754808840052bd3ec80e

13 years agoMerge "Multi-repository checkin, goes with https://android-git.corp.google.com/g...
Jeffrey Tinker [Tue, 24 May 2011 01:10:10 +0000 (18:10 -0700)]
Merge "Multi-repository checkin, goes with https://android-git.corp.google.com/g/111038" into honeycomb-mr2

13 years agoMerge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2
Mike Lockwood [Tue, 24 May 2011 01:01:50 +0000 (18:01 -0700)]
Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2

13 years agoGPS: Change NTP polling interval from 4 to 24 hours
Mike Lockwood [Tue, 24 May 2011 00:57:43 +0000 (20:57 -0400)]
GPS: Change NTP polling interval from 4 to 24 hours

4 hours is excessive, and we want to save bandwidth on the NTP servers

Change-Id: Ic5ac4f4a8e62167206f3f620ea51635a2ea771d6
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoRefactor how timeouts are calculated. (DO NOT MERGE)
Jeff Brown [Thu, 17 Mar 2011 08:34:19 +0000 (01:34 -0700)]
Refactor how timeouts are calculated. (DO NOT MERGE)

Added a timeout mechanism to EventHub and InputReader so that
InputMappers can request timeouts to perform delayed processing of
input when needed.

Change-Id: I89c1171c9326c6e413042e3ee13aa9f7f1fc0454

13 years agoImprove VelocityTracker numerical stability. (DO NOT MERGE)
Jeff Brown [Tue, 15 Mar 2011 02:39:54 +0000 (19:39 -0700)]
Improve VelocityTracker numerical stability. (DO NOT MERGE)

Replaced VelocityTracker with a faster and more accurate
native implementation.  This avoids the duplicate maintenance
overhead of having two implementations.

The new algorithm requires that the sample duration be at least
10ms in order to contribute to the velocity calculation.  This
ensures that the velocity is not severely overestimated when
samples arrive in bursts.

The new algorithm computes the exponentially weighted moving
average using weights based on the relative duration of successive
sample periods.

The new algorithm is also more careful about how it handles
individual pointers going down or up and their effects on the
collected movement traces.  The intent is to preserve the last
known velocity of pointers as they go up while also ensuring
that other motion samples do not count twice in that case.

Bug: 4086785
Change-Id: I95054102397c4b6a9076dc6a0fc841b4beec7920

13 years agoUse touch pad gestures to manipulate the pointer. (DO NOT MERGE)
Jeff Brown [Thu, 10 Mar 2011 01:39:48 +0000 (17:39 -0800)]
Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)

1. Single finger tap performs a click.
2. Single finger movement moves the pointer (hovers).
3. Button press plus movement performs click or drag.
   While dragging, the pointer follows the finger that is moving
   fastest.  This is important if there are additional fingers
   down on the touch pad for the purpose of applying force
   to an integrated button underneath.
4. Two fingers near each other moving in the same direction
   are coalesced as a swipe gesture under the pointer.
5. Two or more fingers moving in arbitrary directions are
   transformed into touches in the vicinity of the pointer.
   This makes scale/zoom and rotate gestures possible.

Added a native VelocityTracker implementation to enable intelligent
switching of the active pointer during drags.

Change-Id: I7b7ddacc724fb1306e1590dbaebb740d3130d7cd

13 years agoMerge "DO NOT MERGE. Preference activity changes to work on smaller tablet screens...
Amith Yamasani [Tue, 24 May 2011 00:05:47 +0000 (17:05 -0700)]
Merge "DO NOT MERGE. Preference activity changes to work on smaller tablet screens." into honeycomb-mr2

13 years agoMerge "MountService: Add StorageVolume as extra in storage related broadcasts." into...
Mike Lockwood [Tue, 24 May 2011 00:04:01 +0000 (17:04 -0700)]
Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2

13 years agoMountService: Add StorageVolume as extra in storage related broadcasts.
Mike Lockwood [Mon, 23 May 2011 17:44:04 +0000 (13:44 -0400)]
MountService: Add StorageVolume as extra in storage related broadcasts.

Change-Id: I8e1a21ae233ba9812e58b363b59a66b260a01cbf
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoDO NOT MERGE. Preference activity changes to work on smaller tablet screens.
Amith Yamasani [Fri, 20 May 2011 21:59:06 +0000 (14:59 -0700)]
DO NOT MERGE. Preference activity changes to work on smaller tablet screens.

Breadcrumbs move to the action bar on certain configs.

Padding around fragments and to the left of preference items
adjusted for different display sizes.

Change-Id: Ie899f9742f4ebd7044f158b1c7db06df82ad2d75

13 years agoUpdate the Desktop UA to Chrome
John Reck [Mon, 23 May 2011 23:50:29 +0000 (16:50 -0700)]
Update the Desktop UA to Chrome

 Bug: 4347787

Change-Id: I5117c7dbd4e73c39ed417113f12b517de5411e81

13 years agoMerge "DO NOT MERGE Use previous version if version is a codename" into honeycomb-mr2
John Reck [Mon, 23 May 2011 23:47:32 +0000 (16:47 -0700)]
Merge "DO NOT MERGE Use previous version if version is a codename" into honeycomb-mr2

13 years agoDO NOT MERGE Use previous version if version is a codename
John Reck [Thu, 28 Apr 2011 17:27:40 +0000 (10:27 -0700)]
DO NOT MERGE Use previous version if version is a codename

 When the version is reported as a codename, use the previous version
 in the user agent string.
 Bug: 4347787

Change-Id: I4ed804a7334d6ca242446176ff042c4ac7938a0f

13 years agoMerge "Add "television" mode." into honeycomb-mr2
Dianne Hackborn [Mon, 23 May 2011 22:18:20 +0000 (15:18 -0700)]
Merge "Add "television" mode." into honeycomb-mr2

13 years agoAdd "television" mode.
Dianne Hackborn [Fri, 20 May 2011 23:11:04 +0000 (16:11 -0700)]
Add "television" mode.

Change-Id: Ida1fdb61b036a8b489dbeda196fb4bc82e651b2b

13 years agoMulti-repository checkin, goes with https://android-git.corp.google.com/g/111038
Jeffrey Tinker [Sun, 22 May 2011 01:19:17 +0000 (18:19 -0700)]
Multi-repository checkin, goes with https://android-git.corp.google.com/g/111038

Fix for b/4198446 HC - Support for Widevine Adaptive VOD

Change-Id: Ia777c80825e3416bab6ae6273fba46a194135e60

13 years agoSimplify browser pause/resume logic to avoid stuck timer.
Shimeng (Simon) Wang [Mon, 23 May 2011 16:33:31 +0000 (09:33 -0700)]
Simplify browser pause/resume logic to avoid stuck timer.

The current browser pause/resume logic uses an integer count to track
the pause/resume behavior, which is mostly working fine in phone.  The interger
count is usually 0 when browser is paused, and its value is usually 1
when the browser is resumed and will trigger any delayed timer.

But in tablet, where tabs can be easily created/switched/deleted, this
logic will not work well and sometimes cause resources timers get stuck.
For example, in case multiple tabs are created, and you reload one of the
tabs, when it's almost finished, switch to another tab, and hit home or power
button, at this point of time, the browser will be suspended at
Controller.java::onPause, hence the integer count will be 0; but since
the other tab is also finished after the pause, the current logic at
Controller.java::onPageFinished will call pause timer again, which will make
the integer count to be -1.  Before the time the browser is resumed, it's very
possible some tabs will have some resources, such as images/flashs,
scheduled to be loaded, these will be in delayed timer in
ResourceLoadScheduler.cpp's m_requestTimer.
Now when the browser is resumed, the integer count will be 0, which will not
trigger delayed timer.  Then all the new timers will be stuck as well since
old timers are not executed yet.

The fix is to simplify the pause/resume logic by just using a boolean variable
instead of error-prone integer counting.

issue: 4177932
Change-Id: Id10af9298c7be1f82222d0b94c34c5dc68403630

13 years agoAdd some logging to track down where ANR happens during MediaPlayer._release().
James Dong [Thu, 19 May 2011 22:56:50 +0000 (15:56 -0700)]
Add some logging to track down where ANR happens during MediaPlayer._release().

o add a log message in AwesomePlayer::reset before acquiring the lock

Change-Id: I9f228f615f99c03c394e9d0dd78c855c0b9fcfbb
related-to-bug: 4409547

13 years agoMerge "Fix 4462474: Use new sw600dp resource target for LockScreen & SystemUI" into...
Jim Miller [Fri, 20 May 2011 23:49:08 +0000 (16:49 -0700)]
Merge "Fix 4462474: Use new sw600dp resource target for LockScreen & SystemUI" into honeycomb-mr2

13 years agoFix 4462474: Use new sw600dp resource target for LockScreen & SystemUI
Jim Miller [Fri, 20 May 2011 22:46:24 +0000 (15:46 -0700)]
Fix 4462474: Use new sw600dp resource target for LockScreen & SystemUI

Change-Id: I79d4fe54c00ecb4c4a1ad614b94bb284b9ece5cc

13 years agoMerge "Change measurement of effective screen height for PopupWindow now that Display...
Adam Powell [Fri, 20 May 2011 22:59:19 +0000 (15:59 -0700)]
Merge "Change measurement of effective screen height for PopupWindow now that DisplayMetrics reports it without system decorations." into honeycomb-mr2

13 years agoChange measurement of effective screen height for PopupWindow now that
Adam Powell [Fri, 20 May 2011 22:56:25 +0000 (15:56 -0700)]
Change measurement of effective screen height for PopupWindow now that
DisplayMetrics reports it without system decorations.

Change-Id: I57f926de1cc7170b9996d7c71aa01542baf0c673

13 years agoMerge "Add ParcelFileDescriptor.fromFd() and .adoptFd()." into honeycomb-mr2
Dianne Hackborn [Fri, 20 May 2011 21:28:43 +0000 (14:28 -0700)]
Merge "Add ParcelFileDescriptor.fromFd() and .adoptFd()." into honeycomb-mr2