You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
461 lines
29 KiB
461 lines
29 KiB
// Signature format: 2.0
|
|
package android.app.appsearch {
|
|
|
|
public final class AppSearchBatchResult<KeyType, ValueType> {
|
|
method @NonNull public java.util.Map<KeyType,android.app.appsearch.AppSearchResult<ValueType>> getAll();
|
|
method @NonNull public java.util.Map<KeyType,android.app.appsearch.AppSearchResult<ValueType>> getFailures();
|
|
method @NonNull public java.util.Map<KeyType,ValueType> getSuccesses();
|
|
method public boolean isSuccess();
|
|
}
|
|
|
|
public static final class AppSearchBatchResult.Builder<KeyType, ValueType> {
|
|
ctor public AppSearchBatchResult.Builder();
|
|
method @NonNull public android.app.appsearch.AppSearchBatchResult<KeyType,ValueType> build();
|
|
method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder<KeyType,ValueType> setFailure(@NonNull KeyType, int, @Nullable String);
|
|
method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder<KeyType,ValueType> setResult(@NonNull KeyType, @NonNull android.app.appsearch.AppSearchResult<ValueType>);
|
|
method @NonNull public android.app.appsearch.AppSearchBatchResult.Builder<KeyType,ValueType> setSuccess(@NonNull KeyType, @Nullable ValueType);
|
|
}
|
|
|
|
public class AppSearchManager {
|
|
method public void createGlobalSearchSession(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.GlobalSearchSession>>);
|
|
method public void createSearchSession(@NonNull android.app.appsearch.AppSearchManager.SearchContext, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.AppSearchSession>>);
|
|
}
|
|
|
|
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<ValueType> {
|
|
method @Nullable public String getErrorMessage();
|
|
method public int getResultCode();
|
|
method @Nullable public ValueType getResultValue();
|
|
method public boolean isSuccess();
|
|
method @NonNull public static <ValueType> android.app.appsearch.AppSearchResult<ValueType> newFailedResult(int, @Nullable String);
|
|
method @NonNull public static <ValueType> android.app.appsearch.AppSearchResult<ValueType> 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 {
|
|
method @NonNull public java.util.List<android.app.appsearch.AppSearchSchema.PropertyConfig> getProperties();
|
|
method @NonNull public String getSchemaType();
|
|
}
|
|
|
|
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 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 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 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 {
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
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 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 TOKENIZER_TYPE_NONE = 0; // 0x0
|
|
field public static final int TOKENIZER_TYPE_PLAIN = 1; // 0x1
|
|
}
|
|
|
|
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 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<java.lang.String,android.app.appsearch.GenericDocument>);
|
|
method public void getNamespaces(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.util.Set<java.lang.String>>>);
|
|
method public void getSchema(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.GetSchemaResponse>>);
|
|
method public void getStorageInfo(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.StorageInfo>>);
|
|
method public void put(@NonNull android.app.appsearch.PutDocumentsRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback<java.lang.String,java.lang.Void>);
|
|
method public void remove(@NonNull android.app.appsearch.RemoveByDocumentIdRequest, @NonNull java.util.concurrent.Executor, @NonNull android.app.appsearch.BatchResultCallback<java.lang.String,java.lang.Void>);
|
|
method public void remove(@NonNull String, @NonNull android.app.appsearch.SearchSpec, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.lang.Void>>);
|
|
method public void reportUsage(@NonNull android.app.appsearch.ReportUsageRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.lang.Void>>);
|
|
method @NonNull public android.app.appsearch.SearchResults search(@NonNull String, @NonNull android.app.appsearch.SearchSpec);
|
|
method public void setSchema(@NonNull android.app.appsearch.SetSchemaRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.SetSchemaResponse>>);
|
|
}
|
|
|
|
public interface BatchResultCallback<KeyType, ValueType> {
|
|
method public void onResult(@NonNull android.app.appsearch.AppSearchBatchResult<KeyType,ValueType>);
|
|
method public default void onSystemError(@Nullable Throwable);
|
|
}
|
|
|
|
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<java.lang.String> 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<BuilderType extends android.app.appsearch.GenericDocument.Builder> {
|
|
ctor public GenericDocument.Builder(@NonNull String, @NonNull String, @NonNull String);
|
|
method @NonNull public android.app.appsearch.GenericDocument build();
|
|
method @NonNull public BuilderType setCreationTimestampMillis(long);
|
|
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 setScore(@IntRange(from=0, to=java.lang.Integer.MAX_VALUE) int);
|
|
method @NonNull public BuilderType setTtlMillis(long);
|
|
}
|
|
|
|
public final class GetByDocumentIdRequest {
|
|
method @NonNull public java.util.Set<java.lang.String> getIds();
|
|
method @NonNull public String getNamespace();
|
|
method @NonNull public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getProjections();
|
|
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<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.GetByDocumentIdRequest.Builder addProjection(@NonNull String, @NonNull java.util.Collection<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.GetByDocumentIdRequest build();
|
|
}
|
|
|
|
public final class GetSchemaResponse {
|
|
method @NonNull public java.util.Set<android.app.appsearch.AppSearchSchema> getSchemas();
|
|
method @IntRange(from=0) public int getVersion();
|
|
}
|
|
|
|
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 build();
|
|
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 reportSystemUsage(@NonNull android.app.appsearch.ReportSystemUsageRequest, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.lang.Void>>);
|
|
method @NonNull public android.app.appsearch.SearchResults search(@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 final class PutDocumentsRequest {
|
|
method @NonNull public java.util.List<android.app.appsearch.GenericDocument> getGenericDocuments();
|
|
}
|
|
|
|
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<? extends android.app.appsearch.GenericDocument>);
|
|
method @NonNull public android.app.appsearch.PutDocumentsRequest build();
|
|
}
|
|
|
|
public final class RemoveByDocumentIdRequest {
|
|
method @NonNull public java.util.Set<java.lang.String> getIds();
|
|
method @NonNull public String getNamespace();
|
|
}
|
|
|
|
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<java.lang.String>);
|
|
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 {
|
|
method @NonNull public String getDocumentId();
|
|
method @NonNull public String getNamespace();
|
|
method public long getUsageTimestampMillis();
|
|
}
|
|
|
|
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 SearchResult {
|
|
method @NonNull public String getDatabaseName();
|
|
method @NonNull public android.app.appsearch.GenericDocument getGenericDocument();
|
|
method @NonNull public java.util.List<android.app.appsearch.SearchResult.MatchInfo> getMatchInfos();
|
|
method @NonNull public String getPackageName();
|
|
method public double getRankingSignal();
|
|
}
|
|
|
|
public static final class SearchResult.Builder {
|
|
ctor public SearchResult.Builder(@NonNull String, @NonNull String);
|
|
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 {
|
|
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 CharSequence getSnippet();
|
|
method @NonNull public android.app.appsearch.SearchResult.MatchRange getSnippetRange();
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
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<android.app.appsearch.AppSearchResult<java.util.List<android.app.appsearch.SearchResult>>>);
|
|
}
|
|
|
|
public final class SearchSpec {
|
|
method @NonNull public java.util.List<java.lang.String> getFilterNamespaces();
|
|
method @NonNull public java.util.List<java.lang.String> getFilterPackageNames();
|
|
method @NonNull public java.util.List<java.lang.String> getFilterSchemas();
|
|
method public int getMaxSnippetSize();
|
|
method public int getOrder();
|
|
method @NonNull public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getProjections();
|
|
method public int getRankingStrategy();
|
|
method public int getResultCountPerPage();
|
|
method public int getResultGroupingLimit();
|
|
method public int getResultGroupingTypeFlags();
|
|
method public int getSnippetCount();
|
|
method public int getSnippetCountPerProperty();
|
|
method public int getTermMatch();
|
|
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 ORDER_ASCENDING = 1; // 0x1
|
|
field public static final int ORDER_DESCENDING = 0; // 0x0
|
|
field public static final String PROJECTION_SCHEMA_TYPE_WILDCARD = "*";
|
|
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_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 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<java.lang.String>);
|
|
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<java.lang.String>);
|
|
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<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.SearchSpec.Builder addProjection(@NonNull String, @NonNull java.util.Collection<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.SearchSpec build();
|
|
method @NonNull public android.app.appsearch.SearchSpec.Builder setMaxSnippetSize(@IntRange(from=0, to=0x2710) int);
|
|
method @NonNull public android.app.appsearch.SearchSpec.Builder setOrder(int);
|
|
method @NonNull public android.app.appsearch.SearchSpec.Builder setRankingStrategy(int);
|
|
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 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);
|
|
}
|
|
|
|
public final class SetSchemaRequest {
|
|
method @NonNull public java.util.Map<java.lang.String,android.app.appsearch.Migrator> getMigrators();
|
|
method @NonNull public java.util.Set<android.app.appsearch.AppSearchSchema> getSchemas();
|
|
method @NonNull public java.util.Set<java.lang.String> getSchemasNotDisplayedBySystem();
|
|
method @NonNull public java.util.Map<java.lang.String,java.util.Set<android.app.appsearch.PackageIdentifier>> getSchemasVisibleToPackages();
|
|
method @IntRange(from=1) public int getVersion();
|
|
method public boolean isForceOverride();
|
|
}
|
|
|
|
public static final class SetSchemaRequest.Builder {
|
|
ctor public SetSchemaRequest.Builder();
|
|
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<android.app.appsearch.AppSearchSchema>);
|
|
method @NonNull public android.app.appsearch.SetSchemaRequest build();
|
|
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<java.lang.String,android.app.appsearch.Migrator>);
|
|
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 class SetSchemaResponse {
|
|
method @NonNull public java.util.Set<java.lang.String> getDeletedTypes();
|
|
method @NonNull public java.util.Set<java.lang.String> getIncompatibleTypes();
|
|
method @NonNull public java.util.Set<java.lang.String> getMigratedTypes();
|
|
method @NonNull public java.util.List<android.app.appsearch.SetSchemaResponse.MigrationFailure> getMigrationFailures();
|
|
}
|
|
|
|
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<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addIncompatibleType(@NonNull String);
|
|
method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addIncompatibleTypes(@NonNull java.util.Collection<java.lang.String>);
|
|
method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigratedType(@NonNull String);
|
|
method @NonNull public android.app.appsearch.SetSchemaResponse.Builder addMigratedTypes(@NonNull java.util.Collection<java.lang.String>);
|
|
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<android.app.appsearch.SetSchemaResponse.MigrationFailure>);
|
|
method @NonNull public android.app.appsearch.SetSchemaResponse build();
|
|
}
|
|
|
|
public static class SetSchemaResponse.MigrationFailure {
|
|
ctor public SetSchemaResponse.MigrationFailure(@NonNull String, @NonNull String, @NonNull String, @NonNull android.app.appsearch.AppSearchResult<?>);
|
|
method @NonNull public android.app.appsearch.AppSearchResult<java.lang.Void> getAppSearchResult();
|
|
method @NonNull public String getDocumentId();
|
|
method @NonNull public String getNamespace();
|
|
method @NonNull public String getSchemaType();
|
|
}
|
|
|
|
public class StorageInfo {
|
|
method public int getAliveDocumentsCount();
|
|
method public int getAliveNamespacesCount();
|
|
method public long getSizeBytes();
|
|
}
|
|
|
|
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 <T> android.app.appsearch.AppSearchResult<T> toAppSearchResult();
|
|
}
|
|
|
|
}
|
|
|