media/libraries
tonihei f4f801a809 Do not require package visibility when connecting to a Media3 session
When we currently call SessionToken.createSessionToken with a legacy
token, we call the package manager to get the process UID. This
requires visiblity to the target package, which may not be available
unless the target runs a service known to the controller app.

However, when connecting to a Media3, this UID doesn't have to be
known, so we can move the call closer to where it's needed to
avoid the unncessary visibility check.

In addition, a legacy session may reply with unknown result code
to the session token request, which we should handle as well.

One of the constructor can be removed since it was only used from
a test.

PiperOrigin-RevId: 489917706
(cherry picked from commit 2fd4aac310)
2023-01-25 17:37:31 +00:00
..
cast Rename getVideoSurfaceSize to getSurfaceSize 2022-11-17 10:06:29 +00:00
common Add remaining state and getters to SimpleBasePlayer 2023-01-25 17:37:31 +00:00
database Mark all non-public IntDefs as only TYPE_USE 2022-02-21 16:56:36 +00:00
datasource Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
datasource_cronet Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
datasource_okhttp Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
datasource_rtmp Annotate methods that always return this with @CanIgnoreReturnValue 2022-07-21 15:24:07 +00:00
decoder Expect PresentationTime Discontinuity During Stream Transitions 2022-04-26 14:21:36 +01:00
decoder_av1 Fix Dackka parameter name error in Gav1Decoder and VpxDecoder 2022-11-10 10:19:01 +00:00
decoder_ffmpeg Fix compilation error in ffmpeg JNI layer 2022-11-23 09:52:20 +00:00
decoder_flac Fix Dackka/Metalava errors in av1, flac, ffmpeg, midi, and opus modules 2022-11-10 10:00:14 +00:00
decoder_opus Remove @hide javadoc annotation from ExoPlayer GitHub 2022-11-22 11:05:15 +00:00
decoder_vp9 Fix Dackka parameter name error in Gav1Decoder and VpxDecoder 2022-11-10 10:19:01 +00:00
effect Fix Dackka/Metalava errors in the effects module 2022-11-02 12:21:56 +00:00
exoplayer Pass correct frame size for passthrough playback 2023-01-25 17:37:31 +00:00
exoplayer_dash Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
exoplayer_hls Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
exoplayer_ima Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
exoplayer_rtsp Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
exoplayer_smoothstreaming Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides 2022-11-10 12:24:56 +00:00
exoplayer_workmanager Reformat some javadoc 2022-02-18 14:54:02 +00:00
extractor Fix Dackka javadoc errors in protected methods 2022-11-03 13:35:39 +00:00
session Do not require package visibility when connecting to a Media3 session 2023-01-25 17:37:31 +00:00
test_data Load bitmaps for MediaMetadataCompat and handle the metadata updates. 2022-11-01 18:43:26 +00:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
test_session_common Align PlaybackStateCompat states with logic in MediaSessionConnector 2022-11-10 12:40:37 +00:00
test_session_current Do not require package visibility when connecting to a Media3 session 2023-01-25 17:37:31 +00:00
test_utils Rename getVideoSurfaceSize to getSurfaceSize 2022-11-17 10:06:29 +00:00
test_utils_robolectric Throw exception if a released player is passed to TestPlayerRunHelper 2023-01-25 17:37:31 +00:00
transformer HDR: Implement ForceInterpretHdrVideoAsSdr 2022-11-09 20:05:24 +00:00
ui Mark broadcast receivers as not exported 2023-01-25 17:37:31 +00:00
ui_leanback Listen to playWhenReady changes in LeanbackPlayerAdapter 2022-07-11 15:49:33 +00:00