Home
last modified time | relevance | path

Searched refs:SCHEMA_TYPE (Results 1 – 21 of 21) sorted by relevance

/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/
DEnterpriseSearchSpecTransformerTest.java43 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_whenProjectionNotSuppliedByUser()
53 .addProjection(Person.SCHEMA_TYPE, clientProjection) in testTransformProjection_whenProjectionSuppliedByUser()
59 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_whenProjectionSuppliedByUser()
75 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes()
86 assertThat(schemaPropertiesMap.get(Person.SCHEMA_TYPE)).containsExactlyElementsIn( in testTransformProperties_addsProjectionWhenNotSuppliedByUser()
95 schemaPropertiesMap.put(Person.SCHEMA_TYPE, properties); in testTransformProperties_whenProjectionSuppliedByUser()
99 assertThat(schemaPropertiesMap.get(Person.SCHEMA_TYPE)).containsExactlyElementsIn( in testTransformProperties_whenProjectionSuppliedByUser()
114 assertThat(schemaPropertiesMap.get(Person.SCHEMA_TYPE)).containsExactlyElementsIn( in testTransformProperties_doesNotAffectNonEnterpriseSchemaTypes()
125 assertThat(transformedSpec.getFilterProperties().get(Person.SCHEMA_TYPE)) in testTransformPropertyFilters_whenFiltersNotSuppliedByUser()
135 .addFilterProperties(Person.SCHEMA_TYPE, clientFilterProperties) in testTransformPropertyFilters_whenFiltersSuppliedByUser()
[all …]
DEnterpriseSearchResultPageTransformerTest.java38 Person.SCHEMA_TYPE) in testTransformSearchResultPage()
41 Person.SCHEMA_TYPE) in testTransformSearchResultPage()
94 Person.SCHEMA_TYPE) in testTransformSearchResult()
132 Person.SCHEMA_TYPE) in testTransformDocument_transformsPersonSchemaType()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DPersonEnterpriseTransformer.java88 return schemaType.equals(Person.SCHEMA_TYPE) in shouldTransform()
208 Person.SCHEMA_TYPE, getAccessibleProperties(projections.get(Person.SCHEMA_TYPE))); in transformSearchSpec()
210 Person.SCHEMA_TYPE, in transformSearchSpec()
211 getAccessibleProperties(filterProperties.get(Person.SCHEMA_TYPE))); in transformSearchSpec()
221 Person.SCHEMA_TYPE, getAccessibleProperties(propertiesMap.get(Person.SCHEMA_TYPE))); in transformPropertiesMap()
DEnterpriseSearchSpecTransformer.java71 return filteredSchemas.isEmpty() || filteredSchemas.contains(Person.SCHEMA_TYPE); in shouldTransformSearchSpecFilters()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DVisibilityPermissionConfig.java46 public static final String SCHEMA_TYPE = "VisibilityPermissionType"; field in VisibilityPermissionConfig
58 new AppSearchSchema.Builder(SCHEMA_TYPE)
135 new GenericDocument.Builder<>(/* namespace= */ "", /* id= */ "", SCHEMA_TYPE); in toGenericDocument()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityDocumentV1.java36 static final String SCHEMA_TYPE = "VisibilityType"; field in VisibilityDocumentV1
60 new AppSearchSchema.Builder(SCHEMA_TYPE)
149 super(NAMESPACE, id, SCHEMA_TYPE); in Builder()
DVisibilityToDocumentConverter.java137 VisibilityPermissionConfig.SCHEMA_TYPE)
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/
DContactPoint.java35 public static final String SCHEMA_TYPE = "builtin:ContactPoint"; field in ContactPoint
46 new AppSearchSchema.Builder(SCHEMA_TYPE)
154 super(namespace, id, SCHEMA_TYPE); in Builder()
DPerson.java42 public static final String SCHEMA_TYPE = "builtin:Person"; field in Person
85 new AppSearchSchema.Builder(SCHEMA_TYPE) in createSchema()
371 super(namespace, id, SCHEMA_TYPE); in Builder()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DAppSearchHelper.java227 Person.SCHEMA_TYPE, in setPersonSchemaAsync()
235 Person.SCHEMA_TYPE, in setPersonSchemaAsync()
560 .addFilterSchemas(Person.SCHEMA_TYPE)
562 Person.SCHEMA_TYPE,
596 Person.SCHEMA_TYPE,
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/stats/
DRemoveStats.java47 SCHEMA_TYPE,
65 public static final int SCHEMA_TYPE = 4; field in RemoveStats
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerTestBase.java114 if (changedSchema.startsWith(MobileApplication.SCHEMA_TYPE)) { in setupLatch()
125 if (!changeInfo.getSchemaName().startsWith(MobileApplication.SCHEMA_TYPE)) { in setupLatch()
DTestUtils.java19 import static com.android.server.appsearch.appsindexer.appsearchtypes.MobileApplication.SCHEMA_TYPE;
68 new AppSearchSchema.Builder(SCHEMA_TYPE)
84 new AppSearchSchema.Builder(SCHEMA_TYPE)
DAppsIndexerRealDocumentsTest.java106 .startsWith(MobileApplication.SCHEMA_TYPE); in testRealDocuments_check()
160 assertThat(documents.get(0).getSchemaType()).startsWith(MobileApplication.SCHEMA_TYPE); in testRealIndexing()
DAppSearchHelperTest.java102 .containsExactly(MobileApplication.SCHEMA_TYPE + "-" + FAKE_PACKAGE_PREFIX + "0"); in testAppSearchHelper_permissionSetCorrectlyForMobileApplication()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/appsearchtypes/
DMobileApplication.java39 public static final String SCHEMA_TYPE = "builtin:MobileApplication"; field in MobileApplication
53 return SCHEMA_TYPE + "-" + Objects.requireNonNull(pkg); in getSchemaNameForPackage()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DEnterpriseContactsTest.java282 "namespace").addIds("123").addProjection(Person.SCHEMA_TYPE, in testGetEnterpriseContact_withProjection()
346 .addProjection(Person.SCHEMA_TYPE, in testSearchEnterpriseContacts_withProjection()
379 .addFilterProperties(Person.SCHEMA_TYPE, in testSearchEnterpriseContacts_withFilter()
422 assertThat(schemas.iterator().next().getSchemaType()).isEqualTo(Person.SCHEMA_TYPE); in testEnterpriseContacts_canAccessWithOnlyContactsAccess()
521 new ObserverSpec.Builder().addFilterSchemas(Person.SCHEMA_TYPE).build(), in testEnterpriseContactsInSystemPackage_transformPerson()
569 .addFilterSchemas(Person.SCHEMA_TYPE) in testEnterpriseContactsInSystemPackage_transformPerson()
DTestUtils.java49 ContactPoint.SCHEMA_TYPE)
95 ContactPoint.SCHEMA_TYPE)
DAppSearchHelperTest.java139 Person.SCHEMA_TYPE, in testAppSearchHelper_permissionIsSetCorrectlyForPerson()
349 new GenericDocument.Builder<>("namespace", "id1", Person.SCHEMA_TYPE) in testPersonSchema_indexFirstMiddleAndLastNames()
398 new GenericDocument.Builder<>("namespace", "id1", Person.SCHEMA_TYPE) in testPersonSchema_indexFullNameOnly()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverter.java460 resultGroupingType = ResultSpecProto.ResultGroupingType.SCHEMA_TYPE; in toResultSpecProto()
476 resultGroupingType = ResultSpecProto.ResultGroupingType.SCHEMA_TYPE; in toResultSpecProto()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreTest.java480 VisibilityPermissionConfig.SCHEMA_TYPE) in testMigrateFromDeprecatedOverlaySchema()