InstantCameraView$8.smali
.class Lim/tpelyyftgw/ui/components/InstantCameraView$8;
.super Ljava/lang/Object;
.source "InstantCameraView.java"
# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/InstantCameraView;->showCamera()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/InstantCameraView;)V
.registers 2
.param p1, "this$0" # Lim/tpelyyftgw/ui/components/InstantCameraView;
.line 504
iput-object p1, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onSurfaceTextureAvailable(Landroid/graphics/SurfaceTexture;II)V
.registers 7
.param p1, "surface" # Landroid/graphics/SurfaceTexture;
.param p2, "width" # I
.param p3, "height" # I
.line 507
sget-boolean v0, Lim/tpelyyftgw/messenger/BuildVars;->LOGS_ENABLED:Z
if-eqz v0, :cond_9
.line 508
const-string v0, "camera surface available"
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->d(Ljava/lang/String;)V
.line 510
:cond_9
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$600(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
move-result-object v0
if-nez v0, :cond_31
if-eqz p1, :cond_31
.line 511
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$700(Lim/tpelyyftgw/ui/components/InstantCameraView;)Z
move-result v0
if-eqz v0, :cond_1c
.line 512
return-void
.line 514
:cond_1c
sget-boolean v0, Lim/tpelyyftgw/messenger/BuildVars;->LOGS_ENABLED:Z
if-eqz v0, :cond_25
.line 515
const-string v0, "start create thread"
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->d(Ljava/lang/String;)V
.line 517
:cond_25
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
new-instance v1, Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
iget-object v2, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-direct {v1, v2, p1, p2, p3}, Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;-><init>(Lim/tpelyyftgw/ui/components/InstantCameraView;Landroid/graphics/SurfaceTexture;II)V
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$602(Lim/tpelyyftgw/ui/components/InstantCameraView;Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;)Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
.line 519
:cond_31
return-void
.end method
.method public onSurfaceTextureDestroyed(Landroid/graphics/SurfaceTexture;)Z
.registers 5
.param p1, "surface" # Landroid/graphics/SurfaceTexture;
.line 528
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$600(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_18
.line 529
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$600(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
move-result-object v0
const/4 v2, 0x0
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;->shutdown(I)V
.line 530
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$602(Lim/tpelyyftgw/ui/components/InstantCameraView;Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;)Lim/tpelyyftgw/ui/components/InstantCameraView$CameraGLThread;
.line 532
:cond_18
iget-object v0, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$800(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/camera/CameraSession;
move-result-object v0
if-eqz v0, :cond_2d
.line 533
invoke-static {}, Lim/tpelyyftgw/messenger/camera/CameraController;->getInstance()Lim/tpelyyftgw/messenger/camera/CameraController;
move-result-object v0
iget-object v2, p0, Lim/tpelyyftgw/ui/components/InstantCameraView$8;->this$0:Lim/tpelyyftgw/ui/components/InstantCameraView;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/InstantCameraView;->access$800(Lim/tpelyyftgw/ui/components/InstantCameraView;)Lim/tpelyyftgw/messenger/camera/CameraSession;
move-result-object v2
invoke-virtual {v0, v2, v1, v1}, Lim/tpelyyftgw/messenger/camera/CameraController;->close(Lim/tpelyyftgw/messenger/camera/CameraSession;Ljava/util/concurrent/CountDownLatch;Ljava/lang/Runnable;)V
.line 535
:cond_2d
const/4 v0, 0x1
return v0
.end method
.method public onSurfaceTextureSizeChanged(Landroid/graphics/SurfaceTexture;II)V
.registers 4
.param p1, "surface" # Landroid/graphics/SurfaceTexture;
.param p2, "width" # I
.param p3, "height" # I
.line 524
return-void
.end method
.method public onSurfaceTextureUpdated(Landroid/graphics/SurfaceTexture;)V
.registers 2
.param p1, "surface" # Landroid/graphics/SurfaceTexture;
.line 541
return-void
.end method