69217 Commits

Author SHA1 Message Date
Marco Nelissen
84b8320545 Gapless playback, step 1.
Currently able to play Ogg Vorbis, PCM WAV and other lossless files seamlessly
by reusing the initial AudioTrack for subsequent players.

Change-Id: Ie7cf6b9076bdf4f9211574456d192c02c04fecc7
2012-03-13 13:13:14 -07:00
Amith Yamasani
f19d5f0271 Merge "Fix a typo in RectF.equals" 2012-03-09 12:39:22 -08:00
Marco Nelissen
8fb0a5ffbe Merge "Improve AudioPlayer position reporting" 2012-03-09 12:36:17 -08:00
Marco Nelissen
1eb0e4a260 Improve AudioPlayer position reporting
The latency was not taken into account when updating mPositionTimeRealUs
inside of the fillBuffer hook, contrary to what the getRealTimeUsLocked()
method does. This caused the realTimeOffset calculated in the
getMediaTimeUs to always be negative, causing the reported position to
always be equal to mPositionTimeMediaUs, which is updated infrequently.
With this change, the reported position is updated more frequently, allowing
apps to perform smoother UI updates.

Change-Id: I61e05c1a8b53d46b9091afb0d18a6289d13a7a5e
2012-03-09 12:27:06 -08:00
Svetoslav Ganov
2bff640779 Merge "Adding an announcement type accessibility event and a method on View to announce." 2012-03-09 12:00:13 -08:00
Amith Yamasani
3b577ddb1b Fix a typo in RectF.equals
Change-Id: Idffbf9a324b68f38843049956d1d05d4a64d1345
2012-03-09 11:53:31 -08:00
Adam Powell
c68bbe6a86 Merge "Reduce excessive right padding on action bar titles" 2012-03-09 11:51:07 -08:00
Adam Powell
d06c29439b Reduce excessive right padding on action bar titles
Change-Id: I6ef44ce330523dda38a57fe09b9d0520447a6e3c
2012-03-09 11:49:56 -08:00
Svetoslav Ganov
51ab90cab1 Adding an announcement type accessibility event and a method on View to announce.
1. The need for sending an accessibility event to announce a context change
   which does not cleanly fit into the existing UI transition UI events has
   come quite a few time in application development. To avoid retrofitting
   accessibility event types that do not semantically match the intent to
   just announce a short message this patch is adding specialized event type.
   Also a helper method on View is added to sheild developers from knowing
   how to construct and send such an event.

bug:5977979

Change-Id: Iaf5f620426f8616be67fbf243a02ad5b606c949b
2012-03-09 11:47:17 -08:00
Andrew Flynn
c5bad6956e am 36fde268: am dfc87c82: Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop
* commit '36fde2688bc32ddd5ed5de834a39ce3c7cd2b6cf':
  Use a different width for nav icons in sw600dp-port.
2012-03-09 11:43:53 -08:00
Dianne Hackborn
55b4b28606 Merge "Improved rotation animation." 2012-03-09 11:40:23 -08:00
Dianne Hackborn
191874e371 Improved rotation animation.
Change-Id: Id21686be8b2b229dc61c5d01f888c9b5deabb857
2012-03-09 11:20:54 -08:00
Irfan Sheriff
d4933842b1 Merge "Fix softap start" 2012-03-09 11:06:42 -08:00
Andrew Flynn
36fde2688b am dfc87c82: Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop
* commit 'dfc87c82e4a5e77e89c464f7074e50238525913d':
  Use a different width for nav icons in sw600dp-port.
2012-03-09 11:03:00 -08:00
Irfan Sheriff
e4aecb671b Fix softap start
Remove the unncessary "softap start" which was used for broadcom
specific implementation

Change-Id: I79458082a116cd630bd13d1ed1a237eda7daaa88
2012-03-09 11:01:01 -08:00
Andrew Flynn
dfc87c82e4 Merge "Use a different width for nav icons in sw600dp-port." into ics-scoop 2012-03-09 11:00:14 -08:00
Svetoslav Ganov
977c9a5d3c Merge "Removing checked state description text for accessibility from some widgets." 2012-03-09 10:24:33 -08:00
Svetoslav Ganov
55249c8601 Removing checked state description text for accessibility from some widgets.
1. The framework was appending some text to convey the state of a
   a CheckedTextView or a RadioButton or a ToggleButton or a Switch
   but the checked property already conveys that information. It is
   responsibility of the screen reader developer to append the state
   text based on the checked property. This change is requested by a
   few screen reader developers.

bug:5951683

Change-Id: Ieba6797770201155c48e37147ae375dfcb5238aa
2012-03-09 10:17:16 -08:00
Andreas Huber
9ad1c9744d Merge "fix EOS handling in codec test." 2012-03-09 10:10:36 -08:00
Alex Sakhartchouk
a7e6f3a704 Merge "Starting to untangle header spaghetti." 2012-03-09 09:55:30 -08:00
Andreas Huber
442df22dac fix EOS handling in codec test.
Change-Id: I5eb6d00aa0c1a728a951c7ffa4faebcadd7b14a6
2012-03-09 09:46:33 -08:00
Alex Sakhartchouk
137ccbb8de Starting to untangle header spaghetti.
Change-Id: I31f38d05dc8b55c659e8c7e9c0a87b94b9ac1db5
2012-03-09 09:24:39 -08:00
Victoria Lease
c9a390811e Merge "finalise scrolling before checking scroll position" 2012-03-09 09:23:54 -08:00
Victoria Lease
9776ed7b94 Merge "scroll relative to visibleRect in spawnContentScrollTo()" 2012-03-09 09:23:40 -08:00
Victoria Lease
3beeb1c6da finalise scrolling before checking scroll position
Bug: 5470588

