summaryrefslogtreecommitdiff
path: root/core/java/android/widget/VideoView.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
* Limit access to suspected false positives.Mathew Inwood2018-12-281-2/+2
| | | | | | | | | | | | | | | | | | | | | Members modified herein are suspected to be false positives: i.e. things that were added to the greylist in P, but subsequent data analysis suggests that they are not, in fact, used after all. Add a maxTargetSdk=P to these APIs. This is lower-risk that simply removing these things from the greylist, as none of out data sources are perfect nor complete. For APIs that are not supported yet by annotations, move them to hiddenapi-greylist-max-p.txt instead which has the same effect. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
* Move some members to the "Q blacklist".Mathew Inwood2018-09-141-1/+2
| | | | | | | | | | | | | | Based on some analysis, these fields/methods are likely false positives. Set maxTargetSdk=P so that any apps using them are required to migrate off them in future. See the bug for more details. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+16
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Fix VideoView touch and trackball handlers to call super.Vladislav Kaznacheev2017-05-021-4/+6
| | | | | | | | | | Currently VideoView.onTouchEvent and VideoView.onTrackballEvent do not call super. This completely disables several useful View features such as long click, context menu or tooltips. Bug: 37755662 Test: manual Change-Id: I0c82c32da36e4ca7cacc78027daed2fa298a6b58
* VideoView: option for audio focus, support for AudioAttributesJean-Michel Trivi2017-02-221-7/+64
| | | | | | | | | | | | Add API for VideoView to select whether it uses audio focus during playback, and how. Add support for AudioAttributes Test: cts-tradefed run cts -m CtsWidgetTestCases -t android.widget.cts.VideoViewTest Bug 30955183 Bug 30258418 Change-Id: I581d32c79c78b8197ded2319e0d5bfdc35b93c5e
* Clean up VideoView, SurfaceView constructorsAlan Viverette2016-08-041-41/+39
| | | | | | | Also cleans up VideoView fields. No functional changes. Bug: 30600463 Change-Id: I42241e376006c328695d46d63f7fdeda409f1a67
* Support for CEA-708 closed captionJaesung Chung2015-12-071-0/+2
| | | | | Bug: 24314667 Change-Id: I5e04f7646e40eb8f358666c8b109eccb6617a246
* resolved conflicts for merge of 42f55d1e to masterMarco Nelissen2015-03-121-3/+8
|\ | | | | | | Change-Id: I9c26861c5b0e26bb55e50b2133b7561348a01aec
| * Fix context leakMarco Nelissen2015-03-111-3/+8
| | | | | | | | | | | | | | | | | | | | | | Using an activity context with AudioManager could cause that context to be held on to longer than desired, for example if the caller acquired audio focus but never abandoned it. Fix acquire/abandon in VideoView, and use the application context in AudioManager to mitigate the issue for other misbehaving code. Bug: https://code.google.com/p/android/issues/detail?id=152173 Change-Id: I0fb8390207422c784800dda25b1f2c03d4574bcd
* | Remove unused imports in frameworks/base.John Spurlock2015-02-281-2/+0
| | | | | | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* | First quick implementation of auto assist data.Dianne Hackborn2015-02-061-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
* | Fix accessibility delegationAlan Viverette2015-01-071-4/+6
|/ | | | | | | | | | | | | | | Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
* API: Document android-allow-cross-domain-redirect in MediaPlayer and VideoViewRonghua Wu2014-08-251-0/+4
| | | | | Bug: 17238151 Change-Id: Ib1e780cf5f93b07a7abbca839e7cc9f92a60d451
* VideoView: unhide setVideoURI api and add document.Ronghua Wu2014-08-221-1/+14
| | | | | Bug: 16899444 Change-Id: I576a4b334d8b1fe89f93df3587386ac7f9455687
* support for CEA-608 closed captionChong Zhang2014-06-111-0/+2
| | | | | Bug: 15470448 Change-Id: Ic6a527f5c35a8ee0a08a5b043336e4d193216083
* Implements TtmlRenderer.Sungsoo Lim2014-05-141-0/+2
| | | | Change-Id: I99772745c5c005ee1eefbc29187116f0c2820988
* am 752926c7: am 1197bc37: am 7e11b16b: VideoView: expand documentation on ↵Lajos Molnar2013-11-131-1/+11
|\ | | | | | | | | | | | | state save/restore limitations * commit '752926c752b9516c05a36f3eed6ab6b77d32b2c6': VideoView: expand documentation on state save/restore limitations
| * VideoView: expand documentation on state save/restore limitationsLajos Molnar2013-11-131-1/+11
| | | | | | | | | | | | Change-Id: I46f231d314fc4ae8d9d11389aa62a3e2698122ed Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 11412889
* | Use audio focus instead of legacy music commandMarco Nelissen2013-11-011-6/+2
| | | | | | | | | | | | Bug 8612500 Change-Id: Id443b754d683b9f2d2010ee3a03e54590cda0b48
* | am 974a6e12: Merge "Make SubtitleController thread safe" into klp-devLajos Molnar2013-09-301-0/+7
|\| | | | | | | | | * commit '974a6e1231f80644e382567c5f0a5fb9b6962d27': Make SubtitleController thread safe
| * Make SubtitleController thread safeLajos Molnar2013-09-271-0/+7
| | | | | | | | | | | | | | | | | | | | Add the concept of an anchor looper. Allow show/hide/selectTrack/selectDefaultTrack to be called from thread other than anchor looper. Change-Id: Iaf2f3d3c46d1b00a0a24156745ec16b301c80c04 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 10919206
* | Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-2/+6
|/ | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Add WebVTT caption rendererAlan Viverette2013-09-061-94/+68
| | | | | | | | Currently missing support for region anchor points, robust layout when snapping to lines, and vertical text. BUG: 10260603 Change-Id: I3463b4aa0039442159144e66922d67f5dfee58ed
* Add subtitle support to VideoView.Lajos Molnar2013-09-031-19/+50
| | | | | | Change-Id: Ibfde491a624272c4f9733098529ad70c6aa93fe0 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 10326117
* Add methods for managing subtitle overlays in VideoViewAlan Viverette2013-09-031-0/+108
| | | | | | | | Overlays are added directly to the VideoView, laid out to the size of the video view, and rendered in draw(). BUG: 10260603 Change-Id: Ie8c30e5e6dcd5c6e1a2063af898afce0108a87bf
* VideoView: add addSubtitleSourceLajos Molnar2013-08-301-2/+66
| | | | | | | | A way to add external subtitle file to VideoView. Change-Id: Ic110238408550a5b4088851bc5da5e94eb58d831 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 10326117
* Add VideoView.getAudioSessionId()Marco Nelissen2013-05-091-1/+26
| | | | | | | | This lets apps get the audio session id of the video being played, so they can apply effects to the audio track. b/8767565 Change-Id: Iaa39d97d0b6fb528ed04b52d579afa58444ebcfe
* am 8fac23f2: am 8be8ee4c: am f0afad00: Merge "Stop caching stream duration, ↵Andreas Huber2012-11-281-10/+3
|\ | | | | | | | | | | | | it might change (increase) dynamically." into jb-mr1.1-dev * commit '8fac23f23df08b192a542be57b09badfbb0a1bf4': Stop caching stream duration, it might change (increase) dynamically.
| * Stop caching stream duration, it might change (increase) dynamically.Andreas Huber2012-11-271-10/+3
| | | | | | | | | | Change-Id: Ia829f47602e6961f24464da36a0162b8c1d7d6c8 related-to-bug: 6870049
* | Fix buildMarco Nelissen2012-11-131-0/+4
| | | | | | | | | | | | Restore unused-but-public "resolveAdjustedSize" method. Change-Id: I2f2bdbf96c484bcd457790fde970f1c67296b857
* | Make VideoView/MediaController behave betterMarco Nelissen2012-11-131-38/+52
|/ | | | | | | | Make VideoView support wrap_content size, and position the MediaController inside of the anchor view instead of below it and centered on the screen. b/6179034 Change-Id: Iec0dd9a1d953f742bbf7b12065946743a03745e5
* Request Layout after video size changedTeng-Hui Zhu2012-08-231-0/+1
| | | | | | bug:6800665 Change-Id: I57010ac26246dff9da45f8fdb7ccbe39c454c54f
* Enabled application using VideoView to get information events from MediaPlayerJames Dong2012-07-271-0/+13
| | | | | | o related-to-bug: 6851811 Change-Id: I78a73a33b6ddfaea76f2ba13b6990c153fb696c6
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-0/+14
| | | | | | | | | | | | | | | to only framework classes. AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source Java class. This is problematic since leads to leaking private classes which would allow an accessibility service to load classes from other packages. This is strongly undesirable since not trusted code can be loaded, and hence executed, in the accessibility service. To address that the class name is set to the most concrete framework class extended by the info/event source. bug:5878943 Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
* New UX calls for dialogs without titles.Marco Nelissen2012-01-061-1/+0
| | | | | | b/5753055 Change-Id: I86ba0f937f71db56b3ea77752b2b30929b791a04
* Fix 5158468: Update floating window size when the anchor view size changes.Chih-Chung Chang2011-09-281-7/+0
| | | | | | | | Originally when surfaceChanged() happens, we remove the old window and create a new window. This causes flickering. Now we just update the window layout according to the size of the anchor view. Change-Id: Id741dac07872e473f2c9829b626c5c9568e7e22d
* Fix a bug that the condition for play/pause was reversed.Chih-Chung Chang2011-02-101-2/+2
| | | | Change-Id: I462ca5b910de98a875d7f54b4a937176f88474d0
* am 8ffb135d: am 45ca778d: Merge "Make sure the controller will get ↵Owen Lin2010-11-101-2/+5
|\ | | | | | | | | | | | | repositioned after size changing." into gingerbread * commit '8ffb135dc892c09f1781231f783b0890515b3d60': Make sure the controller will get repositioned after size changing.
| * Make sure the controller will get repositioned after size changing.Owen Lin2010-11-091-2/+5
| | | | | | | | | | Bug: 3177061 Change-Id: I8f9606d4e05146ba568e8fe370cfe115dadedab9
* | Add plumbing for volume mute key.Jeff Brown2010-11-021-0/+1
| | | | | | | | | | | | | | | | Full support for the volume mute key will be implemented in a later change. Bug: 2912307 Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
* | Fix policy issues when screen is off.Jeff Brown2010-11-011-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrote interceptKeyBeforeQueueing to make the handling more systematic. Behavior should be identical except: - We never pass keys to applications when the screen is off and the keyguard is not showing (the proximity sensor turned off the screen). Previously we passed all non-wake keys through in this case which caused a bug on Crespo where the screen would come back on if a soft key was held at the time of power off because the resulting key up event would sneak in just before the keyguard was shown. It would then be passed through to the dispatcher which would poke user activity and wake up the screen. - We propagate the key flags when broadcasting media keys which ensures that recipients can tell when the key is canceled. - We ignore endcall or power if canceled (shouldn't happen anyways). Changed the input dispatcher to not poke user activity for canceled events since they are synthetic and should not wake the device. Changed the lock screen so that it does not poke the wake lock when the grab handle is released. This fixes a bug where the screen would come back on immediately if the power went off while the user was holding one of the grab handles because the sliding tab would receive an up event after screen turned off and release the grab handles. Fixed a couple of issues where media keys were being handled inconsistently or not at all, particularly in the case of the new PAUSE, PLAY and RECORD keys. Bug: 3144874 Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
* | Squashed commit of the following:Andreas Huber2010-10-291-43/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0d5694ba2d399dd0869532a4d6256448185a1be0 Author: Andreas Huber <andih@google.com> Date: Fri Oct 29 11:59:23 2010 -0700 suspend() and resume() methods on VideoView are back but don't do anything. They need to be back because they were public before. Change-Id: Iddfd1021ffcf341f26e8d55ba761fd33701e2425 commit 16192891ed7d349ee97e47d1729d20a2d0d247b8 Author: Andreas Huber <andih@google.com> Date: Fri Oct 29 11:47:05 2010 -0700 Revert "New API on VideoView widget to suspend/resume a session. Do not release the MediaPlayer client for video suspending/resuming." This reverts commit 2e1818a4d16c3309660f27286c77d8d1eee95a25. Conflicts: api/current.xml Change-Id: I68dd1d05871044faf3f832d0838aa40bc7f890e5 commit 8f934dc1a3ae4e60f0790fcf97671e063fa20fad Author: Andreas Huber <andih@google.com> Date: Fri Oct 29 11:44:16 2010 -0700 Revert "Release mediaplayer if the current state is not suspending. Fix for bug 2480093." This reverts commit efb882cf75eef39ecaf9f8920ed302a019fa629f. commit f2ed03550887986f39d36b5dabcd9e919949c7cf Author: Andreas Huber <andih@google.com> Date: Fri Oct 29 11:44:08 2010 -0700 Revert "Release MediaPlayer if suspend() returns false." This reverts commit 047212fd4ea360675e94d3ce83c7f5544f65b268. commit 441ecce678bd24e9660a72c8627b5bd94433ff8b Author: Andreas Huber <andih@google.com> Date: Fri Oct 29 11:40:46 2010 -0700 manually. Change-Id: I4fdd43c9f7c8b3eedddb31a196da4984e1c58e87 Change-Id: I60d4b10e7a9e4ed8d9a796f1711618f557eb6e89
* Release MediaPlayer if suspend() returns false.Gloria Wang2010-03-181-3/+8
| | | | Change-Id: Ic6467a19bac453b72b56294487c9b835b20affd7
* Fix a typo in VideoView.java that disabled the seek-back button by default.Andreas Huber2010-03-091-1/+1
| | | | | Change-Id: I23a9423b20646529b652e23349266a3291981484 related-to-bug: 2498317
* Release mediaplayer if the current state is not suspending. Fix for bug 2480093.Gloria Wang2010-03-051-0/+3
|
* New API on VideoView widget to suspend/resume a session. Do not release the ↵Gloria Wang2010-02-231-3/+41
| | | | MediaPlayer client for video suspending/resuming.
* API Extension: Support for optionally specifying a map of extra request ↵Andreas Huber2010-01-281-25/+35
| | | | | | | | headers when specifying the uri of media data to be played. related-to-bug: 2393577 Original change by Andrei Popescu <andreip@google.com>
* Invoke the OnErrorListener callback when MediaPlayer.setDataSource() throws.Andrei Popescu2009-09-301-0/+2
| | | | Fixes http://b/issue?id=2156505
* The MetaData API is optional and getMetadata may return null if unsupported.Andreas Huber2009-08-201-6/+11
|