73751 Commits

Author SHA1 Message Date
James Dong
062ed957e0 Fixed missing return value from a method should have returned status_t
Change-Id: I83ad2735eaf8a8dfa5f8f29f30aec1311b3222de
2012-03-24 10:15:18 -07:00
James Dong
3b3a5b100b Merge "VideoEditorMain.h is moved to /frameworks/av/libvideoeditor and thus can be deleted." 2012-03-24 09:57:06 -07:00
James Dong
6e3bceef9c VideoEditorMain.h is moved to /frameworks/av/libvideoeditor and thus can be deleted.
o this is to resolve undesirable dependency of /frameworks/av/libvideoeditor on /frameworks/base/media/jni
o related-to-bug: 6214141

Change-Id: I62d08a7789ecb34d35cd22d2e6f68c3510c9bd90
2012-03-24 09:42:59 -07:00
Daniel Sandler
820ba323f9 Add remotable methods for TextView's compound drawables.
Change-Id: I67445e5b1d4a571020dfcd551ab00bd83a8eb536
2012-03-24 09:56:10 -05:00
Romain Guy
d4577c0c29 Merge "Destroy the hardware renderer when ViewRootImpl's die is post-poned Bug #6109035" 2012-03-23 19:05:50 -07:00
Romain Guy
a998dff5d4 Destroy the hardware renderer when ViewRootImpl's die is post-poned
Bug #6109035

ViewRootImpl.die() can be invoked in such a way that doDie() will be
executed later. On memory limited device, an eglTerminate() may happen
before doDie() is executed which leads to unstable behaviors. This
change makes sure the renderer is destroyed as soon as possible.

Change-Id: I3322410cdd744b464951e2055aeade6069d1d673
2012-03-23 19:04:36 -07:00
Yu Shan Emily Lau
660b014daa Merge "Insert 2 seconds wait in each test case setup. This is the work around for the surface request race condition." 2012-03-23 18:53:18 -07:00
Fabrice Di Meglio
702e8f9b92 Fix bug #6213159 FocusFinder should be able to take care of Views direction
- use RTL layout direction as input to decide what to do

Change-Id: Ied825963992e5406f546a937857c5ca4101977bb
2012-03-23 18:19:10 -07:00
Nick Kralevich
7ac3ed1d76 resist umask changes, make dirs 0711
Make sure /data/user directory permissions get explicitly set
regardless of the system umask.

Change directory permissions to 0711. No need for read permissions.

Bug: 3272072
Change-Id: Ida7f3c6656f4e0c9d0a9f7648491cc853c4e44ca
2012-03-23 18:00:47 -07:00
Yu Shan Emily Lau
003a756974 Insert 2 seconds wait in each test case setup.
This is the work around for the surface request race
condition.

Change-Id: Iaf8be12cfe4eb70d0a309ad875f38427181ac4b4
2012-03-23 17:58:49 -07:00
Christopher Tate
a6deda436b Merge "Don't crash when wiping backup data redundantly in the local transport" 2012-03-23 17:52:25 -07:00
Christopher Tate
0abf6a0014 Don't crash when wiping backup data redundantly in the local transport
Previously, if using the "local" debugging transport:

    adb shell bmgr wipe com.android.browser
    adb shell bmgr wipe com.android.browser

... would bring down the runtime.  This no longer happens.  The fix
covers two aspects of the situation:  1. the local transport no longer
blows up in this use case, and 2. the backup manager itself now catches
blowups on the part of the transport, and tidies up after them.

Bug 6205185

Change-Id: Ieb9b8827a62523148ad5a0ec15b05a954d198b3d
2012-03-23 17:47:58 -07:00
Eric Laurent
857d6c27f2 Fixed headset detection broken on stingray
commit 5e64321e broke the headset detection on stingray.
This is because the name passed with the UEvent upon headset insertion/removal is
different from the dev path (h2w). It actually indicates the type of headset connected.

The fix consists in using the dev path received with the UEvent to find the corresponding
entry in uEventInfo.

