Home
last modified time | relevance | path

Searched refs:PropertyConfig (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DAppSearchSessionInternalTestBase.java28 import android.app.appsearch.AppSearchSchema.PropertyConfig;
98 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testGetSchema_joinableValueType()
102 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testGetSchema_joinableValueType()
109 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testGetSchema_joinableValueType()
138 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
149 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
156 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
167 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
174 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
185 .setCardinality(PropertyConfig.CARDINALITY_REPEATED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
[all …]
DAppSearchSchemaInternalTest.java23 import android.app.appsearch.AppSearchSchema.PropertyConfig;
42 assertThat(builder.getCardinality()).isEqualTo(PropertyConfig.CARDINALITY_OPTIONAL); in testStringPropertyConfigDefaultValues_withDeletePropagationType()
56 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testPropertyConfig_withDeletePropagationType()
66 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testPropertyConfig_withDeletePropagationType()
76 List<PropertyConfig> properties = schema.getProperties(); in testPropertyConfig_withDeletePropagationType()
81 .isEqualTo(PropertyConfig.CARDINALITY_OPTIONAL); in testPropertyConfig_withDeletePropagationType()
89 .isEqualTo(PropertyConfig.CARDINALITY_REQUIRED); in testPropertyConfig_withDeletePropagationType()
103 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testSetDeletePropagationTypeWithoutJoinableValueTypeQualifiedId_throwsException()
122 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testAppSearchSchema_toString_withDeletePropagationType()
133 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testAppSearchSchema_toString_withDeletePropagationType()
DSetSchemaResponseInternalTest.java21 import android.app.appsearch.AppSearchSchema.PropertyConfig;
87 .setCardinality(PropertyConfig.CARDINALITY_OPTIONAL) in testPropertyConfig_deletionPropagation()
95 List<PropertyConfig> properties = schema.getProperties(); in testPropertyConfig_deletionPropagation()
100 .isEqualTo(PropertyConfig.CARDINALITY_OPTIONAL); in testPropertyConfig_deletionPropagation()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/
DPerson.java91 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
107 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
120 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
133 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
148 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
155 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
162 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
171 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createSchema()
177 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in createSchema()
183 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in createSchema()
[all …]
DContactPoint.java51 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
64 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
71 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
84 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
97 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchSchema.java117 AppSearchSchema.PropertyConfig[] sortedProperties = in appendAppSearchSchemaString()
118 getProperties().toArray(new AppSearchSchema.PropertyConfig[0]); in appendAppSearchSchemaString()
122 AppSearchSchema.PropertyConfig propertyConfig = sortedProperties[i]; in appendAppSearchSchemaString()
162 public @NonNull List<PropertyConfig> getProperties() { in getProperties()
166 List<PropertyConfig> ret = new ArrayList<>(mPropertyConfigParcels.size()); in getProperties()
168 ret.add(PropertyConfig.fromParcel(mPropertyConfigParcels.get(i))); in getProperties()
265 @NonNull PropertyConfig propertyConfig) { in addProperty()
394 public abstract static class PropertyConfig { class in AppSearchSchema
503 PropertyConfig(@NonNull PropertyConfigParcel propertyConfigParcel) { in PropertyConfig() method in AppSearchSchema.PropertyConfig
537 case AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED: in appendPropertyConfigString()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSchemaToProtoConverterTest.java45 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
57 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
64 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
71 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
77 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testGetProto_DescriptionSet()
83 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
95 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_DescriptionSet()
199 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_Email()
210 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testGetProto_Email()
270 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testGetProto_MusicRecording()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/appsearchtypes/
DAppFunctionStaticMetadata.java75 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
85 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
95 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
105 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
111 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
122 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
127 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
132 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
137 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createAppFunctionSchemaForPackage()
DMobileApplication.java77 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
86 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
95 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in createMobileApplicationSchemaForPackage()
103 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
108 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
115 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
119 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in createMobileApplicationSchemaForPackage()
DAppOpenEvent.java61 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
76 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
85 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DTestUtils.java52 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
62 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
67 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
76 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
85 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
98 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
107 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
112 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
121 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
130 .setCardinality(AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DTestUtils.java79 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
97 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
115 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
134 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
150 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
157 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
164 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
171 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
177 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
185 + AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL
[all …]
DAppFunctionSchemaParserTest.java28 import android.app.appsearch.AppSearchSchema.PropertyConfig;
116 + PropertyConfig.CARDINALITY_REQUIRED in parse_singleType_withAttributesForAdditionalProperties()
152 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in parse_singleType_withAttributesForAdditionalProperties()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionInternalTest.java26 import android.app.appsearch.AppSearchSchema.PropertyConfig;
75 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
86 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
93 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
104 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
111 .setCardinality(PropertyConfig.CARDINALITY_REQUIRED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
122 .setCardinality(PropertyConfig.CARDINALITY_REPEATED) in testQuery_genericDocumentWrapsParentTypeForPolymorphism()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppFunctionDocumentParserImpl.java21 import android.app.appsearch.AppSearchSchema.PropertyConfig;
323 Map<String, PropertyConfig> qualifiedPropertyNamesToPropertyConfig = in parseAppFunctionsIntoMapForGivenSchemas()
385 @NonNull Map<String, PropertyConfig> qualifiedPropertyNamesToPropertyConfig, in buildGenericDocumentFromXmlElement()
408 PropertyConfig propertyConfig = in buildGenericDocumentFromXmlElement()
487 private static Map<String, PropertyConfig> buildQualifiedPropertyNameToPropertyConfigMap( in buildQualifiedPropertyNameToPropertyConfigMap()
491 Map<String, PropertyConfig> propertyMap = new ArrayMap<>(); in buildQualifiedPropertyNameToPropertyConfigMap()
497 List<AppSearchSchema.PropertyConfig> properties = schema.getProperties(); in buildQualifiedPropertyNameToPropertyConfigMap()
499 AppSearchSchema.PropertyConfig property = properties.get(i); in buildQualifiedPropertyNameToPropertyConfigMap()
563 @NonNull PropertyConfig propertyConfig, in addPrimitiveProperty()
570 case PropertyConfig.DATA_TYPE_BOOLEAN: in addPrimitiveProperty()
[all …]
DAppFunctionSchemaParser.java22 import android.app.appsearch.AppSearchSchema.PropertyConfig;
208 AppSearchSchema.PropertyConfig propertyConfig = in parseDocumentTypeAndCreateSchemas()
231 private PropertyConfig computePropertyConfigFromXsdType( in computePropertyConfigFromXsdType()
248 parser, XML_ATTRIBUTE_CARDINALITY, PropertyConfig.CARDINALITY_OPTIONAL); in computePropertyConfigFromXsdType()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/safeparcel/
DPropertyConfigParcel.java21 import android.app.appsearch.AppSearchSchema.PropertyConfig.Cardinality;
22 import android.app.appsearch.AppSearchSchema.PropertyConfig.DataType;
53 @AppSearchSchema.PropertyConfig.DataType
57 @AppSearchSchema.PropertyConfig.Cardinality
123 AppSearchSchema.PropertyConfig.DATA_TYPE_STRING, in createForString()
144 AppSearchSchema.PropertyConfig.DATA_TYPE_LONG, in createForLong()
164 AppSearchSchema.PropertyConfig.DATA_TYPE_DOUBLE, in createForDouble()
184 AppSearchSchema.PropertyConfig.DATA_TYPE_BOOLEAN, in createForBoolean()
203 AppSearchSchema.PropertyConfig.DATA_TYPE_BYTES, in createForBytes()
224 AppSearchSchema.PropertyConfig.DATA_TYPE_DOCUMENT, in createForDocument()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityDocumentV1.java66 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
71 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
76 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
81 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
86 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
DVisibilityToDocumentConverter.java121 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
127 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
133 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
140 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED)
151 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
165 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
171 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL)
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreTest.java450 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema()
456 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema()
462 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testMigrateFromDeprecatedOverlaySchema()
471 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema()
476 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testMigrateFromDeprecatedOverlaySchema()
481 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testMigrateFromDeprecatedOverlaySchema()
488 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in testMigrateFromDeprecatedOverlaySchema()
494 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema()
500 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testMigrateFromDeprecatedOverlaySchema()
DVisibilityStoreMigrationHelperFromV0Test.java213 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in buildAppSearchImplInV0()
220 AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED) in buildAppSearchImplInV0()
229 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in buildAppSearchImplInV0()
235 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in buildAppSearchImplInV0()
241 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in buildAppSearchImplInV0()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DGenericDocumentToProtoConverter.java277 @AppSearchSchema.PropertyConfig.DataType int dataType = 0; in setEmptyProperty()
286 case AppSearchSchema.PropertyConfig.DATA_TYPE_STRING: in setEmptyProperty()
289 case AppSearchSchema.PropertyConfig.DATA_TYPE_LONG: in setEmptyProperty()
292 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOUBLE: in setEmptyProperty()
295 case AppSearchSchema.PropertyConfig.DATA_TYPE_BOOLEAN: in setEmptyProperty()
298 case AppSearchSchema.PropertyConfig.DATA_TYPE_BYTES: in setEmptyProperty()
301 case AppSearchSchema.PropertyConfig.DATA_TYPE_DOCUMENT: in setEmptyProperty()
304 case AppSearchSchema.PropertyConfig.DATA_TYPE_EMBEDDING: in setEmptyProperty()
DSchemaToProtoConverter.java61 List<AppSearchSchema.PropertyConfig> properties = schema.getProperties(); in toSchemaTypeConfigProto()
71 AppSearchSchema.@NonNull PropertyConfig property) { in toPropertyConfigProto()
79 @AppSearchSchema.PropertyConfig.DataType int dataType = property.getDataType(); in toPropertyConfigProto()
88 @AppSearchSchema.PropertyConfig.Cardinality int cardinality = property.getCardinality(); in toPropertyConfigProto()
193 AppSearchSchema.PropertyConfig propertyConfig = toPropertyConfig(properties.get(i)); in toAppSearchSchema()
203 private static AppSearchSchema.@NonNull PropertyConfig toPropertyConfig( in toPropertyConfig()
/packages/services/Car/tools/vehiclepropertyidsparser/src/com/android/car/tool/
DVehiclePropertyIdsParser.java119 private static final class PropertyConfig { class in VehiclePropertyIdsParser
185 private static void setPermission(PropertyConfig config, Set<ACCESS_MODE> accessModes, in setPermission()
426 private void parseAndSetPermAnnotation(AnnotationExpr annotation, PropertyConfig config, in parseAndSetPermAnnotation()
443 private List<PropertyConfig> parse() { in parse()
444 List<PropertyConfig> propertyConfigs = new ArrayList<>(); in parse()
450 PropertyConfig propertyConfig = new PropertyConfig(); in parse()
653 List<PropertyConfig> propertyConfigs = new VehiclePropertyIdsParser(cu).parse(); in main()
661 PropertyConfig config = propertyConfigs.get(i); in main()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java635 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testLoggingStats_putDocument_success()
689 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testLoggingStats_putDocument_failure()
745 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testLoggingStats_search_success()
881 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testLoggingStats_search_join()
899 AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL) in testLoggingStats_search_join()
1199 AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED) in testLoggingStats_setSchema()

12