/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
H A D | SchemaToProtoConverter.java | 20 import android.app.appsearch.AppSearchSchema; 49 @NonNull AppSearchSchema schema, int version) { in toSchemaTypeConfigProto() 65 @NonNull AppSearchSchema.PropertyConfig property) { in toPropertyConfigProto() 89 AppSearchSchema.StringPropertyConfig stringProperty = in toPropertyConfigProto() 90 (AppSearchSchema.StringPropertyConfig) property; in toPropertyConfigProto() 101 AppSearchSchema.DocumentPropertyConfig documentProperty = in toPropertyConfigProto() 119 AppSearchSchema.Builder builder = new AppSearchSchema.Builder(proto.getSchemaType()); in toAppSearchSchema() 129 private static AppSearchSchema.PropertyConfig toPropertyConfig( in toPropertyConfig() 161 AppSearchSchema.StringPropertyConfig.Builder builder = in toStringPropertyConfig() 177 return new AppSearchSchema.DocumentPropertyConfig.Builder( in toDocumentPropertyConfig() [all …]
|
H A D | GenericDocumentToProtoConverter.java | 20 import android.app.appsearch.AppSearchSchema; 190 @AppSearchSchema.PropertyConfig.DataType int dataType = 0; in setEmptyProperty() 199 case AppSearchSchema.PropertyConfig.DATA_TYPE_STRING: in setEmptyProperty() 202 case AppSearchSchema.PropertyConfig.DATA_TYPE_LONG: in setEmptyProperty() 205 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOUBLE: in setEmptyProperty() 208 case AppSearchSchema.PropertyConfig.DATA_TYPE_BOOLEAN: in setEmptyProperty() 211 case AppSearchSchema.PropertyConfig.DATA_TYPE_BYTES: in setEmptyProperty() 214 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOCUMENT: in setEmptyProperty()
|
/aosp12/frameworks/base/core/java/android/content/pm/ |
H A D | AppSearchShortcutInfo.java | 23 import android.app.appsearch.AppSearchSchema; 82 public static final AppSearchSchema SCHEMA = new AppSearchSchema.Builder(SCHEMA_TYPE) 83 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_ACTIVITY) 84 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 127 ).addProperty(new AppSearchSchema.LongPropertyConfig.Builder( 132 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 151 ).addProperty(new AppSearchSchema.BytesPropertyConfig.Builder( 156 ).addProperty(new AppSearchSchema.DocumentPropertyConfig.Builder( 167 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_RANK) 177 ).addProperty(new AppSearchSchema.BytesPropertyConfig.Builder(KEY_EXTRAS) [all …]
|
H A D | AppSearchPerson.java | 22 import android.app.appsearch.AppSearchSchema; 49 public static final AppSearchSchema SCHEMA = new AppSearchSchema.Builder(SCHEMA_TYPE) 50 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_NAME) 51 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 53 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_NONE) 56 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_KEY) 57 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 59 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_NONE) 62 ).addProperty(new AppSearchSchema.BooleanPropertyConfig.Builder(KEY_IS_BOT) 63 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED) [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
H A D | SchemaToProtoConverterTest.java | 21 import android.app.appsearch.AppSearchSchema; 33 AppSearchSchema emailSchema = in testGetProto_Email() 34 new AppSearchSchema.Builder("Email") in testGetProto_Email() 40 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 43 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 51 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 54 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 99 AppSearchSchema musicRecordingSchema = in testGetProto_MusicRecording() 100 new AppSearchSchema.Builder("MusicRecording") in testGetProto_MusicRecording() 106 AppSearchSchema.StringPropertyConfig in testGetProto_MusicRecording() [all …]
|
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/ |
H A D | AppSearchSchema.java | 48 public final class AppSearchSchema { class 55 public AppSearchSchema(@NonNull Bundle bundle) { in AppSearchSchema() method in AppSearchSchema 92 AppSearchSchema.PropertyConfig[] sortedProperties = in appendAppSearchSchemaString() 143 if (!(other instanceof AppSearchSchema)) { in equals() 146 AppSearchSchema otherSchema = (AppSearchSchema) other; in equals() 186 public AppSearchSchema build() { in build() 191 return new AppSearchSchema(bundle); in build() 335 case AppSearchSchema.PropertyConfig.DATA_TYPE_STRING: in appendPropertyConfigString() 338 case AppSearchSchema.PropertyConfig.DATA_TYPE_LONG: in appendPropertyConfigString() 341 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOUBLE: in appendPropertyConfigString() [all …]
|
H A D | SetSchemaRequest.java | 84 private final Set<AppSearchSchema> mSchemas; 92 @NonNull Set<AppSearchSchema> schemas, in SetSchemaRequest() 108 public Set<AppSearchSchema> getSchemas() { in getSchemas() 173 private ArraySet<AppSearchSchema> mSchemas = new ArraySet<>(); 190 public Builder addSchemas(@NonNull AppSearchSchema... schemas) { in addSchemas() 202 public Builder addSchemas(@NonNull Collection<AppSearchSchema> schemas) { in addSchemas() 421 for (AppSearchSchema schema : mSchemas) { in build()
|
H A D | GetSchemaResponse.java | 65 public Set<AppSearchSchema> getSchemas() { in getSchemas() 67 Set<AppSearchSchema> schemas = new ArraySet<>(schemaBundles.size()); in getSchemas() 69 schemas.add(new AppSearchSchema(schemaBundles.get(i))); in getSchemas() 94 public Builder addSchema(@NonNull AppSearchSchema schema) { in addSchema()
|
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/ |
H A D | VisibleToPackagesDocument.java | 20 import android.app.appsearch.AppSearchSchema; 49 public static final AppSearchSchema SCHEMA = new AppSearchSchema.Builder(SCHEMA_TYPE) 50 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder(PACKAGE_NAME_PROPERTY) 51 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 53 .addProperty(new AppSearchSchema.BytesPropertyConfig.Builder(SHA_256_CERT_PROPERTY) 54 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 56 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 58 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
|
H A D | VisibilityDocument.java | 20 import android.app.appsearch.AppSearchSchema; 42 public static final AppSearchSchema SCHEMA = new AppSearchSchema.Builder(SCHEMA_TYPE) 43 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 45 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 47 .addProperty(new AppSearchSchema.DocumentPropertyConfig.Builder( 49 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
|
H A D | VisibilityStoreImpl.java | 22 import android.app.appsearch.AppSearchSchema; 107 for (AppSearchSchema schema : getSchemaResponse.getSchemas()) { in VisibilityStoreImpl()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/ |
H A D | AppSearchImplTest.java | 28 import android.app.appsearch.AppSearchSchema; 433 List<AppSearchSchema> schemas = in testTriggerCheckOptimizeByMutationSize() 492 List<AppSearchSchema> schemas = in testReset() 623 List<AppSearchSchema> schemas = in testRewriteSearchSpec_oneInstance() 656 List<AppSearchSchema> schemas = in testRewriteSearchSpec_twoInstances() 714 List<AppSearchSchema> schemas = in testRewriteSearchSpec_ignoresSearchSpecSchemaFilters() 757 List<AppSearchSchema> schema1 = in testQueryWithMultiplePackages_noPackageFilters() 771 List<AppSearchSchema> schema2 = in testQueryWithMultiplePackages_noPackageFilters() 815 List<AppSearchSchema> schema1 = in testQueryWithMultiplePackages_withPackageFilters() 1653 List<AppSearchSchema> schema = in testClearPackageData() [all …]
|
H A D | AppSearchLoggerTest.java | 24 import android.app.appsearch.AppSearchSchema; 419 List<AppSearchSchema> schemas = in testLoggingStats_initializeWithDocuments_success() 471 List<AppSearchSchema> schemas = in testLoggingStats_initialize_failure() 517 AppSearchSchema testSchema = in testLoggingStats_putDocument_success() 565 AppSearchSchema testSchema = in testLoggingStats_putDocument_failure() 616 AppSearchSchema testSchema = in testLoggingStats_search_success() 697 List<AppSearchSchema> schemas = in testLoggingStats_search_failure() 740 List<AppSearchSchema> schemas = in testLoggingStats_remove_success() 775 List<AppSearchSchema> schemas = in testLoggingStats_remove_failure() 859 AppSearchSchema schema1 = in testLoggingStats_setSchema() [all …]
|
/aosp12/frameworks/base/apex/appsearch/framework/api/ |
H A D | current.txt | 51 public final class AppSearchSchema { 56 …public static final class AppSearchSchema.BooleanPropertyConfig extends android.app.appsearch.AppS… 65 public static final class AppSearchSchema.Builder { 66 ctor public AppSearchSchema.Builder(@NonNull String); 67 …nNull public android.app.appsearch.AppSearchSchema.Builder addProperty(@NonNull android.app.appsea… 71 …public static final class AppSearchSchema.BytesPropertyConfig extends android.app.appsearch.AppSea… 80 …public static final class AppSearchSchema.DocumentPropertyConfig extends android.app.appsearch.App… 92 …public static final class AppSearchSchema.DoublePropertyConfig extends android.app.appsearch.AppSe… 101 …public static final class AppSearchSchema.LongPropertyConfig extends android.app.appsearch.AppSear… 110 public abstract static class AppSearchSchema.PropertyConfig { [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/ |
H A D | AppSearchImplPlatformTest.java | 33 import android.app.appsearch.AppSearchSchema; 131 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testSetSchema_existingSchemaRetainsVisibilitySetting() 163 new AppSearchSchema.Builder("schema1").build(), in testSetSchema_existingSchemaRetainsVisibilitySetting() 164 new AppSearchSchema.Builder("schema2").build()), in testSetSchema_existingSchemaRetainsVisibilitySetting() 239 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testRemoveSchema_removedFromVisibilityStore() 300 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testRemoveSchema_removedFromVisibilityStore() 336 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_defaultPlatformVisible() 365 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_platformHidden() 395 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_defaultNotVisibleToPackages() 435 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_visibleToPackages()
|
/aosp12/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/external/ |
H A D | AppSearchEmail.java | 21 import android.app.appsearch.AppSearchSchema; 22 import android.app.appsearch.AppSearchSchema.PropertyConfig; 23 import android.app.appsearch.AppSearchSchema.StringPropertyConfig; 42 public static final AppSearchSchema SCHEMA = 43 new AppSearchSchema.Builder(SCHEMA_TYPE)
|
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/ |
H A D | SchemaMigrationUtil.java | 21 import android.app.appsearch.AppSearchSchema; 47 @NonNull Set<AppSearchSchema> existingSchemas, in getActiveMigrators() 55 for (AppSearchSchema schema : existingSchemas) { in getActiveMigrators()
|
/aosp12/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/ |
H A D | AppSearchMigrationHelper.java | 69 @NonNull Set<AppSearchSchema> newSchemas) throws IOException { in AppSearchMigrationHelper() 76 for (AppSearchSchema newSchema : newSchemas) { in AppSearchMigrationHelper()
|
H A D | AppSearchSession.java | 150 for (AppSearchSchema schema : request.getSchemas()) { in setSchema()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/ |
H A D | AppSearchSessionUnitTest.java | 115 .addSchemas(new AppSearchSchema.Builder("schema1").build()) in testGetEmptyNextPage() 168 .addSchemas(new AppSearchSchema.Builder("schema1").build()) in testGetEmptyNextPage_multiPages()
|
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/ |
H A D | AppSearchImpl.java | 31 import android.app.appsearch.AppSearchSchema; 408 @NonNull List<AppSearchSchema> schemas, in setSchema() 424 AppSearchSchema schema = schemas.get(i); in setSchema() 554 AppSearchSchema schema = in getSchema()
|
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/ |
H A D | AppSearchManagerService.java | 26 import android.app.appsearch.AppSearchSchema; 349 List<AppSearchSchema> schemas = new ArrayList<>(schemaBundles.size()); in setSchema() 351 schemas.add(new AppSearchSchema(schemaBundles.get(i))); in setSchema()
|