151 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			151 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/material/animation/MatrixEvaluator;
 | |
| .super Ljava/lang/Object;
 | |
| .source "MatrixEvaluator.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Landroid/animation/TypeEvaluator;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Ljava/lang/Object;",
 | |
|         "Landroid/animation/TypeEvaluator<",
 | |
|         "Landroid/graphics/Matrix;",
 | |
|         ">;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final tempEndValues:[F
 | |
| 
 | |
| .field private final tempMatrix:Landroid/graphics/Matrix;
 | |
| 
 | |
| .field private final tempStartValues:[F
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     const/16 v0, 0x9
 | |
| 
 | |
|     new-array v1, v0, [F
 | |
| 
 | |
|     .line 2
 | |
|     iput-object v1, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempStartValues:[F
 | |
| 
 | |
|     new-array v0, v0, [F
 | |
| 
 | |
|     .line 3
 | |
|     iput-object v0, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempEndValues:[F
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Landroid/graphics/Matrix;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempMatrix:Landroid/graphics/Matrix;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public evaluate(FLandroid/graphics/Matrix;Landroid/graphics/Matrix;)Landroid/graphics/Matrix;
 | |
|     .locals 3
 | |
|     .param p2    # Landroid/graphics/Matrix;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # Landroid/graphics/Matrix;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempStartValues:[F
 | |
| 
 | |
|     invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->getValues([F)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p2, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempEndValues:[F
 | |
| 
 | |
|     invoke-virtual {p3, p2}, Landroid/graphics/Matrix;->getValues([F)V
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     const/16 p3, 0x9
 | |
| 
 | |
|     if-ge p2, p3, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p3, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempEndValues:[F
 | |
| 
 | |
|     aget v0, p3, p2
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempStartValues:[F
 | |
| 
 | |
|     aget v2, v1, p2
 | |
| 
 | |
|     sub-float/2addr v0, v2
 | |
| 
 | |
|     .line 5
 | |
|     aget v1, v1, p2
 | |
| 
 | |
|     mul-float/2addr v0, p1
 | |
| 
 | |
|     add-float/2addr v0, v1
 | |
| 
 | |
|     aput v0, p3, p2
 | |
| 
 | |
|     add-int/lit8 p2, p2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     iget-object p1, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempMatrix:Landroid/graphics/Matrix;
 | |
| 
 | |
|     iget-object p2, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempEndValues:[F
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/graphics/Matrix;->setValues([F)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object p1, p0, Lcom/google/android/material/animation/MatrixEvaluator;->tempMatrix:Landroid/graphics/Matrix;
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public bridge synthetic evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
|     .locals 0
 | |
|     .param p2    # Ljava/lang/Object;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # Ljava/lang/Object;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     check-cast p2, Landroid/graphics/Matrix;
 | |
| 
 | |
|     check-cast p3, Landroid/graphics/Matrix;
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2, p3}, Lcom/google/android/material/animation/MatrixEvaluator;->evaluate(FLandroid/graphics/Matrix;Landroid/graphics/Matrix;)Landroid/graphics/Matrix;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 |