Home
last modified time | relevance | path

Searched refs:getSchemaType (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java247 String typePrefix = PrefixUtil.getPrefix(typeConfigBuilder.getSchemaType()); in removePrefixesFromSchemaType()
249 String newSchemaType = typeConfigBuilder.getSchemaType().substring(typePrefix.length()); in removePrefixesFromSchemaType()
256 if (!typeConfigBuilder.getProperties(propertyIdx).getSchemaType().isEmpty()) { in removePrefixesFromSchemaType()
260 propertyConfigBuilder.getSchemaType().substring(typePrefix.length()); in removePrefixesFromSchemaType()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DGetSchemaResponse.java152 copy.add(visibilityConfigs.get(i).getSchemaType()); in getSchemaTypesNotDisplayedBySystem()
175 visibilityConfig.getSchemaType(), in getSchemaTypesVisibleToPackages()
223 visibilityConfig.getSchemaType(), in getRequiredPermissionsForSchemaTypeVisibility()
249 copy.put(visibilityConfig.getSchemaType(), publiclyVisibleTargetPackage); in getPubliclyVisibleSchemas()
275 visibilityConfig.getSchemaType(), in getSchemaTypesVisibleToConfigs()
DAppSearchSchema.java113 builder.append("schemaType: \"").append(getSchemaType()).append("\",\n"); in appendAppSearchSchemaString()
139 public String getSchemaType() { in getSchemaType() method in AppSearchSchema
192 if (!getSchemaType().equals(otherSchema.getSchemaType())) { in equals()
206 return Objects.hash(getSchemaType(), getProperties(), getParentTypes(), getDescription()); in hashCode()
1311 public String getSchemaType() { in getSchemaType() method in AppSearchSchema.DocumentPropertyConfig
1312 return Objects.requireNonNull(mPropertyConfigParcel.getSchemaType()); in getSchemaType()
1557 builder.append("schemaType: \"").append(getSchemaType()).append("\",\n"); in appendDocumentPropertyConfigFields()
DInternalVisibilityConfig.java66 String schemaType = searchSchema.getSchemaType(); in toInternalVisibilityConfigs()
139 public String getSchemaType() { in getSchemaType() method in InternalVisibilityConfig
DSetSchemaResponse.java397 public String getSchemaType() { in getSchemaType() method in SetSchemaResponse.MigrationFailure
414 + getSchemaType() in toString()
DGenericDocument.java136 public String getSchemaType() { in getSchemaType() method in GenericDocument
137 return mDocumentParcel.getSchemaType(); in getSchemaType()
955 builder.append("schemaType: \"").append(getSchemaType()).append("\",\n"); in appendGenericDocumentString()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/safeparcel/
DGenericDocumentParcelTest.java157 assertThat(genericDocumentParcelCopy.getSchemaType()) in testGenericDocumentParcel_buildFromAnotherDocumentParcelCorrectly()
158 .isEqualTo(genericDocumentParcel.getSchemaType()); in testGenericDocumentParcel_buildFromAnotherDocumentParcelCorrectly()
269 assertThat(outDoc.getSchemaType()).isEqualTo("schema1"); in testRecreateFromParcelWithParentTypes()
288 assertThat(innerDocs[0].getSchemaType()).isEqualTo("schema2"); in testRecreateFromParcelWithParentTypes()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStore.java149 mVisibilityConfigMap.get(prefixedVisibilityConfig.getSchemaType()); in setVisibility()
178 prefixedVisibilityConfig.getSchemaType(), in setVisibility()
190 prefixedVisibilityConfig.getSchemaType(), prefixedVisibilityConfig); in setVisibility()
365 mVisibilityConfigMap.put(migratedConfig.getSchemaType(), migratedConfig); in setLatestSchemaAndDocuments()
DVisibilityToDocumentConverter.java364 config.getSchemaType(), // We are using the prefixedSchemaType to be the id in createVisibilityDocument()
440 internalVisibilityConfig.getSchemaType(), in createAndroidVOverlay()
DVisibilityStoreMigrationHelperFromV0.java241 if (VisibilityStoreMigrationHelperFromV0.isDeprecatedType(schema.getSchemaType())) { in hasDeprecatedType()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/
DSearchActionGenericDocumentTest.java41 assertThat(searchActionGenericDocument.getSchemaType()).isEqualTo("builtin:SearchAction"); in testBuild()
63 assertThat(searchActionGenericDocument.getSchemaType()).isEqualTo("builtin:SearchAction"); in testBuild_fromGenericDocument()
DClickActionGenericDocumentTest.java42 assertThat(clickActionGenericDocument.getSchemaType()).isEqualTo("builtin:ClickAction"); in testBuild()
68 assertThat(clickActionGenericDocument.getSchemaType()).isEqualTo("builtin:ClickAction"); in testBuild_fromGenericDocument()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DEnterpriseSearchResultPageTransformer.java104 packageName, databaseName, originalDocument.getSchemaType())) { in transformDocument()
147 packageName, databaseName, document.getSchemaType()); in shouldTransformDocument()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSchemaToProtoConverter.java57 .setSchemaType(schema.getSchemaType()) in toSchemaTypeConfigProto()
124 builder.setSchemaType(documentProperty.getSchemaType()) in toPropertyConfigProto()
173 AppSearchSchema.Builder builder = new AppSearchSchema.Builder(proto.getSchemaType()); in toAppSearchSchema()
246 proto.getPropertyName(), proto.getSchemaType()) in toDocumentPropertyConfig()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DAppSearchMigrationHelper.java112 mDestinationTypes.add(newSchema.getSchemaType()); in AppSearchMigrationHelper()
278 if (!mDestinationTypes.contains(newDocument.getSchemaType())) { in readAndTransform()
286 + newDocument.getSchemaType() in readAndTransform()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DAdbDumpUtil.java109 typeBuilder.setSchemaType(generateFingerprintMd5(typeBuilder.getSchemaType())); in desensitizeDebugInfo()
115 generateFingerprintMd5(propertyBuilder.getSchemaType())); in desensitizeDebugInfo()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java381 String prefixedSchemaType = schema.getSchemaType(); in AppSearchImpl()
579 String oldSchemaName = oldSchemaType.getSchemaType(); in doSetSchemaWithChangeNotificationLocked()
618 String newSchemaName = newSchemaType.getSchemaType(); in doSetSchemaWithChangeNotificationLocked()
834 String schemaType = visibilityConfig.getSchemaType(); in doSetSchemaNoChangeNotificationLocked()
841 deprecatedVisibilityDocuments.remove(visibilityConfig.getSchemaType()); in doSetSchemaNoChangeNotificationLocked()
898 String prefixedSchemaType = typeConfig.getSchemaType(); in getSchema()
926 String typeName = typeConfig.getSchemaType().substring(typePrefix.length()); in getSchema()
1099 document.getSchemaType(), in putDocument()
1321 String nonPrefixedType = nonPrefixedPropertyMaskBuilders.get(i).getSchemaType(); in getDocumentProtoByIdLocked()
2388 String packageName = getPackageName(existingSchema.getTypes(i).getSchemaType()); in prunePackageData()
[all …]
DSchemaCache.java154 children.add(childSchemaConfig.getSchemaType()); in rebuildSchemaParentToChildrenMapForPrefix()
195 schemaTypeMap.put(schemaTypeConfigProto.getSchemaType(), schemaTypeConfigProto); in addToSchemaMap()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerRealDocumentsTest.java105 assertThat(result.getGenericDocument().getSchemaType()) in testRealDocuments_check()
160 assertThat(documents.get(0).getSchemaType()).startsWith(MobileApplication.SCHEMA_TYPE); in testRealIndexing()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverterTest.java541 assertThat(resultSpecProto.getTypePropertyMasks(0).getSchemaType()) in testToResultSpecProto_projection_withJoinSpec_packageFilter()
548 assertThat(nestedResultSpecProto.getTypePropertyMasks(0).getSchemaType()) in testToResultSpecProto_projection_withJoinSpec_packageFilter()
579 assertThat(resultSpecProto.getTypePropertyMasks(0).getSchemaType()) in testToResultSpecProto_projection_withWildcard()
608 assertThat(resultSpecProto.getTypePropertyMasks(0).getSchemaType()) in testToResultSpecProto_projectionNoPrefixes_withWildcard()
659 assertThat(resultSpecProto.getTypePropertyMasks(0).getSchemaType()) in testToResultSpecProto_projection_removeSchemaWithoutParentInFilter()
711 assertThat(searchSpecProto.getTypePropertyFilters(0).getSchemaType()) in testToSearchSpecProto_propertyFilter_withJoinSpec_packageFilter()
718 assertThat(nestedSearchSpecProto.getTypePropertyFilters(0).getSchemaType()) in testToSearchSpecProto_propertyFilter_withJoinSpec_packageFilter()
746 assertThat(searchSpecProto.getTypePropertyFilters(0).getSchemaType()) in testToSearchSpecProto_propertyFilter_withWildcard()
796 assertThat(searchSpecProto.getTypePropertyFilters(0).getSchemaType()) in testToSearchSpecProto_propertyFilter_removeSchemaWithoutParentInFilter()
849 assertThat(scoringSpecProto.getTypePropertyWeights(0).getSchemaType()) in testToResultSpecProto_weight_withJoinSpec_packageFilter()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityToDocumentConverterTest.java255 assertThat(modifiedConfig.getSchemaType()).isEqualTo("prefixedSchema"); in testToVisibilityConfig()
258 assertThat(rebuild.getSchemaType()).isEqualTo("someSchema"); in testToVisibilityConfig()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/
DSchemaMigrationUtil.java58 existingTypes.add(schema.getSchemaType()); in getActiveMigrators()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSetSchemaResponseInternalTest.java94 assertThat(schema.getSchemaType()).isEqualTo("Test"); in testPropertyConfig_deletionPropagation()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppSearchHelper.java151 schemaBuilder.setPubliclyVisibleSchema(schemaVariant.getSchemaType(), pkg); in setSchemasForPackages()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/
DPerson.java209 ContactPoint.SCHEMA.getSchemaType()) in createSchema()

12