38984 Commits

Author SHA1 Message Date
Michael Chan
aa5bb98120 b/3279789 Fixed NPE in CalendarUtils$TimeZoneUtils$AsyncTZHandler.onQueryComplete
Null cursor was returned from query

Change-Id: I76a7d710b0764f52ed6ced23792717feb7b6ae08
2011-01-09 12:11:02 -08:00
Jamie Gennis
fd6f39e147 Enable camera preview to a SurfaceTexture.
This change adds a public Java API to use a SurfaceTexture as the
destination of camera preview frames.

Change-Id: If537fed2df12c5c181e2af5f817985c1bda853fb
2011-01-07 17:40:24 -08:00
Adam Powell
b5e18555d6 Merge "Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"" into honeycomb 2011-01-07 17:27:19 -08:00
Adam Powell
5e3f284baa Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"
Add protection against views disappearing before previously posted
Runnables attempt to show a menu anchored to them.

Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
2011-01-07 17:22:25 -08:00
Eric Laurent
e15ac3b970 Merge "Fix issue 3261656." into honeycomb 2011-01-07 17:20:59 -08:00
Eric Laurent
a60e212d0d Fix issue 3261656.
The problem can occur if a sample is started at the same time as the last AudioTrack callback
for a playing sample is called. At this time, allocateChannel() can be called concurrently with moveToFront()
which can cause an entry in mChannels being used by moveToFront() to be erased temporarily by allocateChannel().

The fix consists in making sure that the SoundPool mutex is held whenever play(), stop() or done() are called.

In addition, other potential weaknesses have been removed by making sure that the channel mutex is held while
starting, stopping and processing the AudioTrack call back.

To that purpose, a mechanism similar to the channel restart method is implemented to avoid stopping channels
from the AudioTrack call back but do it from the restart thread instead.

The sound effects SounPool management in AudioService has also been improved to make sure that the samples have
been loaded when a playback request is received and also to immediately release the SoundPool when the effects are
unloaded without waiting for the GC to occur.
The SoundPool.java class was modified to allow the use of a looper attached to the thread in which the sample
loaded listener is running and not to the thread in which the SoundPool is created.

The maximum number of samples that can be loaded in a SoundPool lifetime as been increased from 255 to 65535.

Change-Id: I368a3bdfda4239f807f857c3e97b70f6b31b0af3
2011-01-07 17:17:10 -08:00
Jason Sams
fa445b9353 Cleanup subdata apis
Change-Id: I70d0d5e4ca2b42f3a9cbf854fe47917cee8f46df
2011-01-07 17:04:29 -08:00
Xavier Ducrohet
e4aff7c6bf Merge "LayoutLib: fix moveChild again." into honeycomb 2011-01-07 17:01:48 -08:00
Scott Main
96f57d6cdf Merge "cherrypick Change-Id: Id5d38a6d97323e082535e433ab64e89e8bd3d021 docs: catchup honeycomb to gingerbread-docs with misc changes" into honeycomb 2011-01-07 16:41:52 -08:00
Scott Main
60c4e039d7 cherrypick Change-Id: Id5d38a6d97323e082535e433ab64e89e8bd3d021
docs: catchup honeycomb to gingerbread-docs with misc changes

Change-Id: Ia192e253a1b0aca026e1809b4e68011975c1ad8c
2011-01-07 16:40:11 -08:00
Christopher Tate
c548378562 Merge "Rename drag "thumbnail" to the drag "shadow"" into honeycomb 2011-01-07 16:36:11 -08:00
Christopher Tate
36d4c3f02b Rename drag "thumbnail" to the drag "shadow"
No functional changes; just a rename of the relevant class/method/parameters.

Change-Id: I55d9ef7c2c17892b0bc99f5da622c281e006b53e
2011-01-07 16:30:44 -08:00
James Dong
3f0c13538a Merge "Awesomeplayer : Frame dropping logic change" into honeycomb 2011-01-07 16:25:38 -08:00
Xavier Ducrohet
d7cc1244d7 LayoutLib: fix moveChild again.
Change-Id: Ib69a06e44be1e332f0f43c36c795c86270cb1b71
2011-01-07 16:16:21 -08:00
pmehendale
28f939db9d Awesomeplayer : Frame dropping logic change
Changed late frame drop policy, now we are dropping only 1 in 8,
late (> 40ms) frames. Dropping every late frame result in lot of noticible
pauses, usually with peaky bitrate activity these pauses become more prominant.
Dropping few frames is still required to allow overall playback chain,
to regain the performance.
Experimentally decided to drop Max one late frame in 8.

