221 lines
6.2 KiB
Smali
221 lines
6.2 KiB
Smali
.class public Lcom/android/camera/MonitoredActivity;
|
|
.super Lcom/android/camera/NoSearchActivity;
|
|
.source "MonitoredActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/android/camera/MonitoredActivity$LifeCycleAdapter;,
|
|
Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final mListeners:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList",
|
|
"<",
|
|
"Lcom/android/camera/MonitoredActivity$LifeCycleListener;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Lcom/android/camera/NoSearchActivity;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addLifeCycleListener(Lcom/android/camera/MonitoredActivity$LifeCycleListener;)V
|
|
.locals 1
|
|
.param p1, "listener" # Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 3
|
|
.param p1, "savedInstanceState" # Landroid/os/Bundle;
|
|
|
|
.prologue
|
|
invoke-super {p0, p1}, Lcom/android/camera/NoSearchActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
iget-object v1, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.local v0, "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
invoke-interface {v0, p0}, Lcom/android/camera/MonitoredActivity$LifeCycleListener;->onActivityCreated(Lcom/android/camera/MonitoredActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDestroy()V
|
|
.locals 3
|
|
|
|
.prologue
|
|
invoke-super {p0}, Lcom/android/camera/NoSearchActivity;->onDestroy()V
|
|
|
|
iget-object v1, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.local v0, "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
invoke-interface {v0, p0}, Lcom/android/camera/MonitoredActivity$LifeCycleListener;->onActivityDestroyed(Lcom/android/camera/MonitoredActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onStart()V
|
|
.locals 3
|
|
|
|
.prologue
|
|
invoke-super {p0}, Lcom/android/camera/NoSearchActivity;->onStart()V
|
|
|
|
iget-object v1, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.local v0, "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
invoke-interface {v0, p0}, Lcom/android/camera/MonitoredActivity$LifeCycleListener;->onActivityStarted(Lcom/android/camera/MonitoredActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onStop()V
|
|
.locals 3
|
|
|
|
.prologue
|
|
invoke-super {p0}, Lcom/android/camera/NoSearchActivity;->onStop()V
|
|
|
|
iget-object v1, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.local v0, "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
invoke-interface {v0, p0}, Lcom/android/camera/MonitoredActivity$LifeCycleListener;->onActivityStopped(Lcom/android/camera/MonitoredActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "listener":Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeLifeCycleListener(Lcom/android/camera/MonitoredActivity$LifeCycleListener;)V
|
|
.locals 1
|
|
.param p1, "listener" # Lcom/android/camera/MonitoredActivity$LifeCycleListener;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/android/camera/MonitoredActivity;->mListeners:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|