summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Re-implement orientation aware volume buttons at lower level" into ↵Ricardo Cerqueira2013-09-211-27/+11
|\ | | | | | | cm-10.1
| * Re-implement orientation aware volume buttons at lower levelnadlabak2013-09-171-27/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework of http://review.cyanogenmod.org/31979 Fixes: 1. inconsistent volume button behaviour depending on app in use - the buttons were not swapped for some NDK/OPENSL ES apps like e.g. MX Player 2. the function of volume buttons on external input devices like BT/USB keyboards should not be affected by the main unit orientation This commit finishes http://review.cyanogenmod.org/18273 - use of system property has been replaced with config push via JNI as suggested during the original review. Patch Set 7: Circumvent the need for "keyboard.orientationAware = 1" idc Patch Set 8: Don't leak implementation details outside InputReader Change-Id: I19cc60cb0acb0005ab13fa069f52e3d468d694e7
* | Rework thumbnail handlingfun2013-09-171-3/+160
|/ | | | | | | | | | | | | | | Since ids of media file are usually not continuous, the original file of thumbnail are sparse. When there are big numbers files on ex\ ternal storage, the size of this file will be horrible. Ex, when the id is 20000, then the .thumbnails/.thumbdata3-xx file will be 50000*10k = 488.28M. Can refer http://stackoverflow.com/questions/12396715/android-huge-thumbdata4-file-in-dcim-folder Because after 4.0, MediaProvider will scan any files, this will be a big problem. So I modify MiniThumbFile.java to avoid this. According to the id, we now produce an index file. In this index file, one id will use BYTES_PER_MINTHUMB_INDEX(8) bytes in offset (i\ d+1)*BYTES_PER_MINTHUMB_INDEX. The data of these 8 bytes is the index of thumbnail file. The first BYTES_PER_MINTHUMB_INDEX bytes kee\ p next available index. And when you need insert a thumbnail, the index increase by 1. In this way, the block data in thumbnail file \ will be continuous. And thus unnecessary zero paddings will not be saved. Change-Id: I66005dd69b0a5c8f4353bd7a8225d163a654fd2d
* libdrm: fix bad strncpy / snprintf callsNick Kralevich2013-07-072-7/+43
| | | | | | | | | | | | | | Fix the following bugs reported by IOActive: * GOOGLE-AN01 - Android libdrm drm_parseDM.c Boundary-CRLF Buffer Overflow * GOOGLE-AN02 - Android libdrm 'drm_parseDM.c' contentType-CRLF Buffer Overflow * GOOGLE-AN03 - Android libdrm drm_parseDM.c contentID-CRLF Buffer Overflow * GOOGLE-AN04 - Android libdrm 'parser_dcf.c' Multiple Headers Buffer Overflow * GOOGLE-AN05 - Android libdrm 'parser_dcf.c' ContentType Buffer Overflow Bug: 8727221 Change-Id: If386922e907567f54e26897beffaa1cfe4777896
* Fix ringer mode being unneededly changed by setting ringer mode volumeDanny Baumann2013-06-161-2/+13
| | | | | | | | | | | | | | | to 0. When having set the ringer mode to silent on a device with vibrator and calling setStreamVolume() for the ringer stream again (e.g. in one of the volume control dialogs in the settings app), the ringer mode is set to vibrate, although there's no reason to do so. Fix that by remembering the last non-normal (that is, either silent or vibrate) ringer mode and using that when setting the stream volume to 0. Change-Id: I27f1c75a0fef52bd63ac20f4101042808ce2c458 JIRA: CYAN-1403
* AudioService: Remove STREAM_NOTIFICATION from ringer mode streamsJorge Ruesga2013-05-271-2/+1
| | | | | | | Change-Id: Ie8d25743b27839fa2bd4e9ae5d3d0a49410ac5b4 JIRA: CYAN-344 Issue: https://jira.cyanogenmod.org/browse/CYAN-344 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* audio: Add overlay to fix analog docks.Brian Beloshapka2013-05-081-2/+11
| | | | | | | | | | | | Of particular interest to devices using libhardware_legacy and affected by commit 5a484b753cc72d6a50c1dd3bbf68b3403c741a3a: http://goo.gl/rVR1Z which restricted the routing of AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET to docks using FORCE_ANALOG_DOCK cases. The EXTRA_DOCK_STATE_CAR case is returning FORCE_BT_CAR_DOCK, preventing the dock audio from routing properly. Add an overlay option for overriding to FORCE_ANALOG_DOCK. Change-Id: Ib7d70c242aa6f537ea5d65098ceb2c591662d8bb
* Option to use volume keys to control media volume anytime (2/2)Pawit Pornkitprasan2013-05-071-3/+19
| | | | | | See Settings part for description Change-Id: I78d26b0bd41f5b58514ae9c68208a8c950396823
* Correct executable bit for source filesKenny Root2013-04-13100-0/+0
| | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5 Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
* Remove unnecessary updateSurfaceScreenOn call.Andrew Neal2013-04-131-1/+0
| | | | | | This change stops updateSurfaceScreenOn() from being called one time right after another. It's called at the end of stayAwake(boolean awake), which is called right before updateSurfaceScreenOn() in release().
* Fix resource leak: When call MediaMetadataRetriever.setDataSource or ↵YuanQY2013-03-241-4/+14
| | | | | | | | getFrameAtTime should ensure call release in finally to avoid resource leak Patch set 2: Remove unnecessary white spaces Change-Id: I49a7f2fb99dc8b9560e7c17421125356e45a87ac
* Swap volume buttons when the screen is rotated (1/2)Laszlo David2013-03-241-11/+27
| | | | | | | | See: http://review.cyanogenmod.org/#/c/14530/ Patch Set 8: Invert the orientation interpretations on tablets Change-Id: I201febc2827e6fbd347cb0e3f8d3347ad1bc487b
* AudioService: Restore volumes after boot and when a headset is pluggedmaxwen2013-03-131-0/+27
| | | | | | | | | | | The correct volume levels for <device>_speaker and <device>_headset are not restored after booting and when a headset device is plugged in or out. This fixes a glitch where the first volume change event causes the volume to be reset to the last stored value instead of increasing/decreasting it by one step. Change-Id: I6a483af34fd6d9dd706c6979202bf0cf26d80854
* Performance increase in thumbnail handlingPosselwhite2013-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | Allow for 160*120 thumbnails which is what cameras commonly generates. The constants for the micro thumbnail were set to other values, resulting in recalculations of the thumbnais, which takes time. This change only affects the maximum size of the temporary image, when choosing whether to use the EXIF thumbnail or decoding and downsampling the full image. Without this change, it will choose an x16 downsampling of the full image over an x2 downsampling of the EXIF thumbnail, after the change it will prefer the EXIF thumbnail. Cf the DCF specifications at http://www.exif.org/dcf.PDF, "3.3.6. DCF basic thumbnail data structure, (C) Pixel count" Tested by running DDMS and measuring the time required to create a thumbnail. This was 220-280 ms prior to change, < 20 ms after. Change-Id: I59c753493f947e920bad3fde5eeed5d49d509863
* Merge commit 'android-4.2.2_r1' into mr1.1-stagingRicardo Cerqueira2013-02-156-313/+511
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: core/java/android/os/Trace.java core/java/android/widget/Toast.java core/res/res/values-cs/strings.xml core/res/res/values-el/strings.xml core/res/res/values-iw/strings.xml core/res/res/values/config.xml core/res/res/values/symbols.xml media/java/android/media/AudioService.java packages/SystemUI/res/values-sv/strings.xml packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java policy/src/com/android/internal/policy/impl/keyguard/KeyguardMessageArea.java policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java services/java/com/android/server/NotificationManagerService.java services/java/com/android/server/power/ElectronBeam.java Change-Id: I60b8ddf20a1d7bcf9dc7b1a4ed841aaa4d953294
| * am 3f72bf32: Merge "Refactoring the media recorder stress test. Added test ↵Jason Noguchi2013-01-072-175/+224
| |\ | | | | | | | | | | | | | | | | | | cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute." into jb-mr1-dev * commit '3f72bf323f977b367ceaee5ace321098cb7b74f4': Refactoring the media recorder stress test. Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute.
| | * Merge "Refactoring the media recorder stress test. Added test cases for: - ↵Jason Noguchi2013-01-072-175/+224
| | |\ | | | | | | | | | | | | record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute." into jb-mr1-dev
| | | * Refactoring the media recorder stress test.Jason Noguchi2013-01-032-175/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute. Change-Id: I294714811606c1ae57907d6ef6a7052044b6247c
| * | | am 7b4e597f: Merge "Adding camera scene mode stress test." into jb-mr1-devJason Noguchi2013-01-071-54/+135
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '7b4e597faff3c469bdd5e7837155a5fc5ea036bc': Adding camera scene mode stress test.
| | * | Adding camera scene mode stress test.Jason Noguchi2013-01-021-54/+135
| | |/ | | | | | | | | | Change-Id: I3f9afef4edc6ea1f659263bf2dbd8ca247039ce0
| * | Make it clear that non-optional MediaFormat keys are requiredAndreas Huber2012-12-051-2/+2
| | | | | | | | | | | | | | | | | | | | | Also mark KEY_CHANNEL_MASK optional. Change-Id: I569087f564dc60a89b15a3440a9b1c538927f610 related-to-bug: 7623602
| * | Merge "AudioService: improve initial safe volume delay" into jb-mr1.1-devEric Laurent2012-11-301-61/+97
| |\ \
| | * | AudioService: improve initial safe volume delayEric Laurent2012-11-291-61/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AudioService relies on a valid mmc in order to enforce the headset volume limitation or not. There is a timeout to enforce the limitation if no mcc is configured after boot. Until this timeout is reached or a valid SIM is detected the headset volume is not limited. This change makes that the last known volume limitation state (enforced or not) is persisted so that next time we boot, last known state is applied until a new mcc is configured if any. In most cases, the mcc does not change from one boot to the next and we do the right thing. If teh mcc does change, the correct policy will be enforced when the mcc is detected or after the timeout. Also fix a bug where the volume panel was not displayed if the limitation mechanism is triggered at the first press on VOL+ key. Bug 7455275. Change-Id: Id0f2996d893d38c6a14f4f9e4a0e9e3be17ef127
| * | | Clean up behavior of type arguments for MediaRouter#getSelectedRouteAdam Powell2012-11-281-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MediaRouter's policy so far has been around a single selected route, but when route types are entirely orthogonal this should not be the case. However we still don't want to get into a situation where we have multiple, very different routes selected for different types at the same time, we still want to have more of an element of predictability. Behavior of getSelectedRoute is now: * If the selected route matches at least one type with the requested type flags, it is still considered selected for that request. * If the caller specifically requested the selected user route and the currently selected route is not a user route, return null. * If the requested type flags do not match any types with the selected route, return the default system route. Note that this is "any" behavior instead of "all" - this matches existing usage of the method. We may consider adding an "all" variant later on. Bug 7588042 Change-Id: I3a79d8153ca6b882fd3ef6b9b1de8f538873dec2
| * | | Fix audio focus evaluation order for display updateJean-Michel Trivi2012-11-201-8/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change 1f9196a8e5de9b004e61afabc70b18caf7cf9c7e introduced an issue when trying to ignore audio focus entries in the stack that don't use the music stream, or are for transient audio focus gain, for remote control display updates. The bug was that the audio focus stack traversal was not starting from the top, as it should. It was using the iterator order, which, in the case of a stack, starts with the bottom-most entry. The fix consists in traversing the stack from the top, i.e. from the last element of the vector used to hold the stack entries. Bug 7311023 Change-Id: I0c1900dbf98599a621a420ab55531a3eee838fe5
| * | Clarify that MediaFormat.KEY_IS_ADTS only applies to decoding AAC audio contentAndreas Huber2012-11-141-1/+3
| | | | | | | | | | | | | | | | | | | | | and cannot be used to configure the _encoder_ to emit ADTS content. Change-Id: I47177099b204027b726b2c7ec9b93be6835d88f6 related-to-bug: 7542186
| * | Merge "Support Wifi display devices that rename themselves." into jb-mr1.1-devCraig Mautner2012-11-131-1/+1
| |\ \
| | * | Support Wifi display devices that rename themselves.Jeff Brown2012-11-071-1/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some Wifi display devices like to rename themselves after a connection completes (or at other times). Make sure to update the name of the display when we detect that it changed in our scan results. This problem is somewhat complicated by the fact that we remember the display name persistently, so we need to update our list of remembered displays too. Improve the state machine to avoid redundant attempts to disconnect or cancel connection. Bug: 7478895 Change-Id: I35a9e2c6a8deadbe892dacd5e3b4a5a2b12d6cf0
| * | AudioService: undock audio glitch - DO NOT MERGEEric Laurent2012-11-081-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge from master: "AudioService: improve low end dock audio control Low end docks have a menu to enable use of audio for media: automatically enabling/disabling use of audio when the dock is connected/disconnected is useless and can be the source of audio glitches. Bug 7463620." Change-Id: I3b7e7ebe660bb3f0e4367d2a3ed63ee76f78fe58
| * | audio service fix dock after crash - DO NOT MERGEEric Laurent2012-11-081-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | merge from master: "audio service: set dock use on mediaserver restart Restore forced usage of dock audio for media according to current setting when media server restarts." Bug 7485250. Change-Id: Ie67b80ede1ed92d223dd96de83c1beb985dfba06
* | Framework: Make Safe headset volume user configurable (1 of 2)DvTonder2013-02-061-39/+67
| | | | | | | | | | | | | | | | | | Patch set 1 : Initial commit Patch set 2 : Alternative approach using content observer to listen for settings changes and react dynamically Patch set 3 : Rebase Change-Id: I0bd57334ca1307786eaed6578b216323e442f00e
* | Framework: Fix multi-user support in AudioServiceDvTonder2013-02-031-7/+4
| | | | | | | | Change-Id: Iddeeeac0734a237103e238bcdaa1e85806a64e4f
* | Prevent audio players starting on startup.Danny Baumann2013-01-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, (at least) Apollo was started on startup (in that it appeared in the notification bar) because it listens to the AUDIO_BECOMING_NOISY intent to silence itself in that case. This intent is broadcast by AudioService when there's a user switch to silence any potential audio players for the old user. As the system also sends around a USER_SWITCHED intent on startup, this led to the aforementioned player startup. As the intent of AudioService was to act on a user backgrounding anyway, send out AUDIO_BECOMING_NOISY as reaction to a USER_BACKGROUND intent instead of the USER_SWITCHED intent. Change-Id: Iba35844a1274c9dd195f104068304e6a7ffa809e
* | Fix code formatting issues.Danny Baumann2013-01-281-28/+29
| | | | | | | | Change-Id: I5c3cde249cd5b514c616b8c42b8eb2549de247a6
* | AudioService: allow volume control on analog dockTakazumi Matsumoto2013-01-261-1/+0
| | | | | | | | | | | | This re-enables volume control on some Motorola docks. Change-Id: If7751867de2c0cefb5a8518b5a6a607a9676b946
* | [2/3] mediaeditor: Allow custom DOMX source instead of Google DOMX defaultHashcode2013-01-261-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part 2 of 3 patches: To allow omap4 devices to use custom "domx" source via a new BoardConfig.mk item: TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx This setting provides for 3 changes during the build: 1. In hardware/ti/omap4xxx this settings stops standard Google domx source from being built and changes the domx reference for tiutils. 2. In frameworks/base it changes the default openmax references for frameworks/base/media/jni/mediaeditor/Android.mk to the new location 3. In frameworks/av changes the openmax references in 5 places, and adds new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp This commit is based on cherry-pick from omapzoom (with a more descriptive BoardConfig setting name): http://www.omapzoom.org/?p=platform/frameworks/base.git;a=commit;h=f7f929ff477955333bf7e7413a81a66d683d1f3f Change-Id: I76e558ce840ea45eec14194f2e9107fb83cebf8f Signed-off-by: Hashcode <hashcode0f@gmail.com>
* | Audioservice: fix A2dp support on Samsung's Audio Policy HAL.Shareef Ali2013-01-201-20/+45
| | | | | | | | | | | | | | | | Samsung's audio policy HAL doesn't handle A2DP delay commands correctly which was merged in JB. Adds a nodelaya2dp config option. Change-Id: I188c6e59fdf1b30bef41d8e1aa84ac5319f3bcc3
* | Properly handle changes in phone audio focus.Danny Baumann2012-12-271-4/+8
| | | | | | | | Change-Id: I921651684f4369a47aa83e93010266c40be71a41
* | base: fix constant conflictShareef Ali2012-12-251-9/+9
| | | | | | | | | | | | | | | | There is a conflict 2 media type which shares the same constants which is a DVIX and JPEG. which causes some app to think jpeg is a dvix video file It was due to the merge of the qualcomm patches (patch: http://review.cyanogenmod.org/#/c/28960/ ) which was merged on the 23rd Change-Id: Ida014adab4a954aa81a16d1ff401f9847f87d1a5
* | Squashed commit of audio changes from CodeAuroravivek mehta2012-12-237-20/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MediaFile: Add DIVX and MPEG2TS file format Change-Id: I9f8cfbe8138c6d3d0d824bff2542b91d72a06b82 audio: Define ANC headset and proxy device Change-Id: I681d73433d874ec66ec0b1f1f39869008d7d7d0d (cherry picked from commit 1e6c410eadfc510a9f116bb3da142214fe761225) audio: add support for QCOM WiFi display - Define QCOM WFD intents - Register and handle WFD intends in AudioSystem Change-Id: I1e5a73d4aa5595bed44d24652647c12b7ef4ae1f audio: add support for QCOM audio formats - Add support for EVRC, QCELP, and WMA formats Change-Id: If3676b88fa287b484ef8616c0a6b67177b61a720 PhoneWindowManager: Changes for WFD. - WFD now sends WIFI_DISPLAY_VIDEO intent to set UI orientation. - PhoneWindowManager to listen for WFD intents. - Display on WFD should be same as seen on the HDMI, so set the orientation to HDMI orientation Change-Id: I638adaa906e2151b1c6ae496343714fe828f5dbd audio: add support for QCOM vocoders - Add support for EVRC,QCELP and other QCOM vocoders Change-Id: I9b2a18fe7d01a9198eb470e94e7176b7a6da2c7c
* | Audioservice: Fix Theme engine supportDvTonder2012-12-061-9/+123
| | | | | | | | | | | | | | A few more instances of mVolumePanel.postXXXX had to be enclosed in a null pointer avoidance wrapper. Change-Id: I60a0544b5a785417af1ea61e7322b06f2748876b
* | AudioService: Don't adjust volume when vol-downing to vibrate or silentMike Kasick2012-12-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | Pressing vol-down to vibrate or silent would (previously) still adjust the stream volume, setting the last audible volume to 0, which is not allowed for voice-capable devices. Thus, the last audible volume would reset to default on reboot if on vibrate/silent or the lowest volume setting. By not adjusting volume when vol-downing to vibrate or silent on voice-capable devices, the last audible volume is always preserved across reboot.
* | Squashed commit of the theme engine support.Ricardo Cerqueira2012-11-243-22/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated 4.2 support for the old T-Mobile theme engine, as usual needs the provider and switcher apps installed as well. I'm finally dropping the 400+ commit history on this, since everybody else keeps picking it up from CM as a single patch anyway... But for the record, nothing of this would be possible without Josh, Ed, and the rest of the TMo guys who wrote and maintained it until 2.2: amit chabra <amit.chabra@t-mobile.com> Amit Kohli <amit.kohli@t-mobile.com> Chris Cogar <chriscogar@t-mobile.com> Dirk Sigurdson <dirk.sigurdson@t-mobile.com> Ed Carrigan <edward.carrigan@t-mobile.com> Gaurav Sharma <gaurav.sharma3@t-mobile.com> Hui Feng <hui.feng@t-mobile.com> John Ritz <john.ritz1@t-mobile.com> Josh Guilfoyle <josh.guilfoyle@t-mobile.com> Mark Roberts <mark.roberts48@t-mobile.com> Pankaj Kumar <Pankaj.kumar6@t-mobile.com> Samuel Cheung <samuel.cheung@t-mobile.com> Sergey Ten <sergey.ten6@t-mobile.com> Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4
* | Forward port Volume panel style and Linked volumesDvTonder2012-11-221-1/+24
| | | | | | | | | | | | Original author ptunstal Change-Id: I4359550fabd110ced6359d2bdcd321561b08fae0
* | Framework: Port CM9 features to CM10DvTonder2012-11-212-26/+67
|/ | | | | | | | | | | | | | | This commit includes: - Power menu Reboot - Power menu screenshot - Profiles - Lock screen Calendar - Lock screen Weather - Notification light customization - Battery light customization - IME Selector notification toggle - and a few more things to support Settings Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb
* Merge "audio service: make dock audio is off by default" into jb-mr1-devEric Laurent2012-10-291-1/+1
|\
| * audio service: make dock audio is off by defaultEric Laurent2012-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is better to turn dock audio off by default if the user has not yet explicitly turned it on from the settings menu. There is a discoverability issue with current implementation as we do not launch the settings menu at first dock insertion. Having audio routed to the dock by default would make the tablet silent for media content when docked and users will not be directed to the settings menu. As the dock audio enable setting is for low end docks only (analog connection and no jack detection) disabling audio for low end docks by default does not impact manta and prime docks. Bug 7302106. Change-Id: I571f361d41940cfb811f038442ae9ba9c6361d1d
* | No playback and music widget from other user on user switchJean-Michel Trivi2012-10-291-2/+34
|/ | | | | | | | | | | On user switch: - make the current audio focus owner loose audio focus - clear the remote control display Bug 7205290 Bug 7307156 Change-Id: I6ebcb94d1d2bae8c57ab98dd7e795b239a981d28
* Merge "add settings for dock audio enabled" into jb-mr1-devEric Laurent2012-10-271-1/+37
|\
| * add settings for dock audio enabledEric Laurent2012-10-261-1/+37
| | | | | | | | | | | | | | | | | | Add settings dock_audio_media_enabled indicating if dock audio is enabled for media for docks that do not implement jack detection. Bug 7302106. Change-Id: I75766b606ceb870b3f89979c4e3cca88ed197aaf