OSDN Git Service

android-x86/frameworks-base.git
13 years agoMerge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honey...
Andy Stadler [Fri, 3 Jun 2011 17:24:27 +0000 (10:24 -0700)]
Merge "DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()" into honeycomb-mr2

13 years ago(Do not merge) Backport a fix for InputMethodManager.java
satok [Fri, 3 Jun 2011 05:45:50 +0000 (14:45 +0900)]
(Do not merge) Backport a fix for InputMethodManager.java

Bug: 4517456

Original CL: Icec380f3ca05cf798cc4b82155d0cecf178633a5

Change-Id: I579fb1ee1b53d312f7cfc5c689d4500cb875352e

13 years agoAdd new Fragment API for explicitly saving/restoring state.
Dianne Hackborn [Fri, 3 Jun 2011 01:33:15 +0000 (18:33 -0700)]
Add new Fragment API for explicitly saving/restoring state.

Also fix issue #4519821:
Blank screen displayed on tapping "Battery Use" option in the settings

We weren't correctly doing the full Activity resume code when coming
back from delivering a new Intent or result.

And fix a fragment problem where we still weren't correctly restoring
the state of list views.  (I think this was from a bad manual-merge
from master.)

Change-Id: If79dc7e998155c39ab8c04781f6c73a82238a9ef

13 years agoMerge "Add a preference panel for mouse speed." into honeycomb-mr2
Jeff Brown [Fri, 3 Jun 2011 00:26:05 +0000 (17:26 -0700)]
Merge "Add a preference panel for mouse speed." into honeycomb-mr2

13 years agoMerge "Implement pointer acceleration." into honeycomb-mr2
Jeff Brown [Fri, 3 Jun 2011 00:25:59 +0000 (17:25 -0700)]
Merge "Implement pointer acceleration." into honeycomb-mr2

13 years agoDO NOT MERGE Use unchecked admin lookup for getStorageEncryption()
Andy Stadler [Thu, 2 Jun 2011 23:37:39 +0000 (16:37 -0700)]
DO NOT MERGE Use unchecked admin lookup for getStorageEncryption()

Due to a copy/paste typo, getStorageEncryption() was protected by
getActiveAdminForCallerLocked(), which made the API unreadable if the
caller is not an admin.  This doesn't match the rest of the DPM API which
allows the "get" calls to be made anonymously.

This fix supercedes the proposed workaround CL in the DPM ApiDemo sample.

Backport of: If1a6237634e97ced09a7c6a8876bb6b0f60c9be9

Change-Id: I728b2d85878b7c73a063c906529f0d973e166b49

13 years agoAdd a preference panel for mouse speed.
Jeff Brown [Thu, 2 Jun 2011 08:26:32 +0000 (01:26 -0700)]
Add a preference panel for mouse speed.

Bug: 4124987
Change-Id: I3ce175d268a1d043cf5878481261b1049a15a149

13 years agoImplement pointer acceleration.
Jeff Brown [Wed, 1 Jun 2011 19:33:19 +0000 (12:33 -0700)]
Implement pointer acceleration.

Bug: 4124987
Change-Id: I1f31a28f1594c55302ccabe13fe3ca6d2ff71d50

13 years agoMerge "cherrypick Change-Id: I7a3612a1bc22cf53d382f787fa43fe222978d35e docs: add...
Scott Main [Thu, 2 Jun 2011 16:52:09 +0000 (09:52 -0700)]
Merge "cherrypick Change-Id: I7a3612a1bc22cf53d382f787fa43fe222978d35e docs: add 'animator' resource info" into honeycomb-mr2

13 years agocherrypick Change-Id: I7a3612a1bc22cf53d382f787fa43fe222978d35e
Scott Main [Wed, 18 May 2011 00:00:58 +0000 (17:00 -0700)]
cherrypick Change-Id: I7a3612a1bc22cf53d382f787fa43fe222978d35e
docs: add 'animator' resource info

Change-Id: Ifbd130e5bf762d89300c20db0d86d7f695b4ff4b

13 years agoMerge "cherry pick Change-Id: Id082021be2c27476f106285d0dd68d9e0f5bb514 docs: release...
Scott Main [Thu, 2 Jun 2011 16:49:43 +0000 (09:49 -0700)]
Merge "cherry pick Change-Id: Id082021be2c27476f106285d0dd68d9e0f5bb514 docs: release notes for adt 11" into honeycomb-mr2

13 years agocherry pick Change-Id: Id082021be2c27476f106285d0dd68d9e0f5bb514
Scott Main [Thu, 26 May 2011 21:12:54 +0000 (14:12 -0700)]
cherry pick Change-Id: Id082021be2c27476f106285d0dd68d9e0f5bb514
docs: release notes for adt 11

