.class public Landroidx/core/provider/FontsContractCompat; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/core/provider/FontsContractCompat$FontInfo;, Landroidx/core/provider/FontsContractCompat$FontFamilyResult;, Landroidx/core/provider/FontsContractCompat$FontRequestCallback;, Landroidx/core/provider/FontsContractCompat$Columns; } .end annotation # static fields .field public static final PARCEL_FONT_RESULTS:Ljava/lang/String; = "font_results" .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .end field .field static final RESULT_CODE_PROVIDER_NOT_FOUND:I = -0x1 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .end field .field static final RESULT_CODE_WRONG_CERTIFICATES:I = -0x2 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .end field # direct methods .method private constructor ()V .locals 0 .line 56 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static buildTypeface(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroidx/core/provider/FontsContractCompat$FontInfo;)Landroid/graphics/Typeface; .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/os/CancellationSignal; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # [Landroidx/core/provider/FontsContractCompat$FontInfo; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation const/4 v0, 0x0 .line 76 invoke-static {p0, p1, p2, v0}, Landroidx/core/graphics/TypefaceCompat;->createFromFontInfo(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroidx/core/provider/FontsContractCompat$FontInfo;I)Landroid/graphics/Typeface; move-result-object p0 return-object p0 .end method .method public static fetchFonts(Landroid/content/Context;Landroid/os/CancellationSignal;Landroidx/core/provider/FontRequest;)Landroidx/core/provider/FontsContractCompat$FontFamilyResult; .locals 0 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/os/CancellationSignal; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # Landroidx/core/provider/FontRequest; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Landroid/content/pm/PackageManager$NameNotFoundException; } .end annotation .line 102 invoke-static {p2}, Landroidx/core/provider/FontsContractCompat$$ExternalSyntheticBackport2;->m(Ljava/lang/Object;)Ljava/util/List; move-result-object p2 invoke-static {p0, p2, p1}, Landroidx/core/provider/FontProvider;->getFontFamilyResult(Landroid/content/Context;Ljava/util/List;Landroid/os/CancellationSignal;)Landroidx/core/provider/FontsContractCompat$FontFamilyResult; move-result-object p0 return-object p0 .end method .method public static getFontSync(Landroid/content/Context;Landroidx/core/provider/FontRequest;Landroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;ZII)Landroid/graphics/Typeface; .locals 7 .param p2 # Landroidx/core/content/res/ResourcesCompat$FontCallback; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p3 # Landroid/os/Handler; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 694 new-instance v6, Landroidx/core/graphics/TypefaceCompat$ResourcesCallbackAdapter; invoke-direct {v6, p2}, Landroidx/core/graphics/TypefaceCompat$ResourcesCallbackAdapter;->(Landroidx/core/content/res/ResourcesCompat$FontCallback;)V .line 695 invoke-static {p3}, Landroidx/core/content/res/ResourcesCompat$FontCallback;->getHandler(Landroid/os/Handler;)Landroid/os/Handler; move-result-object v5 .line 696 invoke-static {p1}, Landroidx/core/provider/FontsContractCompat$$ExternalSyntheticBackport3;->m(Ljava/lang/Object;)Ljava/util/List; move-result-object v1 move-object v0, p0 move v2, p6 move v3, p4 move v4, p5 invoke-static/range {v0 .. v6}, Landroidx/core/provider/FontsContractCompat;->requestFont(Landroid/content/Context;Ljava/util/List;IZILandroid/os/Handler;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)Landroid/graphics/Typeface; move-result-object p0 return-object p0 .end method .method public static getProvider(Landroid/content/pm/PackageManager;Landroidx/core/provider/FontRequest;Landroid/content/res/Resources;)Landroid/content/pm/ProviderInfo; .locals 0 .param p0 # Landroid/content/pm/PackageManager; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/core/provider/FontRequest; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/content/res/Resources; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation build Landroidx/annotation/VisibleForTesting; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Landroid/content/pm/PackageManager$NameNotFoundException; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 748 invoke-static {p0, p1, p2}, Landroidx/core/provider/FontProvider;->getProvider(Landroid/content/pm/PackageManager;Landroidx/core/provider/FontRequest;Landroid/content/res/Resources;)Landroid/content/pm/ProviderInfo; move-result-object p0 return-object p0 .end method .method public static prepareFontData(Landroid/content/Context;[Landroidx/core/provider/FontsContractCompat$FontInfo;Landroid/os/CancellationSignal;)Ljava/util/Map; .locals 0 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "[", "Landroidx/core/provider/FontsContractCompat$FontInfo;", "Landroid/os/CancellationSignal;", ")", "Ljava/util/Map<", "Landroid/net/Uri;", "Ljava/nio/ByteBuffer;", ">;" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 732 invoke-static {p0, p1, p2}, Landroidx/core/graphics/TypefaceCompatUtil;->readFontInfoIntoByteBuffer(Landroid/content/Context;[Landroidx/core/provider/FontsContractCompat$FontInfo;Landroid/os/CancellationSignal;)Ljava/util/Map; move-result-object p0 return-object p0 .end method .method public static requestFont(Landroid/content/Context;Landroidx/core/provider/FontRequest;IZILandroid/os/Handler;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)Landroid/graphics/Typeface; .locals 7 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/core/provider/FontRequest; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p4 # I .annotation build Landroidx/annotation/IntRange; from = 0x0L .end annotation .end param .param p5 # Landroid/os/Handler; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p6 # Landroidx/core/provider/FontsContractCompat$FontRequestCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .line 293 invoke-static {p1}, Landroidx/core/provider/FontsContractCompat$$ExternalSyntheticBackport4;->m(Ljava/lang/Object;)Ljava/util/List; move-result-object v1 move-object v0, p0 move v2, p2 move v3, p3 move v4, p4 move-object v5, p5 move-object v6, p6 invoke-static/range {v0 .. v6}, Landroidx/core/provider/FontsContractCompat;->requestFont(Landroid/content/Context;Ljava/util/List;IZILandroid/os/Handler;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)Landroid/graphics/Typeface; move-result-object p0 return-object p0 .end method .method public static requestFont(Landroid/content/Context;Ljava/util/List;IZILandroid/os/Handler;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)Landroid/graphics/Typeface; .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/util/List; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p4 # I .annotation build Landroidx/annotation/IntRange; from = 0x0L .end annotation .end param .param p5 # Landroid/os/Handler; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p6 # Landroidx/core/provider/FontsContractCompat$FontRequestCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/Nullable; .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/util/List<", "Landroidx/core/provider/FontRequest;", ">;IZI", "Landroid/os/Handler;", "Landroidx/core/provider/FontsContractCompat$FontRequestCallback;", ")", "Landroid/graphics/Typeface;" } .end annotation .line 242 new-instance v0, Landroidx/core/provider/CallbackWrapper; .line 243 invoke-static {p5}, Landroidx/core/provider/RequestExecutor;->createHandlerExecutor(Landroid/os/Handler;)Ljava/util/concurrent/Executor; move-result-object p5 invoke-direct {v0, p6, p5}, Landroidx/core/provider/CallbackWrapper;->(Landroidx/core/provider/FontsContractCompat$FontRequestCallback;Ljava/util/concurrent/Executor;)V if-eqz p3, :cond_1 .line 246 invoke-interface {p1}, Ljava/util/List;->size()I move-result p3 const/4 p5, 0x1 if-gt p3, p5, :cond_0 const/4 p3, 0x0 .line 251 invoke-interface {p1, p3}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p1 check-cast p1, Landroidx/core/provider/FontRequest; invoke-static {p0, p1, v0, p2, p4}, Landroidx/core/provider/FontRequestWorker;->requestFontSync(Landroid/content/Context;Landroidx/core/provider/FontRequest;Landroidx/core/provider/CallbackWrapper;II)Landroid/graphics/Typeface; move-result-object p0 return-object p0 .line 247 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Fallbacks with blocking fetches are not supported for performance reasons" invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 :cond_1 const/4 p3, 0x0 .line 254 invoke-static {p0, p1, p2, p3, v0}, Landroidx/core/provider/FontRequestWorker;->requestFontAsync(Landroid/content/Context;Ljava/util/List;ILjava/util/concurrent/Executor;Landroidx/core/provider/CallbackWrapper;)Landroid/graphics/Typeface; move-result-object p0 return-object p0 .end method .method public static requestFont(Landroid/content/Context;Landroidx/core/provider/FontRequest;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)V .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/core/provider/FontRequest; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Ljava/util/concurrent/Executor; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p4 # Ljava/util/concurrent/Executor; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p5 # Landroidx/core/provider/FontsContractCompat$FontRequestCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 164 new-instance v0, Landroidx/core/provider/CallbackWrapper; invoke-direct {v0, p5, p4}, Landroidx/core/provider/CallbackWrapper;->(Landroidx/core/provider/FontsContractCompat$FontRequestCallback;Ljava/util/concurrent/Executor;)V .line 165 invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p0 .line 166 invoke-static {p1}, Landroidx/core/provider/FontsContractCompat$$ExternalSyntheticBackport1;->m(Ljava/lang/Object;)Ljava/util/List; move-result-object p1 invoke-static {p0, p1, p2, p3, v0}, Landroidx/core/provider/FontRequestWorker;->requestFontAsync(Landroid/content/Context;Ljava/util/List;ILjava/util/concurrent/Executor;Landroidx/core/provider/CallbackWrapper;)Landroid/graphics/Typeface; return-void .end method .method public static requestFont(Landroid/content/Context;Landroidx/core/provider/FontRequest;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;Landroid/os/Handler;)V .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroidx/core/provider/FontRequest; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroidx/core/provider/FontsContractCompat$FontRequestCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroid/os/Handler; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation runtime Ljava/lang/Deprecated; .end annotation .line 132 new-instance v0, Landroidx/core/provider/CallbackWrapper; invoke-direct {v0, p2}, Landroidx/core/provider/CallbackWrapper;->(Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)V .line 133 invoke-static {p3}, Landroidx/core/provider/RequestExecutor;->createHandlerExecutor(Landroid/os/Handler;)Ljava/util/concurrent/Executor; move-result-object p2 .line 134 invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p0 .line 135 invoke-static {p1}, Landroidx/core/provider/FontsContractCompat$$ExternalSyntheticBackport0;->m(Ljava/lang/Object;)Ljava/util/List; move-result-object p1 const/4 p3, 0x0 .line 134 invoke-static {p0, p1, p3, p2, v0}, Landroidx/core/provider/FontRequestWorker;->requestFontAsync(Landroid/content/Context;Ljava/util/List;ILjava/util/concurrent/Executor;Landroidx/core/provider/CallbackWrapper;)Landroid/graphics/Typeface; return-void .end method .method public static requestFontWithFallbackChain(Landroid/content/Context;Ljava/util/List;ILjava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Landroidx/core/provider/FontsContractCompat$FontRequestCallback;)V .locals 1 .param p0 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Ljava/util/List; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Ljava/util/concurrent/Executor; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p4 # Ljava/util/concurrent/Executor; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p5 # Landroidx/core/provider/FontsContractCompat$FontRequestCallback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/util/List<", "Landroidx/core/provider/FontRequest;", ">;I", "Ljava/util/concurrent/Executor;", "Ljava/util/concurrent/Executor;", "Landroidx/core/provider/FontsContractCompat$FontRequestCallback;", ")V" } .end annotation .line 201 new-instance v0, Landroidx/core/provider/CallbackWrapper; invoke-direct {v0, p5, p4}, Landroidx/core/provider/CallbackWrapper;->(Landroidx/core/provider/FontsContractCompat$FontRequestCallback;Ljava/util/concurrent/Executor;)V .line 202 invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p0 .line 203 invoke-static {p0, p1, p2, p3, v0}, Landroidx/core/provider/FontRequestWorker;->requestFontAsync(Landroid/content/Context;Ljava/util/List;ILjava/util/concurrent/Executor;Landroidx/core/provider/CallbackWrapper;)Landroid/graphics/Typeface; return-void .end method .method public static resetCache()V .locals 0 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 708 invoke-static {}, Landroidx/core/provider/FontRequestWorker;->resetTypefaceCache()V return-void .end method .method public static resetTypefaceCache()V .locals 0 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation build Landroidx/annotation/VisibleForTesting; .end annotation .line 300 invoke-static {}, Landroidx/core/provider/FontRequestWorker;->resetTypefaceCache()V return-void .end method