Change-Id: I09435875895452d0b015a641b471b113b84f9bf5
2012-03-09 09:03:40 -08:00
Irfan Sheriff
aa6816a8a0 Merge "Enhancements for avoiding poor connection on wifi" 2012-03-09 08:53:01 -08:00
Alex Sakhartchouk
c709216310 Merge "Support for more vector types." 2012-03-09 08:44:02 -08:00
Alex Sakhartchouk
c31424e6c5 Merge "Moving lod's into hal struct." 2012-03-09 08:43:26 -08:00
Glenn Kasten
a9821bdd02 Merge "Don't ask policy manager about invalid stream type" 2012-03-09 07:19:43 -08:00
Glenn Kasten
1e8b118a40 Merge "AudioPolicyService InputDesc minor cleanup" 2012-03-09 07:19:17 -08:00
Derek Sollenberger
a64890a02e am 4ff65a0b: (-s ours) am d6f3d00b: am d7978a28: am 34ccd7af: Merge "Add missing includes for threads.h"
* commit '4ff65a0b9390f2a72306d4440da102fc666d69fb':
  Add missing includes for threads.h
2012-03-09 05:19:25 -08:00
Adam Powell
dca510e026 Fix docs
Change-Id: Idea902ec3b6e540972650a070e8d224603a55c94
2012-03-08 20:06:39 -08:00
Adam Powell
1ce891bc47 Merge "Public API for android.widget.Spinner properties" 2012-03-08 19:51:53 -08:00
Adam Powell
d9c7be6cc7 Public API for android.widget.Spinner properties
Bug 6104467

Add properties that can be set/retrieved programmatically to match the
XML attributes available.

Also add resource ID versions of Drawable setters for Switch.

Change-Id: I198cfd9701189ab200c3190f61d18c459b7e4591
2012-03-08 19:49:39 -08:00
Jeff Sharkey
92d291ef64 Merge "Switch Parcel to static JNI calls, pass pointer." 2012-03-08 19:28:39 -08:00
Dianne Hackborn
8931da12e8 Merge "Fix crash." 2012-03-08 19:27:21 -08:00
Jeff Sharkey
047238ced4 Switch Parcel to static JNI calls, pass pointer.
Instead of using parcelForJavaObject(), pass down the mNativeObj
pointer explicitly.  Benchmarks show that writeInt() is roughly 3x
faster with this approach.

Change-Id: I24ca235c334c44be716070aa8066ec8a429eadb7
2012-03-08 18:29:03 -08:00
Dianne Hackborn
d9781fe7ee Fix crash.
Change-Id: Id219351625494c54524e400055755d41f3bef868
2012-03-08 18:04:18 -08:00
Jeff Sharkey
8ac70c4250 Merge "Split Parcel JNI details away from Binder." 2012-03-08 17:52:54 -08:00
Derek Sollenberger
4ff65a0b93 am d6f3d00b: am d7978a28: am 34ccd7af: Merge "Add missing includes for threads.h"
* commit 'd6f3d00b602c16fe4f67932d8f6b47f42fa9bf73':
  Add missing includes for threads.h
2012-03-08 17:48:57 -08:00
Derek Sollenberger
d6f3d00b60 am d7978a28: am 34ccd7af: Merge "Add missing includes for threads.h"
* commit 'd7978a28219465e0e579adee3c9258b04c0a5b40':
  Add missing includes for threads.h
2012-03-08 17:46:33 -08:00
Eric Laurent
d10a5992f9 Merge "audio policy: use audio_devices_t when appropriate" 2012-03-08 17:45:44 -08:00
Eric Fischer
a4ef63f6c6 Merge "Import translations. DO NOT MERGE" 2012-03-08 17:44:04 -08:00
Eric Fischer
2ac9b4a38c Merge "Import translations. DO NOT MERGE" 2012-03-08 17:43:57 -08:00
Derek Sollenberger
d7978a2821 am 34ccd7af: Merge "Add missing includes for threads.h"
* commit '34ccd7af4216f571c2f88b32fea8bfed8ef0baab':
  Add missing includes for threads.h
2012-03-08 17:43:21 -08:00
Adam Powell
787f2699f1 Merge "Public API for android.widget.Switch properties" 2012-03-08 17:18:10 -08:00
Jeff Brown
34264670da Merge "Should recycle TypedArray." 2012-03-08 16:43:57 -08:00
Jeff Brown
14577c4df5 Should recycle TypedArray.
Change-Id: Ia318de37c22e4533fff631be816cee539a5cd83d
2012-03-08 16:42:29 -08:00
Jeff Tinker
62ee80873b Merge "Fix videos app bandwidth accounting for 4G streaming" 2012-03-08 16:40:44 -08:00
Glenn Kasten
fcf2ac041e AudioPolicyService InputDesc minor cleanup
Add a non-default constructor to set the mSessionId, and make mSessionId const.

Remove explicit clear on mEffects - it is automatically cleared by the destructor.

AudioPolicyService::setPreProcessorEnabled:
 - parameter is const *
 - use an alias instead of making a Vector copy

Destructor doesn't need to be virtual since there are no subclasses.

Change-Id: Ibc3c3bea8259839430b1cf5356186c7d96f1082f
2012-03-08 16:30:00 -08:00