Change-Id: I9041a5e34fcf34e8a08b3e9becc8c149f773a250

13 years agoMerge "Cherry pick Change-Id: Ie9d68854926544749dde4edfeac9be2ece38560b docs: fix...
Scott Main [Thu, 2 Jun 2011 16:47:31 +0000 (09:47 -0700)]
Merge "Cherry pick Change-Id: Ie9d68854926544749dde4edfeac9be2ece38560b docs: fix broken links" into honeycomb-mr2

13 years agoCherry pick Change-Id: Ie9d68854926544749dde4edfeac9be2ece38560b
Scott Main [Thu, 2 Jun 2011 16:43:05 +0000 (09:43 -0700)]
Cherry pick Change-Id: Ie9d68854926544749dde4edfeac9be2ece38560b
docs: fix broken links

Change-Id: Ibc71e21b6024a8bed0fc07dba5e0a9c6c5d7f8c0

13 years agoMerge "Add new supports-screen API to set maximum allowed size." into honeycomb-mr2
Dianne Hackborn [Thu, 2 Jun 2011 05:28:56 +0000 (22:28 -0700)]
Merge "Add new supports-screen API to set maximum allowed size." into honeycomb-mr2

13 years agoAdd new supports-screen API to set maximum allowed size.
Dianne Hackborn [Thu, 2 Jun 2011 04:27:05 +0000 (21:27 -0700)]
Add new supports-screen API to set maximum allowed size.

Change-Id: I0a7cd4ba73a4c18558e6daee28963d5fd12c7978

13 years agoMerge "doc typo" into honeycomb-mr2
Scott Main [Thu, 2 Jun 2011 01:19:12 +0000 (18:19 -0700)]
Merge "doc typo" into honeycomb-mr2

13 years agoWork around OpenFeint bug.
Dianne Hackborn [Wed, 1 Jun 2011 23:51:20 +0000 (16:51 -0700)]
Work around OpenFeint bug.

Change-Id: Ib8320e50bb63fc56dc0118d5c8e9e328dbd3fcb1

13 years agodoc typo
Scott Main [Wed, 1 Jun 2011 23:28:19 +0000 (16:28 -0700)]
doc typo

Change-Id: Iab3246e12059582096594eb795f2eb42da46f667

13 years agoMerge "Framework: bugfix for menu selector not showing up properly." into honeycomb-mr2
Adam Powell [Wed, 1 Jun 2011 19:48:03 +0000 (12:48 -0700)]
Merge "Framework: bugfix for menu selector not showing up properly." into honeycomb-mr2

13 years agoMerge "Compatibility mode never needed for normal size screens." into honeycomb-mr2
Dianne Hackborn [Wed, 1 Jun 2011 19:43:56 +0000 (12:43 -0700)]
Merge "Compatibility mode never needed for normal size screens." into honeycomb-mr2

13 years agoCompatibility mode never needed for normal size screens.
Dianne Hackborn [Wed, 1 Jun 2011 19:42:55 +0000 (12:42 -0700)]
Compatibility mode never needed for normal size screens.

Change-Id: I3482fa692618b9272e1e19384e766a77f2a53c5d

13 years agoMerge "Fix issue #4500511: Holo effect background doesn't reach top of screen anymore...
Dianne Hackborn [Wed, 1 Jun 2011 19:34:48 +0000 (12:34 -0700)]
Merge "Fix issue #4500511: Holo effect background doesn't reach top of screen anymore" into honeycomb-mr2

13 years agoFix issue #4500511: Holo effect background doesn't reach top of screen anymore
Dianne Hackborn [Wed, 1 Jun 2011 19:28:20 +0000 (12:28 -0700)]
Fix issue #4500511: Holo effect background doesn't reach top of screen anymore

Change-Id: Iebefe924e71206f3e6388eaee64f7b1416bc3239

13 years agoFramework: bugfix for menu selector not showing up properly.
Justin Koh [Wed, 1 Jun 2011 01:51:51 +0000 (18:51 -0700)]
Framework: bugfix for menu selector not showing up properly.

Menu selector wasn't showing up properly because selector state wasn't updated after touch mode.  Added this to resurrectselection call.

http://b/issue?id=4372583

TESTED = runs on M4.

Change-Id: I349c3b86f4e8a1a02a20494b547859d0c12867ee

13 years agoMerge "Fix bug 4501658 - adjust toast frame padding" into honeycomb-mr2
Adam Powell [Wed, 1 Jun 2011 17:27:54 +0000 (10:27 -0700)]
Merge "Fix bug 4501658 - adjust toast frame padding" into honeycomb-mr2

