334 lines
		
	
	
		
			9.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			334 lines
		
	
	
		
			9.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lr1/b;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AtomicFile.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/SourceDebugExtension;
 | |
|     value = "SMAP\nAtomicFile.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AtomicFile.kt\nandroidx/core/util/AtomicFileKt\n*L\n1#1,82:1\n32#1,13:83\n*E\n*S KotlinDebug\n*F\n+ 1 AtomicFile.kt\nandroidx/core/util/AtomicFileKt\n*L\n51#1,13:83\n*E\n"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u001a0\u0010\u0008\u001a\u00020\u0006*\u00020\u00002!\u0010\u0007\u001a\u001d\u0012\u0013\u0012\u00110\u0002\u00a2\u0006\u000c\u0008\u0003\u0012\u0008\u0008\u0004\u0012\u0004\u0008\u0008(\u0005\u0012\u0004\u0012\u00020\u00060\u0001H\u0087\u0008\u001a\u0014\u0010\u000b\u001a\u00020\u0006*\u00020\u00002\u0006\u0010\n\u001a\u00020\tH\u0007\u001a\u001e\u0010\u0010\u001a\u00020\u0006*\u00020\u00002\u0006\u0010\r\u001a\u00020\u000c2\u0008\u0008\u0002\u0010\u000f\u001a\u00020\u000eH\u0007\u001a\r\u0010\u0011\u001a\u00020\t*\u00020\u0000H\u0087\u0008\u001a\u0016\u0010\u0012\u001a\u00020\u000c*\u00020\u00002\u0008\u0008\u0002\u0010\u000f\u001a\u00020\u000eH\u0007\u00a8\u0006\u0013"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Landroid/util/AtomicFile;",
 | |
|         "Lkotlin/Function1;",
 | |
|         "Ljava/io/FileOutputStream;",
 | |
|         "Lkotlin/ParameterName;",
 | |
|         "name",
 | |
|         "out",
 | |
|         "Lkotlin/d1;",
 | |
|         "block",
 | |
|         "d",
 | |
|         "",
 | |
|         "array",
 | |
|         "e",
 | |
|         "",
 | |
|         "text",
 | |
|         "Ljava/nio/charset/Charset;",
 | |
|         "charset",
 | |
|         "f",
 | |
|         "a",
 | |
|         "b",
 | |
|         "core-ktx_release"
 | |
|     }
 | |
|     k = 0x2
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static final a(Landroid/util/AtomicFile;)[B
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/util/AtomicFile;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$readBytes"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/util/AtomicFile;->readFully()[B
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const-string v0, "readFully()"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->h(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final b(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;)Ljava/lang/String;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/util/AtomicFile;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/nio/charset/Charset;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$readText"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "charset"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/util/AtomicFile;->readFully()[B
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const-string v0, "readFully()"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->h(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     new-instance v0, Ljava/lang/String;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic c(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String;
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     and-int/lit8 p2, p2, 0x1
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     sget-object p1, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p0, p1}, Lr1/b;->b(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static final d(Landroid/util/AtomicFile;Lej/l;)V
 | |
|     .locals 3
 | |
|     .param p0    # Landroid/util/AtomicFile;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Lej/l;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroid/util/AtomicFile;",
 | |
|             "Lej/l<",
 | |
|             "-",
 | |
|             "Ljava/io/FileOutputStream;",
 | |
|             "Lkotlin/d1;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$tryWrite"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "block"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/util/AtomicFile;->startWrite()Ljava/io/FileOutputStream;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     :try_start_0
 | |
|     const-string v2, "stream"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0, v2}, Lkotlin/jvm/internal/f0;->h(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-interface {p1, v0}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v1}, Lkotlin/jvm/internal/c0;->d(I)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->finishWrite(Ljava/io/FileOutputStream;)V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v1}, Lkotlin/jvm/internal/c0;->c(I)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v1}, Lkotlin/jvm/internal/c0;->d(I)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->failWrite(Ljava/io/FileOutputStream;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {v1}, Lkotlin/jvm/internal/c0;->c(I)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public static final e(Landroid/util/AtomicFile;[B)V
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/util/AtomicFile;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # [B
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$writeBytes"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "array"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/util/AtomicFile;->startWrite()Ljava/io/FileOutputStream;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :try_start_0
 | |
|     const-string v1, "stream"
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->h(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->finishWrite(Ljava/io/FileOutputStream;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->failWrite(Ljava/io/FileOutputStream;)V
 | |
| 
 | |
|     .line 6
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public static final f(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/util/AtomicFile;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/nio/charset/Charset;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "$this$writeText"
 | |
| 
 | |
|     invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "text"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     const-string v0, "charset"
 | |
| 
 | |
|     invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string p2, "(this as java.lang.String).getBytes(charset)"
 | |
| 
 | |
|     invoke-static {p1, p2}, Lkotlin/jvm/internal/f0;->h(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {p0, p1}, Lr1/b;->e(Landroid/util/AtomicFile;[B)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic g(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;ILjava/lang/Object;)V
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     and-int/lit8 p3, p3, 0x2
 | |
| 
 | |
|     if-eqz p3, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p0, p1, p2}, Lr1/b;->f(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |