Home
last modified time | relevance | path

Searched refs:typeConfigBuilder (Results 1 – 2 of 2) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java246 @NonNull SchemaTypeConfigProto.Builder typeConfigBuilder) throws AppSearchException { in removePrefixesFromSchemaType()
247 String typePrefix = PrefixUtil.getPrefix(typeConfigBuilder.getSchemaType()); in removePrefixesFromSchemaType()
249 String newSchemaType = typeConfigBuilder.getSchemaType().substring(typePrefix.length()); in removePrefixesFromSchemaType()
250 typeConfigBuilder.setSchemaType(newSchemaType); in removePrefixesFromSchemaType()
254 propertyIdx < typeConfigBuilder.getPropertiesCount(); in removePrefixesFromSchemaType()
256 if (!typeConfigBuilder.getProperties(propertyIdx).getSchemaType().isEmpty()) { in removePrefixesFromSchemaType()
258 typeConfigBuilder.getProperties(propertyIdx).toBuilder(); in removePrefixesFromSchemaType()
262 typeConfigBuilder.setProperties(propertyIdx, propertyConfigBuilder); in removePrefixesFromSchemaType()
268 parentTypeIdx < typeConfigBuilder.getParentTypesCount(); in removePrefixesFromSchemaType()
271 typeConfigBuilder.getParentTypes(parentTypeIdx).substring(typePrefix.length()); in removePrefixesFromSchemaType()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java915 SchemaTypeConfigProto.Builder typeConfigBuilder = typeConfig.toBuilder(); in getSchema() local
916 PrefixUtil.removePrefixesFromSchemaType(typeConfigBuilder); in getSchema()
918 SchemaToProtoConverter.toAppSearchSchema(typeConfigBuilder); in getSchema()
2523 SchemaTypeConfigProto.Builder typeConfigBuilder = in rewriteSchema() local
2527 String newSchemaType = prefix + typeConfigBuilder.getSchemaType(); in rewriteSchema()
2528 typeConfigBuilder.setSchemaType(newSchemaType); in rewriteSchema()
2532 propertyIdx < typeConfigBuilder.getPropertiesCount(); in rewriteSchema()
2535 typeConfigBuilder.getProperties(propertyIdx).toBuilder(); in rewriteSchema()
2539 typeConfigBuilder.setProperties(propertyIdx, propertyConfigBuilder); in rewriteSchema()
2545 parentTypeIdx < typeConfigBuilder.getParentTypesCount(); in rewriteSchema()
[all …]