Change-Id: If20848d619a76aaf8179b1e5c3155610e3bc85fd
2011-01-07 16:14:40 -08:00
Joe Onorato
539802e782 Merge "The switch widget didn't work properly until after onMeasure had run." into honeycomb 2011-01-07 16:01:34 -08:00
Joe Onorato
c3eabb9b6c The switch widget didn't work properly until after onMeasure had run.
Change-Id: I3259193ca60392ffc133f2ff6479feb8e4ad536e
2011-01-07 15:58:44 -08:00
Dmitri Plotnikov
7866b8a640 Merge "Prevent ActivityTestCase from erasing constants." into honeycomb 2011-01-07 15:26:31 -08:00
Romain Guy
2c602e6a66 Merge "Non-opaque views with fading edges cannot be marked dirty opaque. Bug #3325084" into honeycomb 2011-01-07 14:48:35 -08:00
Romain Guy
7e68efb0a0 Non-opaque views with fading edges cannot be marked dirty opaque.
Bug #3325084

Change-Id: I80b7653daa2ae3cc6d81da1063911aa4cb69e8f4
2011-01-07 14:50:27 -08:00
Dianne Hackborn
8244562c79 Merge "WM part of #3293405: Screen needs to be redrawn when HDMI is plugged in" into honeycomb 2011-01-07 14:10:05 -08:00
Adam Powell
2b26266afd Merge "Fix bug 3158976 - Search box is too small" into honeycomb 2011-01-07 14:07:39 -08:00
Dianne Hackborn
ad7fa7fa77 WM part of #3293405: Screen needs to be redrawn when HDMI is plugged in
Change-Id: If5ceb28073c6abf14165871bd99cb481b31a863b
2011-01-07 14:07:20 -08:00
Adam Powell
a6c127670f Fix bug 3158976 - Search box is too small
Set default minimum widths for SearchView text fields.

Fix an issue with the ActionButton style.

Change-Id: I2315df334479ba66fed16e2ca59c4a49e2437442
2011-01-07 14:04:40 -08:00
Svetoslav Ganov
c93fb656dc bug:3325039 Making the cursor ring movement send accessibility events.
1. Added a mechanism to select the cursor ring content if accessibility is
   enabled - This is achieved by sending an event to the WebCore thread
   (if accessibility is enabled) to select the content of the cursor when
   the latter moves. Added code in WebViewCore to select the given node
   and notify the UI thread for the selection markup which is delivered
   of the accessibility injector which manages sending accessibility
   events. This is relevant for adding accessibility to WebView if
   JavaScript is not enabled. (If JS is enabled we inject a screenreader
   written in JS).

2. Fixed the event delegation to the accessibility injector since it
   should be able to consume key events of interest and perform some
   action which leads to sending appropriate accessibility event.
   In the previous implementation it was possible that the injector
   consumes the event but the latter was bubbled up.

3. Added function to scroll the selection into view while moving it
   around based on user commands.

Note: This is a part of two project commmit.

Change-Id: Ibb81d0468726efbe3bf6e3add1b19c69e3206638
2011-01-07 14:04:22 -08:00
Xavier Ducrohet
23ddfbe52c Merge "LayoutLib: fix animated moveChild." into honeycomb 2011-01-07 13:54:26 -08:00
Scott Main
955c63f8f4 cherrypick Change-Id: If65316cb08c8912ed2ad1fe10ab7d5ceee664084
docs: revise developing on a device to replace nexus one

Change-Id: I2e9945020a7b63175e0d5cf37ad4dd9bc783fa04
2011-01-07 13:50:50 -08:00
Scott Main
08e9a0fd2e cherrypick Change-Id: I9e1b530b5cbd43043d326c04bfc30b073bf9d388
fix bug 3295540

Change-Id: I1835444ff6dd0351a0f66ef565fa97a15dfea53f
2011-01-07 13:38:34 -08:00
Scott Main
e6320beff7 cherrypick Change-Id: Ic4fe5e2d1ef3082c34fb448dd1f4705f73f2235f
docs: update dashboard

Change-Id: Ifb21e6277ca71f717e4d91fca1ec4a49a810a7dc
2011-01-07 13:37:04 -08:00
Romain Guy
a174d7a0d5 Don't match wrap_content/match_parent children with child count = 1.
Bug #3328711

