Home
last modified time | relevance | path

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

123

/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DAppSearchSessionInternalTestBase.java147 GenericDocument personDoc = in testQuery_typeFilterWithPolymorphism()
148 new GenericDocument.Builder<>("namespace", "id1", "Person") in testQuery_typeFilterWithPolymorphism()
151 GenericDocument artistDoc = in testQuery_typeFilterWithPolymorphism()
152 new GenericDocument.Builder<>("namespace", "id2", "Artist") in testQuery_typeFilterWithPolymorphism()
167 GenericDocument artistDocWithParent = in testQuery_typeFilterWithPolymorphism()
168 new GenericDocument.Builder<>(artistDoc) in testQuery_typeFilterWithPolymorphism()
179 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
263 GenericDocument personDoc = in testQuery_projectionWithPolymorphism()
264 new GenericDocument.Builder<>("namespace", "id1", "Person") in testQuery_projectionWithPolymorphism()
269 GenericDocument artistDoc = in testQuery_projectionWithPolymorphism()
[all …]
DGenericDocumentInternalTest.java33 GenericDocument inDoc = in testRecreateFromParcel()
34 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testRecreateFromParcel()
40 new GenericDocument.Builder<>("namespace", "id2", "schema2") in testRecreateFromParcel()
62 GenericDocument outDoc = new GenericDocument(documentParcel); in testRecreateFromParcel()
74 GenericDocument inDoc = in testRecreateFromParcelWithParentTypes()
75 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testRecreateFromParcelWithParentTypes()
82 new GenericDocument.Builder<>("namespace", "id2", "schema2") in testRecreateFromParcelWithParentTypes()
104 GenericDocument outDoc = new GenericDocument(documentParcel); in testRecreateFromParcelWithParentTypes()
117 GenericDocument oldDoc = in testGenericDocumentBuilderDoesNotMutateOriginal()
118 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testGenericDocumentBuilderDoesNotMutateOriginal()
[all …]
DSearchResultInternalTest.java26 GenericDocument document = in testSearchResultBuilderCopyConstructor()
27 new GenericDocument.Builder<>("namespace", "id", "schemaType").build(); in testSearchResultBuilderCopyConstructor()
68 GenericDocument document = in testSearchResultBuilderCopyConstructor_informationalRankingSignal()
69 new GenericDocument.Builder<>("namespace", "id", "schemaType").build(); in testSearchResultBuilderCopyConstructor_informationalRankingSignal()
85 GenericDocument document = in testSearchResultBuilder_clearJoinedResults()
86 new GenericDocument.Builder<>("namespace", "id", "schemaType").build(); in testSearchResultBuilder_clearJoinedResults()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionInternalTest.java99 GenericDocument personDoc = in testQuery_typeFilterWithPolymorphism()
100 new GenericDocument.Builder<>("namespace", "id1", "Person") in testQuery_typeFilterWithPolymorphism()
103 GenericDocument artistDoc = in testQuery_typeFilterWithPolymorphism()
104 new GenericDocument.Builder<>("namespace", "id2", "Artist") in testQuery_typeFilterWithPolymorphism()
119 GenericDocument artistDocWithParent = in testQuery_typeFilterWithPolymorphism()
131 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testQuery_typeFilterWithPolymorphism()
217 GenericDocument personDoc = in testQuery_projectionWithPolymorphism()
218 new GenericDocument.Builder<>("namespace", "id1", "Person") in testQuery_projectionWithPolymorphism()
223 GenericDocument artistDoc = in testQuery_projectionWithPolymorphism()
224 new GenericDocument.Builder<>("namespace", "id2", "Artist") in testQuery_projectionWithPolymorphism()
[all …]
DAppSearchSessionUnitTest.java76 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage()
129 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage_multiPages()
131 GenericDocument document2 = new GenericDocument.Builder<>("namespace", "id2", in testGetEmptyNextPage_multiPages()
133 GenericDocument document3 = new GenericDocument.Builder<>("namespace", "id3", in testGetEmptyNextPage_multiPages()
161 List<GenericDocument> outDocs = new ArrayList<>(); in testGetEmptyNextPage_multiPages()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityToDocumentConverterTest.java22 import android.app.appsearch.GenericDocument;
110 GenericDocument expectedAndroidVOverlay = in testToGenericDocuments()
111 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testToGenericDocuments()
119 GenericDocument permissionDoc34 = in testToGenericDocuments()
120 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testToGenericDocuments()
125 GenericDocument expectedVisibilityDocument = in testToGenericDocuments()
126 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testToGenericDocuments()
194 GenericDocument androidVOverlay = in testToVisibilityConfig()
195 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testToVisibilityConfig()
203 GenericDocument permissionDoc34 = in testToVisibilityConfig()
[all …]
DVisibilityStoreMigrationHelperFromV0Test.java30 import android.app.appsearch.GenericDocument;
84 GenericDocument deprecatedVisibilityToPackageFoo = in testVisibilityMigration_from0()
85 new GenericDocument.Builder<>( in testVisibilityMigration_from0()
94 GenericDocument deprecatedVisibilityToPackageBar = in testVisibilityMigration_from0()
95 new GenericDocument.Builder<>( in testVisibilityMigration_from0()
104 GenericDocument deprecatedVisibilityDocument = in testVisibilityMigration_from0()
105 new GenericDocument.Builder<>( in testVisibilityMigration_from0()
154 GenericDocument actualDocument1 = in testVisibilityMigration_from0()
161 GenericDocument actualDocument2 = in testVisibilityMigration_from0()
169 GenericDocument expectedDocument1 = in testVisibilityMigration_from0()
[all …]
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DPutDocumentsRequest.java42 private final List<GenericDocument> mDocuments;
44 private final List<GenericDocument> mTakenActions;
46 PutDocumentsRequest(List<GenericDocument> documents, List<GenericDocument> takenActions) { in PutDocumentsRequest()
53 public List<GenericDocument> getGenericDocuments() { in getGenericDocuments()
65 public List<GenericDocument> getTakenActionGenericDocuments() { in getTakenActionGenericDocuments()
71 private ArrayList<GenericDocument> mDocuments = new ArrayList<>();
72 private ArrayList<GenericDocument> mTakenActions = new ArrayList<>();
78 public Builder addGenericDocuments(@NonNull GenericDocument... documents) { in addGenericDocuments()
88 @NonNull Collection<? extends GenericDocument> documents) { in addGenericDocuments()
176 @NonNull GenericDocument... takenActionGenericDocuments) throws AppSearchException { in addTakenActionGenericDocuments()
[all …]
DGenericDocument.java54 public class GenericDocument { class
72 public static final GenericDocument EMPTY = new GenericDocument.Builder<>("", "", "").build();
98 public GenericDocument(@NonNull GenericDocumentParcel documentParcel) { in GenericDocument() method in GenericDocument
107 protected GenericDocument(@NonNull GenericDocument document) { in GenericDocument() method in GenericDocument
275 GenericDocument document = new GenericDocument((GenericDocumentParcel) rawValue); in getProperty()
276 return new GenericDocument[] {document}; in getProperty()
284 GenericDocument[] documents = new GenericDocument[docParcels.length]; in getProperty()
290 documents[i] = new GenericDocument(docParcels[i]); in getProperty()
665 public GenericDocument getPropertyDocument(@NonNull String path) { in getPropertyDocument()
667 GenericDocument[] propertyArray = getPropertyDocumentArray(path); in getPropertyDocument()
[all …]
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()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/
DSearchSessionStatsExtractorTest.java21 import android.app.appsearch.GenericDocument;
38 GenericDocument searchAction1 = in testExtract()
45 GenericDocument clickAction1 = in testExtract()
54 GenericDocument clickAction2 = in testExtract()
63 GenericDocument searchAction2 = in testExtract()
70 GenericDocument clickAction3 = in testExtract()
79 GenericDocument clickAction4 = in testExtract()
88 GenericDocument clickAction5 = in testExtract()
98 List<GenericDocument> takenActionGenericDocuments = in testExtract()
177 GenericDocument clickAction1 = in testExtract_noSearchActionShouldReturnEmptyList()
[all …]
DSearchActionGenericDocumentTest.java23 import android.app.appsearch.GenericDocument;
51 GenericDocument document = in testBuild_fromGenericDocument()
52 new GenericDocument.Builder<>("namespace", "search", "builtin:SearchAction") in testBuild_fromGenericDocument()
73 GenericDocument documentWithoutActionType = in testBuild_invalidActionTypeThrowsException()
74 new GenericDocument.Builder<>("namespace", "search", "builtin:SearchAction") in testBuild_invalidActionTypeThrowsException()
83 GenericDocument documentWithUnknownActionType = in testBuild_invalidActionTypeThrowsException()
84 new GenericDocument.Builder<>("namespace", "search", "builtin:SearchAction") in testBuild_invalidActionTypeThrowsException()
96 GenericDocument documentWithIncorrectActionType = in testBuild_invalidActionTypeThrowsException()
97 new GenericDocument.Builder<>("namespace", "search", "builtin:SearchAction") in testBuild_invalidActionTypeThrowsException()
DClickActionGenericDocumentTest.java23 import android.app.appsearch.GenericDocument;
54 GenericDocument document = in testBuild_fromGenericDocument()
55 new GenericDocument.Builder<>("namespace", "click", "builtin:ClickAction") in testBuild_fromGenericDocument()
80 GenericDocument documentWithoutActionType = in testBuild_invalidActionTypeThrowsException()
81 new GenericDocument.Builder<>("namespace", "search", "builtin:ClickAction").build(); in testBuild_invalidActionTypeThrowsException()
88 GenericDocument documentWithUnknownActionType = in testBuild_invalidActionTypeThrowsException()
89 new GenericDocument.Builder<>("namespace", "search", "builtin:ClickAction") in testBuild_invalidActionTypeThrowsException()
100 GenericDocument documentWithIncorrectActionType = in testBuild_invalidActionTypeThrowsException()
101 new GenericDocument.Builder<>("namespace", "search", "builtin:SearchAction") in testBuild_invalidActionTypeThrowsException()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformerTest.java21 import android.app.appsearch.GenericDocument;
37 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "1", in testTransformSearchResultPage()
40 GenericDocument document2 = new GenericDocument.Builder<>("namespace", "2", in testTransformSearchResultPage()
67 GenericDocument transformedDocument1 = in testTransformSearchResultPage()
69 GenericDocument transformedDocument2 = in testTransformSearchResultPage()
93 GenericDocument document = new GenericDocument.Builder<>("namespace", "1", in testTransformSearchResult()
110 GenericDocument transformedDocument = in testTransformSearchResult()
131 GenericDocument document = new GenericDocument.Builder<>("namespace", "1", in testTransformDocument_transformsPersonSchemaType()
140 document = new GenericDocument.Builder<>("namespace", "1", "otherSchemaType") in testTransformDocument_transformsPersonSchemaType()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DGenericDocumentToProtoConverterTest.java22 import android.app.appsearch.GenericDocument;
54 private static final GenericDocument DOCUMENT_PROPERTIES_1 =
55 new GenericDocument.Builder<GenericDocument.Builder<?>>(
59 private static final GenericDocument DOCUMENT_PROPERTIES_2 =
60 new GenericDocument.Builder<GenericDocument.Builder<?>>(
75 GenericDocument document = in testDocumentProtoConvert()
76 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testDocumentProtoConvert()
138 GenericDocument convertedGenericDocument = in testDocumentProtoConvert()
155 GenericDocument document = in testConvertDocument_whenPropertyHasEmptyList()
156 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testConvertDocument_whenPropertyHasEmptyList()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java36 import android.app.appsearch.GenericDocument;
495 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testTriggerCheckOptimizeByMutationSize()
551 GenericDocument validDoc = in testReset()
552 new GenericDocument.Builder<>("namespace1", "id1", "Type1").build(); in testReset()
713 GenericDocument document = in testQueryWithMultiplePackages_noPackageFilters()
714 new GenericDocument.Builder<>("namespace", "id", "schema1").build(); in testQueryWithMultiplePackages_noPackageFilters()
730 document = new GenericDocument.Builder<>("namespace", "id", "schema2").build(); in testQueryWithMultiplePackages_noPackageFilters()
780 GenericDocument document = in testQueryWithMultiplePackages_withPackageFilters()
781 new GenericDocument.Builder<>("namespace", "id", "schema1").build(); in testQueryWithMultiplePackages_withPackageFilters()
801 document = new GenericDocument.Builder<>("namespace", "id", "schema2").build(); in testQueryWithMultiplePackages_withPackageFilters()
[all …]
DAppSearchLoggerTest.java23 import android.app.appsearch.GenericDocument;
430 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initializeWithDocuments_success()
431 GenericDocument doc2 = new GenericDocument.Builder<>("namespace", "id2", "Type1").build(); in testLoggingStats_initializeWithDocuments_success()
498 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initialize_failure()
563 GenericDocument document = in testLoggingStats_putDocument_success()
564 new GenericDocument.Builder<>("namespace", "id", "type") in testLoggingStats_putDocument_success()
616 GenericDocument document = in testLoggingStats_putDocument_failure()
617 new GenericDocument.Builder<>("namespace", "id", "type") in testLoggingStats_putDocument_failure()
670 GenericDocument document1 = in testLoggingStats_search_success()
671 new GenericDocument.Builder<>("namespace", "id1", "type") in testLoggingStats_search_success()
[all …]
/packages/modules/AppSearch/framework/java/android/app/appsearch/functions/
DExecuteAppFunctionResponse.java21 import android.app.appsearch.GenericDocument;
62 @NonNull private final GenericDocument mResultCached;
69 mResultCached = new GenericDocument(mResult); in ExecuteAppFunctionResponse()
73 private ExecuteAppFunctionResponse(@NonNull GenericDocument result, @NonNull Bundle extras) { in ExecuteAppFunctionResponse()
84 public GenericDocument getResult() { in getResult()
102 @NonNull private GenericDocument mResult = GenericDocument.EMPTY;
112 public Builder setResult(@NonNull GenericDocument result) { in setResult()
DExecuteAppFunctionRequest.java22 import android.app.appsearch.GenericDocument;
71 @NonNull private final GenericDocument mParametersCached;
94 public GenericDocument getParameters() { in getParameters()
118 @NonNull GenericDocument document, in ExecuteAppFunctionRequest()
139 mParametersCached = new GenericDocument(mParameters); in ExecuteAppFunctionRequest()
154 @NonNull private GenericDocument mParameters = GenericDocument.EMPTY;
177 public Builder setParameters(@NonNull GenericDocument parameters) { in setParameters()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/usagereporting/
DTakenActionGenericDocument.java23 import android.app.appsearch.GenericDocument;
34 public abstract class TakenActionGenericDocument extends GenericDocument {
46 public static TakenActionGenericDocument create(@NonNull GenericDocument document) in create()
61 protected TakenActionGenericDocument(@NonNull GenericDocument document) { in TakenActionGenericDocument()
71 abstract static class Builder<T extends Builder<T>> extends GenericDocument.Builder<T> {
107 Builder(@NonNull GenericDocument document) { in Builder()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityToDocumentConverter.java22 import android.app.appsearch.GenericDocument;
187 @NonNull GenericDocument visibilityDocument, in createInternalVisibilityConfig()
188 @Nullable GenericDocument androidVOverlayDocument) { in createInternalVisibilityConfig()
246 @NonNull GenericDocument visibilityDocument, in createVisibilityConfig()
265 GenericDocument[] visibleToPermissionDocs = in createVisibilityConfig()
359 public static GenericDocument createVisibilityDocument( in createVisibilityDocument()
361 GenericDocument.Builder<?> builder = in createVisibilityDocument()
362 new GenericDocument.Builder<>( in createVisibilityDocument()
383 GenericDocument[] permissionGenericDocs = in createVisibilityDocument()
384 new GenericDocument[visibleToPermissions.size()]; in createVisibilityDocument()
[all …]
DVisibilityStoreMigrationHelperFromV0.java22 import android.app.appsearch.GenericDocument;
131 static List<GenericDocument> getVisibilityDocumentsInVersion0( in getVisibilityDocumentsInVersion0()
138 List<GenericDocument> deprecatedDocuments = new ArrayList<>(packageToDatabases.size()); in getVisibilityDocumentsInVersion0()
177 @NonNull List<GenericDocument> visibilityDocumentV0s) { in toVisibilityDocumentV1()
182 GenericDocument visibilityDocumentV0 = visibilityDocumentV0s.get(i); in toVisibilityDocumentV1()
199 GenericDocument[] deprecatedPackageDocuments = in toVisibilityDocumentV1()
203 for (GenericDocument deprecatedPackageDocument : deprecatedPackageDocuments) { in toVisibilityDocumentV1()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DGenericDocumentToProtoConverter.java22 import android.app.appsearch.GenericDocument;
56 private static final GenericDocument[] EMPTY_DOCUMENT_ARRAY = new GenericDocument[0];
64 public static DocumentProto toDocumentProto(@NonNull GenericDocument document) { in toDocumentProto()
105 } else if (property instanceof GenericDocument[]) { in toDocumentProto()
106 GenericDocument[] documentValues = (GenericDocument[]) property; in toDocumentProto()
146 public static GenericDocument toGenericDocument( in toGenericDocument()
153 GenericDocument.Builder<?> documentBuilder = in toGenericDocument()
154 new GenericDocument.Builder<>( in toGenericDocument()
166 GenericDocument.PARENT_TYPES_SYNTHETIC_PROPERTY, in toGenericDocument()
208 GenericDocument[] values = new GenericDocument[property.getDocumentValuesCount()]; in toGenericDocument()
[all …]
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DSyncAppSearchImplTest.java29 import android.app.appsearch.GenericDocument;
98 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testSynchronousMethods()
100 GenericDocument document2 = new GenericDocument.Builder<>("namespace", "id2", in testSynchronousMethods()
102 GenericDocument document3 = new GenericDocument.Builder<>("namespace", "id3", in testSynchronousMethods()
124 List<GenericDocument> outDocs = new ArrayList<>(); in testSynchronousMethods()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DEnterpriseContactsTest.java53 import android.app.appsearch.GenericDocument;
237 AppSearchBatchResult<String, GenericDocument> getResult = in testGetEnterpriseContact()
242 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact()
264 GenericDocument contactPoint = document.getPropertyDocumentArray( in testGetEnterpriseContact()
289 AppSearchBatchResult<String, GenericDocument> getResult = in testGetEnterpriseContact_withProjection()
294 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact_withProjection()
300 GenericDocument contactPoint = document.getPropertyDocumentArray( in testGetEnterpriseContact_withProjection()
320 List<GenericDocument> documents = convertSearchResultsToDocuments(searchResults); in testSearchEnterpriseContacts()
322 for (GenericDocument document : documents) { in testSearchEnterpriseContacts()
328 GenericDocument contactPoint = document.getPropertyDocumentArray( in testSearchEnterpriseContacts()
[all …]

123