summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Merge "reset col position to 1 on row PAC" into lmp-mr1-devChong Zhang2015-02-061-1/+1
|\
| * reset col position to 1 on row PACChong Zhang2015-02-051-1/+1
| | | | | | | | | | bug: 19284568 Change-Id: I7d439027ab6411bcd5c149580babee80dc5f9478
* | audio: allow audio port cache update even when audio patches contain ↵Wonsik Kim2015-01-311-7/+24
|/ | | | | | | | | | | | | | | invalidated sources/sinks When an audio device disconnects from Android, custom audio patches containing the device become invalidated. AudioManager::updateAudioPortCache() used to fail in that case, but it causes onAudioPortListUpdated() event never gets called so that the creator of the custom audio patch cannot update it. Let updateAudioPortCached() succeed even in the case so that the entity that created the audio patch can get notified. Bug: 18909299 Change-Id: If4f6ed73f69213d792117fb42aec103ae2e50b79
* ImageReader: add support for compatible flexYUV buffersLajos Molnar2015-01-282-10/+20
| | | | | Bug: 17906609 Change-Id: Ia21aff632b9a92f4e391b3917a7774af46fd81a0
* TIF: Do not call session callbacks when the session is already releasedJae Seo2015-01-281-9/+27
| | | | | Bug: 19146382 Change-Id: I5592d4bf033478e5e5e1013bd2ad5ea572df44dd
* Merge "Delay the second message for 30ms more than the last message for ↵Matthew Xie2015-01-271-1/+1
|\ | | | | | | a2dp" into lmp-mr1-dev
| * Delay the second message for 30ms more than the last message for a2dpMatthew Xie2015-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | In function setBluetoothA2dpDeviceConnectionState, current code calculate the delay of the second state update message to be exactly the same as the last delayed messages. This causes a problem that the sequence of the messages may be altered. Bug: 19036411 Change-Id: I35762873fd3341ec098dd229ac96bd42d6f34195
* | MTP: Fix partial implementation of 5 new audio specific propertiesMike Lockwood2015-01-233-39/+56
|/ | | | | | | | | | | | | | | | | | | | | | In change Ic5b3fb75309893caae1a4f4b56068a543847f1f7, we added partial support for the MTP properties: MTP_PROPERTY_AUDIO_WAVE_CODE, MTP_PROPERTY_BITRATE_TYPE MTP_PROPERTY_AUDIO_BITRATE MTP_PROPERTY_NUMBER_OF_CHANNELS MTP_PROPERTY_SAMPLE_RATE However we were not returning any values for these properties in the result of the MTP GetObjectPropList command. Strangely, this triggers a nasty bug in Windows 7 that results in data loss. When copying a directory containing several MP3 files from one location on the device to another, Windows will copy only some of the files to the new location, but delete all of the originals. Finishing the implementation of these new object properties for some unknown reason stops this bad behavior in Windows 7. Bug: 19018427 Change-Id: I5fd3b91a89b31827d3100686445cef6795fe0f3f
* Don't launch broadcast receiver processes during bootChristopher Tate2015-01-201-0/+1
| | | | | | | | | | Broadcasts that might be sent before the boot process has completed must be restricted to registered receivers, at least while still in the middle of booting. Bug 19060618 Change-Id: Ib4e0990cf252f34344f7a0bd19a0e72919013e0f
* AudioManager: make AudioPortEventHandler staticEric Laurent2015-01-152-89/+91
| | | | | | | | | | | Make AudioPortEventHandler and audio port and patch caches static members of AudioManager. There is only one callback per process in AudioSystem for audio port updates and having those non static would not work when more than one AudioManager instance exists in one app. Bug: 18727023. Change-Id: I4c1041dc6441d168be4efa066e14289cc5f41872
* AudioService: handle stream mute by stream aliasEric Laurent2015-01-131-10/+16
| | | | | | | | | | Handle stream mute/unmute requests at the stream alias level (like is done volume changes) to be consistent. E.g a request to mute/unmute a stream will affect all streams sharing the same alias for volume management. Bug: 18844550. Change-Id: Ie2e463c58df0371589150f0ebb9b36c38b14e1be
* Merge "AudioService: send connection intent for HDMI ARC device" into ↵Eric Laurent2015-01-121-2/+4
|\ | | | | | | lmp-mr1-dev
| * AudioService: send connection intent for HDMI ARC deviceEric Laurent2015-01-091-2/+4
| | | | | | | | | | Bug: 18921279. Change-Id: I1e23b5aed7a2835feb0fea2a412f3622c01cbe55
* | Merge "MediaCodec: Added E-AC3 mime type (@hide)." into lmp-mr1-devRachad2015-01-101-0/+4
|\ \
| * | MediaCodec: Added E-AC3 mime type (@hide).Rachad2014-12-231-0/+4
| | | | | | | | | | | | | | | Bug: 17883772 Change-Id: I48b2ab64812d860bb1a01d0a14e10690b86c4519
* | | Use NULL instead of 0 when invoking CallStaticVoidMethodHaitao Feng2015-01-082-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static void CallStaticVoidMethod is variable argument function. if pass 0 to the function like: CallStaticVoidMethod(......, 0), 0 will be treated as INT data type.but in the CallStaticVoidMethod implement 0 will be treated as pointer data type.Pointer in 64bit system occupied 8 bytes, but in 64bit system int occupied 4 bytes. if call function like: CallStaticVoidMethod(......, 0), only low 4 bytes will be assigned 0.Turned out it actually call function like this: CallStaticVoidMethod(......, 0xXXXXXXXX00000000). intent to pass NULL to function but passed non-NULL parameter to the function.this will cause GCDaemon crash. Bug: 18911458 Change-Id: I9d700d3790a80dbee6826f64baf9ef5d81ca390f Reviewed-by: Liao, Bruce <bruce.liao@intel.com> Signed-off-by: Yong Yao <yong.yao@intel.com>
* | Merge "Audio Policy: Clear calling identity for all paths setting ringer ↵John Spurlock2014-12-241-32/+27
|\ \ | |/ |/| | | mode." into lmp-mr1-dev
| * Audio Policy: Clear calling identity for all paths setting ringer mode.John Spurlock2014-12-231-32/+27
| | | | | | | | | | | | | | For proper appops bookkeeping and zen setting changes. Bug: 18832923 Change-Id: Ic029d3226458ca1a9229a0bc5726bedd5e117ad7
* | Merge "AudioRecord: filter attributes" into lmp-mr1-devJean-Michel Trivi2014-12-221-6/+11
|\ \ | |/ |/|
| * AudioRecord: filter attributesJean-Michel Trivi2014-12-221-6/+11
| | | | | | | | | | | | | | | | | | | | | | When creating an AudioRecord instance, filter the tags in the AudioAttributes to remove tags that are handled at the Java layer. Bug: 18733215 Bug: 18736417 Change-Id: I16a3497742086deced4e8677bd6231290396c5f6
* | Merge "AudioService: fix permission check." into lmp-mr1-devEric Laurent2014-12-191-0/+3
|\ \
| * | AudioService: fix permission check.Eric Laurent2014-12-181-0/+3
| |/ | | | | | | | | | | | | Clear caller identity before calling TelecomManager.isInCall(). Bug: 18702149. Change-Id: Ie057f3f261fc0a36dff51840cc8390408621d3bd
* | Merge "MediaSessionLegacyHelper uses global Application context" into ↵Oliver Woodman2014-12-191-4/+1
|\ \ | |/ |/| | | lmp-mr1-dev
| * MediaSessionLegacyHelper uses global Application contextJean-Michel Trivi2014-12-181-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | MediaSessionLegacyHelper used a Context passed by an application which can cause a leak of Activity instances. Use the global Application context instead. Also prevent crash if a null Context is supplied (method not documented as requesting a non-null Context). Bug 18767503 Change-Id: I8281047d0af233a323f3fc11ababedff848829ec
* | Audio policy: Fix deprecated shouldVibrate api.John Spurlock2014-12-171-23/+35
|/ | | | | | | | And apply zen mode immediately to avoid race conditions in tests. Bug: 18702149 Change-Id: Iad156a29b9e6a5998e7c2dafa8b79a71447066f9
* Merge "audioservice: Clear calling identity upon calling HdmiControlService" ↵Jinsuk Kim2014-12-131-10/+14
|\ | | | | | | into lmp-mr1-dev
| * audioservice: Clear calling identity upon calling HdmiControlServiceJinsuk Kim2014-12-131-10/+14
| | | | | | | | | | | | | | | | This makes sure that accessing the HdmiControlService via audio service should be possible without the system permission. Bug: 18730526 Change-Id: I05b364d8e38218eb75f3c08972a06bb2d71a982b
* | Merge "parse bitrate range for video/audio caps" into lmp-mr1-devChong Zhang2014-12-121-3/+20
|\ \
| * | parse bitrate range for video/audio capsChong Zhang2014-12-121-3/+20
| | | | | | | | | | | | | | | Bug: 18684228 Change-Id: Ib5c3682bb1dfa338b99352ea040edcb99d86ef0b
* | | Merge "AudioSystem JNI: Add audio policy custom mixes registration" into ↵Eric Laurent2014-12-102-16/+14
|\ \ \ | | | | | | | | | | | | lmp-mr1-dev
| * | | AudioSystem JNI: Add audio policy custom mixes registrationEric Laurent2014-12-082-16/+14
| | |/ | |/| | | | | | | | | | | | | Bug: 16009464. Change-Id: I3763e79f4fa0331acb56d1d6f575c7a36e0bebd5
* | | Merge "Don't try to scale the bitmaps for null MediaMetadata." into lmp-mr1-devMichael Wright2014-12-091-1/+3
|\ \ \
| * | | Don't try to scale the bitmaps for null MediaMetadata.Michael Wright2014-12-091-1/+3
| | |/ | |/| | | | | | | | | | Bug: 18586572 Change-Id: I133e58eeb05136ca82cbd35840b68ebedd9ec365
* | | Merge "Throw IOException when missing default ringtone." into lmp-mr1-devJeff Sharkey2014-12-092-6/+11
|\ \ \
| * | | Throw IOException when missing default ringtone.Jeff Sharkey2014-12-092-6/+11
| | |/ | |/| | | | | | | | | | | | | | | | | | | This is caught by Ringtone, and we then fall back to built-in ringtone, which matches the expected CTS behavior. Bug: 18610451 Change-Id: I234d17f7cf623b9b0af434e5d367aed28f203b14
* | | Merge "Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode." ↵Ruben Brunk2014-12-092-26/+54
|\ \ \ | |_|/ |/| | | | | into lmp-mr1-dev
| * | Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode.Ruben Brunk2014-12-092-26/+54
| | | | | | | | | | | | | | | Bug: 16030677 Change-Id: Ida04e04f41983b9126609522dd12064a7bf9645f
* | | Volume: Only play the new vibrate hint once per volume-down.John Spurlock2014-12-081-5/+6
| |/ |/| | | | | | | Bug: 18666334 Change-Id: Idfa1d0c104bb310548fde533932bffc2b41eafff
* | Merge "Support collaborative audio focus handling" into lmp-mr1-devJean-Michel Trivi2014-12-0710-95/+731
|\ \
| * | Support collaborative audio focus handlingJean-Michel Trivi2014-12-0510-95/+731
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new flag for an app to define it doesn't duck, but rather pauses when losing focus with AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK. This flag is to be used when requesting focus. Add support for AudioPolicy to specify whether it will implement ducking itself, rather than it being handled by an app. When ducking is handled by a policy, do not notify focus owners when they lose audio focus with LOSS_TRANSIENT_CAN_DUCK, unless they would have paused, as expressed with the AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS flag. Add a focus listener for a policy to be notified of focus changes so it can properly implement its own ducking. Bug 16010554 Change-Id: I11d7cdb85c52fd086128a44f4d938aaa44db5c25
* | | Unhide secure stop APIsJeff Tinker2014-12-051-4/+0
| | | | | | | | | | | | | | | | | | Change-Id: If25406a6657c8f9d558e659bf5af73bac9bc434c related-to-bug: 18053197 related-to-bug: 18076411
* | | Merge "Route mute key events through MediaSessionService" into lmp-mr1-devRoboErik2014-12-055-16/+83
|\ \ \
| * | | Route mute key events through MediaSessionServiceRoboErik2014-12-055-16/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This sends mute keys to the MediaSessionService and handles them by toggling the appropriate stream. Muting remote playback is still not supported. bug:17501993 Change-Id: I18c5b037cde2175acbb64b118dd708514acfd8c9
* | | | Merge "Make setting the session token in MediaBrowserService synchronous" ↵RoboErik2014-12-051-7/+5
|\ \ \ \ | |/ / / | | / / | |/ / |/| | into lmp-mr1-dev
| * | Make setting the session token in MediaBrowserService synchronousRoboErik2014-12-041-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MusicDemo was depending on the fact that setting the session token is done synchronously and that getSessionToken can be called immediately after. This makes setting the token synchronous again but leaves the post to update any MediaBrowsers that are waiting on a connection. This does introduce a small race condition if an app tries to set it twice from different threads, but this is a very unlikely situation and MediaBrowserService is not guaranteed to be thread safe. bug:18603085 Change-Id: Id934c9f3b6520225cd92d1d8a6e2b3d606b8c6c8
* | | Merge "TIF: increase the time threshold for tune operation which was too ↵Dongwon Kang2014-12-051-1/+1
|\ \ \ | | | | | | | | | | | | harsh" into lmp-mr1-dev
| * | | TIF: increase the time threshold for tune operation which was too harshDongwon Kang2014-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: 18612616 Change-Id: I62ddde2f9796f3b1dd8240f5c88fbff234b3618b
* | | | media: allow full range of Vorbis sampling ratesLajos Molnar2014-12-041-1/+1
| |/ / |/| | | | | | | | | | | Bug: 18615604 Change-Id: I51f0c5c81145b94626f2b7e4505b905b63a572bf
* | | Merge "TIF: call tune() in HardwareSession" into lmp-mr1-devDongwon Kang2014-12-031-0/+1
|\ \ \
| * | | TIF: call tune() in HardwareSessionDongwon Kang2014-11-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Background: The underlying passthrough TV input expects tune() command to show video on the screen and call notifyVideoAvailable(). Bug: 18551619 Change-Id: I257db321c09d621e6bd3c0e69bfe0abfca5742a9