Change-Id: I8481cfa17a7af3c8f5d83fc87d0f7c0d2c981098
2012-03-23 17:32:37 -07:00
Jeff Sharkey
0c44525a48 Merge "Copy EXTRA_STREAM into ClipData and grant." 2012-03-23 17:09:13 -07:00
Mathias Agopian
2cd24ecf61 Merge "move ndk headers to frameworks/native" 2012-03-23 16:46:19 -07:00
Fabrice Di Meglio
22ab7751d4 Improve View layoutDirection resolution
- make it similar to textDirection
- unhidde also new API: resolveLayoutDirection()

Change-Id: I43c2c2ef32ed6d1f3586781a063271b72e90b9a3
2012-03-23 16:39:26 -07:00
Marco Nelissen
c164faa831 Speed up playlist processing
The recent removal of the cache from MediaScanner (commit 58ef68905d67e356eb)
slowed down processing of playlists, in some cases significantly, due to every
line in a playlist prompting a query that looped over the entire audio table.

With this change, the query is only done once instead of for every line,
and the code starts iterating over the Cursor starting near the point of
the last match, instead of from the start. The latter is especially helpful
when the entire query result is too large to fit in a CursorWindow, since
it reduces the number of times that sqlite has to perform an offset query
under the hood to refil the window.

Change-Id: I9fea990b3b8c86571384de2122708fb7e809c355
2012-03-23 16:37:50 -07:00
Xavier Ducrohet
fbd0509f47 Merge "Add Delegate for ViewRootImpl#isInTouchMode to prevent IPC call in Eclipse." 2012-03-23 16:29:50 -07:00
Craig Mautner
d5f2374e13 Merge "Reset layout needed at each animation step." 2012-03-23 16:20:47 -07:00
Craig Mautner
bb1449b392 Reset layout needed at each animation step.
The member variable WindowAnimator.mPendingLayoutChanges was never
being reset to 0. Consequently once it was set it was causing endless
calls to the layout method.

Fixes bug 6208114, 6220403, 6219546.

Fixed NPE in RecentsPanelView.

Change-Id: Ie529b8f31e535543cb5ae0af9447146306b14eeb
2012-03-23 16:11:14 -07:00
Xavier Ducrohet
22f700a1b8 Add Delegate for ViewRootImpl#isInTouchMode to prevent IPC call in Eclipse.
Also fix some new/removed method from BitmapFactory.

Change-Id: I606bd8bee6ff1e2c6c9472b4672175bfdaff45de
2012-03-23 16:07:23 -07:00
Jason Sams
9321ad6a75 Merge "Add getSizeBytes and cleanup docs." 2012-03-23 15:52:53 -07:00
Jason Sams
36c0f64658 Add getSizeBytes and cleanup docs.
Change-Id: I854a41f50378590b58bfbb205906ed4bee440411
2012-03-23 15:48:37 -07:00
Jason Sams
219e6b9dae Merge "Cleanup Allocation docs and getter funcs." 2012-03-23 15:47:00 -07:00
Jeff Sharkey
678d04f1b6 Copy EXTRA_STREAM into ClipData and grant.
When sending SEND or SEND_MULTIPLE intents, copy any EXTRA_STREAM
Uris to ClipData and set GRANT_READ_URI_PERMISSION flag.

Bug: 6216357
Change-Id: I3c9b0d1d4b7e0c4655b47c4192150b0c3641e0e8
2012-03-23 15:45:37 -07:00
Jeff Brown
cc001fdaf0 Merge "Provide an API for enabling foreign key constraints." 2012-03-23 15:39:02 -07:00
Jeff Sharkey
69f819b397 Merge "Include GIDs for unenforced permissions." 2012-03-23 15:21:00 -07:00
Dianne Hackborn
7cf4640e81 Merge "Add new thumbnail animation." 2012-03-23 15:00:59 -07:00
Mathias Agopian
60b82263a1 move ndk headers to frameworks/native
Change-Id: I44e48b8993e8b574ae366b9e76629099154998a9
2012-03-23 14:59:35 -07:00
Mathias Agopian
3e93e433e2 Merge "add missing include" 2012-03-23 14:58:19 -07:00
Mathias Agopian
7efec15fef add missing include
Change-Id: I7eb05f6cb6de170aeb3b72d28490cdcf46982d13
2012-03-23 14:57:16 -07:00
Jeff Brown
96496adb61 Provide an API for enabling foreign key constraints.
Also provide a lifecycle method on SQLiteOpenHelper so that
applications can configure things like this before the onCreate,
onUpgrade, onDowngrade and onOpen callbacks run.

