.class final Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal; .super Ljava/lang/Object; .source "MetadataRetriever.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/android/exoplayer2/MetadataRetriever; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1a name = "MetadataRetrieverInternal" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal$MediaSourceHandlerCallback; } .end annotation # static fields .field private static final MESSAGE_CHECK_FOR_FAILURE:I = 0x1 .field private static final MESSAGE_CONTINUE_LOADING:I = 0x2 .field private static final MESSAGE_PREPARE_SOURCE:I = 0x0 .field private static final MESSAGE_RELEASE:I = 0x3 # instance fields .field private final mediaSourceFactory:Lcom/google/android/exoplayer2/source/MediaSource$Factory; .field private final mediaSourceHandler:Lcom/google/android/exoplayer2/util/HandlerWrapper; .field private final mediaSourceThread:Landroid/os/HandlerThread; .field private final trackGroupsFuture:Lcom/google/common/util/concurrent/SettableFuture; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/util/concurrent/SettableFuture<", "Lcom/google/android/exoplayer2/source/TrackGroupArray;", ">;" } .end annotation .end field # direct methods .method public constructor (Lcom/google/android/exoplayer2/source/MediaSource$Factory;Lcom/google/android/exoplayer2/util/Clock;)V .locals 1 .line 110 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceFactory:Lcom/google/android/exoplayer2/source/MediaSource$Factory; .line 112 new-instance p1, Landroid/os/HandlerThread; const-string v0, "ExoPlayer:MetadataRetriever" invoke-direct {p1, v0}, Landroid/os/HandlerThread;->(Ljava/lang/String;)V iput-object p1, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceThread:Landroid/os/HandlerThread; .line 113 invoke-virtual {p1}, Landroid/os/HandlerThread;->start()V .line 115 invoke-virtual {p1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper; move-result-object p1 new-instance v0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal$MediaSourceHandlerCallback; invoke-direct {v0, p0}, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal$MediaSourceHandlerCallback;->(Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;)V invoke-interface {p2, p1, v0}, Lcom/google/android/exoplayer2/util/Clock;->createHandler(Landroid/os/Looper;Landroid/os/Handler$Callback;)Lcom/google/android/exoplayer2/util/HandlerWrapper; move-result-object p1 iput-object p1, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceHandler:Lcom/google/android/exoplayer2/util/HandlerWrapper; .line 116 invoke-static {}, Lcom/google/common/util/concurrent/SettableFuture;->create()Lcom/google/common/util/concurrent/SettableFuture; move-result-object p1 iput-object p1, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->trackGroupsFuture:Lcom/google/common/util/concurrent/SettableFuture; return-void .end method .method static synthetic access$000(Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;)Lcom/google/android/exoplayer2/source/MediaSource$Factory; .locals 0 .line 98 iget-object p0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceFactory:Lcom/google/android/exoplayer2/source/MediaSource$Factory; return-object p0 .end method .method static synthetic access$100(Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;)Lcom/google/android/exoplayer2/util/HandlerWrapper; .locals 0 .line 98 iget-object p0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceHandler:Lcom/google/android/exoplayer2/util/HandlerWrapper; return-object p0 .end method .method static synthetic access$200(Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;)Lcom/google/common/util/concurrent/SettableFuture; .locals 0 .line 98 iget-object p0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->trackGroupsFuture:Lcom/google/common/util/concurrent/SettableFuture; return-object p0 .end method .method static synthetic access$300(Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;)Landroid/os/HandlerThread; .locals 0 .line 98 iget-object p0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceThread:Landroid/os/HandlerThread; return-object p0 .end method # virtual methods .method public retrieveMetadata(Lcom/google/android/exoplayer2/MediaItem;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/android/exoplayer2/MediaItem;", ")", "Lcom/google/common/util/concurrent/ListenableFuture<", "Lcom/google/android/exoplayer2/source/TrackGroupArray;", ">;" } .end annotation iget-object v0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->mediaSourceHandler:Lcom/google/android/exoplayer2/util/HandlerWrapper; const/4 v1, 0x0 .line 120 invoke-interface {v0, v1, p1}, Lcom/google/android/exoplayer2/util/HandlerWrapper;->obtainMessage(ILjava/lang/Object;)Lcom/google/android/exoplayer2/util/HandlerWrapper$Message; move-result-object p1 invoke-interface {p1}, Lcom/google/android/exoplayer2/util/HandlerWrapper$Message;->sendToTarget()V iget-object p0, p0, Lcom/google/android/exoplayer2/MetadataRetriever$MetadataRetrieverInternal;->trackGroupsFuture:Lcom/google/common/util/concurrent/SettableFuture; return-object p0 .end method