.class public Landroidx/media3/common/PlaybackException; .super Ljava/lang/Exception; .source "PlaybackException.java" # interfaces .implements Landroidx/media3/common/Bundleable; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/media3/common/PlaybackException$ErrorCode; } .end annotation # static fields .field public static final CREATOR:Landroidx/media3/common/Bundleable$Creator; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/media3/common/Bundleable$Creator<", "Landroidx/media3/common/PlaybackException;", ">;" } .end annotation .end field .field public static final CUSTOM_ERROR_CODE_BASE:I = 0xf4240 .field public static final ERROR_CODE_AUDIO_TRACK_INIT_FAILED:I = 0x1389 .field public static final ERROR_CODE_AUDIO_TRACK_WRITE_FAILED:I = 0x138a .field public static final ERROR_CODE_BEHIND_LIVE_WINDOW:I = 0x3ea .field public static final ERROR_CODE_DECODER_INIT_FAILED:I = 0xfa1 .field public static final ERROR_CODE_DECODER_QUERY_FAILED:I = 0xfa2 .field public static final ERROR_CODE_DECODING_FAILED:I = 0xfa3 .field public static final ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES:I = 0xfa4 .field public static final ERROR_CODE_DECODING_FORMAT_UNSUPPORTED:I = 0xfa5 .field public static final ERROR_CODE_DRM_CONTENT_ERROR:I = 0x1773 .field public static final ERROR_CODE_DRM_DEVICE_REVOKED:I = 0x1777 .field public static final ERROR_CODE_DRM_DISALLOWED_OPERATION:I = 0x1775 .field public static final ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED:I = 0x1774 .field public static final ERROR_CODE_DRM_LICENSE_EXPIRED:I = 0x1778 .field public static final ERROR_CODE_DRM_PROVISIONING_FAILED:I = 0x1772 .field public static final ERROR_CODE_DRM_SCHEME_UNSUPPORTED:I = 0x1771 .field public static final ERROR_CODE_DRM_SYSTEM_ERROR:I = 0x1776 .field public static final ERROR_CODE_DRM_UNSPECIFIED:I = 0x1770 .field public static final ERROR_CODE_FAILED_RUNTIME_CHECK:I = 0x3ec .field public static final ERROR_CODE_IO_BAD_HTTP_STATUS:I = 0x7d4 .field public static final ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED:I = 0x7d7 .field public static final ERROR_CODE_IO_FILE_NOT_FOUND:I = 0x7d5 .field public static final ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE:I = 0x7d3 .field public static final ERROR_CODE_IO_NETWORK_CONNECTION_FAILED:I = 0x7d1 .field public static final ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT:I = 0x7d2 .field public static final ERROR_CODE_IO_NO_PERMISSION:I = 0x7d6 .field public static final ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE:I = 0x7d8 .field public static final ERROR_CODE_IO_UNSPECIFIED:I = 0x7d0 .field public static final ERROR_CODE_PARSING_CONTAINER_MALFORMED:I = 0xbb9 .field public static final ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED:I = 0xbbb .field public static final ERROR_CODE_PARSING_MANIFEST_MALFORMED:I = 0xbba .field public static final ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED:I = 0xbbc .field public static final ERROR_CODE_REMOTE_ERROR:I = 0x3e9 .field public static final ERROR_CODE_TIMEOUT:I = 0x3eb .field public static final ERROR_CODE_UNSPECIFIED:I = 0x3e8 .field public static final ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED:I = 0x1b59 .field public static final ERROR_CODE_VIDEO_FRAME_PROCESSOR_INIT_FAILED:I = 0x1b58 .field protected static final FIELD_CUSTOM_ID_BASE:I = 0x3e8 .field private static final FIELD_INT_ERROR_CODE:Ljava/lang/String; .field private static final FIELD_LONG_TIMESTAMP_MS:Ljava/lang/String; .field private static final FIELD_STRING_CAUSE_CLASS_NAME:Ljava/lang/String; .field private static final FIELD_STRING_CAUSE_MESSAGE:Ljava/lang/String; .field private static final FIELD_STRING_MESSAGE:Ljava/lang/String; # instance fields .field public final errorCode:I .field public final timestampMs:J # direct methods .method static constructor ()V .locals 1 const/4 v0, 0x0 .line 415 invoke-static {v0}, Landroidx/media3/common/util/Util;->intToStringMaxRadix(I)Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/media3/common/PlaybackException;->FIELD_INT_ERROR_CODE:Ljava/lang/String; const/4 v0, 0x1 .line 416 invoke-static {v0}, Landroidx/media3/common/util/Util;->intToStringMaxRadix(I)Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/media3/common/PlaybackException;->FIELD_LONG_TIMESTAMP_MS:Ljava/lang/String; const/4 v0, 0x2 .line 417 invoke-static {v0}, Landroidx/media3/common/util/Util;->intToStringMaxRadix(I)Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/media3/common/PlaybackException;->FIELD_STRING_MESSAGE:Ljava/lang/String; const/4 v0, 0x3 .line 418 invoke-static {v0}, Landroidx/media3/common/util/Util;->intToStringMaxRadix(I)Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_CLASS_NAME:Ljava/lang/String; const/4 v0, 0x4 .line 419 invoke-static {v0}, Landroidx/media3/common/util/Util;->intToStringMaxRadix(I)Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_MESSAGE:Ljava/lang/String; .line 431 new-instance v0, Landroidx/media3/common/PlaybackException$$ExternalSyntheticLambda0; invoke-direct {v0}, Landroidx/media3/common/PlaybackException$$ExternalSyntheticLambda0;->()V sput-object v0, Landroidx/media3/common/PlaybackException;->CREATOR:Landroidx/media3/common/Bundleable$Creator; return-void .end method .method protected constructor (Landroid/os/Bundle;)V .locals 7 sget-object v0, Landroidx/media3/common/PlaybackException;->FIELD_STRING_MESSAGE:Ljava/lang/String; .line 361 invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 .line 362 invoke-static {p1}, Landroidx/media3/common/PlaybackException;->getCauseFromBundle(Landroid/os/Bundle;)Ljava/lang/Throwable; move-result-object v3 sget-object v0, Landroidx/media3/common/PlaybackException;->FIELD_INT_ERROR_CODE:Ljava/lang/String; const/16 v1, 0x3e8 .line 363 invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I move-result v4 sget-object v0, Landroidx/media3/common/PlaybackException;->FIELD_LONG_TIMESTAMP_MS:Ljava/lang/String; .line 366 invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J move-result-wide v5 .line 365 invoke-virtual {p1, v0, v5, v6}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J move-result-wide v5 move-object v1, p0 .line 360 invoke-direct/range {v1 .. v6}, Landroidx/media3/common/PlaybackException;->(Ljava/lang/String;Ljava/lang/Throwable;IJ)V return-void .end method .method public constructor (Ljava/lang/String;Ljava/lang/Throwable;I)V .locals 7 .line 354 sget-object v0, Landroidx/media3/common/util/Clock;->DEFAULT:Landroidx/media3/common/util/Clock; invoke-interface {v0}, Landroidx/media3/common/util/Clock;->elapsedRealtime()J move-result-wide v5 move-object v1, p0 move-object v2, p1 move-object v3, p2 move v4, p3 invoke-direct/range {v1 .. v6}, Landroidx/media3/common/PlaybackException;->(Ljava/lang/String;Ljava/lang/Throwable;IJ)V return-void .end method .method protected constructor (Ljava/lang/String;Ljava/lang/Throwable;IJ)V .locals 0 .line 376 invoke-direct {p0, p1, p2}, Ljava/lang/Exception;->(Ljava/lang/String;Ljava/lang/Throwable;)V iput p3, p0, Landroidx/media3/common/PlaybackException;->errorCode:I iput-wide p4, p0, Landroidx/media3/common/PlaybackException;->timestampMs:J return-void .end method .method private static createRemoteException(Ljava/lang/String;)Landroid/os/RemoteException; .locals 1 .line 459 new-instance v0, Landroid/os/RemoteException; invoke-direct {v0, p0}, Landroid/os/RemoteException;->(Ljava/lang/String;)V return-object v0 .end method .method private static createThrowable(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Throwable; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;", "Ljava/lang/String;", ")", "Ljava/lang/Throwable;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation const/4 v0, 0x1 new-array v0, v0, [Ljava/lang/Class; const/4 v1, 0x0 .line 453 const-class v2, Ljava/lang/String; aput-object v2, v0, v1 invoke-virtual {p0, v0}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object p0 filled-new-array {p1}, [Ljava/lang/Object; move-result-object p1 invoke-virtual {p0, p1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/Throwable; return-object p0 .end method .method private static getCauseFromBundle(Landroid/os/Bundle;)Ljava/lang/Throwable; .locals 4 sget-object v0, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_CLASS_NAME:Ljava/lang/String; .line 464 invoke-virtual {p0, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_MESSAGE:Ljava/lang/String; .line 465 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 .line 467 invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v1 const/4 v2, 0x0 if-nez v1, :cond_1 :try_start_0 const-class v1, Landroidx/media3/common/PlaybackException; .line 471 invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; move-result-object v1 const/4 v3, 0x1 .line 470 invoke-static {v0, v3, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v0 .line 472 const-class v1, Ljava/lang/Throwable; invoke-virtual {v1, v0}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z move-result v1 if-eqz v1, :cond_0 .line 473 invoke-static {v0, p0}, Landroidx/media3/common/PlaybackException;->createThrowable(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Throwable; move-result-object v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 move-object v2, v0 :cond_0 if-nez v2, :cond_1 .line 482 :catchall_0 invoke-static {p0}, Landroidx/media3/common/PlaybackException;->createRemoteException(Ljava/lang/String;)Landroid/os/RemoteException; move-result-object v2 :cond_1 return-object v2 .end method .method public static getErrorCodeName(I)Ljava/lang/String; .locals 1 const/16 v0, 0x1389 if-eq p0, v0, :cond_4 const/16 v0, 0x138a if-eq p0, v0, :cond_3 const/16 v0, 0x1b58 if-eq p0, v0, :cond_2 const/16 v0, 0x1b59 if-eq p0, v0, :cond_1 packed-switch p0, :pswitch_data_0 packed-switch p0, :pswitch_data_1 packed-switch p0, :pswitch_data_2 packed-switch p0, :pswitch_data_3 packed-switch p0, :pswitch_data_4 const v0, 0xf4240 if-lt p0, v0, :cond_0 const-string p0, "custom error code" return-object p0 :cond_0 const-string p0, "invalid error code" return-object p0 :pswitch_0 const-string p0, "ERROR_CODE_DRM_LICENSE_EXPIRED" return-object p0 :pswitch_1 const-string p0, "ERROR_CODE_DRM_DEVICE_REVOKED" return-object p0 :pswitch_2 const-string p0, "ERROR_CODE_DRM_SYSTEM_ERROR" return-object p0 :pswitch_3 const-string p0, "ERROR_CODE_DRM_DISALLOWED_OPERATION" return-object p0 :pswitch_4 const-string p0, "ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED" return-object p0 :pswitch_5 const-string p0, "ERROR_CODE_DRM_CONTENT_ERROR" return-object p0 :pswitch_6 const-string p0, "ERROR_CODE_DRM_PROVISIONING_FAILED" return-object p0 :pswitch_7 const-string p0, "ERROR_CODE_DRM_SCHEME_UNSUPPORTED" return-object p0 :pswitch_8 const-string p0, "ERROR_CODE_DRM_UNSPECIFIED" return-object p0 :pswitch_9 const-string p0, "ERROR_CODE_DECODING_FORMAT_UNSUPPORTED" return-object p0 :pswitch_a const-string p0, "ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES" return-object p0 :pswitch_b const-string p0, "ERROR_CODE_DECODING_FAILED" return-object p0 :pswitch_c const-string p0, "ERROR_CODE_DECODER_QUERY_FAILED" return-object p0 :pswitch_d const-string p0, "ERROR_CODE_DECODER_INIT_FAILED" return-object p0 :pswitch_e const-string p0, "ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED" return-object p0 :pswitch_f const-string p0, "ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED" return-object p0 :pswitch_10 const-string p0, "ERROR_CODE_PARSING_MANIFEST_MALFORMED" return-object p0 :pswitch_11 const-string p0, "ERROR_CODE_PARSING_CONTAINER_MALFORMED" return-object p0 :pswitch_12 const-string p0, "ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE" return-object p0 :pswitch_13 const-string p0, "ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED" return-object p0 :pswitch_14 const-string p0, "ERROR_CODE_IO_NO_PERMISSION" return-object p0 :pswitch_15 const-string p0, "ERROR_CODE_IO_FILE_NOT_FOUND" return-object p0 :pswitch_16 const-string p0, "ERROR_CODE_IO_BAD_HTTP_STATUS" return-object p0 :pswitch_17 const-string p0, "ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE" return-object p0 :pswitch_18 const-string p0, "ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT" return-object p0 :pswitch_19 const-string p0, "ERROR_CODE_IO_NETWORK_CONNECTION_FAILED" return-object p0 :pswitch_1a const-string p0, "ERROR_CODE_IO_UNSPECIFIED" return-object p0 :pswitch_1b const-string p0, "ERROR_CODE_FAILED_RUNTIME_CHECK" return-object p0 :pswitch_1c const-string p0, "ERROR_CODE_TIMEOUT" return-object p0 :pswitch_1d const-string p0, "ERROR_CODE_BEHIND_LIVE_WINDOW" return-object p0 :pswitch_1e const-string p0, "ERROR_CODE_REMOTE_ERROR" return-object p0 :pswitch_1f const-string p0, "ERROR_CODE_UNSPECIFIED" return-object p0 :cond_1 const-string p0, "ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED" return-object p0 :cond_2 const-string p0, "ERROR_CODE_VIDEO_FRAME_PROCESSOR_INIT_FAILED" return-object p0 :cond_3 const-string p0, "ERROR_CODE_AUDIO_TRACK_WRITE_FAILED" return-object p0 :cond_4 const-string p0, "ERROR_CODE_AUDIO_TRACK_INIT_FAILED" return-object p0 :pswitch_data_0 .packed-switch 0x3e8 :pswitch_1f :pswitch_1e :pswitch_1d :pswitch_1c :pswitch_1b .end packed-switch :pswitch_data_1 .packed-switch 0x7d0 :pswitch_1a :pswitch_19 :pswitch_18 :pswitch_17 :pswitch_16 :pswitch_15 :pswitch_14 :pswitch_13 :pswitch_12 .end packed-switch :pswitch_data_2 .packed-switch 0xbb9 :pswitch_11 :pswitch_10 :pswitch_f :pswitch_e .end packed-switch :pswitch_data_3 .packed-switch 0xfa1 :pswitch_d :pswitch_c :pswitch_b :pswitch_a :pswitch_9 .end packed-switch :pswitch_data_4 .packed-switch 0x1770 :pswitch_8 :pswitch_7 :pswitch_6 :pswitch_5 :pswitch_4 :pswitch_3 :pswitch_2 :pswitch_1 :pswitch_0 .end packed-switch .end method # virtual methods .method public errorInfoEquals(Landroidx/media3/common/PlaybackException;)Z .locals 6 const/4 v0, 0x1 if-ne p0, p1, :cond_0 return v0 :cond_0 const/4 v1, 0x0 if-eqz p1, :cond_6 .line 392 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 if-eq v2, v3, :cond_1 goto :goto_1 .line 396 :cond_1 invoke-virtual {p0}, Landroidx/media3/common/PlaybackException;->getCause()Ljava/lang/Throwable; move-result-object v2 .line 397 invoke-virtual {p1}, Landroidx/media3/common/PlaybackException;->getCause()Ljava/lang/Throwable; move-result-object v3 if-eqz v2, :cond_3 if-eqz v3, :cond_3 .line 399 invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object v4 invoke-virtual {v3}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Landroidx/media3/common/util/Util;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v4 if-nez v4, :cond_2 return v1 .line 402 :cond_2 invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 invoke-static {v2, v3}, Landroidx/media3/common/util/Util;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_4 return v1 :cond_3 if-nez v2, :cond_6 if-eqz v3, :cond_4 goto :goto_1 :cond_4 iget v2, p0, Landroidx/media3/common/PlaybackException;->errorCode:I .line 408 iget v3, p1, Landroidx/media3/common/PlaybackException;->errorCode:I if-ne v2, v3, :cond_5 .line 409 invoke-virtual {p0}, Landroidx/media3/common/PlaybackException;->getMessage()Ljava/lang/String; move-result-object v2 invoke-virtual {p1}, Landroidx/media3/common/PlaybackException;->getMessage()Ljava/lang/String; move-result-object v3 invoke-static {v2, v3}, Landroidx/media3/common/util/Util;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_5 iget-wide v2, p0, Landroidx/media3/common/PlaybackException;->timestampMs:J iget-wide p0, p1, Landroidx/media3/common/PlaybackException;->timestampMs:J cmp-long p0, v2, p0 if-nez p0, :cond_5 goto :goto_0 :cond_5 move v0, v1 :goto_0 return v0 :cond_6 :goto_1 return v1 .end method .method public final getErrorCodeName()Ljava/lang/String; .locals 0 iget p0, p0, Landroidx/media3/common/PlaybackException;->errorCode:I .line 334 invoke-static {p0}, Landroidx/media3/common/PlaybackException;->getErrorCodeName(I)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public toBundle()Landroid/os/Bundle; .locals 4 .line 437 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_INT_ERROR_CODE:Ljava/lang/String; iget v2, p0, Landroidx/media3/common/PlaybackException;->errorCode:I .line 438 invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_LONG_TIMESTAMP_MS:Ljava/lang/String; iget-wide v2, p0, Landroidx/media3/common/PlaybackException;->timestampMs:J .line 439 invoke-virtual {v0, v1, v2, v3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_STRING_MESSAGE:Ljava/lang/String; .line 440 invoke-virtual {p0}, Landroidx/media3/common/PlaybackException;->getMessage()Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 441 invoke-virtual {p0}, Landroidx/media3/common/PlaybackException;->getCause()Ljava/lang/Throwable; move-result-object p0 if-eqz p0, :cond_0 sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_CLASS_NAME:Ljava/lang/String; .line 443 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V sget-object v1, Landroidx/media3/common/PlaybackException;->FIELD_STRING_CAUSE_MESSAGE:Ljava/lang/String; .line 444 invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object p0 invoke-virtual {v0, v1, p0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V :cond_0 return-object v0 .end method