Home
last modified time | relevance | path

Searched refs:GenericDocument (Results 1 – 25 of 38) sorted by relevance

12

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
H A DGenericDocumentToProtoConverterTest.java21 import android.app.appsearch.GenericDocument;
45 new GenericDocument.Builder<GenericDocument.Builder<?>>(
50 new GenericDocument.Builder<GenericDocument.Builder<?>>(
65 GenericDocument document = in testDocumentProtoConvert()
66 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testDocumentProtoConvert()
165 GenericDocument convertedDocument = in testConvertDocument_whenPropertyHasEmptyList()
168 GenericDocument expectedDocument = in testConvertDocument_whenPropertyHasEmptyList()
169 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testConvertDocument_whenPropertyHasEmptyList()
237 GenericDocument expectedDocument = in testConvertDocument_whenNestedDocumentPropertyHasEmptyList()
238 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testConvertDocument_whenNestedDocumentPropertyHasEmptyList()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/
H A DAppSearchImplTest.java447 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testTriggerCheckOptimizeByMutationSize()
508 GenericDocument validDoc = in testReset()
637 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testRewriteSearchSpec_oneInstance()
682 GenericDocument document1 = in testRewriteSearchSpec_twoInstances()
686 GenericDocument document2 = in testRewriteSearchSpec_twoInstances()
728 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testRewriteSearchSpec_ignoresSearchSpecSchemaFilters()
785 GenericDocument document = in testQueryWithMultiplePackages_noPackageFilters()
843 GenericDocument document = in testQueryWithMultiplePackages_withPackageFilters()
908 GenericDocument document1 = in testGetNextPageToken_query()
1667 GenericDocument document = in testClearPackageData()
[all …]
H A DAppSearchLoggerTest.java433 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initializeWithDocuments_success()
434 GenericDocument doc2 = new GenericDocument.Builder<>("namespace", "id2", "Type1").build(); in testLoggingStats_initializeWithDocuments_success()
487 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initialize_failure()
543 GenericDocument document = in testLoggingStats_putDocument_success()
591 GenericDocument document = in testLoggingStats_putDocument_failure()
641 GenericDocument document1 = in testLoggingStats_search_success()
645 GenericDocument document2 = in testLoggingStats_search_success()
649 GenericDocument document3 = in testLoggingStats_search_success()
752 GenericDocument document = in testLoggingStats_remove_success()
788 GenericDocument document = in testLoggingStats_remove_failure()
[all …]
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/
H A DGenericDocument.java50 public class GenericDocument { class
104 public GenericDocument(@NonNull Bundle bundle) { in GenericDocument() method in GenericDocument
119 protected GenericDocument(@NonNull GenericDocument document) { in GenericDocument() method in GenericDocument
256 GenericDocument document = new GenericDocument((Bundle) rawValue); in getProperty()
257 return new GenericDocument[] {document}; in getProperty()
292 GenericDocument[] documents = new GenericDocument[bundles.length]; in getProperty()
849 public GenericDocument.Builder<GenericDocument.Builder<?>> toBuilder() { in toBuilder()
862 GenericDocument otherDocument = (GenericDocument) other; in equals()
942 GenericDocument[] documentValues = (GenericDocument[]) property; in appendPropertyString()
1323 public GenericDocument build() { in build()
[all …]
H A DPutDocumentsRequest.java35 private final List<GenericDocument> mDocuments;
37 PutDocumentsRequest(List<GenericDocument> documents) { in PutDocumentsRequest()
43 public List<GenericDocument> getGenericDocuments() { in getGenericDocuments()
49 private ArrayList<GenericDocument> mDocuments = new ArrayList<>();
54 public Builder addGenericDocuments(@NonNull GenericDocument... documents) { in addGenericDocuments()
63 @NonNull Collection<? extends GenericDocument> documents) { in addGenericDocuments()
H A DMigrator.java67 public abstract GenericDocument onUpgrade( in onUpgrade()
68 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onUpgrade()
89 public abstract GenericDocument onDowngrade( in onDowngrade()
90 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onDowngrade()
H A DSearchResult.java55 @Nullable private GenericDocument mDocument;
77 public GenericDocument getGenericDocument() { in getGenericDocument()
80 new GenericDocument(Objects.requireNonNull(mBundle.getBundle(DOCUMENT_FIELD))); in getGenericDocument()
163 private GenericDocument mGenericDocument;
180 public Builder setGenericDocument(@NonNull GenericDocument document) { in setGenericDocument()
309 @Nullable final GenericDocument mDocument;
320 MatchInfo(@NonNull Bundle bundle, @Nullable GenericDocument document) { in MatchInfo()
422 private static String getPropertyValues(GenericDocument document, String propertyName) { in getPropertyValues()
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/converter/
H A DGenericDocumentToProtoConverter.java21 import android.app.appsearch.GenericDocument;
44 private static final GenericDocument[] EMPTY_DOCUMENT_ARRAY = new GenericDocument[0];
51 public static DocumentProto toDocumentProto(@NonNull GenericDocument document) { in toDocumentProto()
92 } else if (property instanceof GenericDocument[]) { in toDocumentProto()
93 GenericDocument[] documentValues = (GenericDocument[]) property; in toDocumentProto()
125 public static GenericDocument toGenericDocument( in toGenericDocument()
130 GenericDocument.Builder<?> documentBuilder = in toGenericDocument()
131 new GenericDocument.Builder<>( in toGenericDocument()
172 GenericDocument[] values = new GenericDocument[property.getDocumentValuesCount()]; in toGenericDocument()
188 @NonNull GenericDocument.Builder<?> documentBuilder, in setEmptyProperty()
H A DSearchResultToProtoConverter.java22 import android.app.appsearch.GenericDocument;
106 GenericDocument document = in toSearchResult()
/aosp12/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/external/
H A DAppSearchTestUtils.java26 import android.app.appsearch.GenericDocument;
101 public static List<GenericDocument> doGet( in doGet()
103 AppSearchBatchResult<String, GenericDocument> result = in doGet()
109 List<GenericDocument> list = new ArrayList<>(ids.length); in doGet()
116 public static List<GenericDocument> doGet( in doGet()
118 AppSearchBatchResult<String, GenericDocument> result = in doGet()
123 List<GenericDocument> list = new ArrayList<>(ids.size()); in doGet()
130 public static List<GenericDocument> convertSearchResultsToDocuments( in convertSearchResultsToDocuments()
133 List<GenericDocument> documents = new ArrayList<>(results.size()); in convertSearchResultsToDocuments()
H A DAppSearchEmail.java24 import android.app.appsearch.GenericDocument;
31 public class AppSearchEmail extends GenericDocument {
88 public AppSearchEmail(@NonNull GenericDocument document) { in AppSearchEmail()
154 public static class Builder extends GenericDocument.Builder<Builder> {
/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/app/
H A DGenericDocumentTest.java29 GenericDocument inDoc = in testRecreateFromParcel()
30 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testRecreateFromParcel()
36 new GenericDocument.Builder<>("namespace", "id2", "schema2") in testRecreateFromParcel()
56 GenericDocument outDoc = new GenericDocument(outBundle); in testRecreateFromParcel()
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/
H A DVisibilityDocument.java21 import android.app.appsearch.GenericDocument;
24 class VisibilityDocument extends GenericDocument {
53 public VisibilityDocument(@NonNull GenericDocument genericDocument) { in VisibilityDocument()
63 public GenericDocument[] getVisibleToPackages() { in getVisibleToPackages()
68 public static class Builder extends GenericDocument.Builder<VisibilityDocument.Builder> {
H A DVisibleToPackagesDocument.java21 import android.app.appsearch.GenericDocument;
29 class VisibleToPackagesDocument extends GenericDocument {
62 VisibleToPackagesDocument(@NonNull GenericDocument genericDocument) { in VisibleToPackagesDocument()
80 public static class Builder extends GenericDocument.Builder<VisibleToPackagesDocument.Builder> {
/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/
H A DAppSearchSessionUnitTest.java121 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage()
174 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage_multiPages()
176 GenericDocument document2 = new GenericDocument.Builder<>("namespace", "id2", in testGetEmptyNextPage_multiPages()
178 GenericDocument document3 = new GenericDocument.Builder<>("namespace", "id3", in testGetEmptyNextPage_multiPages()
206 List<GenericDocument> outDocs = new ArrayList<>(); in testGetEmptyNextPage_multiPages()
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
H A Ddom.md20 class GenericDocument : public GenericValue<Encoding, Allocator> {
25 typedef GenericDocument<UTF8<> > Document;
41 typedef GenericDocument<UTF16<> > WDocument;
76 GenericDocument& GenericDocument::ParseStream(InputStream& is);
80 GenericDocument& GenericDocument::ParseStream(InputStream& is);
84 GenericDocument& GenericDocument::ParseStream(InputStream& is);
88 GenericDocument& GenericDocument::ParseInsitu(Ch* str);
91 GenericDocument& GenericDocument::ParseInsitu(Ch* str);
95 GenericDocument& GenericDocument::Parse(const Ch* str);
99 GenericDocument& GenericDocument::Parse(const Ch* str);
[all …]
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Ddocument.h73 class GenericDocument; variable
1807 GenericDocument(GenericDocument&& rhs) RAPIDJSON_NOEXCEPT
1820 ~GenericDocument() {
1826 GenericDocument& operator=(GenericDocument&& rhs) RAPIDJSON_NOEXCEPT
1854 GenericDocument& Swap(GenericDocument& rhs) RAPIDJSON_NOEXCEPT {
1875 … friend inline void swap(GenericDocument& a, GenericDocument& b) RAPIDJSON_NOEXCEPT { a.Swap(b); }
1932 GenericDocument& ParseInsitu(Ch* str) {
2009 GenericDocument& d_;
2053 GenericDocument(const GenericDocument&);
2055 GenericDocument& operator=(const GenericDocument&);
[all …]
H A Dpointer.h443 …ValueType& Create(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>…
538 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault()
544 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault()
551 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault()
562 …GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d…
614 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set()
620 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set()
626 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set()
633 …ValueType& Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& d… in Set()
644 …Set(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, T …
[all …]
/aosp12/frameworks/base/core/java/android/content/pm/
H A DAppSearchPerson.java23 import android.app.appsearch.GenericDocument;
35 public class AppSearchPerson extends GenericDocument {
45 public AppSearchPerson(@NonNull GenericDocument document) { in AppSearchPerson()
107 public static class Builder extends GenericDocument.Builder<Builder> {
H A DAppSearchShortcutInfo.java24 import android.app.appsearch.GenericDocument;
51 public class AppSearchShortcutInfo extends GenericDocument {
314 public AppSearchShortcutInfo(@NonNull GenericDocument document) { in AppSearchShortcutInfo()
438 public static List<GenericDocument> toGenericDocuments( in toGenericDocuments()
440 final List<GenericDocument> docs = new ArrayList<>(shortcuts.size()); in toGenericDocuments()
449 public static class Builder extends GenericDocument.Builder<Builder> {
648 final GenericDocument[] documents = new GenericDocument[persons.length]; in setPersons()
924 private static Person[] parsePerson(@Nullable final GenericDocument[] persons) { in parsePerson()
928 final GenericDocument document = persons[i]; in parsePerson()
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Ddocumenttest.cpp71 typedef GenericDocument<UTF8<>, Allocator, StackAllocator> DocumentType; in ParseTest()
123 GenericDocument<UTF16<> > d; in TEST()
263 typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<> > DocumentType; in TEST()
293 GenericDocument< UTF16<> > json; in TEST()
354 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
388 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
422 typedef GenericDocument<Encoding, Allocator> Document;
447 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
483 typedef GenericDocument<UTF8<>, Allocator> Document; in TYPED_TEST()
519 typedef GenericDocument<Encoding, Allocator> Document;
H A Djsoncheckertest.cpp70GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no… in TEST()
90GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no… in TEST()
/aosp12/frameworks/base/apex/appsearch/framework/api/
H A Dcurrent.txt155 public class GenericDocument {
156 ctor protected GenericDocument(@NonNull android.app.appsearch.GenericDocument);
166 …method @Nullable public android.app.appsearch.GenericDocument getPropertyDocument(@NonNull String);
167 …method @Nullable public android.app.appsearch.GenericDocument[] getPropertyDocumentArray(@NonNull …
180 …public static class GenericDocument.Builder<BuilderType extends android.app.appsearch.GenericDocum…
181 ctor public GenericDocument.Builder(@NonNull String, @NonNull String, @NonNull String);
182 method @NonNull public android.app.appsearch.GenericDocument build();
229 …ic abstract android.app.appsearch.GenericDocument onDowngrade(int, int, @NonNull android.app.appse…
230 …lic abstract android.app.appsearch.GenericDocument onUpgrade(int, int, @NonNull android.app.appsea…
241 …method @NonNull public java.util.List<android.app.appsearch.GenericDocument> getGenericDocuments();
[all …]
/aosp12/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/
H A DAppSearchMigrationHelper.java187 GenericDocument document; in readAndTransform()
196 GenericDocument newDocument; in readAndTransform()
230 public static GenericDocument readDocumentFromInputStream( in readDocumentFromInputStream()
244 return new GenericDocument(bundle); in readDocumentFromInputStream()
/aosp12/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/
H A DAppSearchSessionShimImpl.java27 import android.app.appsearch.GenericDocument;
137 public ListenableFuture<AppSearchBatchResult<String, GenericDocument>> getByDocumentId( in getByDocumentId()
139 SettableFuture<AppSearchBatchResult<String, GenericDocument>> future = in getByDocumentId()

12