// Signature format: 2.0 package android.app.appsearch { public final class AppSearchBatchResult { method @NonNull public java.util.Map> getAll(); method @NonNull public java.util.Map> getFailures(); method @NonNull public java.util.Map getSuccesses(); method public boolean isSuccess(); } public static final class AppSearchBatchResult.Builder { ctor public AppSearchBatchResult.Builder(); method @NonNull public android.app.appsearch.AppSearchBatchResult build(); method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder setFailure(@NonNull KeyType, int, @Nullable String); method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder setResult(@NonNull KeyType, @NonNull android.app.appsearch.AppSearchResult); method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder setSuccess(@NonNull KeyType, @Nullable ValueType); } public class AppSearchManager { method public void createEnterpriseGlobalSearchSession(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void createGlobalSearchSession(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void createSearchSession(@NonNull android.app.appsearch.AppSearchManager.SearchContext, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); } public static final class AppSearchManager.SearchContext { method @NonNull public String getDatabaseName(); } public static final class AppSearchManager.SearchContext.Builder { ctor public AppSearchManager.SearchContext.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchManager.SearchContext build(); } public final class AppSearchResult { method @Nullable public String getErrorMessage(); method public int getResultCode(); method @Nullable public ValueType getResultValue(); method public boolean isSuccess(); method @NonNull public static android.app.appsearch.AppSearchResult newFailedResult(int, @Nullable String); method @NonNull public static android.app.appsearch.AppSearchResult newSuccessfulResult(@Nullable ValueType); field public static final int RESULT_INTERNAL_ERROR = 2; // 0x2 field public static final int RESULT_INVALID_ARGUMENT = 3; // 0x3 field public static final int RESULT_INVALID_SCHEMA = 7; // 0x7 field public static final int RESULT_IO_ERROR = 4; // 0x4 field public static final int RESULT_NOT_FOUND = 6; // 0x6 field public static final int RESULT_OK = 0; // 0x0 field public static final int RESULT_OUT_OF_SPACE = 5; // 0x5 field public static final int RESULT_SECURITY_ERROR = 8; // 0x8 field public static final int RESULT_UNKNOWN_ERROR = 1; // 0x1 } public final class AppSearchSchema implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.List getParentTypes(); method @NonNull public java.util.List getProperties(); method @NonNull public String getSchemaType(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class AppSearchSchema.BooleanPropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { } public static final class AppSearchSchema.BooleanPropertyConfig.Builder { ctor public AppSearchSchema.BooleanPropertyConfig.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder setCardinality(int); } public static final class AppSearchSchema.Builder { ctor public AppSearchSchema.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.Builder addParentType(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.Builder addProperty(@NonNull android.app.appsearch.AppSearchSchema.PropertyConfig); method @NonNull public android.app.appsearch.AppSearchSchema build(); } public static final class AppSearchSchema.BytesPropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { } public static final class AppSearchSchema.BytesPropertyConfig.Builder { ctor public AppSearchSchema.BytesPropertyConfig.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.BytesPropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.BytesPropertyConfig.Builder setCardinality(int); } public static final class AppSearchSchema.DocumentPropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { method @NonNull public java.util.List getIndexableNestedProperties(); method @NonNull public String getSchemaType(); method public boolean shouldIndexNestedProperties(); } public static final class AppSearchSchema.DocumentPropertyConfig.Builder { ctor public AppSearchSchema.DocumentPropertyConfig.Builder(@NonNull String, @NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder addIndexableNestedProperties(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder addIndexableNestedProperties(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder addIndexableNestedPropertyPaths(@NonNull android.app.appsearch.PropertyPath...); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder addIndexableNestedPropertyPaths(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder setCardinality(int); method @NonNull public android.app.appsearch.AppSearchSchema.DocumentPropertyConfig.Builder setShouldIndexNestedProperties(boolean); } public static final class AppSearchSchema.DoublePropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { } public static final class AppSearchSchema.DoublePropertyConfig.Builder { ctor public AppSearchSchema.DoublePropertyConfig.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.DoublePropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.DoublePropertyConfig.Builder setCardinality(int); } public static final class AppSearchSchema.LongPropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { method public int getIndexingType(); field public static final int INDEXING_TYPE_NONE = 0; // 0x0 field public static final int INDEXING_TYPE_RANGE = 1; // 0x1 } public static final class AppSearchSchema.LongPropertyConfig.Builder { ctor public AppSearchSchema.LongPropertyConfig.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.LongPropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.LongPropertyConfig.Builder setCardinality(int); method @NonNull public android.app.appsearch.AppSearchSchema.LongPropertyConfig.Builder setIndexingType(int); } public abstract static class AppSearchSchema.PropertyConfig { method public int getCardinality(); method @NonNull public String getName(); field public static final int CARDINALITY_OPTIONAL = 2; // 0x2 field public static final int CARDINALITY_REPEATED = 1; // 0x1 field public static final int CARDINALITY_REQUIRED = 3; // 0x3 } public static final class AppSearchSchema.StringPropertyConfig extends android.app.appsearch.AppSearchSchema.PropertyConfig { method public int getIndexingType(); method public int getJoinableValueType(); method public int getTokenizerType(); field public static final int INDEXING_TYPE_EXACT_TERMS = 1; // 0x1 field public static final int INDEXING_TYPE_NONE = 0; // 0x0 field public static final int INDEXING_TYPE_PREFIXES = 2; // 0x2 field public static final int JOINABLE_VALUE_TYPE_NONE = 0; // 0x0 field public static final int JOINABLE_VALUE_TYPE_QUALIFIED_ID = 1; // 0x1 field public static final int TOKENIZER_TYPE_NONE = 0; // 0x0 field public static final int TOKENIZER_TYPE_PLAIN = 1; // 0x1 field public static final int TOKENIZER_TYPE_RFC822 = 3; // 0x3 field public static final int TOKENIZER_TYPE_VERBATIM = 2; // 0x2 } public static final class AppSearchSchema.StringPropertyConfig.Builder { ctor public AppSearchSchema.StringPropertyConfig.Builder(@NonNull String); method @NonNull public android.app.appsearch.AppSearchSchema.StringPropertyConfig build(); method @NonNull public android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder setCardinality(int); method @NonNull public android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder setIndexingType(int); method @NonNull public android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder setJoinableValueType(int); method @NonNull public android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder setTokenizerType(int); } public final class AppSearchSession implements java.io.Closeable { method public void close(); method public void getByDocumentId(@NonNull android.app.appsearch.GetByDocumentIdRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback); method public void getNamespaces(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>>); method public void getSchema(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void getStorageInfo(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void put(@NonNull android.app.appsearch.PutDocumentsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback); method public void remove(@NonNull android.app.appsearch.RemoveByDocumentIdRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback); method public void remove(@NonNull String, @NonNull android.app.appsearch.SearchSpec, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void reportUsage(@NonNull android.app.appsearch.ReportUsageRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @NonNull public android.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); method public void searchSuggestion(@NonNull String, @NonNull android.app.appsearch.SearchSuggestionSpec, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>>); method public void setSchema(@NonNull android.app.appsearch.SetSchemaRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); } public interface BatchResultCallback { method public void onResult(@NonNull android.app.appsearch.AppSearchBatchResult); method public default void onSystemError(@Nullable Throwable); } public class EnterpriseGlobalSearchSession { method public void getByDocumentId(@NonNull String, @NonNull String, @NonNull android.app.appsearch.GetByDocumentIdRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback); method public void getSchema(@NonNull String, @NonNull String, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @NonNull public android.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); } public class GenericDocument { ctor protected GenericDocument(@NonNull android.app.appsearch.GenericDocument); method public long getCreationTimestampMillis(); method @NonNull public String getId(); method public static int getMaxIndexedProperties(); method @NonNull public String getNamespace(); method @Nullable public Object getProperty(@NonNull String); method public boolean getPropertyBoolean(@NonNull String); method @Nullable public boolean[] getPropertyBooleanArray(@NonNull String); method @Nullable public byte[] getPropertyBytes(@NonNull String); method @Nullable public byte[][] getPropertyBytesArray(@NonNull String); method @Nullable public android.app.appsearch.GenericDocument getPropertyDocument(@NonNull String); method @Nullable public android.app.appsearch.GenericDocument[] getPropertyDocumentArray(@NonNull String); method public double getPropertyDouble(@NonNull String); method @Nullable public double[] getPropertyDoubleArray(@NonNull String); method public long getPropertyLong(@NonNull String); method @Nullable public long[] getPropertyLongArray(@NonNull String); method @NonNull public java.util.Set getPropertyNames(); method @Nullable public String getPropertyString(@NonNull String); method @Nullable public String[] getPropertyStringArray(@NonNull String); method @NonNull public String getSchemaType(); method public int getScore(); method public long getTtlMillis(); } public static class GenericDocument.Builder { ctor public GenericDocument.Builder(@NonNull String, @NonNull String, @NonNull String); ctor public GenericDocument.Builder(@NonNull android.app.appsearch.GenericDocument); method @NonNull public android.app.appsearch.GenericDocument build(); method @NonNull public BuilderType clearProperty(@NonNull String); method @NonNull public BuilderType setCreationTimestampMillis(long); method @NonNull public BuilderType setId(@NonNull String); method @NonNull public BuilderType setNamespace(@NonNull String); method @NonNull public BuilderType setPropertyBoolean(@NonNull String, @NonNull boolean...); method @NonNull public BuilderType setPropertyBytes(@NonNull String, @NonNull byte[]...); method @NonNull public BuilderType setPropertyDocument(@NonNull String, @NonNull android.app.appsearch.GenericDocument...); method @NonNull public BuilderType setPropertyDouble(@NonNull String, @NonNull double...); method @NonNull public BuilderType setPropertyLong(@NonNull String, @NonNull long...); method @NonNull public BuilderType setPropertyString(@NonNull String, @NonNull java.lang.String...); method @NonNull public BuilderType setSchemaType(@NonNull String); method @NonNull public BuilderType setScore(@IntRange(from=0, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public BuilderType setTtlMillis(long); } public final class GetByDocumentIdRequest implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Set getIds(); method @NonNull public String getNamespace(); method @NonNull public java.util.Map> getProjectionPaths(); method @NonNull public java.util.Map> getProjections(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final String PROJECTION_SCHEMA_TYPE_WILDCARD = "*"; } public static final class GetByDocumentIdRequest.Builder { ctor public GetByDocumentIdRequest.Builder(@NonNull String); method @NonNull public android.app.appsearch.GetByDocumentIdRequest.Builder addIds(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.GetByDocumentIdRequest.Builder addIds(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.GetByDocumentIdRequest.Builder addProjection(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.GetByDocumentIdRequest.Builder addProjectionPaths(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.GetByDocumentIdRequest build(); } public final class GetSchemaResponse implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Map getPubliclyVisibleSchemas(); method @NonNull public java.util.Map>> getRequiredPermissionsForSchemaTypeVisibility(); method @NonNull public java.util.Set getSchemaTypesNotDisplayedBySystem(); method @NonNull public java.util.Map> getSchemaTypesVisibleToConfigs(); method @NonNull public java.util.Map> getSchemaTypesVisibleToPackages(); method @NonNull public java.util.Set getSchemas(); method @IntRange(from=0) public int getVersion(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class GetSchemaResponse.Builder { ctor public GetSchemaResponse.Builder(); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder addSchema(@NonNull android.app.appsearch.AppSearchSchema); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder addSchemaTypeNotDisplayedBySystem(@NonNull String); method @NonNull public android.app.appsearch.GetSchemaResponse build(); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder setPubliclyVisibleSchema(@NonNull String, @NonNull android.app.appsearch.PackageIdentifier); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder setRequiredPermissionsForSchemaTypeVisibility(@NonNull String, @NonNull java.util.Set>); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder setSchemaTypeVisibleToConfigs(@NonNull String, @NonNull java.util.Set); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder setSchemaTypeVisibleToPackages(@NonNull String, @NonNull java.util.Set); method @NonNull public android.app.appsearch.GetSchemaResponse.Builder setVersion(@IntRange(from=0) int); } public class GlobalSearchSession implements java.io.Closeable { method public void close(); method public void getByDocumentId(@NonNull String, @NonNull String, @NonNull android.app.appsearch.GetByDocumentIdRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback); method public void getSchema(@NonNull String, @NonNull String, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method public void registerObserverCallback(@NonNull String, @NonNull android.app.appsearch.observer.ObserverSpec, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.observer.ObserverCallback) throws android.app.appsearch.exceptions.AppSearchException; method public void reportSystemUsage(@NonNull android.app.appsearch.ReportSystemUsageRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @NonNull public android.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec); method public void unregisterObserverCallback(@NonNull String, @NonNull android.app.appsearch.observer.ObserverCallback) throws android.app.appsearch.exceptions.AppSearchException; } public final class JoinSpec implements android.os.Parcelable { method public final int describeContents(); method public int getAggregationScoringStrategy(); method @NonNull public String getChildPropertyExpression(); method public int getMaxJoinedResultCount(); method @NonNull public String getNestedQuery(); method @NonNull public android.app.appsearch.SearchSpec getNestedSearchSpec(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final int AGGREGATION_SCORING_AVG_RANKING_SIGNAL = 3; // 0x3 field public static final int AGGREGATION_SCORING_MAX_RANKING_SIGNAL = 4; // 0x4 field public static final int AGGREGATION_SCORING_MIN_RANKING_SIGNAL = 2; // 0x2 field public static final int AGGREGATION_SCORING_OUTER_RESULT_RANKING_SIGNAL = 0; // 0x0 field public static final int AGGREGATION_SCORING_RESULT_COUNT = 1; // 0x1 field public static final int AGGREGATION_SCORING_SUM_RANKING_SIGNAL = 5; // 0x5 field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class JoinSpec.Builder { ctor public JoinSpec.Builder(@NonNull String); method @NonNull public android.app.appsearch.JoinSpec build(); method @NonNull public android.app.appsearch.JoinSpec.Builder setAggregationScoringStrategy(int); method @NonNull public android.app.appsearch.JoinSpec.Builder setMaxJoinedResultCount(int); method @NonNull public android.app.appsearch.JoinSpec.Builder setNestedSearch(@NonNull String, @NonNull android.app.appsearch.SearchSpec); } public abstract class Migrator { ctor public Migrator(); method @NonNull @WorkerThread public abstract android.app.appsearch.GenericDocument onDowngrade(int, int, @NonNull android.app.appsearch.GenericDocument); method @NonNull @WorkerThread public abstract android.app.appsearch.GenericDocument onUpgrade(int, int, @NonNull android.app.appsearch.GenericDocument); method public abstract boolean shouldMigrate(int, int); } public class PackageIdentifier { ctor public PackageIdentifier(@NonNull String, @NonNull byte[]); method @NonNull public String getPackageName(); method @NonNull public byte[] getSha256Certificate(); } public class PropertyPath implements java.lang.Iterable { ctor public PropertyPath(@NonNull java.util.List); ctor public PropertyPath(@NonNull String); method @NonNull public android.app.appsearch.PropertyPath.PathSegment get(int); method @NonNull public java.util.Iterator iterator(); method public int size(); } public static class PropertyPath.PathSegment { method @NonNull public static android.app.appsearch.PropertyPath.PathSegment create(@NonNull String, int); method @NonNull public static android.app.appsearch.PropertyPath.PathSegment create(@NonNull String); method public int getPropertyIndex(); method @NonNull public String getPropertyName(); field public static final int NON_REPEATED_CARDINALITY = -1; // 0xffffffff } public final class PutDocumentsRequest { method @NonNull public java.util.List getGenericDocuments(); method @NonNull public java.util.List getTakenActionGenericDocuments(); } public static final class PutDocumentsRequest.Builder { ctor public PutDocumentsRequest.Builder(); method @NonNull public android.app.appsearch.PutDocumentsRequest.Builder addGenericDocuments(@NonNull android.app.appsearch.GenericDocument...); method @NonNull public android.app.appsearch.PutDocumentsRequest.Builder addGenericDocuments(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.PutDocumentsRequest.Builder addTakenActionGenericDocuments(@NonNull android.app.appsearch.GenericDocument...) throws android.app.appsearch.exceptions.AppSearchException; method @NonNull public android.app.appsearch.PutDocumentsRequest.Builder addTakenActionGenericDocuments(@NonNull java.util.Collection) throws android.app.appsearch.exceptions.AppSearchException; method @NonNull public android.app.appsearch.PutDocumentsRequest build(); } public final class RemoveByDocumentIdRequest implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Set getIds(); method @NonNull public String getNamespace(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class RemoveByDocumentIdRequest.Builder { ctor public RemoveByDocumentIdRequest.Builder(@NonNull String); method @NonNull public android.app.appsearch.RemoveByDocumentIdRequest.Builder addIds(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.RemoveByDocumentIdRequest.Builder addIds(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.RemoveByDocumentIdRequest build(); } public final class ReportSystemUsageRequest { method @NonNull public String getDatabaseName(); method @NonNull public String getDocumentId(); method @NonNull public String getNamespace(); method @NonNull public String getPackageName(); method public long getUsageTimestampMillis(); } public static final class ReportSystemUsageRequest.Builder { ctor public ReportSystemUsageRequest.Builder(@NonNull String, @NonNull String, @NonNull String, @NonNull String); method @NonNull public android.app.appsearch.ReportSystemUsageRequest build(); method @NonNull public android.app.appsearch.ReportSystemUsageRequest.Builder setUsageTimestampMillis(long); } public final class ReportUsageRequest implements android.os.Parcelable { method public final int describeContents(); method @NonNull public String getDocumentId(); method @NonNull public String getNamespace(); method public long getUsageTimestampMillis(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class ReportUsageRequest.Builder { ctor public ReportUsageRequest.Builder(@NonNull String, @NonNull String); method @NonNull public android.app.appsearch.ReportUsageRequest build(); method @NonNull public android.app.appsearch.ReportUsageRequest.Builder setUsageTimestampMillis(long); } public final class SchemaVisibilityConfig implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.List getAllowedPackages(); method @Nullable public android.app.appsearch.PackageIdentifier getPubliclyVisibleTargetPackage(); method @NonNull public java.util.Set> getRequiredPermissions(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class SchemaVisibilityConfig.Builder { ctor public SchemaVisibilityConfig.Builder(); method @NonNull public android.app.appsearch.SchemaVisibilityConfig.Builder addAllowedPackage(@NonNull android.app.appsearch.PackageIdentifier); method @NonNull public android.app.appsearch.SchemaVisibilityConfig.Builder addRequiredPermissions(@NonNull java.util.Set); method @NonNull public android.app.appsearch.SchemaVisibilityConfig build(); method @NonNull public android.app.appsearch.SchemaVisibilityConfig.Builder clearAllowedPackages(); method @NonNull public android.app.appsearch.SchemaVisibilityConfig.Builder clearRequiredPermissions(); method @NonNull public android.app.appsearch.SchemaVisibilityConfig.Builder setPubliclyVisibleTargetPackage(@Nullable android.app.appsearch.PackageIdentifier); } public final class SearchResult implements android.os.Parcelable { method public final int describeContents(); method @NonNull public String getDatabaseName(); method @NonNull public android.app.appsearch.GenericDocument getGenericDocument(); method @NonNull public java.util.List getJoinedResults(); method @NonNull public java.util.List getMatchInfos(); method @NonNull public String getPackageName(); method public double getRankingSignal(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class SearchResult.Builder { ctor public SearchResult.Builder(@NonNull String, @NonNull String); method @NonNull public android.app.appsearch.SearchResult.Builder addJoinedResult(@NonNull android.app.appsearch.SearchResult); method @NonNull public android.app.appsearch.SearchResult.Builder addMatchInfo(@NonNull android.app.appsearch.SearchResult.MatchInfo); method @NonNull public android.app.appsearch.SearchResult build(); method @NonNull public android.app.appsearch.SearchResult.Builder setGenericDocument(@NonNull android.app.appsearch.GenericDocument); method @NonNull public android.app.appsearch.SearchResult.Builder setRankingSignal(double); } public static final class SearchResult.MatchInfo implements android.os.Parcelable { method public final int describeContents(); method @NonNull public CharSequence getExactMatch(); method @NonNull public android.app.appsearch.SearchResult.MatchRange getExactMatchRange(); method @NonNull public String getFullText(); method @NonNull public String getPropertyPath(); method @NonNull public android.app.appsearch.PropertyPath getPropertyPathObject(); method @NonNull public CharSequence getSnippet(); method @NonNull public android.app.appsearch.SearchResult.MatchRange getSnippetRange(); method @NonNull public CharSequence getSubmatch(); method @NonNull public android.app.appsearch.SearchResult.MatchRange getSubmatchRange(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class SearchResult.MatchInfo.Builder { ctor public SearchResult.MatchInfo.Builder(@NonNull String); method @NonNull public android.app.appsearch.SearchResult.MatchInfo build(); method @NonNull public android.app.appsearch.SearchResult.MatchInfo.Builder setExactMatchRange(@NonNull android.app.appsearch.SearchResult.MatchRange); method @NonNull public android.app.appsearch.SearchResult.MatchInfo.Builder setSnippetRange(@NonNull android.app.appsearch.SearchResult.MatchRange); method @NonNull public android.app.appsearch.SearchResult.MatchInfo.Builder setSubmatchRange(@NonNull android.app.appsearch.SearchResult.MatchRange); } public static final class SearchResult.MatchRange { ctor public SearchResult.MatchRange(int, int); method public int getEnd(); method public int getStart(); } public class SearchResults implements java.io.Closeable { method public void close(); method public void getNextPage(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>>); } public final class SearchSpec implements android.os.Parcelable { method public final int describeContents(); method @NonNull public String getAdvancedRankingExpression(); method @NonNull public java.util.List getFilterNamespaces(); method @NonNull public java.util.List getFilterPackageNames(); method @NonNull public java.util.Map> getFilterProperties(); method @NonNull public java.util.List getFilterSchemas(); method @Nullable public android.app.appsearch.JoinSpec getJoinSpec(); method public int getMaxSnippetSize(); method public int getOrder(); method @NonNull public java.util.Map> getProjectionPaths(); method @NonNull public java.util.Map> getProjections(); method @NonNull public java.util.Map> getPropertyWeightPaths(); method @NonNull public java.util.Map> getPropertyWeights(); method public int getRankingStrategy(); method public int getResultCountPerPage(); method public int getResultGroupingLimit(); method public int getResultGroupingTypeFlags(); method @Nullable public String getSearchSourceLogTag(); method public int getSnippetCount(); method public int getSnippetCountPerProperty(); method public int getTermMatch(); method public boolean isListFilterHasPropertyFunctionEnabled(); method public boolean isListFilterQueryLanguageEnabled(); method public boolean isNumericSearchEnabled(); method public boolean isVerbatimSearchEnabled(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int GROUPING_TYPE_PER_NAMESPACE = 2; // 0x2 field public static final int GROUPING_TYPE_PER_PACKAGE = 1; // 0x1 field public static final int GROUPING_TYPE_PER_SCHEMA = 4; // 0x4 field public static final int ORDER_ASCENDING = 1; // 0x1 field public static final int ORDER_DESCENDING = 0; // 0x0 field @Deprecated public static final String PROJECTION_SCHEMA_TYPE_WILDCARD = "*"; field public static final int RANKING_STRATEGY_ADVANCED_RANKING_EXPRESSION = 9; // 0x9 field public static final int RANKING_STRATEGY_CREATION_TIMESTAMP = 2; // 0x2 field public static final int RANKING_STRATEGY_DOCUMENT_SCORE = 1; // 0x1 field public static final int RANKING_STRATEGY_JOIN_AGGREGATE_SCORE = 8; // 0x8 field public static final int RANKING_STRATEGY_NONE = 0; // 0x0 field public static final int RANKING_STRATEGY_RELEVANCE_SCORE = 3; // 0x3 field public static final int RANKING_STRATEGY_SYSTEM_USAGE_COUNT = 6; // 0x6 field public static final int RANKING_STRATEGY_SYSTEM_USAGE_LAST_USED_TIMESTAMP = 7; // 0x7 field public static final int RANKING_STRATEGY_USAGE_COUNT = 4; // 0x4 field public static final int RANKING_STRATEGY_USAGE_LAST_USED_TIMESTAMP = 5; // 0x5 field public static final String SCHEMA_TYPE_WILDCARD = "*"; field public static final int TERM_MATCH_EXACT_ONLY = 1; // 0x1 field public static final int TERM_MATCH_PREFIX = 2; // 0x2 } public static final class SearchSpec.Builder { ctor public SearchSpec.Builder(); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterNamespaces(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterNamespaces(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterPackageNames(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterPackageNames(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterProperties(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterPropertyPaths(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterSchemas(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSpec.Builder addFilterSchemas(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addProjection(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec.Builder addProjectionPaths(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSpec build(); method @NonNull public android.app.appsearch.SearchSpec.Builder setJoinSpec(@NonNull android.app.appsearch.JoinSpec); method @NonNull public android.app.appsearch.SearchSpec.Builder setListFilterHasPropertyFunctionEnabled(boolean); method @NonNull public android.app.appsearch.SearchSpec.Builder setListFilterQueryLanguageEnabled(boolean); method @NonNull public android.app.appsearch.SearchSpec.Builder setMaxSnippetSize(@IntRange(from=0, to=0x2710) int); method @NonNull public android.app.appsearch.SearchSpec.Builder setNumericSearchEnabled(boolean); method @NonNull public android.app.appsearch.SearchSpec.Builder setOrder(int); method @NonNull public android.app.appsearch.SearchSpec.Builder setPropertyWeightPaths(@NonNull String, @NonNull java.util.Map); method @NonNull public android.app.appsearch.SearchSpec.Builder setPropertyWeights(@NonNull String, @NonNull java.util.Map); method @NonNull public android.app.appsearch.SearchSpec.Builder setRankingStrategy(int); method @NonNull public android.app.appsearch.SearchSpec.Builder setRankingStrategy(@NonNull String); method @NonNull public android.app.appsearch.SearchSpec.Builder setResultCountPerPage(@IntRange(from=0, to=0x2710) int); method @NonNull public android.app.appsearch.SearchSpec.Builder setResultGrouping(int, int); method @NonNull public android.app.appsearch.SearchSpec.Builder setSearchSourceLogTag(@NonNull String); method @NonNull public android.app.appsearch.SearchSpec.Builder setSnippetCount(@IntRange(from=0, to=0x2710) int); method @NonNull public android.app.appsearch.SearchSpec.Builder setSnippetCountPerProperty(@IntRange(from=0, to=0x2710) int); method @NonNull public android.app.appsearch.SearchSpec.Builder setTermMatch(int); method @NonNull public android.app.appsearch.SearchSpec.Builder setVerbatimSearchEnabled(boolean); } public final class SearchSuggestionResult implements android.os.Parcelable { method public final int describeContents(); method @NonNull public String getSuggestedResult(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class SearchSuggestionResult.Builder { ctor public SearchSuggestionResult.Builder(); method @NonNull public android.app.appsearch.SearchSuggestionResult build(); method @NonNull public android.app.appsearch.SearchSuggestionResult.Builder setSuggestedResult(@NonNull String); } public final class SearchSuggestionSpec implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Map> getFilterDocumentIds(); method @NonNull public java.util.List getFilterNamespaces(); method @NonNull public java.util.Map> getFilterProperties(); method @NonNull public java.util.List getFilterSchemas(); method public int getMaximumResultCount(); method public int getRankingStrategy(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT = 0; // 0x0 field public static final int SUGGESTION_RANKING_STRATEGY_NONE = 2; // 0x2 field public static final int SUGGESTION_RANKING_STRATEGY_TERM_FREQUENCY = 1; // 0x1 } public static final class SearchSuggestionSpec.Builder { ctor public SearchSuggestionSpec.Builder(@IntRange(from=1) int); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterDocumentIds(@NonNull String, @NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterDocumentIds(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterNamespaces(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterNamespaces(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterProperties(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterPropertyPaths(@NonNull String, @NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterSchemas(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder addFilterSchemas(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SearchSuggestionSpec build(); method @NonNull public android.app.appsearch.SearchSuggestionSpec.Builder setRankingStrategy(int); } public final class SetSchemaRequest { method @NonNull public java.util.Map getMigrators(); method @NonNull public java.util.Map getPubliclyVisibleSchemas(); method @NonNull public java.util.Map>> getRequiredPermissionsForSchemaTypeVisibility(); method @NonNull public java.util.Set getSchemas(); method @NonNull public java.util.Set getSchemasNotDisplayedBySystem(); method @NonNull public java.util.Map> getSchemasVisibleToConfigs(); method @NonNull public java.util.Map> getSchemasVisibleToPackages(); method @IntRange(from=1) public int getVersion(); method public boolean isForceOverride(); field public static final int READ_ASSISTANT_APP_SEARCH_DATA = 6; // 0x6 field public static final int READ_CALENDAR = 2; // 0x2 field public static final int READ_CONTACTS = 3; // 0x3 field public static final int READ_EXTERNAL_STORAGE = 4; // 0x4 field public static final int READ_HOME_APP_SEARCH_DATA = 5; // 0x5 field public static final int READ_SMS = 1; // 0x1 } public static final class SetSchemaRequest.Builder { ctor public SetSchemaRequest.Builder(); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder addRequiredPermissionsForSchemaTypeVisibility(@NonNull String, @NonNull java.util.Set); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder addSchemaTypeVisibleToConfig(@NonNull String, @NonNull android.app.appsearch.SchemaVisibilityConfig); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder addSchemas(@NonNull android.app.appsearch.AppSearchSchema...); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder addSchemas(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SetSchemaRequest build(); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder clearRequiredPermissionsForSchemaTypeVisibility(@NonNull String); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder clearSchemaTypeVisibleToConfigs(@NonNull String); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setForceOverride(boolean); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setMigrator(@NonNull String, @NonNull android.app.appsearch.Migrator); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setMigrators(@NonNull java.util.Map); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setPubliclyVisibleSchema(@NonNull String, @Nullable android.app.appsearch.PackageIdentifier); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setSchemaTypeDisplayedBySystem(@NonNull String, boolean); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setSchemaTypeVisibilityForPackage(@NonNull String, boolean, @NonNull android.app.appsearch.PackageIdentifier); method @NonNull public android.app.appsearch.SetSchemaRequest.Builder setVersion(@IntRange(from=1) int); } public final class SetSchemaResponse implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Set getDeletedTypes(); method @NonNull public java.util.Set getIncompatibleTypes(); method @NonNull public java.util.Set getMigratedTypes(); method @NonNull public java.util.List getMigrationFailures(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class SetSchemaResponse.Builder { ctor public SetSchemaResponse.Builder(); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addDeletedType(@NonNull String); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addDeletedTypes(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addIncompatibleType(@NonNull String); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addIncompatibleTypes(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigratedType(@NonNull String); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigratedTypes(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigrationFailure(@NonNull android.app.appsearch.SetSchemaResponse.MigrationFailure); method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigrationFailures(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.SetSchemaResponse build(); } public static class SetSchemaResponse.MigrationFailure implements android.os.Parcelable { ctor public SetSchemaResponse.MigrationFailure(@NonNull String, @NonNull String, @NonNull String, @NonNull android.app.appsearch.AppSearchResult); method public final int describeContents(); method @NonNull public android.app.appsearch.AppSearchResult getAppSearchResult(); method @NonNull public String getDocumentId(); method @NonNull public String getNamespace(); method @NonNull public String getSchemaType(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class StorageInfo implements android.os.Parcelable { method public final int describeContents(); method public int getAliveDocumentsCount(); method public int getAliveNamespacesCount(); method public long getSizeBytes(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class StorageInfo.Builder { ctor public StorageInfo.Builder(); method @NonNull public android.app.appsearch.StorageInfo build(); method @NonNull public android.app.appsearch.StorageInfo.Builder setAliveDocumentsCount(int); method @NonNull public android.app.appsearch.StorageInfo.Builder setAliveNamespacesCount(int); method @NonNull public android.app.appsearch.StorageInfo.Builder setSizeBytes(long); } } package android.app.appsearch.exceptions { public class AppSearchException extends java.lang.Exception { ctor public AppSearchException(int); ctor public AppSearchException(int, @Nullable String); ctor public AppSearchException(int, @Nullable String, @Nullable Throwable); method public int getResultCode(); method @NonNull public android.app.appsearch.AppSearchResult toAppSearchResult(); } } package android.app.appsearch.observer { public final class DocumentChangeInfo { ctor public DocumentChangeInfo(@NonNull String, @NonNull String, @NonNull String, @NonNull String, @NonNull java.util.Set); method @NonNull public java.util.Set getChangedDocumentIds(); method @NonNull public String getDatabaseName(); method @NonNull public String getNamespace(); method @NonNull public String getPackageName(); method @NonNull public String getSchemaName(); } public interface ObserverCallback { method public void onDocumentChanged(@NonNull android.app.appsearch.observer.DocumentChangeInfo); method public void onSchemaChanged(@NonNull android.app.appsearch.observer.SchemaChangeInfo); } public final class ObserverSpec implements android.os.Parcelable { method public final int describeContents(); method @NonNull public java.util.Set getFilterSchemas(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class ObserverSpec.Builder { ctor public ObserverSpec.Builder(); method @NonNull public android.app.appsearch.observer.ObserverSpec.Builder addFilterSchemas(@NonNull java.lang.String...); method @NonNull public android.app.appsearch.observer.ObserverSpec.Builder addFilterSchemas(@NonNull java.util.Collection); method @NonNull public android.app.appsearch.observer.ObserverSpec build(); } public final class SchemaChangeInfo { ctor public SchemaChangeInfo(@NonNull String, @NonNull String, @NonNull java.util.Set); method @NonNull public java.util.Set getChangedSchemaNames(); method @NonNull public String getDatabaseName(); method @NonNull public String getPackageName(); } } package android.app.appsearch.util { public class DocumentIdUtil { method @NonNull public static String createQualifiedId(@NonNull String, @NonNull String, @NonNull android.app.appsearch.GenericDocument); method @NonNull public static String createQualifiedId(@NonNull String, @NonNull String, @NonNull String, @NonNull String); } }