39555 Commits

Author SHA1 Message Date
Adam Powell
2b6be701a9 Fix bug 3312807 - Fix child margin measurement in FrameLayout
Change-Id: I5166d7b2d283c577d5f95a15b1626b068cfa6bc6
2011-01-08 16:44:07 -08:00
Adam Powell
00bba682ef Amendment to fix for bug 3332414
Change-Id: Id3047f6ea6f8f5c68318057798e285cc1e06d094
2011-01-08 15:53:38 -08:00
Adam Powell
d1af77207c Merge "Bug 3332414 - UI glitch in CAB options" into honeycomb 2011-01-08 15:26:53 -08:00
Adam Powell
dd10b66601 Bug 3332414 - UI glitch in CAB options
Change-Id: Ic066f968b0125276c315f31adbd96420e528362f
2011-01-08 15:17:30 -08:00
Adam Powell
0d69fae5e6 Fix bug 3330683 - Do not show the legacy menu panel for HC apps on
xlarge devices.

Change-Id: Ic268684570a429d8da499c142b23bb20b3fe2b82
2011-01-08 15:08:27 -08:00
Adam Powell
2ebac69419 Fix bug 3334437 - require an adapter to measure dropdown content width
Change-Id: I357a2db66db121816091921e47708140958ad507
2011-01-08 13:58:29 -08:00
Adam Powell
947f782411 Fix bug 3245465 - Themed dialog icons
Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
2011-01-08 13:09:51 -08:00
Shih-wei Liao
4d46ecb075 Merge "For caching, didn't do CompileBC. Rename bccCompileBC as bccPrepareExecutable." into honeycomb 2011-01-07 19:26:44 -08:00
Shih-wei Liao
8845fbbc8e For caching, didn't do CompileBC. Rename bccCompileBC as bccPrepareExecutable.
Change-Id: Ie63cd87bf377e2daf0c81d81c0bf86a6195edf46
2011-01-07 19:24:41 -08:00
Robert Ly
67c2d979e3 Doc change: fixing links set 3
Change-Id: Id4123a2f0685887417d0b17a6fa81368aa756b6e
2011-01-07 18:57:06 -08:00
Robert Ly
293b850da6 Doc change: fixing links set 2
Change-Id: I8752cc7c732812a5f11f8b5f5ac83c3a87305f22
2011-01-07 18:56:10 -08:00
Robert Ly
c74a69a89a Doc Change: Fixing broken links and miscellaneous text revisions to support link fixing
Change-Id: I192595a3c7af520bf8598e80ae25d0dea289fcbd
2011-01-07 18:54:44 -08:00
Robert Ly
ec5ca94cfa Doc change: Deleting obsolete files and adding html redirects. Modified hv and traceview docs.
Change-Id: Ic0c02da3205d2f8f22c8c045d859ddd1f83f7a9e
2011-01-07 18:52:01 -08:00
Shih-wei Liao
3ba2bf42c5 Merge "1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.) 2. Prepare on-device linking. 3. Clean up code." into honeycomb 2011-01-07 18:38:06 -08:00
Xavier Ducrohet
b6e53f4812 LayoutLib: add a few misc implementations.
Change-Id: I586f1d5ecc4f254fc04ea1171eb499d06ac592eb
2011-01-07 18:37:49 -08:00
Shih-wei Liao
9d4024d540 1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)
2. Prepare on-device linking.
3. Clean up code.

Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
2011-01-07 18:28:02 -08:00
Xavier Ducrohet
46a329244d LayoutLib: finish Typeface and unload them in dispose.
Change-Id: I3a48f84678f62d669d303fc73b041bb3fe5f333b
2011-01-07 18:16:43 -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
Xavier Ducrohet
7550ec1d8e LayoutLib: remove fade in/out transition on moveChild.
Change-Id: I69a70ecb165f19feca55fc30a3f48ebea896daa3
2011-01-07 17:14:36 -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
Kenny Root
1683afac14 Fix check for required features
The required features check was in an null check for usesLibraries, so
it wasn't checking for required features when an application did not use
a library.

Bug: 3331713
Change-Id: I96d366ba00d4962b84f3796be97e2b622eb331a5
2011-01-07 15:43:05 -08:00
Dmitri Plotnikov
7866b8a640 Merge "Prevent ActivityTestCase from erasing constants." into honeycomb 2011-01-07 15:26:31 -08:00
James Dong
a173541c6b Fix uninitialized rect structure for retrieving rect cropping information from decoder
o This patch is from NV.

bug - 3333254

Change-Id: I02bc26af464ea0bc9ad9f2e111474e8398c67220
2011-01-07 14:57:34 -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
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
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