Home
last modified time | relevance | path

Searched refs:documentBuilder (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java154 @NonNull DocumentProto.Builder documentBuilder, @NonNull String prefix) { in addPrefixToDocument()
156 String newSchema = prefix + documentBuilder.getSchema(); in addPrefixToDocument()
157 documentBuilder.setSchema(newSchema); in addPrefixToDocument()
160 documentBuilder.setNamespace(prefix + documentBuilder.getNamespace()); in addPrefixToDocument()
164 propertyIdx < documentBuilder.getPropertiesCount(); in addPrefixToDocument()
166 int documentCount = documentBuilder.getProperties(propertyIdx).getDocumentValuesCount(); in addPrefixToDocument()
169 documentBuilder.getProperties(propertyIdx).toBuilder(); in addPrefixToDocument()
176 documentBuilder.setProperties(propertyIdx, propertyBuilder); in addPrefixToDocument()
189 public static String removePrefixesFromDocument(@NonNull DocumentProto.Builder documentBuilder) in removePrefixesFromDocument() argument
192 String schemaPrefix = getPrefix(documentBuilder.getSchema()); in removePrefixesFromDocument()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DGenericDocumentToProtoConverter.java153 GenericDocument.Builder<?> documentBuilder = in toGenericDocument() local
165 documentBuilder.setPropertyString( in toGenericDocument()
169 documentBuilder.setParentTypes(parentSchemaTypes); in toGenericDocument()
182 documentBuilder.setPropertyString(name, values); in toGenericDocument()
188 documentBuilder.setPropertyLong(name, values); in toGenericDocument()
194 documentBuilder.setPropertyDouble(name, values); in toGenericDocument()
200 documentBuilder.setPropertyBoolean(name, values); in toGenericDocument()
206 documentBuilder.setPropertyBytes(name, values); in toGenericDocument()
214 documentBuilder.setPropertyDocument(name, values); in toGenericDocument()
220 documentBuilder.setPropertyEmbedding(name, values); in toGenericDocument()
[all …]
DSearchResultToProtoConverter.java88 DocumentProto.Builder documentBuilder = proto.getDocument().toBuilder(); in toUnprefixedSearchResult() local
89 String prefix = removePrefixesFromDocument(documentBuilder); in toUnprefixedSearchResult()
94 documentBuilder, prefix, schemaTypeMap, config); in toUnprefixedSearchResult()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java1049 DocumentProto.Builder documentBuilder = in putDocument() local
1056 addPrefixToDocument(documentBuilder, prefix); in putDocument()
1058 DocumentProto finalDocument = documentBuilder.build(); in putDocument()
1236 DocumentProto.Builder documentBuilder = documentProto.toBuilder(); in globalGetDocument() local
1237 removePrefixesFromDocument(documentBuilder); in globalGetDocument()
1242 documentBuilder.build(), prefix, schemaTypeMap, mConfig); in globalGetDocument()
1276 DocumentProto.Builder documentBuilder = documentProto.toBuilder(); in getDocument() local
1277 removePrefixesFromDocument(documentBuilder); in getDocument()
1286 documentBuilder.build(), prefix, schemaTypeMap, mConfig); in getDocument()