- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
2451 lines
66 KiB
Smali
2451 lines
66 KiB
Smali
.class public Lcom/google/android/exoplayer2/ui/PlayerView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final adOverlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
.field public final artworkView:Landroid/widget/ImageView;
|
|
|
|
.field public final bufferingView:Landroid/view/View;
|
|
|
|
.field public final componentListener:Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
.field public final contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
.field public final controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.field public controllerAutoShow:Z
|
|
|
|
.field public controllerHideDuringAds:Z
|
|
|
|
.field public controllerHideOnTouch:Z
|
|
|
|
.field public controllerShowTimeoutMs:I
|
|
|
|
.field public controllerVisibilityListener:Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;
|
|
|
|
.field public customErrorMessage:Ljava/lang/CharSequence;
|
|
|
|
.field public defaultArtwork:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public final errorMessageView:Landroid/widget/TextView;
|
|
|
|
.field public keepContentOnPlayerReset:Z
|
|
|
|
.field public final overlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
.field public showBuffering:I
|
|
|
|
.field public final shutterView:Landroid/view/View;
|
|
|
|
.field public final subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
.field public final surfaceView:Landroid/view/View;
|
|
|
|
.field public final surfaceViewIgnoresVideoAspectRatio:Z
|
|
|
|
.field public textureViewRotation:I
|
|
|
|
.field public useArtwork:Z
|
|
|
|
.field public useController:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 321
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/exoplayer2/ui/PlayerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 325
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/exoplayer2/ui/PlayerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 20
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
.line 330
|
|
invoke-direct/range {p0 .. p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 332
|
|
new-instance v3, Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
invoke-direct {v3, v1}, Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;-><init>(Lcom/google/android/exoplayer2/ui/PlayerView;)V
|
|
|
|
iput-object v3, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->componentListener:Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
.line 334
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/View;->isInEditMode()Z
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->shutterView:Landroid/view/View;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
iput-boolean v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceViewIgnoresVideoAspectRatio:Z
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->artworkView:Landroid/widget/ImageView;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->bufferingView:Landroid/view/View;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->errorMessageView:Landroid/widget/TextView;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->adOverlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
iput-object v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->overlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
.line 346
|
|
new-instance v2, Landroid/widget/ImageView;
|
|
|
|
invoke-direct {v2, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 347
|
|
sget v0, Lcom/google/android/exoplayer2/util/Util;->SDK_INT:I
|
|
|
|
const/16 v3, 0x17
|
|
|
|
if-lt v0, v3, :cond_0
|
|
|
|
.line 348
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, v2}, Lcom/google/android/exoplayer2/ui/PlayerView;->configureEditModeLogoV23(Landroid/content/res/Resources;Landroid/widget/ImageView;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 350
|
|
:cond_0
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, v2}, Lcom/google/android/exoplayer2/ui/PlayerView;->configureEditModeLogo(Landroid/content/res/Resources;Landroid/widget/ImageView;)V
|
|
|
|
.line 352
|
|
:goto_0
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$layout;->exo_player_view:I
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/16 v8, 0x1388
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 372
|
|
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v9
|
|
|
|
sget-object v10, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView:[I
|
|
|
|
move/from16 v11, p3
|
|
|
|
.line 373
|
|
invoke-virtual {v9, v2, v10, v11, v6}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v9
|
|
|
|
.line 376
|
|
:try_start_0
|
|
sget v10, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_shutter_background_color:I
|
|
|
|
invoke-virtual {v9, v10}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
move-result v10
|
|
|
|
.line 377
|
|
sget v11, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_shutter_background_color:I
|
|
|
|
invoke-virtual {v9, v11, v6}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
move-result v11
|
|
|
|
.line 378
|
|
sget v12, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_player_layout_id:I
|
|
|
|
invoke-virtual {v9, v12, v4}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v4
|
|
|
|
.line 379
|
|
sget v12, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_use_artwork:I
|
|
|
|
invoke-virtual {v9, v12, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v12
|
|
|
|
.line 380
|
|
sget v13, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_default_artwork:I
|
|
|
|
.line 381
|
|
invoke-virtual {v9, v13, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v13
|
|
|
|
.line 382
|
|
sget v14, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_use_controller:I
|
|
|
|
invoke-virtual {v9, v14, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v14
|
|
|
|
.line 383
|
|
sget v15, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_surface_type:I
|
|
|
|
invoke-virtual {v9, v15, v7}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v15
|
|
|
|
.line 384
|
|
sget v5, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_resize_mode:I
|
|
|
|
invoke-virtual {v9, v5, v6}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v5
|
|
|
|
.line 385
|
|
sget v6, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_show_timeout:I
|
|
|
|
.line 386
|
|
invoke-virtual {v9, v6, v8}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v8
|
|
|
|
.line 387
|
|
sget v6, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_hide_on_touch:I
|
|
|
|
.line 388
|
|
invoke-virtual {v9, v6, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v6
|
|
|
|
move/from16 p3, v4
|
|
|
|
.line 389
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_auto_show:I
|
|
|
|
invoke-virtual {v9, v4, v7}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
|
|
.line 390
|
|
sget v7, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_show_buffering:I
|
|
|
|
move/from16 v17, v4
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v9, v7, v4}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v7
|
|
|
|
.line 391
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_keep_content_on_player_reset:I
|
|
|
|
move/from16 v18, v5
|
|
|
|
iget-boolean v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->keepContentOnPlayerReset:Z
|
|
|
|
.line 392
|
|
invoke-virtual {v9, v4, v5}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
|
|
iput-boolean v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->keepContentOnPlayerReset:Z
|
|
|
|
.line 394
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$styleable;->PlayerView_hide_during_ads:I
|
|
|
|
const/4 v5, 0x1
|
|
|
|
.line 395
|
|
invoke-virtual {v9, v4, v5}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 397
|
|
invoke-virtual {v9}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
move v9, v6
|
|
|
|
move/from16 v5, v17
|
|
|
|
move/from16 v6, v18
|
|
|
|
move/from16 v17, v14
|
|
|
|
move v14, v13
|
|
|
|
move v13, v12
|
|
|
|
move v12, v11
|
|
|
|
move v11, v10
|
|
|
|
move v10, v15
|
|
|
|
move/from16 v19, v4
|
|
|
|
move/from16 v4, p3
|
|
|
|
move/from16 p3, v8
|
|
|
|
move/from16 v8, v19
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-virtual {v9}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 398
|
|
throw v0
|
|
|
|
:cond_2
|
|
move/from16 p3, v8
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x1
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/16 v17, 0x1
|
|
|
|
.line 401
|
|
:goto_1
|
|
invoke-static/range {p1 .. p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-virtual {v15, v4, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const/high16 v4, 0x40000
|
|
|
|
.line 402
|
|
invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->setDescendantFocusability(I)V
|
|
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_content_frame:I
|
|
|
|
.line 405
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 407
|
|
invoke-static {v4, v6}, Lcom/google/android/exoplayer2/ui/PlayerView;->setResizeModeRaw(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;I)V
|
|
|
|
:cond_3
|
|
sget v6, Lcom/google/android/exoplayer2/ui/R$id;->exo_shutter:I
|
|
|
|
.line 411
|
|
invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
iput-object v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->shutterView:Landroid/view/View;
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
if-eqz v11, :cond_4
|
|
|
|
.line 413
|
|
invoke-virtual {v6, v12}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
:cond_4
|
|
if-eqz v4, :cond_8
|
|
|
|
if-eqz v10, :cond_8
|
|
|
|
.line 419
|
|
new-instance v6, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
const/4 v11, -0x1
|
|
|
|
invoke-direct {v6, v11, v11}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
const/4 v11, 0x2
|
|
|
|
if-eq v10, v11, :cond_7
|
|
|
|
const/4 v11, 0x3
|
|
|
|
const-class v12, Landroid/content/Context;
|
|
|
|
if-eq v10, v11, :cond_6
|
|
|
|
const/4 v11, 0x4
|
|
|
|
if-eq v10, v11, :cond_5
|
|
|
|
.line 449
|
|
new-instance v10, Landroid/view/SurfaceView;
|
|
|
|
invoke-direct {v10, v0}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v10, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
:goto_2
|
|
const/4 v11, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
:try_start_1
|
|
const-class v10, Lcom/google/android/exoplayer2/video/VideoDecoderGLSurfaceView;
|
|
|
|
.line 441
|
|
sget v11, Lcom/google/android/exoplayer2/video/VideoDecoderGLSurfaceView;->$r8$clinit:I
|
|
|
|
const/4 v11, 0x1
|
|
|
|
new-array v15, v11, [Ljava/lang/Class;
|
|
|
|
const/4 v11, 0x0
|
|
|
|
aput-object v12, v15, v11
|
|
|
|
.line 442
|
|
invoke-virtual {v10, v15}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v10
|
|
|
|
filled-new-array/range {p1 .. p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-virtual {v10, v11}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Landroid/view/View;
|
|
|
|
iput-object v10, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 444
|
|
new-instance v2, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v3, "video_decoder_gl_surface_view requires an ExoPlayer dependency"
|
|
|
|
invoke-direct {v2, v3, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v2
|
|
|
|
:cond_6
|
|
:try_start_2
|
|
const-class v10, Lcom/google/android/exoplayer2/video/spherical/SphericalGLSurfaceView;
|
|
|
|
.line 429
|
|
sget v11, Lcom/google/android/exoplayer2/video/spherical/SphericalGLSurfaceView;->$r8$clinit:I
|
|
|
|
const/4 v11, 0x1
|
|
|
|
new-array v15, v11, [Ljava/lang/Class;
|
|
|
|
const/16 v16, 0x0
|
|
|
|
aput-object v12, v15, v16
|
|
|
|
.line 431
|
|
invoke-virtual {v10, v15}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v10
|
|
|
|
filled-new-array/range {p1 .. p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v10, v12}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Landroid/view/View;
|
|
|
|
iput-object v10, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
move v10, v11
|
|
|
|
goto :goto_4
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
.line 433
|
|
new-instance v2, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v3, "spherical_gl_surface_view requires an ExoPlayer dependency"
|
|
|
|
invoke-direct {v2, v3, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v2
|
|
|
|
:cond_7
|
|
const/4 v11, 0x1
|
|
|
|
.line 424
|
|
new-instance v10, Landroid/view/TextureView;
|
|
|
|
invoke-direct {v10, v0}, Landroid/view/TextureView;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v10, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
:goto_3
|
|
const/4 v10, 0x0
|
|
|
|
:goto_4
|
|
iget-object v12, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 452
|
|
invoke-virtual {v12, v6}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 456
|
|
invoke-virtual {v6, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
iget-object v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
const/4 v12, 0x0
|
|
|
|
.line 457
|
|
invoke-virtual {v6, v12}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
iget-object v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 458
|
|
invoke-virtual {v4, v6, v12}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
|
|
|
|
move v4, v10
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
const/4 v11, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_5
|
|
iput-boolean v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceViewIgnoresVideoAspectRatio:Z
|
|
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_ad_overlay:I
|
|
|
|
.line 465
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/FrameLayout;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->adOverlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_overlay:I
|
|
|
|
.line 468
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/FrameLayout;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->overlayFrameLayout:Landroid/widget/FrameLayout;
|
|
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_artwork:I
|
|
|
|
.line 471
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/ImageView;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->artworkView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v13, :cond_9
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
move v4, v11
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
const/4 v4, 0x0
|
|
|
|
:goto_6
|
|
iput-boolean v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->useArtwork:Z
|
|
|
|
if-eqz v14, :cond_a
|
|
|
|
.line 474
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, v14}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->defaultArtwork:Landroid/graphics/drawable/Drawable;
|
|
|
|
:cond_a
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_subtitles:I
|
|
|
|
.line 478
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
.line 480
|
|
invoke-virtual {v4}, Lcom/google/android/exoplayer2/ui/SubtitleView;->setUserDefaultStyle()V
|
|
|
|
.line 481
|
|
invoke-virtual {v4}, Lcom/google/android/exoplayer2/ui/SubtitleView;->setUserDefaultTextSize()V
|
|
|
|
:cond_b
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_buffering:I
|
|
|
|
.line 485
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->bufferingView:Landroid/view/View;
|
|
|
|
const/16 v6, 0x8
|
|
|
|
if-eqz v4, :cond_c
|
|
|
|
.line 487
|
|
invoke-virtual {v4, v6}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_c
|
|
iput v7, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->showBuffering:I
|
|
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_error_message:I
|
|
|
|
.line 492
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/widget/TextView;
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->errorMessageView:Landroid/widget/TextView;
|
|
|
|
if-eqz v4, :cond_d
|
|
|
|
.line 494
|
|
invoke-virtual {v4, v6}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_d
|
|
sget v4, Lcom/google/android/exoplayer2/ui/R$id;->exo_controller:I
|
|
|
|
.line 498
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
sget v6, Lcom/google/android/exoplayer2/ui/R$id;->exo_controller_placeholder:I
|
|
|
|
.line 499
|
|
invoke-virtual {v1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v4, :cond_e
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_e
|
|
if-eqz v6, :cond_f
|
|
|
|
.line 505
|
|
new-instance v4, Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-direct {v4, v0, v10, v7, v2}, Lcom/google/android/exoplayer2/ui/PlayerControlView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;ILandroid/util/AttributeSet;)V
|
|
|
|
iput-object v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
sget v0, Lcom/google/android/exoplayer2/ui/R$id;->exo_controller:I
|
|
|
|
.line 506
|
|
invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 507
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v4, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 508
|
|
invoke-virtual {v6}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 509
|
|
invoke-virtual {v0, v6}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
.line 510
|
|
invoke-virtual {v0, v6}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
|
|
|
|
.line 511
|
|
invoke-virtual {v0, v4, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_f
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
iput-object v0, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
:goto_7
|
|
iget-object v0, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
move/from16 v4, p3
|
|
|
|
goto :goto_8
|
|
|
|
:cond_10
|
|
move v4, v7
|
|
|
|
:goto_8
|
|
iput v4, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerShowTimeoutMs:I
|
|
|
|
iput-boolean v9, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideOnTouch:Z
|
|
|
|
iput-boolean v5, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerAutoShow:Z
|
|
|
|
iput-boolean v8, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideDuringAds:Z
|
|
|
|
if-eqz v17, :cond_11
|
|
|
|
if-eqz v0, :cond_11
|
|
|
|
move v6, v11
|
|
|
|
goto :goto_9
|
|
|
|
:cond_11
|
|
move v6, v7
|
|
|
|
:goto_9
|
|
iput-boolean v6, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->useController:Z
|
|
|
|
.line 520
|
|
invoke-virtual/range {p0 .. p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->hideController()V
|
|
|
|
.line 521
|
|
invoke-virtual/range {p0 .. p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateContentDescription()V
|
|
|
|
iget-object v0, v1, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz v0, :cond_12
|
|
|
|
.line 523
|
|
invoke-virtual {v0, v3}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->addVisibilityListener(Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;)V
|
|
|
|
:cond_12
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$1000(Lcom/google/android/exoplayer2/ui/PlayerView;)I
|
|
.locals 0
|
|
|
|
.line 260
|
|
iget p0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->textureViewRotation:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$1100(Landroid/view/TextureView;I)V
|
|
.locals 0
|
|
|
|
.line 260
|
|
invoke-static {p0, p1}, Lcom/google/android/exoplayer2/ui/PlayerView;->applyTextureViewRotation(Landroid/view/TextureView;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$1200(Lcom/google/android/exoplayer2/ui/PlayerView;)Z
|
|
.locals 0
|
|
|
|
.line 260
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->toggleControllerVisibility()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$1300(Lcom/google/android/exoplayer2/ui/PlayerView;)V
|
|
.locals 0
|
|
|
|
.line 260
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateContentDescription()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static applyTextureViewRotation(Landroid/view/TextureView;I)V
|
|
.locals 6
|
|
|
|
.line 1445
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
.line 1446
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
.line 1447
|
|
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
cmpl-float v4, v1, v3
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
cmpl-float v4, v2, v3
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
div-float v5, v1, v4
|
|
|
|
div-float v4, v2, v4
|
|
|
|
int-to-float p1, p1
|
|
|
|
.line 1451
|
|
invoke-virtual {v0, p1, v5, v4}, Landroid/graphics/Matrix;->postRotate(FFF)Z
|
|
|
|
.line 1454
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {p1, v3, v3, v1, v2}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
.line 1455
|
|
new-instance v3, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v3}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
.line 1456
|
|
invoke-virtual {v0, v3, p1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z
|
|
|
|
.line 1458
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result p1
|
|
|
|
div-float/2addr v1, p1
|
|
|
|
.line 1459
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
|
|
|
|
move-result p1
|
|
|
|
div-float/2addr v2, p1
|
|
|
|
.line 1457
|
|
invoke-virtual {v0, v1, v2, v5, v4}, Landroid/graphics/Matrix;->postScale(FFFF)Z
|
|
|
|
.line 1463
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Landroid/view/TextureView;->setTransform(Landroid/graphics/Matrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static configureEditModeLogo(Landroid/content/res/Resources;Landroid/widget/ImageView;)V
|
|
.locals 1
|
|
|
|
sget v0, Lcom/google/android/exoplayer2/ui/R$drawable;->exo_edit_mode_logo:I
|
|
|
|
.line 1434
|
|
invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
sget v0, Lcom/google/android/exoplayer2/ui/R$color;->exo_edit_mode_background_color:I
|
|
|
|
.line 1435
|
|
invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static configureEditModeLogoV23(Landroid/content/res/Resources;Landroid/widget/ImageView;)V
|
|
.locals 2
|
|
|
|
sget v0, Lcom/google/android/exoplayer2/ui/R$drawable;->exo_edit_mode_logo:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1429
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
sget v0, Lcom/google/android/exoplayer2/ui/R$color;->exo_edit_mode_background_color:I
|
|
|
|
.line 1430
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/res/Resources;->getColor(ILandroid/content/res/Resources$Theme;)I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setResizeModeRaw(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;I)V
|
|
.locals 0
|
|
|
|
.line 1440
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setResizeMode(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final closeShutter()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->shutterView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1372
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
.locals 3
|
|
|
|
.line 788
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/exoplayer2/ui/PlayerView;->isDpadKey(I)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 790
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
invoke-virtual {v2}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->isVisible()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 792
|
|
invoke-virtual {p0, v1}, Lcom/google/android/exoplayer2/ui/PlayerView;->maybeShowController(Z)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 794
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/ui/PlayerView;->dispatchMediaKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
invoke-super {p0, p1}, Landroid/view/View;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 799
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 801
|
|
invoke-virtual {p0, v1}, Lcom/google/android/exoplayer2/ui/PlayerView;->maybeShowController(Z)V
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
.line 797
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {p0, v1}, Lcom/google/android/exoplayer2/ui/PlayerView;->maybeShowController(Z)V
|
|
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public dispatchMediaKeyEvent(Landroid/view/KeyEvent;)Z
|
|
.locals 1
|
|
|
|
.line 814
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->dispatchMediaKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public final hideArtwork()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->artworkView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const v1, 0x106000d
|
|
|
|
.line 1365
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->artworkView:Landroid/widget/ImageView;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
.line 1366
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public hideController()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 836
|
|
invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->hide()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final isDpadKey(I)Z
|
|
.locals 1
|
|
|
|
const/16 v0, 0x13
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x10e
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x16
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x10f
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x14
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x10d
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x15
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x10c
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x17
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public final isPlayingAd()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final maybeShowController(Z)V
|
|
.locals 2
|
|
|
|
.line 1223
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->isPlayingAd()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideDuringAds:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 1226
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1227
|
|
invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->isVisible()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->getShowTimeoutMs()I
|
|
|
|
move-result v0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 1228
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->shouldShowControllerIndefinitely()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 1230
|
|
:cond_2
|
|
invoke-virtual {p0, v1}, Lcom/google/android/exoplayer2/ui/PlayerView;->showController(Z)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onContentAspectRatioChanged(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;F)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1161
|
|
invoke-virtual {p1, p2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setAspectRatio(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 1091
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onTrackballEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 1118
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public performClick()Z
|
|
.locals 1
|
|
|
|
.line 1112
|
|
invoke-super {p0}, Landroid/view/View;->performClick()Z
|
|
|
|
.line 1113
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->toggleControllerVisibility()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setAspectRatioListener(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
.line 1040
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
.line 1041
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setAspectRatioListener(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControlDispatcher(Lcom/google/android/exoplayer2/ControlDispatcher;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 942
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 943
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setControlDispatcher(Lcom/google/android/exoplayer2/ControlDispatcher;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControllerAutoShow(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerAutoShow:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControllerHideDuringAds(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideDuringAds:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControllerHideOnTouch(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 879
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideOnTouch:Z
|
|
|
|
.line 881
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateContentDescription()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControllerShowTimeoutMs(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 860
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iput p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerShowTimeoutMs:I
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 862
|
|
invoke-virtual {p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->isVisible()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 864
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->showController()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setControllerVisibilityListener(Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 922
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerVisibilityListener:Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 927
|
|
invoke-virtual {v1, v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->removeVisibilityListener(Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;)V
|
|
|
|
:cond_1
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerVisibilityListener:Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 931
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->addVisibilityListener(Lcom/google/android/exoplayer2/ui/PlayerControlView$VisibilityListener;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCustomErrorMessage(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/CharSequence;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->errorMessageView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 777
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->customErrorMessage:Ljava/lang/CharSequence;
|
|
|
|
.line 779
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateErrorMessage()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDefaultArtwork(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->defaultArtwork:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->defaultArtwork:Landroid/graphics/drawable/Drawable;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 675
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateForCurrentTrackSelections(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setErrorMessageProvider(Lcom/google/android/exoplayer2/util/ErrorMessageProvider;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/exoplayer2/util/ErrorMessageProvider;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/exoplayer2/util/ErrorMessageProvider;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 766
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateErrorMessage()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExtraAdGroupMarkers([J[Z)V
|
|
.locals 1
|
|
.param p1 # [J
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # [Z
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1028
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1029
|
|
invoke-virtual {v0, p1, p2}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setExtraAdGroupMarkers([J[Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setKeepContentOnPlayerReset(Z)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->keepContentOnPlayerReset:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->keepContentOnPlayerReset:Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 738
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateForCurrentTrackSelections(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPlayer(Lcom/google/android/exoplayer2/Player;)V
|
|
.locals 4
|
|
.param p1 # Lcom/google/android/exoplayer2/Player;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 571
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
move v0, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 573
|
|
invoke-interface {p1}, Lcom/google/android/exoplayer2/Player;->getApplicationLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
move v0, v3
|
|
|
|
.line 572
|
|
:goto_2
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkArgument(Z)V
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 589
|
|
invoke-virtual {v0, v1}, Lcom/google/android/exoplayer2/ui/SubtitleView;->setCues(Ljava/util/List;)V
|
|
|
|
.line 592
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 593
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setPlayer(Lcom/google/android/exoplayer2/Player;)V
|
|
|
|
.line 595
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateBuffering()V
|
|
|
|
.line 596
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateErrorMessage()V
|
|
|
|
.line 597
|
|
invoke-virtual {p0, v3}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateForCurrentTrackSelections(Z)V
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
const/16 v0, 0x1a
|
|
|
|
.line 599
|
|
invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/Player;->isCommandAvailable(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 600
|
|
instance-of v1, v0, Landroid/view/TextureView;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 601
|
|
check-cast v0, Landroid/view/TextureView;
|
|
|
|
invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/Player;->setVideoTextureView(Landroid/view/TextureView;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 602
|
|
:cond_6
|
|
instance-of v1, v0, Landroid/view/SurfaceView;
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 603
|
|
check-cast v0, Landroid/view/SurfaceView;
|
|
|
|
invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/Player;->setVideoSurfaceView(Landroid/view/SurfaceView;)V
|
|
|
|
.line 605
|
|
:cond_7
|
|
:goto_3
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateAspectRatio()V
|
|
|
|
:cond_8
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
const/16 v0, 0x1b
|
|
|
|
.line 607
|
|
invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/Player;->isCommandAvailable(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->subtitleView:Lcom/google/android/exoplayer2/ui/SubtitleView;
|
|
|
|
.line 608
|
|
invoke-interface {p1}, Lcom/google/android/exoplayer2/Player;->getCurrentCues()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/android/exoplayer2/ui/SubtitleView;->setCues(Ljava/util/List;)V
|
|
|
|
:cond_9
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->componentListener:Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
.line 610
|
|
invoke-interface {p1, v0}, Lcom/google/android/exoplayer2/Player;->addListener(Lcom/google/android/exoplayer2/Player$Listener;)V
|
|
|
|
.line 611
|
|
invoke-virtual {p0, v2}, Lcom/google/android/exoplayer2/ui/PlayerView;->maybeShowController(Z)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 613
|
|
:cond_a
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->hideController()V
|
|
|
|
:goto_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRepeatToggleModes(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 992
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 993
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setRepeatToggleModes(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setResizeMode(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
.line 632
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
.line 633
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->setResizeMode(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowBuffering(I)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->showBuffering:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->showBuffering:I
|
|
|
|
.line 753
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateBuffering()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowFastForwardButton(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 962
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 963
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowFastForwardButton(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowMultiWindowTimeBar(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1012
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1013
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowMultiWindowTimeBar(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowNextButton(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 982
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 983
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowNextButton(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowPreviousButton(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 972
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 973
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowPreviousButton(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowRewindButton(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 952
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 953
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowRewindButton(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowShuffleButton(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1002
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1003
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowShuffleButton(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShutterBackgroundColor(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->shutterView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 712
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUseArtwork(Z)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->artworkView:Landroid/widget/ImageView;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
.line 653
|
|
:goto_1
|
|
invoke-static {v1}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
iget-boolean v1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useArtwork:Z
|
|
|
|
if-eq v1, p1, :cond_2
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useArtwork:Z
|
|
|
|
.line 656
|
|
invoke-virtual {p0, v0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateForCurrentTrackSelections(Z)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUseController(Z)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 691
|
|
:goto_1
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useController:Z
|
|
|
|
if-ne v0, p1, :cond_2
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
iput-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useController:Z
|
|
|
|
.line 696
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 697
|
|
invoke-virtual {p1, v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setPlayer(Lcom/google/android/exoplayer2/Player;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 699
|
|
invoke-virtual {p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->hide()V
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 700
|
|
invoke-virtual {p1, v0}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setPlayer(Lcom/google/android/exoplayer2/Player;)V
|
|
|
|
.line 702
|
|
:cond_4
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->updateContentDescription()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 2
|
|
|
|
.line 619
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 620
|
|
instance-of v1, v0, Landroid/view/SurfaceView;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 622
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final shouldShowControllerIndefinitely()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public showController()V
|
|
.locals 1
|
|
|
|
.line 830
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->shouldShowControllerIndefinitely()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/exoplayer2/ui/PlayerView;->showController(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final showController(Z)V
|
|
.locals 1
|
|
|
|
.line 1247
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerShowTimeoutMs:I
|
|
|
|
.line 1250
|
|
:goto_0
|
|
invoke-virtual {v0, p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->setShowTimeoutMs(I)V
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1251
|
|
invoke-virtual {p1}, Lcom/google/android/exoplayer2/ui/PlayerControlView;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toggleControllerVisibility()Z
|
|
.locals 1
|
|
|
|
.line 1210
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->useController()Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final updateAspectRatio()V
|
|
.locals 5
|
|
|
|
.line 1305
|
|
sget-object v0, Lcom/google/android/exoplayer2/video/VideoSize;->UNKNOWN:Lcom/google/android/exoplayer2/video/VideoSize;
|
|
|
|
.line 1306
|
|
iget v1, v0, Lcom/google/android/exoplayer2/video/VideoSize;->width:I
|
|
|
|
.line 1307
|
|
iget v2, v0, Lcom/google/android/exoplayer2/video/VideoSize;->height:I
|
|
|
|
.line 1308
|
|
iget v3, v0, Lcom/google/android/exoplayer2/video/VideoSize;->unappliedRotationDegrees:I
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
int-to-float v1, v1
|
|
|
|
.line 1310
|
|
iget v0, v0, Lcom/google/android/exoplayer2/video/VideoSize;->pixelWidthHeightRatio:F
|
|
|
|
mul-float/2addr v1, v0
|
|
|
|
int-to-float v0, v2
|
|
|
|
div-float/2addr v1, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
move v1, v4
|
|
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 1312
|
|
instance-of v2, v0, Landroid/view/TextureView;
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
cmpl-float v2, v1, v4
|
|
|
|
if-lez v2, :cond_3
|
|
|
|
const/16 v2, 0x5a
|
|
|
|
if-eq v3, v2, :cond_2
|
|
|
|
const/16 v2, 0x10e
|
|
|
|
if-ne v3, v2, :cond_3
|
|
|
|
:cond_2
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
div-float v1, v2, v1
|
|
|
|
:cond_3
|
|
iget v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->textureViewRotation:I
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->componentListener:Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
.line 1321
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->removeOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
:cond_4
|
|
iput v3, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->textureViewRotation:I
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
iget-object v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->componentListener:Lcom/google/android/exoplayer2/ui/PlayerView$ComponentListener;
|
|
|
|
.line 1327
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceView:Landroid/view/View;
|
|
|
|
.line 1329
|
|
check-cast v0, Landroid/view/TextureView;
|
|
|
|
iget v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->textureViewRotation:I
|
|
|
|
invoke-static {v0, v2}, Lcom/google/android/exoplayer2/ui/PlayerView;->applyTextureViewRotation(Landroid/view/TextureView;I)V
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->contentFrame:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
|
|
iget-boolean v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->surfaceViewIgnoresVideoAspectRatio:Z
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
move v4, v1
|
|
|
|
.line 1332
|
|
:goto_2
|
|
invoke-virtual {p0, v0, v4}, Lcom/google/android/exoplayer2/ui/PlayerView;->onContentAspectRatioChanged(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final updateBuffering()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->bufferingView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
.line 1383
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final updateContentDescription()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v2, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useController:Z
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1408
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controllerHideOnTouch:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 1411
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/exoplayer2/ui/R$string;->exo_controls_hide:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1409
|
|
:cond_1
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 1415
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/exoplayer2/ui/R$string;->exo_controls_show:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 1414
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 1407
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final updateErrorMessage()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->errorMessageView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->customErrorMessage:Ljava/lang/CharSequence;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 1390
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->errorMessageView:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1391
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/16 v1, 0x8
|
|
|
|
.line 1400
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final updateForCurrentTrackSelections(Z)V
|
|
.locals 0
|
|
|
|
iget-boolean p1, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->keepContentOnPlayerReset:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1262
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->hideArtwork()V
|
|
|
|
.line 1263
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/ui/PlayerView;->closeShutter()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final useController()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->useController:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/ui/PlayerView;->controller:Lcom/google/android/exoplayer2/ui/PlayerControlView;
|
|
|
|
.line 1194
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkStateNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|