Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -1,4 +1,4 @@
|
|||
.class Landroidx/print/PrintHelper$1;
|
||||
.class public Landroidx/print/PrintHelper$1;
|
||||
.super Landroid/os/AsyncTask;
|
||||
.source "PrintHelper.java"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
|||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
@ -25,25 +25,25 @@
|
|||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
.field public final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
|
||||
.field final synthetic val$attributes:Landroid/print/PrintAttributes;
|
||||
.field public final synthetic val$attributes:Landroid/print/PrintAttributes;
|
||||
|
||||
.field final synthetic val$bitmap:Landroid/graphics/Bitmap;
|
||||
.field public final synthetic val$bitmap:Landroid/graphics/Bitmap;
|
||||
|
||||
.field final synthetic val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
.field public final synthetic val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
|
||||
.field final synthetic val$fileDescriptor:Landroid/os/ParcelFileDescriptor;
|
||||
.field public final synthetic val$fileDescriptor:Landroid/os/ParcelFileDescriptor;
|
||||
|
||||
.field final synthetic val$fittingMode:I
|
||||
.field public final synthetic val$fittingMode:I
|
||||
|
||||
.field final synthetic val$pdfAttributes:Landroid/print/PrintAttributes;
|
||||
.field public final synthetic val$pdfAttributes:Landroid/print/PrintAttributes;
|
||||
|
||||
.field final synthetic val$writeResultCallback:Landroid/print/PrintDocumentAdapter$WriteResultCallback;
|
||||
.field public final synthetic val$writeResultCallback:Landroid/print/PrintDocumentAdapter$WriteResultCallback;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/print/PrintHelper;Landroid/os/CancellationSignal;Landroid/print/PrintAttributes;Landroid/graphics/Bitmap;Landroid/print/PrintAttributes;ILandroid/os/ParcelFileDescriptor;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V
|
||||
.method public constructor <init>(Landroidx/print/PrintHelper;Landroid/os/CancellationSignal;Landroid/print/PrintAttributes;Landroid/graphics/Bitmap;Landroid/print/PrintAttributes;ILandroid/os/ParcelFileDescriptor;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/print/PrintHelper$1;->this$0:Landroidx/print/PrintHelper;
|
||||
|
@ -69,7 +69,7 @@
|
|||
|
||||
|
||||
# virtual methods
|
||||
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 0
|
||||
|
||||
check-cast p1, [Ljava/lang/Void;
|
||||
|
@ -81,7 +81,7 @@
|
|||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Throwable;
|
||||
.method public varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Throwable;
|
||||
.locals 7
|
||||
|
||||
:try_start_0
|
||||
|
@ -208,8 +208,11 @@
|
|||
|
||||
sget-boolean v5, Landroidx/print/PrintHelper;->IS_MIN_MARGINS_HANDLING_CORRECT:Z
|
||||
|
||||
if-nez v5, :cond_3
|
||||
if-eqz v5, :cond_3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_3
|
||||
iget v5, v2, Landroid/graphics/RectF;->left:F
|
||||
|
||||
iget v6, v2, Landroid/graphics/RectF;->top:F
|
||||
|
@ -222,7 +225,7 @@
|
|||
|
||||
invoke-virtual {v5, v2}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/RectF;)Z
|
||||
|
||||
:cond_3
|
||||
:goto_1
|
||||
invoke-virtual {v3}, Landroid/graphics/pdf/PdfDocument$Page;->getCanvas()Landroid/graphics/Canvas;
|
||||
|
||||
move-result-object v2
|
||||
|
@ -356,7 +359,7 @@
|
|||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
|
||||
.method public bridge synthetic onPostExecute(Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Ljava/lang/Throwable;
|
||||
|
@ -366,7 +369,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method protected onPostExecute(Ljava/lang/Throwable;)V
|
||||
.method public onPostExecute(Ljava/lang/Throwable;)V
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/print/PrintHelper$1;->val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
|
@ -381,7 +384,7 @@
|
|||
|
||||
invoke-virtual {p1}, Landroid/print/PrintDocumentAdapter$WriteResultCallback;->onWriteCancelled()V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-nez p1, :cond_1
|
||||
|
@ -400,7 +403,7 @@
|
|||
|
||||
invoke-virtual {p1, v0}, Landroid/print/PrintDocumentAdapter$WriteResultCallback;->onWriteFinished([Landroid/print/PageRange;)V
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const-string v0, "PrintHelper"
|
||||
|
@ -415,5 +418,6 @@
|
|||
|
||||
invoke-virtual {p1, v0}, Landroid/print/PrintDocumentAdapter$WriteResultCallback;->onWriteFailed(Ljava/lang/CharSequence;)V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
|
|
@ -1,35 +1,39 @@
|
|||
.class Landroidx/print/PrintHelper$PrintBitmapAdapter;
|
||||
.class public Landroidx/print/PrintHelper$PrintBitmapAdapter;
|
||||
.super Landroid/print/PrintDocumentAdapter;
|
||||
.source "PrintHelper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/print/PrintHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
accessFlags = 0x1
|
||||
name = "PrintBitmapAdapter"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mAttributes:Landroid/print/PrintAttributes;
|
||||
.field public mAttributes:Landroid/print/PrintAttributes;
|
||||
|
||||
.field private final mBitmap:Landroid/graphics/Bitmap;
|
||||
.field public final mBitmap:Landroid/graphics/Bitmap;
|
||||
|
||||
.field private final mCallback:Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
.field public final mCallback:Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
|
||||
.field private final mFittingMode:I
|
||||
.field public final mFittingMode:I
|
||||
|
||||
.field private final mJobName:Ljava/lang/String;
|
||||
.field public final mJobName:Ljava/lang/String;
|
||||
|
||||
.field final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
.field public final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/print/PrintHelper;Ljava/lang/String;ILandroid/graphics/Bitmap;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.method public constructor <init>(Landroidx/print/PrintHelper;Ljava/lang/String;ILandroid/graphics/Bitmap;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/print/PrintHelper$PrintBitmapAdapter;->this$0:Landroidx/print/PrintHelper;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.class Landroidx/print/PrintHelper$PrintUriAdapter$1$1;
|
||||
.class public Landroidx/print/PrintHelper$PrintUriAdapter$1$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PrintHelper.java"
|
||||
|
||||
|
@ -12,17 +12,17 @@
|
|||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$2:Landroidx/print/PrintHelper$PrintUriAdapter$1;
|
||||
.field public final synthetic this$2:Landroidx/print/PrintHelper$PrintUriAdapter$1;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/print/PrintHelper$PrintUriAdapter$1;)V
|
||||
.method public constructor <init>(Landroidx/print/PrintHelper$PrintUriAdapter$1;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/print/PrintHelper$PrintUriAdapter$1$1;->this$2:Landroidx/print/PrintHelper$PrintUriAdapter$1;
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/print/PrintHelper$PrintUriAdapter$1;->cancel(Z)Z
|
||||
invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->cancel(Z)Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.class Landroidx/print/PrintHelper$PrintUriAdapter$1;
|
||||
.class public Landroidx/print/PrintHelper$PrintUriAdapter$1;
|
||||
.super Landroid/os/AsyncTask;
|
||||
.source "PrintHelper.java"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
|||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
@ -25,19 +25,19 @@
|
|||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$1:Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
.field public final synthetic this$1:Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
|
||||
.field final synthetic val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
.field public final synthetic val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
|
||||
.field final synthetic val$layoutResultCallback:Landroid/print/PrintDocumentAdapter$LayoutResultCallback;
|
||||
.field public final synthetic val$layoutResultCallback:Landroid/print/PrintDocumentAdapter$LayoutResultCallback;
|
||||
|
||||
.field final synthetic val$newPrintAttributes:Landroid/print/PrintAttributes;
|
||||
.field public final synthetic val$newPrintAttributes:Landroid/print/PrintAttributes;
|
||||
|
||||
.field final synthetic val$oldPrintAttributes:Landroid/print/PrintAttributes;
|
||||
.field public final synthetic val$oldPrintAttributes:Landroid/print/PrintAttributes;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/print/PrintHelper$PrintUriAdapter;Landroid/os/CancellationSignal;Landroid/print/PrintAttributes;Landroid/print/PrintAttributes;Landroid/print/PrintDocumentAdapter$LayoutResultCallback;)V
|
||||
.method public constructor <init>(Landroidx/print/PrintHelper$PrintUriAdapter;Landroid/os/CancellationSignal;Landroid/print/PrintAttributes;Landroid/print/PrintAttributes;Landroid/print/PrintDocumentAdapter$LayoutResultCallback;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/print/PrintHelper$PrintUriAdapter$1;->this$1:Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
|
@ -57,7 +57,7 @@
|
|||
|
||||
|
||||
# virtual methods
|
||||
.method protected varargs doInBackground([Landroid/net/Uri;)Landroid/graphics/Bitmap;
|
||||
.method public varargs doInBackground([Landroid/net/Uri;)Landroid/graphics/Bitmap;
|
||||
.locals 1
|
||||
|
||||
:try_start_0
|
||||
|
@ -83,7 +83,7 @@
|
|||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 0
|
||||
|
||||
check-cast p1, [Landroid/net/Uri;
|
||||
|
@ -95,7 +95,7 @@
|
|||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected onCancelled(Landroid/graphics/Bitmap;)V
|
||||
.method public onCancelled(Landroid/graphics/Bitmap;)V
|
||||
.locals 1
|
||||
|
||||
iget-object p1, p0, Landroidx/print/PrintHelper$PrintUriAdapter$1;->val$layoutResultCallback:Landroid/print/PrintDocumentAdapter$LayoutResultCallback;
|
||||
|
@ -111,7 +111,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method protected bridge synthetic onCancelled(Ljava/lang/Object;)V
|
||||
.method public bridge synthetic onCancelled(Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Landroid/graphics/Bitmap;
|
||||
|
@ -121,7 +121,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method protected onPostExecute(Landroid/graphics/Bitmap;)V
|
||||
.method public onPostExecute(Landroid/graphics/Bitmap;)V
|
||||
.locals 9
|
||||
|
||||
invoke-super {p0, p1}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V
|
||||
|
@ -267,7 +267,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
|
||||
.method public bridge synthetic onPostExecute(Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Landroid/graphics/Bitmap;
|
||||
|
@ -277,7 +277,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method protected onPreExecute()V
|
||||
.method public onPreExecute()V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Landroidx/print/PrintHelper$PrintUriAdapter$1;->val$cancellationSignal:Landroid/os/CancellationSignal;
|
||||
|
|
|
@ -1,33 +1,37 @@
|
|||
.class Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
.class public Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
.super Landroid/print/PrintDocumentAdapter;
|
||||
.source "PrintHelper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/print/PrintHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
accessFlags = 0x1
|
||||
name = "PrintUriAdapter"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field mAttributes:Landroid/print/PrintAttributes;
|
||||
.field public mAttributes:Landroid/print/PrintAttributes;
|
||||
|
||||
.field mBitmap:Landroid/graphics/Bitmap;
|
||||
.field public mBitmap:Landroid/graphics/Bitmap;
|
||||
|
||||
.field final mCallback:Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
.field public final mCallback:Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
|
||||
.field final mFittingMode:I
|
||||
.field public final mFittingMode:I
|
||||
|
||||
.field final mImageFile:Landroid/net/Uri;
|
||||
.field public final mImageFile:Landroid/net/Uri;
|
||||
|
||||
.field final mJobName:Ljava/lang/String;
|
||||
.field public final mJobName:Ljava/lang/String;
|
||||
|
||||
.field mLoadBitmap:Landroid/os/AsyncTask;
|
||||
.field public mLoadBitmap:Landroid/os/AsyncTask;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroid/os/AsyncTask<",
|
||||
|
@ -39,11 +43,11 @@
|
|||
.end annotation
|
||||
.end field
|
||||
|
||||
.field final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
.field public final synthetic this$0:Landroidx/print/PrintHelper;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/print/PrintHelper;Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;I)V
|
||||
.method public constructor <init>(Landroidx/print/PrintHelper;Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;I)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Landroidx/print/PrintHelper$PrintUriAdapter;->this$0:Landroidx/print/PrintHelper;
|
||||
|
@ -67,7 +71,7 @@
|
|||
|
||||
|
||||
# virtual methods
|
||||
.method cancelLoad()V
|
||||
.method public cancelLoad()V
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Landroidx/print/PrintHelper$PrintUriAdapter;->this$0:Landroidx/print/PrintHelper;
|
||||
|
@ -232,7 +236,7 @@
|
|||
|
||||
new-array p1, p1, [Landroid/net/Uri;
|
||||
|
||||
invoke-virtual {p5, p1}, Landroidx/print/PrintHelper$PrintUriAdapter$1;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
||||
invoke-virtual {p5, p1}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
|
|
|
@ -15,20 +15,32 @@
|
|||
|
||||
# static fields
|
||||
.field public static final COLOR_MODE_COLOR:I = 0x2
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"InlinedApi"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static final COLOR_MODE_MONOCHROME:I = 0x1
|
||||
.annotation build Landroid/annotation/SuppressLint;
|
||||
value = {
|
||||
"InlinedApi"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field static final IS_MIN_MARGINS_HANDLING_CORRECT:Z
|
||||
.field public static final IS_MIN_MARGINS_HANDLING_CORRECT:Z
|
||||
|
||||
.field private static final LOG_TAG:Ljava/lang/String; = "PrintHelper"
|
||||
.field public static final LOG_TAG:Ljava/lang/String; = "PrintHelper"
|
||||
|
||||
.field private static final MAX_PRINT_SIZE:I = 0xdac
|
||||
.field public static final MAX_PRINT_SIZE:I = 0xdac
|
||||
|
||||
.field public static final ORIENTATION_LANDSCAPE:I = 0x1
|
||||
|
||||
.field public static final ORIENTATION_PORTRAIT:I = 0x2
|
||||
|
||||
.field static final PRINT_ACTIVITY_RESPECTS_ORIENTATION:Z
|
||||
.field public static final PRINT_ACTIVITY_RESPECTS_ORIENTATION:Z
|
||||
|
||||
.field public static final SCALE_MODE_FILL:I = 0x2
|
||||
|
||||
|
@ -36,22 +48,22 @@
|
|||
|
||||
|
||||
# instance fields
|
||||
.field mColorMode:I
|
||||
.field public mColorMode:I
|
||||
|
||||
.field final mContext:Landroid/content/Context;
|
||||
.field public final mContext:Landroid/content/Context;
|
||||
|
||||
.field mDecodeOptions:Landroid/graphics/BitmapFactory$Options;
|
||||
.field public mDecodeOptions:Landroid/graphics/BitmapFactory$Options;
|
||||
|
||||
.field final mLock:Ljava/lang/Object;
|
||||
.field public final mLock:Ljava/lang/Object;
|
||||
|
||||
.field mOrientation:I
|
||||
.field public mOrientation:I
|
||||
|
||||
.field mScaleMode:I
|
||||
.field public mScaleMode:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 5
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
|
@ -61,35 +73,25 @@
|
|||
|
||||
const/4 v3, 0x1
|
||||
|
||||
const/16 v4, 0x14
|
||||
|
||||
if-lt v0, v4, :cond_1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
if-le v0, v2, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
:goto_1
|
||||
sput-boolean v0, Landroidx/print/PrintHelper;->PRINT_ACTIVITY_RESPECTS_ORIENTATION:Z
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
if-eq v0, v2, :cond_2
|
||||
if-eq v0, v2, :cond_1
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_2
|
||||
:cond_1
|
||||
sput-boolean v1, Landroidx/print/PrintHelper;->IS_MIN_MARGINS_HANDLING_CORRECT:Z
|
||||
|
||||
return-void
|
||||
|
@ -97,6 +99,10 @@
|
|||
|
||||
.method public constructor <init>(Landroid/content/Context;)V
|
||||
.locals 1
|
||||
.param p1 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
|
@ -125,7 +131,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method static convertBitmapForColorMode(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
|
||||
.method public static convertBitmapForColorMode(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
|
||||
.locals 5
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
@ -180,8 +186,11 @@
|
|||
return-object p1
|
||||
.end method
|
||||
|
||||
.method private static copyAttributes(Landroid/print/PrintAttributes;)Landroid/print/PrintAttributes$Builder;
|
||||
.method public static copyAttributes(Landroid/print/PrintAttributes;)Landroid/print/PrintAttributes$Builder;
|
||||
.locals 3
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Landroid/print/PrintAttributes$Builder;
|
||||
|
||||
|
@ -246,7 +255,7 @@
|
|||
return-object v0
|
||||
.end method
|
||||
|
||||
.method static getMatrix(IILandroid/graphics/RectF;I)Landroid/graphics/Matrix;
|
||||
.method public static getMatrix(IILandroid/graphics/RectF;I)Landroid/graphics/Matrix;
|
||||
.locals 3
|
||||
|
||||
new-instance v0, Landroid/graphics/Matrix;
|
||||
|
@ -324,7 +333,7 @@
|
|||
return-object v0
|
||||
.end method
|
||||
|
||||
.method static isPortrait(Landroid/graphics/Bitmap;)Z
|
||||
.method public static isPortrait(Landroid/graphics/Bitmap;)Z
|
||||
.locals 1
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
|
||||
|
@ -339,11 +348,12 @@
|
|||
|
||||
const/4 p0, 0x1
|
||||
|
||||
return p0
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
:goto_0
|
||||
return p0
|
||||
.end method
|
||||
|
||||
|
@ -443,27 +453,18 @@
|
|||
.end method
|
||||
|
||||
.method public static systemSupportsPrint()Z
|
||||
.locals 2
|
||||
.locals 1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final getColorMode()I
|
||||
.method public getColorMode()I
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/print/PrintHelper;->mColorMode:I
|
||||
|
@ -471,30 +472,22 @@
|
|||
return v0
|
||||
.end method
|
||||
|
||||
.method public final getOrientation()I
|
||||
.locals 2
|
||||
.method public getOrientation()I
|
||||
.locals 1
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
iget v0, p0, Landroidx/print/PrintHelper;->mOrientation:I
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/print/PrintHelper;->mOrientation:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public final getScaleMode()I
|
||||
.method public getScaleMode()I
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/print/PrintHelper;->mScaleMode:I
|
||||
|
@ -502,7 +495,7 @@
|
|||
return v0
|
||||
.end method
|
||||
|
||||
.method final loadConstrainedBitmap(Landroid/net/Uri;)Landroid/graphics/Bitmap;
|
||||
.method public loadConstrainedBitmap(Landroid/net/Uri;)Landroid/graphics/Bitmap;
|
||||
.locals 7
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
|
@ -672,8 +665,16 @@
|
|||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final printBitmap(Ljava/lang/String;Landroid/graphics/Bitmap;)V
|
||||
.method public printBitmap(Ljava/lang/String;Landroid/graphics/Bitmap;)V
|
||||
.locals 1
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/graphics/Bitmap;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
|
@ -682,18 +683,26 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final printBitmap(Ljava/lang/String;Landroid/graphics/Bitmap;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.method public printBitmap(Ljava/lang/String;Landroid/graphics/Bitmap;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.locals 9
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/graphics/Bitmap;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p3 # Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-lt v0, v1, :cond_2
|
||||
|
||||
if-nez p2, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/print/PrintHelper;->mContext:Landroid/content/Context;
|
||||
|
@ -756,13 +765,19 @@
|
|||
|
||||
invoke-virtual {v0, p1, v8, v1}, Landroid/print/PrintManager;->print(Ljava/lang/String;Landroid/print/PrintDocumentAdapter;Landroid/print/PrintAttributes;)Landroid/print/PrintJob;
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final printBitmap(Ljava/lang/String;Landroid/net/Uri;)V
|
||||
.method public printBitmap(Ljava/lang/String;Landroid/net/Uri;)V
|
||||
.locals 1
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/FileNotFoundException;
|
||||
|
@ -776,8 +791,20 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final printBitmap(Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.locals 8
|
||||
.method public printBitmap(Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;)V
|
||||
.locals 7
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p3 # Landroidx/print/PrintHelper$OnPrintFinishCallback;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/FileNotFoundException;
|
||||
|
@ -786,28 +813,21 @@
|
|||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Landroidx/print/PrintHelper$PrintUriAdapter;
|
||||
|
||||
iget v7, p0, Landroidx/print/PrintHelper;->mScaleMode:I
|
||||
iget v6, p0, Landroidx/print/PrintHelper;->mScaleMode:I
|
||||
|
||||
move-object v2, v0
|
||||
move-object v1, v0
|
||||
|
||||
move-object v3, p0
|
||||
move-object v2, p0
|
||||
|
||||
move-object v4, p1
|
||||
move-object v3, p1
|
||||
|
||||
move-object v5, p2
|
||||
move-object v4, p2
|
||||
|
||||
move-object v6, p3
|
||||
move-object v5, p3
|
||||
|
||||
invoke-direct/range {v2 .. v7}, Landroidx/print/PrintHelper$PrintUriAdapter;-><init>(Landroidx/print/PrintHelper;Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;I)V
|
||||
invoke-direct/range {v1 .. v6}, Landroidx/print/PrintHelper$PrintUriAdapter;-><init>(Landroidx/print/PrintHelper;Ljava/lang/String;Landroid/net/Uri;Landroidx/print/PrintHelper$OnPrintFinishCallback;I)V
|
||||
|
||||
iget-object p2, p0, Landroidx/print/PrintHelper;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -831,16 +851,16 @@
|
|||
|
||||
const/4 v2, 0x1
|
||||
|
||||
if-eq v1, v2, :cond_2
|
||||
if-eq v1, v2, :cond_1
|
||||
|
||||
if-nez v1, :cond_1
|
||||
if-nez v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
:cond_0
|
||||
const/4 v2, 0x2
|
||||
|
||||
if-ne v1, v2, :cond_3
|
||||
if-ne v1, v2, :cond_2
|
||||
|
||||
sget-object v1, Landroid/print/PrintAttributes$MediaSize;->UNKNOWN_PORTRAIT:Landroid/print/PrintAttributes$MediaSize;
|
||||
|
||||
|
@ -848,13 +868,13 @@
|
|||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
:cond_1
|
||||
:goto_0
|
||||
sget-object v1, Landroid/print/PrintAttributes$MediaSize;->UNKNOWN_LANDSCAPE:Landroid/print/PrintAttributes$MediaSize;
|
||||
|
||||
invoke-virtual {p3, v1}, Landroid/print/PrintAttributes$Builder;->setMediaSize(Landroid/print/PrintAttributes$MediaSize;)Landroid/print/PrintAttributes$Builder;
|
||||
|
||||
:cond_3
|
||||
:cond_2
|
||||
:goto_1
|
||||
invoke-virtual {p3}, Landroid/print/PrintAttributes$Builder;->build()Landroid/print/PrintAttributes;
|
||||
|
||||
|
@ -865,7 +885,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final setColorMode(I)V
|
||||
.method public setColorMode(I)V
|
||||
.locals 0
|
||||
|
||||
iput p1, p0, Landroidx/print/PrintHelper;->mColorMode:I
|
||||
|
@ -873,7 +893,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final setOrientation(I)V
|
||||
.method public setOrientation(I)V
|
||||
.locals 0
|
||||
|
||||
iput p1, p0, Landroidx/print/PrintHelper;->mOrientation:I
|
||||
|
@ -881,7 +901,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method public final setScaleMode(I)V
|
||||
.method public setScaleMode(I)V
|
||||
.locals 0
|
||||
|
||||
iput p1, p0, Landroidx/print/PrintHelper;->mScaleMode:I
|
||||
|
@ -889,8 +909,11 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method final writeBitmap(Landroid/print/PrintAttributes;ILandroid/graphics/Bitmap;Landroid/os/ParcelFileDescriptor;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V
|
||||
.method public writeBitmap(Landroid/print/PrintAttributes;ILandroid/graphics/Bitmap;Landroid/os/ParcelFileDescriptor;Landroid/os/CancellationSignal;Landroid/print/PrintDocumentAdapter$WriteResultCallback;)V
|
||||
.locals 11
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
sget-boolean v0, Landroidx/print/PrintHelper;->IS_MIN_MARGINS_HANDLING_CORRECT:Z
|
||||
|
||||
|
@ -944,7 +967,7 @@
|
|||
|
||||
new-array v1, v1, [Ljava/lang/Void;
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/print/PrintHelper$1;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
||||
invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue