/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | SchemaToProtoConverter.java | 20 import android.app.appsearch.AppSearchSchema; 49 @NonNull AppSearchSchema schema, int version) { in toSchemaTypeConfigProto() 55 List<AppSearchSchema.PropertyConfig> properties = schema.getProperties(); in toSchemaTypeConfigProto() 65 @NonNull AppSearchSchema.PropertyConfig property) { in toPropertyConfigProto() 71 @AppSearchSchema.PropertyConfig.DataType int dataType = property.getDataType(); in toPropertyConfigProto() 80 @AppSearchSchema.PropertyConfig.Cardinality int cardinality = property.getCardinality(); in toPropertyConfigProto() 88 if (property instanceof AppSearchSchema.StringPropertyConfig) { in toPropertyConfigProto() 89 AppSearchSchema.StringPropertyConfig stringProperty = in toPropertyConfigProto() 90 (AppSearchSchema.StringPropertyConfig) property; in toPropertyConfigProto() 100 } else if (property instanceof AppSearchSchema.DocumentPropertyConfig) { in toPropertyConfigProto() [all …]
|
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SchemaToProtoConverterTest.java | 21 import android.app.appsearch.AppSearchSchema; 33 AppSearchSchema emailSchema = in testGetProto_Email() 34 new AppSearchSchema.Builder("Email") in testGetProto_Email() 36 new AppSearchSchema.StringPropertyConfig.Builder("subject") in testGetProto_Email() 38 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_Email() 40 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 43 AppSearchSchema.StringPropertyConfig in testGetProto_Email() 47 new AppSearchSchema.StringPropertyConfig.Builder("body") in testGetProto_Email() 49 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_Email() 51 AppSearchSchema.StringPropertyConfig in testGetProto_Email() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
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) 85 .setTokenizerType(AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_PLAIN) 86 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_EXACT_TERMS) 89 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_SHORT_LABEL) 90 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 91 .setTokenizerType(AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_PLAIN) 92 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES) [all …]
|
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) 52 .setTokenizerType(AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_NONE) 53 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_NONE) 56 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_KEY) 57 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 58 .setTokenizerType(AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_NONE) 59 .setIndexingType(AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_NONE) [all …]
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/ |
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)
|
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)
|
D | VisibilityStoreImpl.java | 22 import android.app.appsearch.AppSearchSchema; 107 for (AppSearchSchema schema : getSchemaResponse.getSchemas()) { in VisibilityStoreImpl()
|
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/ |
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() 93 getProperties().toArray(new AppSearchSchema.PropertyConfig[0]); in appendAppSearchSchemaString() 97 AppSearchSchema.PropertyConfig propertyConfig = sortedProperties[i]; in appendAppSearchSchemaString() 127 mBundle.getParcelableArrayList(AppSearchSchema.PROPERTIES_FIELD); in getProperties() 143 if (!(other instanceof AppSearchSchema)) { in equals() 146 AppSearchSchema otherSchema = (AppSearchSchema) other; in equals() 173 public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) { in addProperty() 186 public AppSearchSchema build() { in build() [all …]
|
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()
|
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 28 import android.app.appsearch.AppSearchSchema; 432 List<AppSearchSchema> schemas = in testTriggerCheckOptimizeByMutationSize() 433 Collections.singletonList(new AppSearchSchema.Builder("type").build()); in testTriggerCheckOptimizeByMutationSize() 490 List<AppSearchSchema> schemas = in testReset() 492 new AppSearchSchema.Builder("Type1").build(), in testReset() 493 new AppSearchSchema.Builder("Type2").build()); in testReset() 589 Collections.singletonList(new AppSearchSchema.Builder("Type1").build()), in testReset() 619 List<AppSearchSchema> schemas = in testRewriteSearchSpec_oneInstance() 620 Collections.singletonList(new AppSearchSchema.Builder("type").build()); in testRewriteSearchSpec_oneInstance() 651 List<AppSearchSchema> schemas = in testRewriteSearchSpec_twoInstances() [all …]
|
D | AppSearchLoggerTest.java | 24 import android.app.appsearch.AppSearchSchema; 379 List<AppSearchSchema> schemas = in testLoggingStats_initializeWithDocuments_success() 381 new AppSearchSchema.Builder("Type1").build(), in testLoggingStats_initializeWithDocuments_success() 382 new AppSearchSchema.Builder("Type2").build()); in testLoggingStats_initializeWithDocuments_success() 430 List<AppSearchSchema> schemas = in testLoggingStats_initialize_failure() 432 new AppSearchSchema.Builder("Type1").build(), in testLoggingStats_initialize_failure() 433 new AppSearchSchema.Builder("Type2").build()); in testLoggingStats_initialize_failure() 475 AppSearchSchema testSchema = in testLoggingStats_putDocument_success() 476 new AppSearchSchema.Builder("type") in testLoggingStats_putDocument_success() 478 new AppSearchSchema.StringPropertyConfig.Builder("subject") in testLoggingStats_putDocument_success() [all …]
|
/frameworks/base/apex/appsearch/framework/api/ |
D | current.txt | 51 public final class AppSearchSchema { 52 …method @NonNull public java.util.List<android.app.appsearch.AppSearchSchema.PropertyConfig> getPro… 56 …public static final class AppSearchSchema.BooleanPropertyConfig extends android.app.appsearch.AppS… 59 public static final class AppSearchSchema.BooleanPropertyConfig.Builder { 60 ctor public AppSearchSchema.BooleanPropertyConfig.Builder(@NonNull String); 61 method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig build(); 62 …method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder setCard… 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… [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/ |
D | AppSearchImplPlatformTest.java | 33 import android.app.appsearch.AppSearchSchema; 131 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testSetSchema_existingSchemaRetainsVisibilitySetting() 162 new AppSearchSchema.Builder("schema1").build(), in testSetSchema_existingSchemaRetainsVisibilitySetting() 163 new AppSearchSchema.Builder("schema2").build()), in testSetSchema_existingSchemaRetainsVisibilitySetting() 237 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testRemoveSchema_removedFromVisibilityStore() 296 Collections.singletonList(new AppSearchSchema.Builder("schema1").build()), in testRemoveSchema_removedFromVisibilityStore() 331 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_defaultPlatformVisible() 359 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_platformHidden() 388 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_defaultNotVisibleToPackages() 427 Collections.singletonList(new AppSearchSchema.Builder("Schema").build()), in testSetSchema_visibleToPackages()
|
/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/external/ |
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)
|
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/util/ |
D | SchemaMigrationUtil.java | 21 import android.app.appsearch.AppSearchSchema; 47 @NonNull Set<AppSearchSchema> existingSchemas, in getActiveMigrators() 55 for (AppSearchSchema schema : existingSchemas) { in getActiveMigrators()
|
/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/ |
D | AppSearchMigrationHelper.java | 69 @NonNull Set<AppSearchSchema> newSchemas) throws IOException { in AppSearchMigrationHelper() 76 for (AppSearchSchema newSchema : newSchemas) { in AppSearchMigrationHelper()
|
D | AppSearchSession.java | 150 for (AppSearchSchema schema : request.getSchemas()) { in setSchema()
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/ |
D | AppSearchSessionUnitTest.java | 115 .addSchemas(new AppSearchSchema.Builder("schema1").build()) in testGetEmptyNextPage() 168 .addSchemas(new AppSearchSchema.Builder("schema1").build()) in testGetEmptyNextPage_multiPages()
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImpl.java | 31 import android.app.appsearch.AppSearchSchema; 406 @NonNull List<AppSearchSchema> schemas, in setSchema() 421 AppSearchSchema schema = schemas.get(i); in setSchema() 545 AppSearchSchema schema = in getSchema()
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/ |
D | AppSearchManagerService.java | 26 import android.app.appsearch.AppSearchSchema; 346 List<AppSearchSchema> schemas = new ArrayList<>(schemaBundles.size()); in setSchema() 348 schemas.add(new AppSearchSchema(schemaBundles.get(i))); in setSchema()
|