22667 Commits

Author SHA1 Message Date
Jeff Sharkey
061ccee7f3 Merge "Deprecate some FileUtils, pointing to Os instead." 2012-03-08 16:29:54 -08:00
Jeff Brown
df813c03b1 Merge "Use the Choreographer for Drawable animations." 2012-03-08 16:28:48 -08:00
Romain Guy
67b3a9ea61 Merge "Fix the docs" 2012-03-08 15:56:59 -08:00
Romain Guy
1e3d313c78 Fix the docs
Change-Id: I73bcb684eac01db870936aa5e29df930b5432833
2012-03-08 15:55:56 -08:00
Amith Yamasani
28ca8f9f95 Merge "Make SyncManager and AccountManagerService multi-user aware." 2012-03-08 15:55:20 -08:00
Romain Guy
583fcb9175 Merge "Dispatch screen state change events to Views Bug #6120957" 2012-03-08 15:06:50 -08:00
Romain Guy
bb9908b828 Dispatch screen state change events to Views
Bug #6120957

Using this new callback, views can interrupt and resume their
animations or other periodic tasks based on the current state
of the display.

Change-Id: I398f4abd421e9c5f207107bf1009a7b92cf45daa
2012-03-08 15:05:12 -08:00
Dianne Hackborn
21c241e061 Add new Intent API for associating a ClipData with an Intent.
Allows applications to propagate multiple URI grants through an
Intent.

Later on, we should probably redefine the share actions to be
based on this ClipData with the old extras-based approach only
there for compatibility.  Even if we don't do that, though, this
allows you to do a multi-select share that grants multiple URI
permissions by stuffing the URIs in a ClipData.

Also add some documentation in various places telling people how
they can grant URI permissions.

Change-Id: Id4ba8e72c11caf7e1f1f438cb7af058d1586a37c
2012-03-08 14:34:03 -08:00
Jeff Sharkey
929b5899a3 Deprecate some FileUtils, pointing to Os instead.
Change-Id: I5d306784ea924ffd8c32c4768f975190445932a4
2012-03-08 14:31:57 -08:00
Fabrice Di Meglio
bbd8226e97 Merge "More fixes about padding" 2012-03-08 12:26:22 -08:00
Elliott Hughes
940fcbddd3 Merge "Tracking changes to SSLParametersImpl.getDefaultTrustManager()" 2012-03-08 12:25:48 -08:00
Adam Powell
f8f0c8ea4b Merge "Fix measurement issues with Spinner and ListPopupWindow" 2012-03-08 12:24:32 -08:00
Brian Carlstrom
866666071b Tracking changes to SSLParametersImpl.getDefaultTrustManager()
Change-Id: I0bcf2bbcd2581f6b66e08d1c6f0de24bf8d34199
2012-03-08 12:23:53 -08:00
Adam Powell
7507d3d31c Fix measurement issues with Spinner and ListPopupWindow
Bug 6132826 - make sure that our speculative measurement of list items
uses an accurate width MeasureSpec. This bug would sometimes affect
window sizing when measuring height if content could wrap in the
presence of restricted width.

Change-Id: Ie28573e952cac3dfa2b95e4691758c72f26b8fd9
2012-03-08 12:19:31 -08:00
Fabrice Di Meglio
bf923ebb25 More fixes about padding
- take care of overridig setPaddingRelative() too in TextView subclasses

Change-Id: If2057247cfcac919d777846def4adfeb5a682d51
2012-03-08 12:12:34 -08:00
Fabrice Di Meglio
3bef5e9f3a Merge "Fix View padding resolution" 2012-03-08 11:14:11 -08:00
Fabrice Di Meglio
0c245fb201 Merge "Make more TextView RTL APIs public" 2012-03-08 11:13:27 -08:00
Amith Yamasani
04e0d265e3 Make SyncManager and AccountManagerService multi-user aware.
AccountManagerService
- Maintain multiple account lists, one per user
- Keep multiple databases of accounts
- Account db moved to /data/system/users/<userid>/

