summaryrefslogtreecommitdiffstats
path: root/media/java
Commit message (Collapse)AuthorAgeFilesLines
* Adjust volume bar visibility in HDMI-CEC system audio modeJungshik Jang2014-09-171-0/+10
| | | | | | | | | | | | | When HDMI-CEC system audio mode is activated. 1. Hide volume bar when volume button is pressed in TV 2. Show volume bar when TV receives volume notification from Audio Receiver. Otherwise, (system audio mode off) follows normal TV's behavior. Bug: 17347499 Change-Id: I1f5bc14285d60d8626a8fbbef9e1959cae7d193b
* Add new DisconnectCause class to telecomm.Andrew Lee2014-09-161-0/+6
| | | | | | | | | | | | | | | | + Add a hidden "UNKNOWN" default type to ToneGenerator. - Hide the Telephony DisconnectCause from the public API. + Add a Telecomm DisconnectCause. This is parcelable, and contains information (code, user facing message, non-user facing reason, and tone) to help describe the disconnect state and what behaviors an application can implement for the user experience. This reduces the causes for a disconnect to a more generic set. + Lots of work to pipe this through. DisconnectCause replaces the code and message which were formerly passed around. Bug: 17241433 Bug: 17329632 Change-Id: I9d337e478a8784bcc0ade02267c2df52cac9bf17
* Fix volume change failure in HDMI-CEC system audio mode.Jungshik Jang2014-09-161-0/+10
| | | | | | | | | | | | In order to get volume change event, output device should not be in fixed volume device. This change ignores CEC releated outputs if system audio mode is on. Along with this, fix invalid output from getStreamForDevice as AudioPolicManager does. Bug: 17502272 Change-Id: I7d4406caea7fa6617f17969dc61aabebb87ecf7d
* Merge "Document retry behavior for MediaCodec.CryptoException" into lmp-devJeff Tinker2014-09-151-3/+6
|\
| * Document retry behavior for MediaCodec.CryptoExceptionJeff Tinker2014-09-151-3/+6
| | | | | | | | | | bug: 17469693 Change-Id: I8cc204938b28451c638be017ebb499f525fcff50
* | TIF: Turn debugging offJae Seo2014-09-142-4/+2
| | | | | | | | | | Bug: 17476383 Change-Id: I28ff54a635bf6468c231efe776dbc8e35460d542
* | Renaming Telecomm to Telecom.Tyler Gunn2014-09-121-5/+4
| | | | | | | | | | | | | | | | | | | | - Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
* | Merge "more AudioAttributes javadoc" into lmp-devJean-Michel Trivi2014-09-121-3/+53
|\ \
| * | more AudioAttributes javadocJean-Michel Trivi2014-09-121-3/+53
| | | | | | | | | | | | | | | | | | | | | | | | Expand the AudioAttributes and associated Builder javadoc. Bug 17059703 Change-Id: I81b8d48a3b5b3c203f02da3e37228e5ef7b5451d
* | | TIF: Add a system API to retrieve HDMI device informationJae Seo2014-09-121-8/+26
| | | | | | | | | | | | | | | Bug: 17487782 Change-Id: I53995735fa190c40819ff352a8b98765a6f7753f
* | | AudioService: modify stream delay for touch explorationJean-Michel Trivi2014-09-121-9/+48
|/ / | | | | | | | | | | | | | | | | | | | | | | | | When accessibility services are running, in particular touch exploration, the default stream override delay in AudioService makes it hard for the user to change the notification volume as when TalkBack speaks, the user would control the media volume during the utterance, and up until 5s after its end. Use a shorter delay when touch exploration is enabled. Bug 17140435 Change-Id: Iabadb9778f2957b5aa0aebd1599f2d69bd83222b
* | Change callback methods from add to register.Michael Wright2014-09-113-8/+8
| | | | | | | | | | | | | | | | Also changes intent returning method from get to create. Both changes are in response to API council feedback. Bug: 17389882 Change-Id: I3b57e3fc202148e3bbb24ac61229f04e8b4ac41e
* | Merge "More android.media.AudioFormat.Builder javadoc" into lmp-devJean-Michel Trivi2014-09-111-2/+13
|\ \
| * | More android.media.AudioFormat.Builder javadocJean-Michel Trivi2014-09-091-2/+13
| | | | | | | | | | | | | | | | | | Bug 17059703 Change-Id: I1cca2effecbf1998dfa48774d87d94c00285c16c
* | | Fix build breakageYoungsang Cho2014-09-111-2/+2
| | | | | | | | | | | | Change-Id: Ic52e2d767f3adfedfa4e78aa2510d480c537c857
* | | Merge "Add a system API to query hdmi system audio mode" into lmp-devTerry Heo2014-09-113-1/+24
|\ \ \
| * | | Add a system API to query hdmi system audio modeTerry Heo2014-09-043-1/+24
| | | | | | | | | | | | | | | | | | | | Bug: 17383620 Change-Id: I75f11619845e5070190414a2bbe967ba85001472
* | | | Notify of the update of TvInputInfoChulwoo Lee2014-09-112-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TvInputInfo is updated when 1. the package is reinstalled. 2. the media on which a newer version of TV inputs exists become available. 3. the media on which a newer version of TV inputs exists become unavailable. BUG: 17349383 Change-Id: I983058b13678bd8ecf7d766dc8bdac5fed7df4a0
* | | | MediaCodec.Image: use image.setCrop() in constructorLajos Molnar2014-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids the ReadOnlyBuffer exception for readonly images. Bug: 17059255 Change-Id: I83de487e8bf60ba09b1cba1c0106191dd741c217
* | | | TIF: Enable inflating class android.media.tv.TvView on non-TV devicesJae Seo2014-09-102-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to pass the CTS for those devices. Bug: 17455222 Change-Id: Ief9a76835418906d9e8e06d4e5ddc71a3370055d
* | | | Merge "Virtualizer: replace device type by virtualization mode" into lmp-devJean-Michel Trivi2014-09-101-38/+140
|\ \ \ \
| * | | | Virtualizer: replace device type by virtualization modeJean-Michel Trivi2014-09-081-38/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define audio virtualization modes that represent the different audio processing modes. Change and document the change in the methods used to describe the virtualizer capabilities and characteristics. Implement internal conversion functions between virtualization modes and device types. Bug 17059703 Change-Id: Ic4db211d6f51492be9088783246abb4b2866d76f
* | | | | Merge "Hide AudioDevice class" into lmp-devEric Laurent2014-09-102-94/+92
|\ \ \ \ \ | |/ / / /
| * | | | Hide AudioDevice classEric Laurent2014-09-072-94/+92
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioDevice class is only used by Virtualizer so far so it does not need to be public yet. Also removed redundant DEVICE_ prefix to device types. Bug: 17059703. Change-Id: I5c93f66487b35de24f28641141f8e7de9e85c6c2
* | | | Merge "CamcorderProfile: Add QUALITY_HIGH_SPEED_2160P" into lmp-devZhijun He2014-09-101-1/+8
|\ \ \ \
| * | | | CamcorderProfile: Add QUALITY_HIGH_SPEED_2160PZhijun He2014-09-091-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17059255 Change-Id: Ic6b272e4ceec8fc852c9eb787370f4d366dad0ac
* | | | | Merge "MediaCodec/Drm: move from getErrorCode to getDiagnosticInfo" into lmp-devLajos Molnar2014-09-102-0/+37
|\ \ \ \ \
| * | | | | MediaCodec/Drm: move from getErrorCode to getDiagnosticInfoLajos Molnar2014-09-092-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17059255 Change-Id: I9f5f0be61e94795d90ad29e94b3a1a6e6aedfb1d
* | | | | | MediaPlayer/SubtitleController:fix add/select timed text on startRobert Shih2014-09-102-17/+30
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - scan internal tracks when necessary - fix overflow in addTimedTextSource - do not hide timed text track in doSelectDefaultTrack; i.e. apply hiding logic to subtitle tracks only - do not notify stop in scheduleUpdate; it will be fired in onStopped if necessary Bug: 17323221 Change-Id: I485f7d9197d10562fbd58d0afe5e9aa4cf610f1a
* | | | | Merge "Add support for max-res decode" into lmp-devJeff Tinker2014-09-091-0/+7
|\ \ \ \ \
| * | | | | Add support for max-res decodeJeff Tinker2014-08-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 16034599 Change-Id: I12124aef03518600a27de45bae24eef9c9735be5
* | | | | | initialize codec list before MediaCodec.getCodecInfo()Lajos Molnar2014-09-091-0/+1
| |/ / / / |/| | | | | | | | | | | | | | | | | | | Bug: 17374217 Change-Id: I8e8fc3a34ec01afdf5fc577979010183971c878b
* | | | | Merge "Add user-specific playSoundEffect and use in NavBar" into lmp-devJason Monk2014-09-091-3/+40
|\ \ \ \ \
| * | | | | Add user-specific playSoundEffect and use in NavBarJason Monk2014-09-081-3/+40
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a hidden version of playSoundEffect that takes a userId to get the correct setting as to whether sound effects should play or not. Bug: 15106706 Change-Id: I5c0b74081fd00732a43fe42a76d33d05197333d0
* | | | | Add Japanese content ratingsJae Seo2014-09-091-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17434802 Change-Id: I4be1ff9e5621f0a973c38f1abb377b1c92131a02
* | | | | Merge "unhide AudioAttributes flag FLAG_HW_AV_SYNC" into lmp-devEric Laurent2014-09-091-4/+1
|\ \ \ \ \
| * | | | | unhide AudioAttributes flag FLAG_HW_AV_SYNCEric Laurent2014-09-081-4/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 17112525. Change-Id: Ia817d8e4b6e517da04f948bcb138fc38faea6caf
* | | | | Possible fix for dead handler in Music button event sendingRoboErik2014-09-082-9/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm still attempting to root cause, but this is a potential fix. I suspect the callback is getting registerd on a looper that isn't the main looper which is then getting killed at some point. This change will make all legacy callbacks happen on the main looper, which should prevent the state. bug:17420281 Change-Id: Ia78e694b32b24398d3c09f49d12632755ef45597
* | | | TIF: Update Java doc for notifyVideoAvailable/notifyVideoUnavailableJae Seo2014-09-071-11/+16
| |/ / |/| | | | | | | | | | | | | | | | | | | | TV input services are now required to call these methods to unblock/block the screen. Bug: 17364845 Change-Id: Ifb435900d7f61785198dba2e255a2d24dbf44dc6
* | | Merge "Respect Android conventions in AudioManager extras" into lmp-devJean-Michel Trivi2014-09-051-3/+3
|\ \ \
| * | | Respect Android conventions in AudioManager extrasJean-Michel Trivi2014-09-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the value of the extras in android.media.AudioManager used in ACTION_HDMI_AUDIO_PLUG to respect the Android naming conventions. Bug 17390818 Change-Id: Ied1830e0ffa3b1fa7235d0675f36f2f43aac554d
* | | | Merge "AudioAttributes: unhide CREATOR" into lmp-devJean-Michel Trivi2014-09-051-1/+0
|\ \ \ \
| * | | | AudioAttributes: unhide CREATORJean-Michel Trivi2014-09-051-1/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | android.media.AudioAttributes implements the Parcelable interface, and is part of the SDK, it therefore requires CREATOR, writeToParcel, and describeContents to be "unhidden". CREATOR was still @hide Bug 17390818 Change-Id: I9c1cb1d454fe538cb5be6066ebed290a99352da9
* | | | Merge "MediaCodecInfo: allow getting info for secure codec" into lmp-devLajos Molnar2014-09-053-7/+13
|\ \ \ \
| * | | | MediaCodecInfo: allow getting info for secure codecLajos Molnar2014-08-283-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 minor fixes: - return correct codec's info from MediaCodec.getCodecInfo() - treat required features supported - make feature spec optional in isFormatSupported Bug: 17154761 Change-Id: Ie98af35ec16caf48a76358fe178f9cc243abad4f
* | | | | Merge "MediaCodecInfo: rename createFromProfileLevel" into lmp-devLajos Molnar2014-09-051-1/+1
|\ \ \ \ \
| * | | | | MediaCodecInfo: rename createFromProfileLevelLajos Molnar2014-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17389380 Change-Id: I1d4dc8dff90deedab80aa1b03454b8554d66860a
* | | | | | Merge "API review: android.media.tv" into lmp-devJae Seo2014-09-053-75/+71
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | API review: android.media.tvJae Seo2014-09-053-75/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TvInputInfo - Renamed getIntentForSettingsActivity to createSettingsIntent. - Renamed getIntentForSetupActivity to createSetupIntent. - Changed the value of EXTRA_INPUT_ID from inputId to android.media.tv.extra.INPUT_ID. - Removed @hiden from CREATOR. TvInputManager - Renamed TvInputListener to TvInputCallback. - Renamed registerListener to registerCallback. - Renamed unregisterListener to unregisterCallback. - Changed the value of ACTION_BLOCKED_RATINGS_CHANGED from android.media.tv.TvInputManager.ACTION_BLOCKED_RATINGS_CHANGED to android.media.tv.action.BLOCKED_RATINGS_CHANGED. - Changed the value of ACTION_PARENTAL_CONTROLS_ENABLED_CHANGED from android.media.tv.TvInputManager.ACTION_PARENTAL_CONTROLS_ENABLED_CHANGED to android.media.tv.action.PARENTAL_CONTROLS_ENABLED_CHANGED. - Changed the value of ACTION_QUERY_CONTENT_RATING_SYSTEMS from android.media.tv.TvInputManager.ACTION_QUERY_CONTENT_RATING_SYSTEMS to android.media.tv.action.QUERY_CONTENT_RATING_SYSTEMS. - Changed the value of META_DATA_CONTENT_RATING_SYSTEMS from android.media.tv.TvInputManager.META_DATA_CONTENT_RATING_SYSTEMS to android.media.tv.metadata.CONTENT_RATING_SYSTEMS. TvView - Renamed TvInputListener to TvInputCallback. - Renamed setTvInputListener to setCallback. Bug: 17389538 Change-Id: I3dceee3db67862d77b183aef0da4fd3a8681ab1b
* | | | | | Merge "send volume button events to adjustSuggestedStream instead of ↵RoboErik2014-09-052-1/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | adjustStream" into lmp-dev