255 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			255 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lx0/b;
 | |
| .super Ljava/lang/Object;
 | |
| .source "ViewGroupUtils.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroidx/annotation/RestrictTo;
 | |
|     value = {
 | |
|         .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final a:Ljava/lang/ThreadLocal;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/lang/ThreadLocal<",
 | |
|             "Landroid/graphics/Matrix;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final b:Ljava/lang/ThreadLocal;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/lang/ThreadLocal<",
 | |
|             "Landroid/graphics/RectF;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
 | |
| 
 | |
|     sput-object v0, Lx0/b;->a:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
 | |
| 
 | |
|     sput-object v0, Lx0/b;->b:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static a(Landroid/view/ViewGroup;Landroid/view/View;Landroid/graphics/Rect;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getWidth()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getHeight()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-virtual {p2, v2, v2, v0, v1}, Landroid/graphics/Rect;->set(IIII)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0, p1, p2}, Lx0/b;->c(Landroid/view/ViewGroup;Landroid/view/View;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static b(Landroid/view/ViewParent;Landroid/view/View;Landroid/graphics/Matrix;)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v1, v0, Landroid/view/View;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     if-eq v0, p0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     check-cast v0, Landroid/view/View;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0, v0, p2}, Lx0/b;->b(Landroid/view/ViewParent;Landroid/view/View;Landroid/graphics/Matrix;)V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Landroid/view/View;->getScrollX()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     neg-int p0, p0
 | |
| 
 | |
|     int-to-float p0, p0
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/view/View;->getScrollY()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     neg-int v0, v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     invoke-virtual {p2, p0, v0}, Landroid/graphics/Matrix;->preTranslate(FF)Z
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getLeft()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     int-to-float p0, p0
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getTop()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     invoke-virtual {p2, p0, v0}, Landroid/graphics/Matrix;->preTranslate(FF)Z
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/graphics/Matrix;->isIdentity()Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-nez p0, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p2, p0}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static c(Landroid/view/ViewGroup;Landroid/view/View;Landroid/graphics/Rect;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lx0/b;->a:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Landroid/graphics/Matrix;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Landroid/graphics/Matrix;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-virtual {v1}, Landroid/graphics/Matrix;->reset()V
 | |
| 
 | |
|     .line 5
 | |
|     :goto_0
 | |
|     invoke-static {p0, p1, v1}, Lx0/b;->b(Landroid/view/ViewParent;Landroid/view/View;Landroid/graphics/Matrix;)V
 | |
| 
 | |
|     .line 6
 | |
|     sget-object p0, Lx0/b;->b:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {p0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroid/graphics/RectF;
 | |
| 
 | |
|     if-nez p1, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     new-instance p1, Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0, p1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
 | |
| 
 | |
|     .line 9
 | |
|     :cond_1
 | |
|     invoke-virtual {p1, p2}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v1, p1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z
 | |
| 
 | |
|     .line 11
 | |
|     iget p0, p1, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     const/high16 v0, 0x3f000000    # 0.5f
 | |
| 
 | |
|     add-float/2addr p0, v0
 | |
| 
 | |
|     float-to-int p0, p0
 | |
| 
 | |
|     iget v1, p1, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     add-float/2addr v1, v0
 | |
| 
 | |
|     float-to-int v1, v1
 | |
| 
 | |
|     iget v2, p1, Landroid/graphics/RectF;->right:F
 | |
| 
 | |
|     add-float/2addr v2, v0
 | |
| 
 | |
|     float-to-int v2, v2
 | |
| 
 | |
|     iget p1, p1, Landroid/graphics/RectF;->bottom:F
 | |
| 
 | |
|     add-float/2addr p1, v0
 | |
| 
 | |
|     float-to-int p1, p1
 | |
| 
 | |
|     invoke-virtual {p2, p0, v1, v2, p1}, Landroid/graphics/Rect;->set(IIII)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |