.class public final Lcom/fyber/inneractive/sdk/util/t; .super Ljava/lang/Object; .source "SourceFile" # direct methods .method public static a(II)I .locals 0 .line 50 invoke-static {p0, p1}, Ljava/lang/Integer;->compare(II)I move-result p0 return p0 .end method .method public static a(Ljava/lang/String;I)I .locals 1 .line 45 invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-nez v0, :cond_0 .line 47 :try_start_0 invoke-static {p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I move-result p1 :try_end_0 .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_0 return p1 .end method .method public static varargs a(II[I)Landroid/widget/RelativeLayout$LayoutParams; .locals 2 .line 40 new-instance v0, Landroid/widget/RelativeLayout$LayoutParams; invoke-direct {v0, p0, p1}, Landroid/widget/RelativeLayout$LayoutParams;->(II)V if-eqz p2, :cond_0 .line 41 array-length p0, p2 if-lez p0, :cond_0 .line 42 array-length p0, p2 const/4 p1, 0x0 :goto_0 if-ge p1, p0, :cond_0 aget v1, p2, p1 .line 43 invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V add-int/lit8 p1, p1, 0x1 goto :goto_0 :cond_0 return-object v0 .end method .method public static a(Ljava/lang/ref/WeakReference;)Ljava/lang/Object; .locals 0 if-nez p0, :cond_0 const/4 p0, 0x0 goto :goto_0 .line 44 :cond_0 invoke-virtual {p0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object; move-result-object p0 :goto_0 return-object p0 .end method .method public static a(Ljava/lang/Throwable;)Ljava/lang/String; .locals 3 const-string v0, "------\r\n" .line 26 :try_start_0 new-instance v1, Ljava/io/StringWriter; invoke-direct {v1}, Ljava/io/StringWriter;->()V .line 27 new-instance v2, Ljava/io/PrintWriter; invoke-direct {v2, v1}, Ljava/io/PrintWriter;->(Ljava/io/Writer;)V .line 28 invoke-virtual {p0, v2}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V .line 29 new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1}, Ljava/io/StringWriter;->toString()Ljava/lang/String; move-result-object v1 invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 const-string p0, "bad stackToString" return-object p0 .end method .method public static a(Ljava/io/InputStream;)Ljava/lang/StringBuffer; .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 sget-object v0, Lcom/fyber/inneractive/sdk/util/g;->b:Lcom/fyber/inneractive/sdk/util/g; .line 2 iget-object v0, v0, Lcom/fyber/inneractive/sdk/util/g;->a:Ljava/util/concurrent/ConcurrentLinkedQueue; .line 3 invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/nio/ByteBuffer; if-nez v0, :cond_0 const/16 v0, 0x4000 .line 4 invoke-static {v0}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer; move-result-object v0 .line 5 :cond_0 new-instance v1, Ljava/lang/StringBuffer; invoke-direct {v1}, Ljava/lang/StringBuffer;->()V const/4 v2, 0x0 if-eqz v0, :cond_1 .line 6 invoke-virtual {v0}, Ljava/nio/ByteBuffer;->hasArray()Z move-result v3 if-eqz v3, :cond_1 .line 7 invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B move-result-object v3 :goto_0 move v4, v2 goto :goto_1 :cond_1 const/16 v3, 0x2000 new-array v3, v3, [B goto :goto_0 :goto_1 const/4 v5, -0x1 if-eq v4, v5, :cond_2 .line 10 new-instance v5, Ljava/lang/String; invoke-direct {v5, v3, v2, v4}, Ljava/lang/String;->([BII)V invoke-virtual {v1, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; .line 11 invoke-virtual {p0, v3}, Ljava/io/InputStream;->read([B)I move-result v4 goto :goto_1 .line 12 :cond_2 sget-object p0, Lcom/fyber/inneractive/sdk/util/g;->b:Lcom/fyber/inneractive/sdk/util/g; .line 13 iget-object p0, p0, Lcom/fyber/inneractive/sdk/util/g;->a:Ljava/util/concurrent/ConcurrentLinkedQueue; .line 14 invoke-virtual {p0, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z return-object v1 .end method .method public static a(Landroid/view/View;)V .locals 1 if-eqz p0, :cond_1 .line 33 invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v0 if-nez v0, :cond_0 goto :goto_0 .line 38 :cond_0 :try_start_0 invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v0 instance-of v0, v0, Landroid/view/ViewGroup; if-eqz v0, :cond_1 .line 39 invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v0 check-cast v0, Landroid/view/ViewGroup; invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 :cond_1 :goto_0 return-void .end method .method public static a(Ljava/io/Closeable;)V .locals 0 if-eqz p0, :cond_0 .line 48 :try_start_0 invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :catchall_0 :cond_0 return-void .end method .method public static a(Ljava/io/InputStream;Ljava/io/FileOutputStream;)V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation if-eqz p0, :cond_1 const/high16 v0, 0x10000 new-array v0, v0, [B const/4 v1, 0x0 move v2, v1 .line 19 :goto_0 invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I move-result v3 const/4 v4, -0x1 if-eq v3, v4, :cond_0 add-int/2addr v2, v3 .line 21 invoke-virtual {p1, v0, v1, v3}, Ljava/io/OutputStream;->write([BII)V goto :goto_0 .line 24 :cond_0 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 filled-new-array {p0}, [Ljava/lang/Object; move-result-object p0 const-string p1, "Copied stream content length = %d" invoke-static {p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V return-void .line 25 :cond_1 new-instance p0, Ljava/io/IOException; const-string p1, "Unable to copy from or to a null stream." invoke-direct {p0, p1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw p0 .end method .method public static b(Ljava/io/Closeable;)V .locals 0 if-nez p0, :cond_0 return-void .line 1 :cond_0 :try_start_0 invoke-interface {p0}, Ljava/io/Closeable;->close()V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-void .end method