/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | SchemaToProtoConverter.java | 20 import android.app.appsearch.AppSearchSchema; 53 @NonNull AppSearchSchema schema, int version) { in toSchemaTypeConfigProto() 60 List<AppSearchSchema.PropertyConfig> properties = schema.getProperties(); in toSchemaTypeConfigProto() 71 @NonNull AppSearchSchema.PropertyConfig property) { in toPropertyConfigProto() 79 @AppSearchSchema.PropertyConfig.DataType int dataType = property.getDataType(); in toPropertyConfigProto() 88 @AppSearchSchema.PropertyConfig.Cardinality int cardinality = property.getCardinality(); in toPropertyConfigProto() 96 if (property instanceof AppSearchSchema.StringPropertyConfig) { in toPropertyConfigProto() 97 AppSearchSchema.StringPropertyConfig stringProperty = in toPropertyConfigProto() 98 (AppSearchSchema.StringPropertyConfig) property; in toPropertyConfigProto() 102 != AppSearchSchema.StringPropertyConfig.JOINABLE_VALUE_TYPE_NONE) { in toPropertyConfigProto() [all …]
|
D | GenericDocumentToProtoConverter.java | 20 import android.app.appsearch.AppSearchSchema; 324 @AppSearchSchema.PropertyConfig.DataType int dataType = 0; in setEmptyProperty() 333 case AppSearchSchema.PropertyConfig.DATA_TYPE_STRING: in setEmptyProperty() 336 case AppSearchSchema.PropertyConfig.DATA_TYPE_LONG: in setEmptyProperty() 339 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOUBLE: in setEmptyProperty() 342 case AppSearchSchema.PropertyConfig.DATA_TYPE_BOOLEAN: in setEmptyProperty() 345 case AppSearchSchema.PropertyConfig.DATA_TYPE_BYTES: in setEmptyProperty() 348 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOCUMENT: in setEmptyProperty() 351 case AppSearchSchema.PropertyConfig.DATA_TYPE_EMBEDDING: in setEmptyProperty()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SchemaToProtoConverterTest.java | 21 import android.app.appsearch.AppSearchSchema; 38 AppSearchSchema emailSchema = in testGetProto_DescriptionSet() 39 new AppSearchSchema.Builder("Email") in testGetProto_DescriptionSet() 42 new AppSearchSchema.StringPropertyConfig.Builder("subject") in testGetProto_DescriptionSet() 45 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet() 47 AppSearchSchema.StringPropertyConfig in testGetProto_DescriptionSet() 50 AppSearchSchema.StringPropertyConfig in testGetProto_DescriptionSet() 54 new AppSearchSchema.LongPropertyConfig.Builder("timestamp") in testGetProto_DescriptionSet() 57 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet() 60 new AppSearchSchema.DoublePropertyConfig.Builder("importanceScore") in testGetProto_DescriptionSet() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/ |
D | Person.java | 22 import android.app.appsearch.AppSearchSchema; 83 private static AppSearchSchema createSchema(boolean indexFirstMiddleAndLastNames) { in createSchema() 84 AppSearchSchema.Builder builder = in createSchema() 85 new AppSearchSchema.Builder(SCHEMA_TYPE) in createSchema() 88 new AppSearchSchema.StringPropertyConfig.Builder( in createSchema() 91 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema() 93 AppSearchSchema.StringPropertyConfig in createSchema() 96 AppSearchSchema.StringPropertyConfig in createSchema() 104 new AppSearchSchema.StringPropertyConfig.Builder( in createSchema() 107 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema() [all …]
|
D | ContactPoint.java | 20 import android.app.appsearch.AppSearchSchema; 45 public static final AppSearchSchema SCHEMA = 46 new AppSearchSchema.Builder(SCHEMA_TYPE) 48 new AppSearchSchema.StringPropertyConfig.Builder( 51 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 53 AppSearchSchema.StringPropertyConfig 56 AppSearchSchema.StringPropertyConfig 61 new AppSearchSchema.StringPropertyConfig.Builder( 64 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 68 new AppSearchSchema.StringPropertyConfig.Builder( [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | TestUtils.java | 23 import android.app.appsearch.AppSearchSchema; 47 static final AppSearchSchema CONTACT_POINT_SCHEMA_WITH_APP_IDS_OPTIONAL = 48 new AppSearchSchema.Builder( 50 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 52 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 54 AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES) 56 AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_PLAIN) 60 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 62 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 65 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/appsearchtypes/ |
D | MobileApplication.java | 22 import android.app.appsearch.AppSearchSchema; 69 public static AppSearchSchema createMobileApplicationSchemaForPackage( in createMobileApplicationSchemaForPackage() 72 return new AppSearchSchema.Builder(getSchemaNameForPackage(packageName)) in createMobileApplicationSchemaForPackage() 76 new AppSearchSchema.StringPropertyConfig.Builder(APP_PROPERTY_PACKAGE_NAME) in createMobileApplicationSchemaForPackage() 77 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage() 79 AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES) in createMobileApplicationSchemaForPackage() 81 AppSearchSchema.StringPropertyConfig in createMobileApplicationSchemaForPackage() 85 new AppSearchSchema.StringPropertyConfig.Builder(APP_PROPERTY_DISPLAY_NAME) in createMobileApplicationSchemaForPackage() 86 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage() 88 AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES) in createMobileApplicationSchemaForPackage() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 35 import android.app.appsearch.AppSearchSchema; 481 List<AppSearchSchema> schemas = in testTriggerCheckOptimizeByMutationSize() 482 Collections.singletonList(new AppSearchSchema.Builder("type").build()); in testTriggerCheckOptimizeByMutationSize() 535 List<AppSearchSchema> schemas = in testReset() 537 new AppSearchSchema.Builder("Type1").build(), in testReset() 538 new AppSearchSchema.Builder("Type2").build()); in testReset() 642 Collections.singletonList(new AppSearchSchema.Builder("Type1").build()), in testReset() 685 List<AppSearchSchema> schema1 = in testQueryWithMultiplePackages_noPackageFilters() 686 ImmutableList.of(new AppSearchSchema.Builder("schema1").build()); in testQueryWithMultiplePackages_noPackageFilters() 699 List<AppSearchSchema> schema2 = in testQueryWithMultiplePackages_noPackageFilters() [all …]
|
D | AppSearchLoggerTest.java | 22 import android.app.appsearch.AppSearchSchema; 416 List<AppSearchSchema> schemas = in testLoggingStats_initializeWithDocuments_success() 418 new AppSearchSchema.Builder("Type1").build(), in testLoggingStats_initializeWithDocuments_success() 419 new AppSearchSchema.Builder("Type2").build()); in testLoggingStats_initializeWithDocuments_success() 482 List<AppSearchSchema> schemas = in testLoggingStats_initialize_failure() 484 new AppSearchSchema.Builder("Type1").build(), in testLoggingStats_initialize_failure() 485 new AppSearchSchema.Builder("Type2").build()); in testLoggingStats_initialize_failure() 537 AppSearchSchema testSchema = in testLoggingStats_putDocument_success() 538 new AppSearchSchema.Builder("type") in testLoggingStats_putDocument_success() 540 new AppSearchSchema.StringPropertyConfig.Builder("subject") in testLoggingStats_putDocument_success() [all …]
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/ |
D | AppSearchSessionInternalTest.java | 25 import android.app.appsearch.AppSearchSchema.PropertyConfig; 26 import android.app.appsearch.AppSearchSchema.StringPropertyConfig; 69 AppSearchSchema personSchema = in testQuery_typeFilterWithPolymorphism() 70 new AppSearchSchema.Builder("Person") in testQuery_typeFilterWithPolymorphism() 79 AppSearchSchema artistSchema = in testQuery_typeFilterWithPolymorphism() 80 new AppSearchSchema.Builder("Artist") in testQuery_typeFilterWithPolymorphism() 167 AppSearchSchema personSchema = in testQuery_projectionWithPolymorphism() 168 new AppSearchSchema.Builder("Person") in testQuery_projectionWithPolymorphism() 184 AppSearchSchema artistSchema = in testQuery_projectionWithPolymorphism() 185 new AppSearchSchema.Builder("Artist") in testQuery_projectionWithPolymorphism() [all …]
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/ |
D | AppSearchSessionInternalTestBase.java | 27 import android.app.appsearch.AppSearchSchema.PropertyConfig; 28 import android.app.appsearch.AppSearchSchema.StringPropertyConfig; 81 AppSearchSchema inSchema = in testGetSchema_joinableValueType() 82 new AppSearchSchema.Builder("Test") in testGetSchema_joinableValueType() 107 Set<AppSearchSchema> actual = mDb1.getSchemaAsync().get().getSchemas(); in testGetSchema_joinableValueType() 117 AppSearchSchema personSchema = in testQuery_typeFilterWithPolymorphism() 118 new AppSearchSchema.Builder("Person") in testQuery_typeFilterWithPolymorphism() 127 AppSearchSchema artistSchema = in testQuery_typeFilterWithPolymorphism() 128 new AppSearchSchema.Builder("Artist") in testQuery_typeFilterWithPolymorphism() 213 AppSearchSchema personSchema = in testQuery_projectionWithPolymorphism() [all …]
|
D | SetSchemaResponseInternalTest.java | 21 import android.app.appsearch.AppSearchSchema.PropertyConfig; 22 import android.app.appsearch.AppSearchSchema.StringPropertyConfig; 83 AppSearchSchema schema = in testPropertyConfig_deletionPropagation() 84 new AppSearchSchema.Builder("Test") in testPropertyConfig_deletionPropagation() 86 new AppSearchSchema.StringPropertyConfig.Builder("qualifiedId1") in testPropertyConfig_deletionPropagation()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreMigrationHelperFromV0Test.java | 29 import android.app.appsearch.AppSearchSchema; 127 new AppSearchSchema.Builder("schema1").build(), in testVisibilityMigration_from0() 128 new AppSearchSchema.Builder("schema2").build()), in testVisibilityMigration_from0() 201 AppSearchSchema visibilityDocumentSchemaV0 = in buildAppSearchImplInV0() 202 new AppSearchSchema.Builder(DEPRECATED_VISIBILITY_SCHEMA_TYPE) in buildAppSearchImplInV0() 204 new AppSearchSchema.StringPropertyConfig.Builder( in buildAppSearchImplInV0() 207 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in buildAppSearchImplInV0() 210 new AppSearchSchema.DocumentPropertyConfig.Builder( in buildAppSearchImplInV0() 214 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in buildAppSearchImplInV0() 217 AppSearchSchema visibilityToPackagesSchemaV0 = in buildAppSearchImplInV0() [all …]
|
D | VisibilityStoreTest.java | 23 import android.app.appsearch.AppSearchSchema; 197 AppSearchSchema brokenSchema = in testRecoverBrokenVisibilitySchema() 198 new AppSearchSchema.Builder( in testRecoverBrokenVisibilitySchema() 438 AppSearchSchema deprecatedOverlaySchema = in testMigrateFromDeprecatedOverlaySchema() 439 new AppSearchSchema.Builder("AndroidVOverlayType") in testMigrateFromDeprecatedOverlaySchema() 441 new AppSearchSchema.StringPropertyConfig.Builder( in testMigrateFromDeprecatedOverlaySchema() 444 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema() 447 new AppSearchSchema.BytesPropertyConfig.Builder( in testMigrateFromDeprecatedOverlaySchema() 450 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema() 453 new AppSearchSchema.DocumentPropertyConfig.Builder( in testMigrateFromDeprecatedOverlaySchema() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityDocumentV1.java | 20 import android.app.appsearch.AppSearchSchema; 59 static final AppSearchSchema SCHEMA = 60 new AppSearchSchema.Builder(SCHEMA_TYPE) 62 new AppSearchSchema.BooleanPropertyConfig.Builder( 65 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 68 new AppSearchSchema.StringPropertyConfig.Builder(PACKAGE_NAME_PROPERTY) 70 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 73 new AppSearchSchema.BytesPropertyConfig.Builder(SHA_256_CERT_PROPERTY) 75 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 78 new AppSearchSchema.LongPropertyConfig.Builder(ROLE_PROPERTY) [all …]
|
D | VisibilityToDocumentConverter.java | 21 import android.app.appsearch.AppSearchSchema; 114 public static final AppSearchSchema VISIBILITY_DOCUMENT_SCHEMA = 115 new AppSearchSchema.Builder(VISIBILITY_DOCUMENT_SCHEMA_TYPE) 117 new AppSearchSchema.BooleanPropertyConfig.Builder( 120 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 123 new AppSearchSchema.StringPropertyConfig.Builder( 126 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 129 new AppSearchSchema.BytesPropertyConfig.Builder( 132 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) 135 new AppSearchSchema.DocumentPropertyConfig.Builder( [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/safeparcel/ |
D | PropertyConfigParcel.java | 21 import android.app.appsearch.AppSearchSchema; 22 import android.app.appsearch.AppSearchSchema.PropertyConfig.Cardinality; 23 import android.app.appsearch.AppSearchSchema.PropertyConfig.DataType; 24 import android.app.appsearch.AppSearchSchema.StringPropertyConfig.JoinableValueType; 25 import android.app.appsearch.AppSearchSchema.StringPropertyConfig.TokenizerType; 51 @AppSearchSchema.PropertyConfig.DataType 55 @AppSearchSchema.PropertyConfig.Cardinality 122 AppSearchSchema.PropertyConfig.DATA_TYPE_STRING, in createForString() 139 @AppSearchSchema.LongPropertyConfig.IndexingType int indexingType) { in createForLong() 142 AppSearchSchema.PropertyConfig.DATA_TYPE_LONG, in createForLong() [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | AppSearchSchema.java | 64 public final class AppSearchSchema extends AbstractSafeParcelable { class 68 public static final Parcelable.Creator<AppSearchSchema> CREATOR = new AppSearchSchemaCreator(); 83 AppSearchSchema( in AppSearchSchema() method in AppSearchSchema 117 AppSearchSchema.PropertyConfig[] sortedProperties = in appendAppSearchSchemaString() 118 getProperties().toArray(new AppSearchSchema.PropertyConfig[0]); in appendAppSearchSchemaString() 122 AppSearchSchema.PropertyConfig propertyConfig = sortedProperties[i]; in appendAppSearchSchemaString() 188 if (!(other instanceof AppSearchSchema)) { in equals() 191 AppSearchSchema otherSchema = (AppSearchSchema) other; in equals() 238 public AppSearchSchema.Builder setDescription(@NonNull String description) { in setDescription() 248 public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) { in addProperty() [all …]
|
D | VisibilityPermissionConfig.java | 57 public static final AppSearchSchema SCHEMA = 58 new AppSearchSchema.Builder(SCHEMA_TYPE) 60 new AppSearchSchema.LongPropertyConfig.Builder( 63 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | TestUtils.java | 28 import android.app.appsearch.AppSearchSchema; 67 public static final AppSearchSchema COMPATIBLE_APP_SCHEMA = 68 new AppSearchSchema.Builder(SCHEMA_TYPE) 69 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder( 72 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) 74 AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES) 76 AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_VERBATIM) 83 public static final AppSearchSchema INCOMPATIBLE_APP_SCHEMA = 84 new AppSearchSchema.Builder(SCHEMA_TYPE) 85 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder("NotPackageName") [all …]
|
/packages/modules/AppSearch/framework/api/ |
D | current.txt | 56 public final class AppSearchSchema implements android.os.Parcelable { 60 …method @NonNull public java.util.List<android.app.appsearch.AppSearchSchema.PropertyConfig> getPro… 63 …l public static final android.os.Parcelable.Creator<android.app.appsearch.AppSearchSchema> CREATOR; 66 …public static final class AppSearchSchema.BooleanPropertyConfig extends android.app.appsearch.AppS… 69 public static final class AppSearchSchema.BooleanPropertyConfig.Builder { 70 ctor public AppSearchSchema.BooleanPropertyConfig.Builder(@NonNull String); 71 method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig build(); 72 …method @NonNull public android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder setCard… 73 …h.flags.enable_app_functions") @NonNull public android.app.appsearch.AppSearchSchema.BooleanProper… 76 public static final class AppSearchSchema.Builder { [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/ |
D | GetNextPageAidlRequest.java | 22 import android.app.appsearch.AppSearchSchema; 55 @AppSearchSchema.StringPropertyConfig.JoinableValueType 87 @Param(id = 4) @AppSearchSchema.StringPropertyConfig.JoinableValueType int joinType, in GetNextPageAidlRequest() 114 @AppSearchSchema.StringPropertyConfig.JoinableValueType
|
D | SetSchemaAidlRequest.java | 21 import android.app.appsearch.AppSearchSchema; 55 private final List<AppSearchSchema> mSchemas; 98 @Param(id = 3) @NonNull List<AppSearchSchema> schemas, in SetSchemaAidlRequest() 127 public List<AppSearchSchema> getSchemas() { in getSchemas()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/ |
D | AdbDumpUtilTest.java | 21 import android.app.appsearch.AppSearchSchema; 132 List<AppSearchSchema> schemas = Collections.singletonList(new AppSearchSchema.Builder( in testDesensitizeRealDebugInfo() 133 PERSON_TYPE).addProperty(new AppSearchSchema.StringPropertyConfig.Builder( in testDesensitizeRealDebugInfo() 135 AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES).setTokenizerType( in testDesensitizeRealDebugInfo() 136 AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_PLAIN).build()).build()); in testDesensitizeRealDebugInfo()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/ |
D | SchemaMigrationUtil.java | 22 import android.app.appsearch.AppSearchSchema; 49 @NonNull Set<AppSearchSchema> existingSchemas, in getActiveMigrators() 57 for (AppSearchSchema schema : existingSchemas) { in getActiveMigrators()
|