SyncManager
- SyncStorageEngine keeps track of multiple users' accounts.
- SyncQueue maintained as a single instance, queueing requests from
  multiple users.
- Changed some methods to take userId arguments
- Removed some deadc0de
- Store the userId in the SyncOperation, so we know which provider
  instance to bind to when queued operations are processed.

ContentService
- Pass along the userid to sync manager calls.

ActivityManagerService:
- Fixed a bug in cancelIntentSender
- Don't bring other user's task forward when resetting tasks.

Updated tests

Change-Id: If317340ef68e902787aa3f5ceb4cf96f14aea695
2012-03-08 10:52:36 -08:00
Romain Guy
250069bf6b Merge "Ignore draw requests when the display is off" 2012-03-08 10:47:02 -08:00
satok
a4fb0cb1fe Merge "Optimization of the request of the sentence level spell check" 2012-03-08 06:12:59 -08:00
satok
fe5a51ee04 Optimization of the request of the sentence level spell check
Change-Id: Ic89b0dd027bf0af6e8f1877043ae40baed48b2a4
2012-03-08 21:40:53 +09:00
Jonathan Dixon
ffb66ec254 Merge "Remove duplicated comments from WebViewClassic" 2012-03-08 04:23:34 -08:00
satok
3154fc45e5 Merge "Fix spell checker framework" 2012-03-08 02:31:08 -08:00
satok
2428ccbbde Fix spell checker framework
Change-Id: I281d031259dd220936832668e7a4556473ccb2ce
2012-03-08 18:52:21 +09:00
satok
792ee0cc4d Fix possible NPE in SpellChecker
Change-Id: Ib3c9fe7189c8f31a460149add857e9855919f386
2012-03-08 17:03:48 +09:00
Jeff Brown
7ae9d5faad Use the Choreographer for Drawable animations.
Change-Id: Ifcbf33434bf3c32d1900fd0b3f5bde004604ce8a
2012-03-07 19:02:51 -08:00
Fabrice Di Meglio
509708deb8 Fix View padding resolution
- make setPadding() and setPaddingRelative() share same code

Change-Id: Iaefa82deb29d9efd6b3f88c751daf503c6b8f774
2012-03-07 18:01:14 -08:00
Dirk Dougherty
e61cad321d resolved conflicts for merge of 532679a5 to master
Change-Id: Id60d047c0e1f288acff97526c016cca632873b6b
2012-03-07 16:58:03 -08:00
Fabrice Di Meglio
d159109bd8 Make more TextView RTL APIs public
- padding related APIs
- drawable related APIs

Change-Id: If926ba1658431f826153128553f1ff429275f948
2012-03-07 15:34:38 -08:00
John Reck
39aae0cefb Merge "Don't draw the focus ring if we don't have focus" 2012-03-07 14:42:20 -08:00
Chris Craik
28ae199eee Merge "reenable webkit paint pausing" 2012-03-07 14:12:41 -08:00
Eino-Ville Talvala
d5f0799082 Merge "NEW_API: Rework CameraSound into MediaActionSound, and unhide it." 2012-03-07 13:54:43 -08:00
Chris Craik
07b201194a reenable webkit paint pausing
bug:6016196

Change-Id: I4fcab8d84b39f033724c45845ef6c67b3071c509
2012-03-07 11:59:25 -08:00
John Reck
413fab3f44 Don't draw the focus ring if we don't have focus
Change-Id: Icb03060a03caf817ea39935bb56e14b5c86ed57b
2012-03-07 11:41:19 -08:00
Michael Jurka
1ce1307641 Merge "Don't draw layers in buildLayer()" 2012-03-07 11:25:20 -08:00
Dianne Hackborn
5eb37241fe Merge "Work on more low memory reporting to apps." 2012-03-06 19:06:25 -08:00
Dianne Hackborn
27ff913d56 Work on more low memory reporting to apps.
There are now some new trim memory levels that are sent to
non-background applications as RAM becomes low.