Change-Id: Ic131f2feecbeec4a7250d47193c9794aa70d22ee
2011-01-07 13:27:39 -08:00
Romain Guy
2b55d9030e Merge "Don't match wrap_content/match_parent children with child count = 1. Bug #3328711" into honeycomb 2011-01-07 13:24:50 -08:00
Leon Scroggins
2358623917 Merge "Do not update matches string when there are no matches." into honeycomb 2011-01-07 13:17:19 -08:00
Louis Huemiller
48d5f1f681 Merge "Hardware Composer new and refactored test cases" into honeycomb 2011-01-07 13:12:11 -08:00
Gilles Debunne
c0dc40628e Merge "Added support for Unicode surrogate characters in word selection" into honeycomb 2011-01-07 13:11:16 -08:00
Alex Sakhartchouk
660733d3e4 Merge "Additional loading methods for fonts and a3d files. Cleaned up error messages." into honeycomb 2011-01-07 13:03:07 -08:00
Eric Fischer
691bc9fec0 Merge "Import some unabbreviated translations for large screens." into honeycomb 2011-01-07 13:00:17 -08:00
Leon Scroggins
73254be0dd Do not update matches string when there are no matches.
Bug:2927451
Change-Id: I6374ffcc9d0710d69206d2f1f31a908b010a75bf
2011-01-07 15:51:43 -05:00
Xavier Ducrohet
2b9c38ab62 LayoutLib: fix animated moveChild.
The child can only be added to the new viewgroup
after it's been removed from the previous one, which
is delayed if there's an animation.

Change-Id: I9123a2670d0d17b3eb6f8f89085ebab8ca2b800f
2011-01-07 12:49:49 -08:00
Marco Nelissen
af5473eedd Merge "Add support for the "compilation" tag in mp3, mp4 and ogg, and also add support for two common ways of specifying album artist in ogg files. b/3311831" into honeycomb 2011-01-07 12:43:36 -08:00
Marco Nelissen
ee35aff744 Add support for the "compilation" tag in mp3, mp4 and ogg, and also add
support for two common ways of specifying album artist in ogg files.
b/3311831

(cherry-picked from GB because of weird automerger failure)

Change-Id: Ibf12a3d6bc8bbc2ac5ea815de6b33414b8f53f0f
2011-01-07 12:42:07 -08:00
Gilles Debunne
c43d13f495 Merge "Removed XmlAdapters from frameworks." into honeycomb 2011-01-07 12:41:10 -08:00
Vasu Nori
df22d839aa Merge "in requery(), when exception is caught, print warning + stacktrace" into honeycomb 2011-01-07 12:40:16 -08:00
Gilles Debunne
0633549799 Removed XmlAdapters from frameworks.
Has been moved to samples.

Change-Id: Icc0530d78df9755a4a1fe9314fa557a91da408c6
2011-01-07 12:14:27 -08:00
Joe Onorato
ccdf3853b5 Merge "Mark the veto button GONE for ongoing notifications so they can go into its space." into honeycomb 2011-01-07 12:08:27 -08:00
Dmitri Plotnikov
ac77f4629c Prevent ActivityTestCase from erasing constants.
If you test case is declaring a non-primitive constant,
this method would clear out the constant between
individual tests.

Change-Id: I570f2bbbbbb0a170bf63b7473b4aaf84869e93e0
2011-01-07 12:06:47 -08:00
Gilles Debunne
79ff914f21 Added support for Unicode surrogate characters in word selection
Inspired by https://review.source.android.com/#change,16606

Change-Id: I896354f5aba83c1919c008f07b6d0b2abf0b8e01
2011-01-07 11:59:26 -08:00
Adam Powell
26c0c77220 Merge "Fix bug 3330223 - onCreateOptionsMenu() unable to getActionView() immediately after orientation change" into honeycomb 2011-01-07 11:35:15 -08:00
Adam Powell
d16c9884bb Fix bug 3330223 - onCreateOptionsMenu() unable to getActionView()
immediately after orientation change

Inflate action view layout resource earlier so that calls to
getActionView are valid immediately after menu inflation.

Change-Id: I8023328b1a77670ac42a783f6e4b46aa5c2a798e
2011-01-07 11:33:41 -08:00
Xavier Ducrohet
fe75027c5c Merge "LayoutLib: Finish the matrix delegate." into honeycomb 2011-01-07 11:32:00 -08:00
Alex Sakhartchouk
b0253ea696 Additional loading methods for fonts and a3d files.
Cleaned up error messages.

Change-Id: Id33b7149671df23c37cc11375d844a7837dac750

Change-Id: I6663ce54f7b9bbaf285935ca658d93ba417f8179
2011-01-07 11:16:08 -08:00