Arunesh Mishra
310fe5af67
Merge "Use config.xml parameters instead of System properties." into mnc-dev
2015-06-03 17:13:55 +00:00
Alan Viverette
a70d4a90a0
Prevent poorly-extended ParcelableSpans from writing to parcels
...
If a developer extends an existing ParcelableSpan and overwrites
writeToParcel, TextUtils will crash when attempting to unparcel
since the span type ID is not accurate. This CL makes a separate
framework-private method for writeToParcel to ensure that even if
a developer extends a ParcelableSpan class, they won't modify the
parceling or unparceling code that's tied to the span type ID.
Bug: 21274544
Change-Id: If4c3506a55999df7a3b6d87cb8d550235d7a02c6
2015-06-02 16:11:00 -07:00
Arunesh Mishra
6e4fb34e27
Use config.xml parameters instead of System properties.
...
For 'near-ultrasound' support (mic/speaker). Refer b/21072209
for details.
Bug: 21072209
Change-Id: Id7131cd38288d74af8102487b2c6b03048b4ae3b
2015-06-02 15:13:17 -07:00
Doris Liu
942bc58518
Fix calls to Rect.intersect(Rect)
...
This CL checks for the return value for Rect.intersect(Rect) for whether
there is actually an intersection before taking the calling rect as the
intersection. In the case of no intersection (Rect.intersect(Rect) returns
false), the calling rect would not have been changed, so here in this CL
it will be manually set empty.
Bug: 7368679
Change-Id: I7494c1a1649eca09e34412f0a59b795e8b3a82aa
2015-06-02 15:01:48 -07:00
Robert Shih
eb8a51f359
Merge "MediaPlayer: trigger onError instead of exception on stale native notifications" into mnc-dev
2015-06-01 21:56:35 +00:00
Robert Shih
07830aa6ba
MediaPlayer: trigger onError instead of exception on stale native notifications
...
This change also reverted commit 2c838fbd87ad5685c0008b419ea02421159b9b70,
"MediaPlayer: add mPreparing to weed out unwanted prepared messages".
Bug: 21266735
Change-Id: I392342519420bee2fde1fe1915c51d24101ca27d
2015-06-01 13:50:00 -07:00
Marco Nelissen
2e2ac33e88
Merge "Update ExifInterface.getDateTime to support subseconds" into mnc-dev
2015-05-29 22:26:58 +00:00
Marco Nelissen
b2c890044e
Update ExifInterface.getDateTime to support subseconds
...
Also document that it returns local time.
Bug: 20638367
Change-Id: I6a1c35925e0555bcdcb079be0ca5b19a279a05a6
2015-05-29 14:49:03 -07:00
Andy Hung
51c1e3bd14
Merge "Clarify AudioFormat sample rate and encoding documentation" into mnc-dev
2015-05-29 17:51:53 +00:00
Andy Hung
04065187d9
Clarify AudioFormat sample rate and encoding documentation
...
Bug: 21476142
Change-Id: I74fa3fcced5cc197a4cee6a7c10f3ed4690b0af1
2015-05-29 10:17:40 -07:00
Sungsoo Lim
6dddc7d1a9
Merge "Send a message with data in MediaController.MessageHandler.post()" into mnc-dev
2015-05-29 01:37:00 +00:00
Glenn Kasten
ad43220384
Merge "Improve error handling for AudioTrack write with PTS" into mnc-dev
2015-05-29 00:12:54 +00:00
Sungsoo Lim
060b4e1f17
Send a message with data in MediaController.MessageHandler.post()
...
Bug: 21478435
Change-Id: Ifd50b857c4503d39868540f6256c78f0cb510c83
2015-05-28 15:08:47 +09:00
Chong Zhang
ebdfefa496
Merge "MediaCodec: unhide mime type for EAC3" into mnc-dev
2015-05-27 21:17:12 +00:00
Chong Zhang
52c58bb699
MediaCodec: unhide mime type for EAC3
...
bug: 18723951
Change-Id: I8c77be6ede428e92b089b19b2bd627992466a591
2015-05-27 14:07:29 -07:00
Glenn Kasten
68d5ebd1da
Improve error handling for AudioTrack write with PTS
...
Pick up some of the error handling from AudioTrack write ByteBuffer
Change-Id: I62f233c2026759dbe57d7e1f48d62babaa49e5b8
2015-05-27 09:21:00 -07:00
Lajos Molnar
466507eb1c
media: Update MediaCodec class description
...
Bug: 11990465
Bug: 11019199
Bug: 11990564
Bug: 10672559
Change-Id: I22533dec98fb878ca87876c9ebc0fe59f4bfe995
2015-05-26 19:50:43 +00:00
Jean-Michel Trivi
48d88128bd
Remove temporary javadoc for android.media.AudioFormat
...
Remove temporary text in javadoc for AudioFormat.
Start javadoc for encoding.
Change-Id: I3df5f868da50b8ba4b42a9f054d5cd472f68069d
2015-05-26 11:50:11 -07:00
Jean-Michel Trivi
ed77bc0987
Merge "More android.media.AudioFormat javadoc" into mnc-dev
2015-05-23 01:19:03 +00:00
Jean-Michel Trivi
4ed06d2e30
More android.media.AudioFormat javadoc
...
More doc about AudioFormat constants, use of the builder,
sample rate, channel masks (position vs index, examples)
Bug 20921159
Change-Id: Ie60c2f3558b8b6008c6d9fb646ad9f6de396859d
2015-05-22 18:10:06 -07:00
Chien-Yu Chen
9e07ffdbfb
Merge "ImageReader: Register estimated native allocation" into mnc-dev
2015-05-22 20:33:26 +00:00
Jeff Tinker
08cfe2a5fc
Doc update for MediaDrm's OnExpirationUpdate method
...
Based on EME spec clarification that expiration time
of 0 means unlimited.
bug: 21393975
Change-Id: I96e50fb4300724f52aad2ca39c8495ad1aa78222
2015-05-22 20:17:57 +00:00
Chien-Yu Chen
11c5d0dd01
ImageReader: Register estimated native allocation
...
Estimate the native allocation and register it so it can be
accounted for during GC.
Bug: 20299272
Change-Id: I43af3058b6fe9a41e5e7e119e390ed079402c4b8
2015-05-22 11:41:02 -07:00
Robert Shih
67ba691ad6
Merge "MediaPlayer: add mPreparing to weed out unwanted prepared messages" into mnc-dev
2015-05-22 16:02:06 +00:00
Robert Shih
410239b6bf
MediaPlayer: add mPreparing to weed out unwanted prepared messages
...
Bug: 21266735
Change-Id: Ie4fe76533c9b7f505c57ba63df7992f2490942cc
2015-05-21 16:43:10 -07:00
Jean-Michel Trivi
59845bef8e
Merge "Extra for ACTION_RINGTONE_PICKER for AudioAttributes flags" into mnc-dev
2015-05-21 16:24:02 +00:00
Jean-Michel Trivi
e6b874b1aa
Merge "Fix reading attributes for playback restrictions" into mnc-dev
2015-05-21 16:16:19 +00:00
Eric Laurent
97de0c9a29
Merge "AudioService: indicate system ready to AudioFlinger" into mnc-dev
2015-05-21 16:13:04 +00:00
Chet Haase
4b901c4506
Merge "Fix docs to not refer to non-public classes." into mnc-dev
2015-05-21 04:47:42 +00:00
Jean-Michel Trivi
42697ffd42
Extra for ACTION_RINGTONE_PICKER for AudioAttributes flags
...
Add EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS to allow specifying
AudioAttributes flags that will be used when playing the
Ringtone.
Bug 19407114
Change-Id: I56a77d7308b21afc0766356e1b6a2d76dca21221
2015-05-20 19:14:45 -07:00
Chet Haase
fa2dafa741
Fix docs to not refer to non-public classes.
...
Issue #21328285 public Midi docs refer to internal utility class
Change-Id: Idddd5c98a78159190c6c34b17350f4630c33d6d5
2015-05-20 18:20:08 -07:00
Eric Laurent
0867bed9dd
AudioService: indicate system ready to AudioFlinger
...
Indicate when JAVA services are ready to AudioFlinger so that
calls to power manager and scheduling service can be enabled.
Bug: 11520969.
Change-Id: Id977cab3208c34709011703d2dfdcf552e60371b
2015-05-20 17:39:21 -07:00
Andy Hung
b14b7e188f
Merge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev
2015-05-20 23:01:39 +00:00
Andy Hung
e90a0a88f4
Fix AudioTrack, AudioRecord, AudioFormat API
...
Rename getNativeFrameCount to getBufferSizeInFrames
Remove throw declaration on IllegalArgumentException and
IllegalStateException
Bug: 20887665
Bug: 21304902
Change-Id: Ia85d8010be46524b9a8b93105b16b7b9480f6bd9
2015-05-20 22:58:31 +00:00
Jean-Michel Trivi
d3969546a8
Fix reading attributes for playback restrictions
...
Playback restrictions can be lifted with the correct flag,
FLAG_BYPASS_INTERRUPTION_POLICY, but this flag is for the
system only. As such, it must be read by querying "all
the flags" with AudioAttributes.getAllFlags() which is a
system API which returns all the system flags. getFlags()
only returns the public SDK flags.
Bug 19407114
Change-Id: I22dadfaf5d1b48b3c0754e1e6af00b734d790fec
2015-05-20 13:58:18 -07:00
Eric Laurent
5aa384cdc8
Merge "AudioFormat: more compressed formats" into mnc-dev
2015-05-20 16:22:01 +00:00
Paul McLean
aa1cd25db7
Merge "Updating (and completing) documentation post API-council changes." into mnc-dev
2015-05-20 15:56:08 +00:00
Paul McLean
8e6c9f4617
Updating (and completing) documentation post API-council changes.
...
1. Enum/Select/Notify API
2. (re)routing API
bug: 21151568
Change-Id: Idce969c8b8955022b7810cf5dddb800e6aa01000
2015-05-20 07:48:12 -07:00
Dongwon Kang
cf4f3d5c4c
TIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()
...
Bug: 21313401
Change-Id: I73e55c454cf0e2cd90d922acf5c6efe727f59204
2015-05-20 13:57:34 +09:00
Eric Laurent
cae3466333
AudioFormat: more compressed formats
...
Add MP3 and AAC as valid AudioFormat encodings.
Only @hide for now to allow system components to manage
audio patches with those formats.
Bug: 18649264.
Change-Id: I5ef5f151783308e31d8ac5b29454589077ef62ea
2015-05-19 16:46:52 -07:00
Jean-Michel Trivi
1705113e91
Merge "API for converting AudioAttributes to stream type" into mnc-dev
2015-05-19 23:42:34 +00:00
Jean-Michel Trivi
d1d5a0a080
API for converting AudioAttributes to stream type
...
Bug 21267880
Change-Id: I3389dcb3a35a3786ecdb8f56a917a0ae619e8417
2015-05-19 16:35:25 -07:00
Glenn Kasten
b0e172304c
Merge "Explain the void send() throws IOException" into mnc-dev
2015-05-19 17:34:22 +00:00
Glenn Kasten
5db6637f8c
Explain the void send() throws IOException
...
Bug: 21044677
Change-Id: If6b51058813aff3780821db7c619004622df64ca
2015-05-19 08:46:48 -07:00
Glenn Kasten
c4ddf16c8b
Merge "send without timestamp is not equivalent to send now" into mnc-dev
2015-05-19 15:38:01 +00:00
Glenn Kasten
a32d5c8472
send without timestamp is not equivalent to send now
...
Change-Id: I68decbd005932c762ccd376ee80b52ac9884fba4
2015-05-19 08:33:36 -07:00
Glenn Kasten
0e2c164a8a
Merge "Update documentation for short transfer counts" into mnc-dev
2015-05-19 00:28:20 +00:00
Glenn Kasten
659e31fb29
Update documentation for short transfer counts
...
Bug: 10891562
Change-Id: I6e24917a508aa29f1f6f00aa8c891ad4978dc3e6
2015-05-18 14:11:26 -07:00
Glenn Kasten
20a0edf123
Merge "Minor cleanup of comments and code" into mnc-dev
2015-05-18 20:38:32 +00:00
Jae Seo
f03fb7f3a4
Merge "TIF: Pass the playback params as a whole" into mnc-dev
2015-05-18 18:10:31 +00:00