13 years agodocs: fix typos
Scott Main [Wed, 1 Jun 2011 16:46:04 +0000 (09:46 -0700)]
docs: fix typos

Change-Id: I59a34a84075c63715a6b4aaf6d90acead321ea90

13 years agoMerge "Forgot this file." into honeycomb-mr2
Dianne Hackborn [Wed, 1 Jun 2011 01:28:50 +0000 (18:28 -0700)]
Merge "Forgot this file." into honeycomb-mr2

13 years agoForgot this file.
Dianne Hackborn [Wed, 1 Jun 2011 01:27:49 +0000 (18:27 -0700)]
Forgot this file.

Change-Id: I8aa457d8d81d283f8cc36f68eca33fcb3a86ccad

13 years agoMerge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into...
Dianne Hackborn [Wed, 1 Jun 2011 01:05:26 +0000 (18:05 -0700)]
Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2

13 years agoFix issue #4502672: Wrong xml resources used for homescreen widgets.
Dianne Hackborn [Wed, 1 Jun 2011 00:59:49 +0000 (17:59 -0700)]
Fix issue #4502672: Wrong xml resources used for homescreen widgets.

There was a race in the system process between applying the initial
configuration and executing code in higher-level system services
like the app widget service that relies on the config.  For some
reason it starting showing up more after my code changes; it should
now be completely fixed.

Also fix the activity starting window to run in compatibility mode
if its application is going to be in compatibility mode.

And some various cleanup and small fixes.

Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5

13 years agoFix bug 4501658 - adjust toast frame padding
Adam Powell [Wed, 1 Jun 2011 00:59:02 +0000 (17:59 -0700)]
Fix bug 4501658 - adjust toast frame padding

Change-Id: I32fa68e27724ddb20f09a0ac99a497a97c425600

13 years agoCherry pick honeycomb-mr1 I064d4dba to I48ddc26d4f
Joe Malin [Wed, 25 May 2011 21:53:23 +0000 (14:53 -0700)]
Cherry pick honeycomb-mr1 I064d4dba to I48ddc26d4f

Change-Id: I48ddc26d4fc8e2e44627cfb0e98d9f0b596042b6

13 years agoMerge "Use ViewConfiguration to seed input system configuration." into honeycomb-mr2
Jeff Brown [Tue, 31 May 2011 22:42:18 +0000 (15:42 -0700)]
Merge "Use ViewConfiguration to seed input system configuration." into honeycomb-mr2

13 years agoMerge "Button state should reflect actual buttons. (DO NOT MERGE)" into honeycomb-mr2
Jeff Brown [Tue, 31 May 2011 22:42:08 +0000 (15:42 -0700)]
Merge "Button state should reflect actual buttons. (DO NOT MERGE)" into honeycomb-mr2

13 years agoUse ViewConfiguration to seed input system configuration.
Jeff Brown [Fri, 27 May 2011 02:17:02 +0000 (19:17 -0700)]
Use ViewConfiguration to seed input system configuration.

Fix bug where the pointer presentation would be updated on
any input reader timeout rather than only when a pointer gesture
is in progress.

Bug: 4124987
Change-Id: Ie9bba4a0b3228d55e45e65fa2ede5cd6ba887a08

13 years agoButton state should reflect actual buttons. (DO NOT MERGE)
Jeff Brown [Tue, 31 May 2011 22:00:18 +0000 (15:00 -0700)]
Button state should reflect actual buttons. (DO NOT MERGE)

Bug: 4124987
Change-Id: If0585bd1432c8c61ed0c9a6a4f6de4a62e3f6e53

13 years agoMerge "Use Holo background and proper padding for App Permissions UI." into honeycomb-mr2
Amith Yamasani [Tue, 31 May 2011 20:58:34 +0000 (13:58 -0700)]
Merge "Use Holo background and proper padding for App Permissions UI." into honeycomb-mr2

13 years agoUse Holo background and proper padding for App Permissions UI.
Amith Yamasani [Tue, 31 May 2011 20:03:59 +0000 (13:03 -0700)]
Use Holo background and proper padding for App Permissions UI.

Bug: 4515158
Change-Id: I47a8f2fbdc2547dd08e199ccbfa51710048963ae

13 years agoFix input type judgment of WebTextView (DO NOT MERGE)
Tadashi G. Takaoka [Sat, 28 May 2011 14:40:19 +0000 (23:40 +0900)]
Fix input type judgment of WebTextView (DO NOT MERGE)

Bug: 4490948
Change-Id: I232b8f1301128f1c77d72d92777a45c63f215a9c

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