Change-Id: If3d1396720bd2e032dd9e034733fb1ff9a9733dd
2012-03-23 14:49:39 -07:00
Eric Fischer
a7b4ad46ec Merge "Import translations. DO NOT MERGE" 2012-03-23 14:20:57 -07:00
Eric Fischer
6379312c04 Merge "Import translations. DO NOT MERGE" 2012-03-23 14:20:45 -07:00
Dima Zavin
1f6c2d5c0e Merge "frameworks/base: remove build/ and dalvik heaps" 2012-03-23 14:20:26 -07:00
Eric Fischer
17d911899d Merge "Import translations. DO NOT MERGE" 2012-03-23 14:19:23 -07:00
Dianne Hackborn
8078d8c8a2 Add new thumbnail animation.
Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
2012-03-23 14:13:13 -07:00
Glenn Kasten
a945aad739 Merge "Revert "Split libmedia into libmedia and libmedia_native"" 2012-03-23 14:06:00 -07:00
Glenn Kasten
eb3be2d8c5 Revert "Split libmedia into libmedia and libmedia_native"
This reverts commit 0a3edd38df0743dcc7091bb7ebf29e7e7dadc7cb
2012-03-23 14:05:52 -07:00
Glenn Kasten
243806cfeb Merge "Revert "AudioFlinger does not need libmedia any more"" 2012-03-23 14:05:02 -07:00
Glenn Kasten
4bfcca92d2 Revert "AudioFlinger does not need libmedia any more"
This reverts commit c920dee060ac69684be33210ee44b99a5fc3e8b2
2012-03-23 14:04:27 -07:00
Christopher Tate
5b6f07b461 Merge "Deal gracefully with fatal exceptions during full backup" 2012-03-23 14:01:40 -07:00
Christopher Tate
aa0c02d221 Deal gracefully with fatal exceptions during full backup
In particular, if the low-level zip or crypto layers of the output
pipeline throw, the output becomes invalid at that point, but we
were not properly detecting this; we were missing the exception and
the runtime was going down.  Now we catch any such fatal exception
and make sure to shut down the backup operation cleanly, leaving
the output at whatever point in its construction that it had
achieved.

Bug 6131870

Change-Id: If0fe0337857404b776f407a79d11dd88b8e60fd0
2012-03-23 13:56:34 -07:00
Jason Sams
03d2d00dc8 Cleanup Allocation docs and getter funcs.
Change-Id: Ic6fb92e0675d64016f0d471c1d9e5328101e4b36
2012-03-23 13:51:56 -07:00
Jeff Brown
0aa4713e47 Merge "Support enabling WAL using a flag when DB is opened." 2012-03-23 13:46:56 -07:00
Reto Meier
674228845c am 106d8460: am 20f394df: Docs: Added efficient downloads Android U class
* commit '106d846080d6d239ab0eb3539cd92516046dcd4d':
2012-03-23 13:34:25 -07:00
Reto Meier
284f9717d3 am 278296b5: am 20f394df: Docs: Added efficient downloads Android U class
* commit '278296b59fb16b5dcb7cc8e5a7538518a2a3dbb7':
  Docs: Added efficient downloads Android U class
2012-03-23 13:33:02 -07:00
Reto Meier
106d846080 am 20f394df: Docs: Added efficient downloads Android U class
* commit '20f394df4db02c492d7920f4f366b777451c2067':
  Docs: Added efficient downloads Android U class
2012-03-23 13:30:13 -07:00
Reto Meier
278296b59f am 20f394df: Docs: Added efficient downloads Android U class
* commit '20f394df4db02c492d7920f4f366b777451c2067':
  Docs: Added efficient downloads Android U class
2012-03-23 13:30:04 -07:00
Jason Sams
cbe55a1c93 Merge "Implement USAGE_IO_INPUT" 2012-03-23 13:29:17 -07:00