.class public final Landroidx/browser/customtabs/CustomTabsIntent$Builder; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/browser/customtabs/CustomTabsIntent; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Builder" .end annotation # instance fields .field private mActionButtons:Ljava/util/ArrayList; .annotation build Landroidx/annotation/Nullable; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList<", "Landroid/os/Bundle;", ">;" } .end annotation .end field .field private mActivityOptions:Landroid/app/ActivityOptions; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private mColorSchemeParamBundles:Landroid/util/SparseArray; .annotation build Landroidx/annotation/Nullable; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Landroid/util/SparseArray<", "Landroid/os/Bundle;", ">;" } .end annotation .end field .field private final mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .field private mDefaultColorSchemeBundle:Landroid/os/Bundle; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private mInstantAppsEnabled:Z .field private final mIntent:Landroid/content/Intent; .field private mMenuItems:Ljava/util/ArrayList; .annotation build Landroidx/annotation/Nullable; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList<", "Landroid/os/Bundle;", ">;" } .end annotation .end field .field private mShareIdentity:Z .field private mShareState:I # direct methods .method public constructor ()V .locals 2 .line 691 invoke-direct {p0}, Ljava/lang/Object;->()V .line 675 new-instance v0, Landroid/content/Intent; const-string v1, "android.intent.action.VIEW" invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 676 new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->()V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; const/4 v0, 0x0 iput v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareState:I const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z return-void .end method .method public constructor (Landroidx/browser/customtabs/CustomTabsSession;)V .locals 2 .param p1 # Landroidx/browser/customtabs/CustomTabsSession; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .line 702 invoke-direct {p0}, Ljava/lang/Object;->()V .line 675 new-instance v0, Landroid/content/Intent; const-string v1, "android.intent.action.VIEW" invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 676 new-instance v0, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; invoke-direct {v0}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->()V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; const/4 v0, 0x0 iput v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareState:I const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z if-eqz p1, :cond_0 .line 704 invoke-virtual {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; :cond_0 return-void .end method .method private setCurrentLocaleAsDefaultAcceptLanguage()V .locals 5 .annotation build Landroidx/annotation/RequiresApi; api = 0x18 .end annotation .line 1490 invoke-static {}, Landroidx/browser/customtabs/CustomTabsIntent$Api24Impl;->getDefaultLocale()Ljava/lang/String; move-result-object v0 .line 1491 invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v1 if-nez v1, :cond_1 iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v2, "com.android.browser.headers" .line 1492 invoke-virtual {v1, v2}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 1493 invoke-virtual {v1, v2}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle; move-result-object v1 goto :goto_0 :cond_0 new-instance v1, Landroid/os/Bundle; invoke-direct {v1}, Landroid/os/Bundle;->()V :goto_0 const-string v3, "Accept-Language" .line 1494 invoke-virtual {v1, v3}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v4 if-nez v4, :cond_1 .line 1495 invoke-virtual {v1, v3, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 1496 invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; :cond_1 return-void .end method .method private setLanguageTag(Ljava/util/Locale;)V .locals 1 .param p1 # Ljava/util/Locale; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/RequiresApi; api = 0x18 .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 1503 invoke-static {v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Api21Impl;->setLanguageTag(Landroid/content/Intent;Ljava/util/Locale;)V return-void .end method .method private setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V .locals 2 .param p1 # Landroid/os/IBinder; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p2 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .line 735 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V const-string v1, "android.support.customtabs.extra.SESSION" .line 736 invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putBinder(Ljava/lang/String;Landroid/os/IBinder;)V if-eqz p2, :cond_0 const-string p1, "android.support.customtabs.extra.SESSION_ID" .line 738 invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V :cond_0 iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 741 invoke-virtual {p1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; return-void .end method .method private setShareIdentityEnabled()V .locals 2 .annotation build Landroidx/annotation/RequiresApi; api = 0x22 .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActivityOptions:Landroid/app/ActivityOptions; if-nez v0, :cond_0 .line 1509 invoke-static {}, Landroidx/browser/customtabs/CustomTabsIntent$Api23Impl;->makeBasicActivityOptions()Landroid/app/ActivityOptions; move-result-object v0 iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActivityOptions:Landroid/app/ActivityOptions; :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActivityOptions:Landroid/app/ActivityOptions; iget-boolean v1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareIdentity:Z .line 1511 invoke-static {v0, v1}, Landroidx/browser/customtabs/CustomTabsIntent$Api34Impl;->setShareIdentityEnabled(Landroid/app/ActivityOptions;Z)V return-void .end method # virtual methods .method public addDefaultShareMenuItem()Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation const/4 v0, 0x1 .line 834 invoke-virtual {p0, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setShareState(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; return-object p0 .end method .method public addMenuItem(Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList; if-nez v0, :cond_0 .line 818 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList; .line 819 :cond_0 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V const-string v1, "android.support.customtabs.customaction.MENU_ITEM_TITLE" .line 820 invoke-virtual {v0, v1, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V const-string p1, "android.support.customtabs.customaction.PENDING_INTENT" .line 821 invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList; .line 822 invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z return-object p0 .end method .method public addToolbarItem(ILandroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p2 # Landroid/graphics/Bitmap; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p4 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/IllegalStateException; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList; if-nez v0, :cond_0 .line 946 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList; :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList; .line 948 invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 const/4 v1, 0x5 if-ge v0, v1, :cond_1 .line 952 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V const-string v1, "android.support.customtabs.customaction.ID" .line 953 invoke-virtual {v0, v1, p1}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V const-string p1, "android.support.customtabs.customaction.ICON" .line 954 invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V const-string p1, "android.support.customtabs.customaction.DESCRIPTION" .line 955 invoke-virtual {v0, p1, p3}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V const-string p1, "android.support.customtabs.customaction.PENDING_INTENT" .line 956 invoke-virtual {v0, p1, p4}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList; .line 957 invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z return-object p0 .line 949 :cond_1 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "Exceeded maximum toolbar item count of 5" invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method .method public build()Landroidx/browser/customtabs/CustomTabsIntent; .locals 4 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.SESSION" .line 1445 invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z move-result v0 const/4 v1, 0x0 if-nez v0, :cond_0 .line 1447 invoke-direct {p0, v1, v1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mMenuItems:Ljava/util/ArrayList; if-eqz v0, :cond_1 iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v3, "android.support.customtabs.extra.MENU_ITEMS" .line 1450 invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent; :cond_1 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActionButtons:Ljava/util/ArrayList; if-eqz v0, :cond_2 iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v3, "android.support.customtabs.extra.TOOLBAR_ITEMS" .line 1453 invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent; :cond_2 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v2, "android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS" iget-boolean v3, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z .line 1455 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .line 1457 invoke-virtual {v2}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->build()Landroidx/browser/customtabs/CustomTabColorSchemeParams; move-result-object v2 invoke-virtual {v2}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle; move-result-object v2 invoke-virtual {v0, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBundle:Landroid/os/Bundle; if-eqz v0, :cond_3 iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 1459 invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; :cond_3 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray; if-eqz v0, :cond_4 .line 1463 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V const-string v2, "androidx.browser.customtabs.extra.COLOR_SCHEME_PARAMS" iget-object v3, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray; .line 1464 invoke-virtual {v0, v2, v3}, Landroid/os/Bundle;->putSparseParcelableArray(Ljava/lang/String;Landroid/util/SparseArray;)V iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 1466 invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; :cond_4 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v2, "androidx.browser.customtabs.extra.SHARE_STATE" iget v3, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareState:I .line 1468 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; sget v0, Landroid/os/Build$VERSION;->SDK_INT:I .line 1471 invoke-direct {p0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setCurrentLocaleAsDefaultAcceptLanguage()V const/16 v2, 0x22 if-lt v0, v2, :cond_5 .line 1476 invoke-direct {p0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setShareIdentityEnabled()V :cond_5 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActivityOptions:Landroid/app/ActivityOptions; if-eqz v0, :cond_6 .line 1479 invoke-virtual {v0}, Landroid/app/ActivityOptions;->toBundle()Landroid/os/Bundle; move-result-object v1 .line 1481 :cond_6 new-instance v0, Landroidx/browser/customtabs/CustomTabsIntent; iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; invoke-direct {v0, v2, v1}, Landroidx/browser/customtabs/CustomTabsIntent;->(Landroid/content/Intent;Landroid/os/Bundle;)V return-object v0 .end method .method public enableUrlBarHiding()Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 3 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.ENABLE_URLBAR_HIDING" const/4 v2, 0x1 .line 772 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # Landroid/graphics/Bitmap; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation const/4 v0, 0x0 .line 920 invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; move-result-object p1 return-object p1 .end method .method public setActionButton(Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/app/PendingIntent;Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 3 .param p1 # Landroid/graphics/Bitmap; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Ljava/lang/String; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p3 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 901 new-instance v0, Landroid/os/Bundle; invoke-direct {v0}, Landroid/os/Bundle;->()V const-string v1, "android.support.customtabs.customaction.ID" const/4 v2, 0x0 .line 902 invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V const-string v1, "android.support.customtabs.customaction.ICON" .line 903 invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V const-string p1, "android.support.customtabs.customaction.DESCRIPTION" .line 904 invoke-virtual {v0, p1, p2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V const-string p1, "android.support.customtabs.customaction.PENDING_INTENT" .line 905 invoke-virtual {v0, p1, p3}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string p2, "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE" .line 906 invoke-virtual {p1, p2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string p2, "android.support.customtabs.extra.TINT_ACTION_BUTTON" .line 907 invoke-virtual {p1, p2, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setActivitySideSheetBreakpointDp(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # I .annotation build Landroidx/annotation/Dimension; unit = 0x0 .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation if-lez p1, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.ACTIVITY_SIDE_SHEET_BREAKPOINT_DP" .line 1250 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1246 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the initialWidthPx argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setActivitySideSheetDecorationType(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/4 v0, 0x3 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.ACTIVITY_SIDE_SHEET_DECORATION_TYPE" .line 1302 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1299 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the decorationType argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setActivitySideSheetMaximizationEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.ACTIVITY_SIDE_SHEET_ENABLE_MAXIMIZATION" .line 1262 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setActivitySideSheetPosition(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/4 v0, 0x2 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.ACTIVITY_SIDE_SHEET_POSITION" .line 1281 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1277 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the sideSheetPosition argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setActivitySideSheetRoundedCornersPosition(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/4 v0, 0x2 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.ACTIVITY_SIDE_SHEET_ROUNDED_CORNERS_POSITION" .line 1324 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1320 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the roundedCornersPosition./ argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setBackgroundInteractionEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; xor-int/lit8 p1, p1, 0x1 const-string v1, "androidx.browser.customtabs.extra.DISABLE_BACKGROUND_INTERACTION" .line 1425 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setBookmarksButtonEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; xor-int/lit8 p1, p1, 0x1 const-string v1, "org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_STAR_BUTTON" .line 1372 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setCloseButtonIcon(Landroid/graphics/Bitmap;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # Landroid/graphics/Bitmap; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.CLOSE_BUTTON_ICON" .line 794 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; return-object p0 .end method .method public setCloseButtonPosition(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/4 v0, 0x2 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.CLOSE_BUTTON_POSITION" .line 1359 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1356 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the position argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setColorScheme(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/4 v0, 0x2 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.COLOR_SCHEME" .line 1109 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1107 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the colorScheme argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setColorSchemeParams(ILandroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p2 # Landroidx/browser/customtabs/CustomTabColorSchemeParams; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_1 const/4 v0, 0x2 if-gt p1, v0, :cond_1 if-eqz p1, :cond_1 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray; if-nez v0, :cond_0 .line 1153 new-instance v0, Landroid/util/SparseArray; invoke-direct {v0}, Landroid/util/SparseArray;->()V iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray; :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mColorSchemeParamBundles:Landroid/util/SparseArray; .line 1155 invoke-virtual {p2}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle; move-result-object p2 invoke-virtual {v0, p1, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V return-object p0 .line 1150 :cond_1 new-instance p2, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "Invalid colorScheme: " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p2 .end method .method public setDefaultColorSchemeParams(Landroidx/browser/customtabs/CustomTabColorSchemeParams;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .param p1 # Landroidx/browser/customtabs/CustomTabColorSchemeParams; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1170 invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams;->toBundle()Landroid/os/Bundle; move-result-object p1 iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBundle:Landroid/os/Bundle; return-object p0 .end method .method public setDefaultShareMenuItemEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation if-eqz p1, :cond_0 const/4 p1, 0x1 .line 850 invoke-virtual {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setShareState(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; goto :goto_0 :cond_0 const/4 p1, 0x2 .line 852 invoke-virtual {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setShareState(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; :goto_0 return-object p0 .end method .method public setDownloadButtonEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; xor-int/lit8 p1, p1, 0x1 const-string v1, "org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_DOWNLOAD_BUTTON" .line 1385 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setExitAnimations(Landroid/content/Context;II)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .param p1 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # I .annotation build Landroidx/annotation/AnimRes; .end annotation .end param .param p3 # I .annotation build Landroidx/annotation/AnimRes; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1090 invoke-static {p1, p2, p3}, Landroidx/core/app/ActivityOptionsCompat;->makeCustomAnimation(Landroid/content/Context;II)Landroidx/core/app/ActivityOptionsCompat; move-result-object p1 .line 1091 invoke-virtual {p1}, Landroidx/core/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle; move-result-object p1 iget-object p2, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string p3, "android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE" .line 1092 invoke-virtual {p2, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; return-object p0 .end method .method public setInitialActivityHeightPx(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # I .annotation build Landroidx/annotation/Dimension; unit = 0x1 .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation const/4 v0, 0x0 .line 1216 invoke-virtual {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setInitialActivityHeightPx(II)Landroidx/browser/customtabs/CustomTabsIntent$Builder; move-result-object p1 return-object p1 .end method .method public setInitialActivityHeightPx(II)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # I .annotation build Landroidx/annotation/Dimension; unit = 0x1 .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation if-lez p1, :cond_1 if-ltz p2, :cond_0 const/4 v0, 0x2 if-gt p2, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.INITIAL_ACTIVITY_HEIGHT_PX" .line 1201 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v0, "androidx.browser.customtabs.extra.ACTIVITY_HEIGHT_RESIZE_BEHAVIOR" .line 1202 invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1197 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Invalid value for the activityHeightResizeBehavior argument" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 1192 :cond_1 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Invalid value for the initialHeightPx argument" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setInitialActivityWidthPx(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # I .annotation build Landroidx/annotation/Dimension; unit = 0x1 .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation if-lez p1, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.INITIAL_ACTIVITY_WIDTH_PX" .line 1234 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1230 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the initialWidthPx argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setInstantAppsEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .annotation build Landroidx/annotation/NonNull; .end annotation iput-boolean p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mInstantAppsEnabled:Z return-object p0 .end method .method public setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .line 992 invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setNavigationBarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; return-object p0 .end method .method public setNavigationBarDividerColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .line 1008 invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setNavigationBarDividerColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; return-object p0 .end method .method public setPendingSession(Landroidx/browser/customtabs/CustomTabsSession$PendingSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # Landroidx/browser/customtabs/CustomTabsSession$PendingSession; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope; } .end annotation const/4 v0, 0x0 .line 729 invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession$PendingSession;->getId()Landroid/app/PendingIntent; move-result-object p1 invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V return-object p0 .end method .method public setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .line 972 invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setSecondaryToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; return-object p0 .end method .method public setSecondaryToolbarSwipeUpGesture(Landroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.SECONDARY_TOOLBAR_SWIPE_UP_GESTURE" .line 1044 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; return-object p0 .end method .method public setSecondaryToolbarViews(Landroid/widget/RemoteViews;[ILandroid/app/PendingIntent;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # Landroid/widget/RemoteViews; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # [I .annotation build Landroidx/annotation/Nullable; .end annotation .end param .param p3 # Landroid/app/PendingIntent; .annotation build Landroidx/annotation/Nullable; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS" .line 1030 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v0, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_VIEW_IDS" .line 1031 invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[I)Landroid/content/Intent; iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string p2, "android.support.customtabs.extra.EXTRA_REMOTEVIEWS_PENDINGINTENT" .line 1032 invoke-virtual {p1, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; return-object p0 .end method .method public setSendToExternalDefaultHandlerEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.SEND_TO_EXTERNAL_HANDLER" .line 1397 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method .method public setSession(Landroidx/browser/customtabs/CustomTabsSession;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # Landroidx/browser/customtabs/CustomTabsSession; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 716 invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getComponentName()Landroid/content/ComponentName; move-result-object v1 invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; .line 717 invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getBinder()Landroid/os/IBinder; move-result-object v0 invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSession;->getId()Landroid/app/PendingIntent; move-result-object p1 invoke-direct {p0, v0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setSessionParameters(Landroid/os/IBinder;Landroid/app/PendingIntent;)V return-object p0 .end method .method public setShareIdentityEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .annotation build Landroidx/annotation/NonNull; .end annotation .line 0 iput-boolean p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareIdentity:Z return-object p0 .end method .method public setShareState(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 3 .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_2 const/4 v0, 0x2 if-gt p1, v0, :cond_2 iput p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mShareState:I const/4 v1, 0x1 const-string v2, "android.support.customtabs.extra.SHARE_MENU_ITEM" if-ne p1, v1, :cond_0 iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 875 invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; goto :goto_0 :cond_0 if-ne p1, v0, :cond_1 iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const/4 v0, 0x0 .line 877 invoke-virtual {p1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; goto :goto_0 :cond_1 iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; .line 879 invoke-virtual {p1, v2}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V :goto_0 return-object p0 .line 869 :cond_2 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the shareState argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setShowTitle(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.TITLE_VISIBILITY" .line 805 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .end method .method public setStartAnimations(Landroid/content/Context;II)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .param p1 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # I .annotation build Landroidx/annotation/AnimRes; .end annotation .end param .param p3 # I .annotation build Landroidx/annotation/AnimRes; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1075 invoke-static {p1, p2, p3}, Landroid/app/ActivityOptions;->makeCustomAnimation(Landroid/content/Context;II)Landroid/app/ActivityOptions; move-result-object p1 iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mActivityOptions:Landroid/app/ActivityOptions; return-object p0 .end method .method public setToolbarColor(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 1 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mDefaultColorSchemeBuilder:Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; .line 761 invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder;->setToolbarColor(I)Landroidx/browser/customtabs/CustomTabColorSchemeParams$Builder; return-object p0 .end method .method public setToolbarCornerRadiusDp(I)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .param p1 # I .annotation build Landroidx/annotation/Dimension; unit = 0x0 .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation if-ltz p1, :cond_0 const/16 v0, 0x10 if-gt p1, v0, :cond_0 iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "androidx.browser.customtabs.extra.TOOLBAR_CORNER_RADIUS_DP" .line 1341 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; return-object p0 .line 1338 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "Invalid value for the cornerRadiusDp argument" invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setTranslateLocale(Ljava/util/Locale;)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 0 .param p1 # Ljava/util/Locale; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1410 invoke-direct {p0, p1}, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->setLanguageTag(Ljava/util/Locale;)V return-object p0 .end method .method public setUrlBarHidingEnabled(Z)Landroidx/browser/customtabs/CustomTabsIntent$Builder; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsIntent$Builder;->mIntent:Landroid/content/Intent; const-string v1, "android.support.customtabs.extra.ENABLE_URLBAR_HIDING" .line 783 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; return-object p0 .end method