diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-10-21 12:02:23 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 06:32:23 +0000 |
commit | df764932f7fdddea9cea5937c6053a95797d35df (patch) | |
tree | a24e108f9584c60b4f6e18717af4269cbb49c91b /autofill-parser | |
parent | 7f90d827ae436fe74ce5d3cabb9f1b091462b657 (diff) |
Migrate to Metalava for validating API (#2195)
Diffstat (limited to 'autofill-parser')
-rw-r--r-- | autofill-parser/api.txt | 154 | ||||
-rw-r--r-- | autofill-parser/api/autofill-parser.api | 126 |
2 files changed, 154 insertions, 126 deletions
diff --git a/autofill-parser/api.txt b/autofill-parser/api.txt new file mode 100644 index 00000000..16aa5931 --- /dev/null +++ b/autofill-parser/api.txt @@ -0,0 +1,154 @@ +// Signature format: 4.0 +package com.github.androidpasswordstore.autofillparser { + + public enum AutofillAction { + method public static com.github.androidpasswordstore.autofillparser.AutofillAction valueOf(String name) throws java.lang.IllegalArgumentException; + method public static com.github.androidpasswordstore.autofillparser.AutofillAction[] values(); + enum_constant public static final com.github.androidpasswordstore.autofillparser.AutofillAction FillOtpFromSms; + enum_constant public static final com.github.androidpasswordstore.autofillparser.AutofillAction Generate; + enum_constant public static final com.github.androidpasswordstore.autofillparser.AutofillAction Match; + enum_constant public static final com.github.androidpasswordstore.autofillparser.AutofillAction Search; + } + + public final class AutofillHelperKt { + method public static String computeCertificatesHash(android.content.Context context, String appPackage); + } + + @RequiresApi(android.os.Build.VERSION_CODES.O) public abstract sealed class AutofillScenario<T> { + method public final java.util.List<T> getFieldsToSave(); + method public final boolean getHasFieldsToSave(); + method public final boolean getHasPasswordFieldsToSave(); + method public final boolean getHasUsername(); + method public abstract java.util.List<T> getPasswordFieldsToSave(); + method public abstract T? getUsername(); + method public final boolean hasFieldsToFillOn(com.github.androidpasswordstore.autofillparser.AutofillAction action); + property public final java.util.List<T> fieldsToSave; + property public final boolean hasFieldsToSave; + property public final boolean hasPasswordFieldsToSave; + property public final boolean hasUsername; + property public abstract java.util.List<T> passwordFieldsToSave; + property public abstract T? username; + field public static final com.github.androidpasswordstore.autofillparser.AutofillScenario.Companion Companion; + } + + public static final class AutofillScenario.Companion { + method @Deprecated public com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId>? fromBundle(android.os.Bundle clientState); + method public com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId>? fromClientState(android.os.Bundle clientState); + } + + public final class AutofillScenarioKt { + method @RequiresApi(android.os.Build.VERSION_CODES.O) public static void fillWithAutofillId(android.service.autofill.Dataset.Builder, com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId> scenario, com.github.androidpasswordstore.autofillparser.AutofillAction action, com.github.androidpasswordstore.autofillparser.Credentials? credentials); + method @RequiresApi(android.os.Build.VERSION_CODES.O) public static String? getPasswordValue(com.github.androidpasswordstore.autofillparser.AutofillScenario<? extends android.app.assist.AssistStructure.ViewNode>); + method @RequiresApi(android.os.Build.VERSION_CODES.O) public static String? getUsernameValue(com.github.androidpasswordstore.autofillparser.AutofillScenario<? extends android.app.assist.AssistStructure.ViewNode>); + method @RequiresApi(android.os.Build.VERSION_CODES.O) public static com.github.androidpasswordstore.autofillparser.AutofillScenario<android.app.assist.AssistStructure.ViewNode>? recoverNodes(com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId>, android.app.assist.AssistStructure structure); + } + + public final class AutofillStrategyDslKt { + } + + public final class AutofillStrategyKt { + } + + public enum BrowserAutofillSupportLevel { + method public static com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel valueOf(String name) throws java.lang.IllegalArgumentException; + method public static com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel[] values(); + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel FlakyFill; + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel GeneralFill; + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel GeneralFillAndSave; + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel None; + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel PasswordFill; + enum_constant public static final com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel PasswordFillAndSaveIfNoAccessibility; + } + + public final class Credentials { + ctor public Credentials(String? username, String? password, String? otp); + method public String? component1(); + method public String? component2(); + method public String? component3(); + method public com.github.androidpasswordstore.autofillparser.Credentials copy(String? username, String? password, String? otp); + method public String? getOtp(); + method public String? getPassword(); + method public String? getUsername(); + property public final String? otp; + property public final String? password; + property public final String? username; + } + + public final class FeatureAndTrustDetectionKt { + method @RequiresApi(android.os.Build.VERSION_CODES.O) public static java.util.List<kotlin.Pair<java.lang.String,com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel>> getInstalledBrowsersWithAutofillSupportLevel(android.content.Context context); + } + + @RequiresApi(android.os.Build.VERSION_CODES.O) public final class FillableForm { + method public com.github.androidpasswordstore.autofillparser.FormOrigin getFormOrigin(); + method public java.util.List<android.view.autofill.AutofillId> getIgnoredIds(); + method public Integer? getSaveFlags(); + method public com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId> getScenario(); + method public android.os.Bundle toClientState(); + property public final com.github.androidpasswordstore.autofillparser.FormOrigin formOrigin; + property public final java.util.List<android.view.autofill.AutofillId> ignoredIds; + property public final Integer? saveFlags; + property public final com.github.androidpasswordstore.autofillparser.AutofillScenario<android.view.autofill.AutofillId> scenario; + field public static final com.github.androidpasswordstore.autofillparser.FillableForm.Companion Companion; + } + + public static final class FillableForm.Companion { + method public com.github.androidpasswordstore.autofillparser.FillableForm? parseAssistStructure(android.content.Context context, android.app.assist.AssistStructure structure, boolean isManualRequest, optional kotlin.sequences.Sequence<java.lang.String> customSuffixes); + } + + @RequiresApi(android.os.Build.VERSION_CODES.O) public final class FixedSaveCallback { + ctor public FixedSaveCallback(android.content.Context context, android.service.autofill.SaveCallback callback); + method public void onFailure(CharSequence message); + method public void onSuccess(android.content.IntentSender intentSender); + } + + public abstract sealed class FormOrigin { + method public String getIdentifier(); + method public final String getPrettyIdentifier(android.content.Context context, optional boolean untrusted); + method public final android.os.Bundle toBundle(); + property public String identifier; + field public static final com.github.androidpasswordstore.autofillparser.FormOrigin.Companion Companion; + } + + public static final class FormOrigin.App extends com.github.androidpasswordstore.autofillparser.FormOrigin { + ctor public FormOrigin.App(String identifier); + method public String component1(); + method public com.github.androidpasswordstore.autofillparser.FormOrigin.App copy(String identifier); + property public String identifier; + } + + public static final class FormOrigin.Companion { + method public com.github.androidpasswordstore.autofillparser.FormOrigin? fromBundle(android.os.Bundle bundle); + } + + public static final class FormOrigin.Web extends com.github.androidpasswordstore.autofillparser.FormOrigin { + ctor public FormOrigin.Web(String identifier); + method public String component1(); + method public com.github.androidpasswordstore.autofillparser.FormOrigin.Web copy(String identifier); + property public String identifier; + } + + public final class PublicSuffixListCacheKt { + method public static void cachePublicSuffixList(android.content.Context context); + } + +} + +package mozilla.components.lib.publicsuffixlist { + + public final class PublicSuffixListLoaderKt { + } + + public final class PublicSuffixListLoaderTest { + ctor public PublicSuffixListLoaderTest(); + method public void testLoadingBundledPublicSuffixList(); + } + +} + +package mozilla.components.lib.publicsuffixlist.ext { + + public final class ByteArrayKt { + } + +} + diff --git a/autofill-parser/api/autofill-parser.api b/autofill-parser/api/autofill-parser.api deleted file mode 100644 index 8ce4b41c..00000000 --- a/autofill-parser/api/autofill-parser.api +++ /dev/null @@ -1,126 +0,0 @@ -public final class com/github/androidpasswordstore/autofillparser/AutofillAction : java/lang/Enum { - public static final field FillOtpFromSms Lcom/github/androidpasswordstore/autofillparser/AutofillAction; - public static final field Generate Lcom/github/androidpasswordstore/autofillparser/AutofillAction; - public static final field Match Lcom/github/androidpasswordstore/autofillparser/AutofillAction; - public static final field Search Lcom/github/androidpasswordstore/autofillparser/AutofillAction; - public static fun valueOf (Ljava/lang/String;)Lcom/github/androidpasswordstore/autofillparser/AutofillAction; - public static fun values ()[Lcom/github/androidpasswordstore/autofillparser/AutofillAction; -} - -public final class com/github/androidpasswordstore/autofillparser/AutofillHelperKt { - public static final fun computeCertificatesHash (Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; -} - -public abstract class com/github/androidpasswordstore/autofillparser/AutofillScenario { - public static final field Companion Lcom/github/androidpasswordstore/autofillparser/AutofillScenario$Companion; - public final fun getFieldsToSave ()Ljava/util/List; - public final fun getHasFieldsToSave ()Z - public final fun getHasPasswordFieldsToSave ()Z - public final fun getHasUsername ()Z - public abstract fun getPasswordFieldsToSave ()Ljava/util/List; - public abstract fun getUsername ()Ljava/lang/Object; - public final fun hasFieldsToFillOn (Lcom/github/androidpasswordstore/autofillparser/AutofillAction;)Z -} - -public final class com/github/androidpasswordstore/autofillparser/AutofillScenario$Companion { - public final fun fromBundle (Landroid/os/Bundle;)Lcom/github/androidpasswordstore/autofillparser/AutofillScenario; - public final fun fromClientState (Landroid/os/Bundle;)Lcom/github/androidpasswordstore/autofillparser/AutofillScenario; -} - -public final class com/github/androidpasswordstore/autofillparser/AutofillScenarioKt { - public static final fun fillWithAutofillId (Landroid/service/autofill/Dataset$Builder;Lcom/github/androidpasswordstore/autofillparser/AutofillScenario;Lcom/github/androidpasswordstore/autofillparser/AutofillAction;Lcom/github/androidpasswordstore/autofillparser/Credentials;)V - public static final fun getPasswordValue (Lcom/github/androidpasswordstore/autofillparser/AutofillScenario;)Ljava/lang/String; - public static final fun getUsernameValue (Lcom/github/androidpasswordstore/autofillparser/AutofillScenario;)Ljava/lang/String; - public static final fun recoverNodes (Lcom/github/androidpasswordstore/autofillparser/AutofillScenario;Landroid/app/assist/AssistStructure;)Lcom/github/androidpasswordstore/autofillparser/AutofillScenario; -} - -public final class com/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel : java/lang/Enum { - public static final field FlakyFill Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static final field GeneralFill Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static final field GeneralFillAndSave Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static final field None Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static final field PasswordFill Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static final field PasswordFillAndSaveIfNoAccessibility Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static fun valueOf (Ljava/lang/String;)Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; - public static fun values ()[Lcom/github/androidpasswordstore/autofillparser/BrowserAutofillSupportLevel; -} - -public final class com/github/androidpasswordstore/autofillparser/Credentials { - public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/androidpasswordstore/autofillparser/Credentials; - public static synthetic fun copy$default (Lcom/github/androidpasswordstore/autofillparser/Credentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/androidpasswordstore/autofillparser/Credentials; - public fun equals (Ljava/lang/Object;)Z - public final fun getOtp ()Ljava/lang/String; - public final fun getPassword ()Ljava/lang/String; - public final fun getUsername ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetectionKt { - public static final fun getInstalledBrowsersWithAutofillSupportLevel (Landroid/content/Context;)Ljava/util/List; -} - -public final class com/github/androidpasswordstore/autofillparser/FillableForm { - public static final field Companion Lcom/github/androidpasswordstore/autofillparser/FillableForm$Companion; - public synthetic fun <init> (Lcom/github/androidpasswordstore/autofillparser/FormOrigin;Lcom/github/androidpasswordstore/autofillparser/AutofillScenario;Ljava/util/List;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun getFormOrigin ()Lcom/github/androidpasswordstore/autofillparser/FormOrigin; - public final fun getIgnoredIds ()Ljava/util/List; - public final fun getSaveFlags ()Ljava/lang/Integer; - public final fun getScenario ()Lcom/github/androidpasswordstore/autofillparser/AutofillScenario; - public final fun toClientState ()Landroid/os/Bundle; -} - -public final class com/github/androidpasswordstore/autofillparser/FillableForm$Companion { - public final fun parseAssistStructure (Landroid/content/Context;Landroid/app/assist/AssistStructure;ZLkotlin/sequences/Sequence;)Lcom/github/androidpasswordstore/autofillparser/FillableForm; - public static synthetic fun parseAssistStructure$default (Lcom/github/androidpasswordstore/autofillparser/FillableForm$Companion;Landroid/content/Context;Landroid/app/assist/AssistStructure;ZLkotlin/sequences/Sequence;ILjava/lang/Object;)Lcom/github/androidpasswordstore/autofillparser/FillableForm; -} - -public final class com/github/androidpasswordstore/autofillparser/FixedSaveCallback { - public fun <init> (Landroid/content/Context;Landroid/service/autofill/SaveCallback;)V - public final fun onFailure (Ljava/lang/CharSequence;)V - public final fun onSuccess (Landroid/content/IntentSender;)V -} - -public abstract class com/github/androidpasswordstore/autofillparser/FormOrigin { - public static final field Companion Lcom/github/androidpasswordstore/autofillparser/FormOrigin$Companion; - public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun getIdentifier ()Ljava/lang/String; - public final fun getPrettyIdentifier (Landroid/content/Context;Z)Ljava/lang/String; - public static synthetic fun getPrettyIdentifier$default (Lcom/github/androidpasswordstore/autofillparser/FormOrigin;Landroid/content/Context;ZILjava/lang/Object;)Ljava/lang/String; - public final fun toBundle ()Landroid/os/Bundle; -} - -public final class com/github/androidpasswordstore/autofillparser/FormOrigin$App : com/github/androidpasswordstore/autofillparser/FormOrigin { - public fun <init> (Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;)Lcom/github/androidpasswordstore/autofillparser/FormOrigin$App; - public static synthetic fun copy$default (Lcom/github/androidpasswordstore/autofillparser/FormOrigin$App;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/androidpasswordstore/autofillparser/FormOrigin$App; - public fun equals (Ljava/lang/Object;)Z - public fun getIdentifier ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class com/github/androidpasswordstore/autofillparser/FormOrigin$Companion { - public final fun fromBundle (Landroid/os/Bundle;)Lcom/github/androidpasswordstore/autofillparser/FormOrigin; -} - -public final class com/github/androidpasswordstore/autofillparser/FormOrigin$Web : com/github/androidpasswordstore/autofillparser/FormOrigin { - public fun <init> (Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;)Lcom/github/androidpasswordstore/autofillparser/FormOrigin$Web; - public static synthetic fun copy$default (Lcom/github/androidpasswordstore/autofillparser/FormOrigin$Web;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/androidpasswordstore/autofillparser/FormOrigin$Web; - public fun equals (Ljava/lang/Object;)Z - public fun getIdentifier ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class com/github/androidpasswordstore/autofillparser/PublicSuffixListCacheKt { - public static final fun cachePublicSuffixList (Landroid/content/Context;)V -} - |