123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- .class public Landroid/support/v4/os/ResultReceiver;
- .super Ljava/lang/Object;
- .source "ResultReceiver.java"
- # interfaces
- .implements Landroid/os/Parcelable;
- # annotations
- .annotation system Ldalvik/annotation/MemberClasses;
- value = {
- Landroid/support/v4/os/ResultReceiver$MyResultReceiver;,
- Landroid/support/v4/os/ResultReceiver$MyRunnable;
- }
- .end annotation
- # static fields
- .field public static final CREATOR:Landroid/os/Parcelable$Creator;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Landroid/os/Parcelable$Creator",
- "<",
- "Landroid/support/v4/os/ResultReceiver;",
- ">;"
- }
- .end annotation
- .end field
- # instance fields
- .field final mHandler:Landroid/os/Handler;
- .field final mLocal:Z
- .field mReceiver:Landroid/support/v4/os/IResultReceiver;
- # direct methods
- .method static constructor <clinit>()V
- .locals 1
- .prologue
- .line 134
- new-instance v0, Landroid/support/v4/os/ResultReceiver$1;
- invoke-direct {v0}, Landroid/support/v4/os/ResultReceiver$1;-><init>()V
- sput-object v0, Landroid/support/v4/os/ResultReceiver;->CREATOR:Landroid/os/Parcelable$Creator;
- return-void
- .end method
- .method public constructor <init>(Landroid/os/Handler;)V
- .locals 1
- .param p1, "handler" # Landroid/os/Handler;
- .prologue
- .line 75
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- .line 76
- const/4 v0, 0x1
- iput-boolean v0, p0, Landroid/support/v4/os/ResultReceiver;->mLocal:Z
- .line 77
- iput-object p1, p0, Landroid/support/v4/os/ResultReceiver;->mHandler:Landroid/os/Handler;
- .line 78
- return-void
- .end method
- .method constructor <init>(Landroid/os/Parcel;)V
- .locals 1
- .param p1, "in" # Landroid/os/Parcel;
- .prologue
- .line 128
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- .line 129
- const/4 v0, 0x0
- iput-boolean v0, p0, Landroid/support/v4/os/ResultReceiver;->mLocal:Z
- .line 130
- const/4 v0, 0x0
- iput-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mHandler:Landroid/os/Handler;
- .line 131
- invoke-virtual {p1}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;
- move-result-object v0
- invoke-static {v0}, Landroid/support/v4/os/IResultReceiver$Stub;->asInterface(Landroid/os/IBinder;)Landroid/support/v4/os/IResultReceiver;
- move-result-object v0
- iput-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- .line 132
- return-void
- .end method
- # virtual methods
- .method public describeContents()I
- .locals 1
- .prologue
- .line 116
- const/4 v0, 0x0
- return v0
- .end method
- .method protected onReceiveResult(ILandroid/os/Bundle;)V
- .locals 0
- .param p1, "resultCode" # I
- .param p2, "resultData" # Landroid/os/Bundle;
- .prologue
- .line 113
- return-void
- .end method
- .method public send(ILandroid/os/Bundle;)V
- .locals 2
- .param p1, "resultCode" # I
- .param p2, "resultData" # Landroid/os/Bundle;
- .prologue
- .line 88
- iget-boolean v0, p0, Landroid/support/v4/os/ResultReceiver;->mLocal:Z
- if-eqz v0, :cond_2
- .line 89
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mHandler:Landroid/os/Handler;
- if-eqz v0, :cond_1
- .line 90
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mHandler:Landroid/os/Handler;
- new-instance v1, Landroid/support/v4/os/ResultReceiver$MyRunnable;
- invoke-direct {v1, p0, p1, p2}, Landroid/support/v4/os/ResultReceiver$MyRunnable;-><init>(Landroid/support/v4/os/ResultReceiver;ILandroid/os/Bundle;)V
- invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
- .line 103
- :cond_0
- :goto_0
- return-void
- .line 92
- :cond_1
- invoke-virtual {p0, p1, p2}, Landroid/support/v4/os/ResultReceiver;->onReceiveResult(ILandroid/os/Bundle;)V
- goto :goto_0
- .line 97
- :cond_2
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- if-eqz v0, :cond_0
- .line 99
- :try_start_0
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- invoke-interface {v0, p1, p2}, Landroid/support/v4/os/IResultReceiver;->send(ILandroid/os/Bundle;)V
- :try_end_0
- .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
- goto :goto_0
- .line 100
- :catch_0
- move-exception v0
- goto :goto_0
- .end method
- .method public writeToParcel(Landroid/os/Parcel;I)V
- .locals 1
- .param p1, "out" # Landroid/os/Parcel;
- .param p2, "flags" # I
- .prologue
- .line 120
- monitor-enter p0
- .line 121
- :try_start_0
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- if-nez v0, :cond_0
- .line 122
- new-instance v0, Landroid/support/v4/os/ResultReceiver$MyResultReceiver;
- invoke-direct {v0, p0}, Landroid/support/v4/os/ResultReceiver$MyResultReceiver;-><init>(Landroid/support/v4/os/ResultReceiver;)V
- iput-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- .line 124
- :cond_0
- iget-object v0, p0, Landroid/support/v4/os/ResultReceiver;->mReceiver:Landroid/support/v4/os/IResultReceiver;
- invoke-interface {v0}, Landroid/support/v4/os/IResultReceiver;->asBinder()Landroid/os/IBinder;
- move-result-object v0
- invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeStrongBinder(Landroid/os/IBinder;)V
- .line 125
- monitor-exit p0
- .line 126
- return-void
- .line 125
- :catchall_0
- move-exception v0
- monitor-exit p0
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- throw v0
- .end method
|