There is a new API for an application to retrieve information
about memory trimming and such on demand.

Fixed various checks against the memory trim level to be
robust (not compare against exact values).

Change-Id: Ifd1c6151124350168aef20a94e517166fd2e03eb
2012-03-06 18:46:32 -08:00
John Reck
afeecb0740 Merge "Fix focus rings for buttons" 2012-03-06 18:22:14 -08:00
John Reck
ef109b0b70 Fix focus rings for buttons
Bug: 6124914

Change-Id: I8cb63de2636afc297756de7733de7bdda920b694
2012-03-06 18:02:11 -08:00
Adam Powell
494e155a5a Merge "Fix some action bar menu layout bugs around config changes" 2012-03-06 17:43:48 -08:00
Adam Powell
f203e0a44e Fix some action bar menu layout bugs around config changes
Bug 5712010

Fix cases where the transition between split/standard action bar menu
presentation wasn't happening properly for windows in activities that
handle their own config/orientation changes.

Change-Id: I7168555e09c9ed448afb8619fd6f0e1466695365
2012-03-06 17:42:47 -08:00
Michael Jurka
7e52caf6db Don't draw layers in buildLayer()
Creating the layer, if necessary, takes the bulk
of the time - just do the creation, and schedule a
deferred update

Change-Id: I21399ebd5d2929a4f242ec1c08e3f97fed1ef58a
2012-03-06 17:18:00 -08:00
John Reck
e6725bcba5 Merge "Fix unhandled navigation path" 2012-03-06 17:05:48 -08:00
John Reck
ff8025b994 Merge "Fix FOCUS_BACKWARD search if view had no id" 2012-03-06 17:04:13 -08:00
Jeff Brown
03bd302aeb Don't close the database until all references released.
SQLiteDatabase.close() should call releaseReference() rather than
closing the database immediately.  SQLiteDatabase should also hold
a reference to itself while performing certain operations to
ensure that they complete normally even if another thread closes
the database at the same time.

Fixed a couple of missing or redundant uses of acquireReference()
related to CursorWindows.

To be honest, the reference counting performed by SQLiteClosable should
not be needed, but we're stuck with it in the API.

Bug: 6104842
Change-Id: I3444a697409905d4a36b56418dc7766f5ba76b59
2012-03-06 16:42:56 -08:00
Eino-Ville Talvala
e69095869c NEW_API: Rework CameraSound into MediaActionSound, and unhide it.
MediaActionSound is a helper class for applications that use the
camera, or include camera-like behavior such as taking
screenshots. This class helps applications match the sound-playing
behavior of the Camera.takePicture, MediaRecorder.start, and
MediaRecorder.stop methods.

This is useful for applications that don't use the above methods, but
still logically capture images or video, such as the panorama capture
feature and the video effects in the platform camera application.

Bug: 5029099
Change-Id: I829f6e2941f167f91f9cb506215b7232cb054958
2012-03-06 16:33:50 -08:00
John Reck
1ecebbb27f Fix FOCUS_BACKWARD search if view had no id
Bug: 6126875

Change-Id: I113a7125d71dc3e6cc34d31a669e844a4a882266
2012-03-06 16:08:54 -08:00
John Reck
4fa40371b3 Fix unhandled navigation path
Bug: 6109044
 Tab keys are handled via canTakeFocus & takeFocus (new path)
 Arrow keys are handled by seeing if the keyDown was unhandled (similar to old path)

Change-Id: I825de102de31443b1383a8126992c65a4957dcce
2012-03-06 15:38:09 -08:00
Nicolas Roard
b4827c089f Merge "Pass the version down to native" 2012-03-06 14:13:54 -08:00
Gilles Debunne
957c800ac0 Merge "Ellipsize avoids spaces and starts right after text" 2012-03-06 13:57:16 -08:00