/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | SetSchemaRequest.java | 328 @NonNull String schemaType, boolean displayed) { in setSchemaTypeDisplayedBySystem() 329 Objects.requireNonNull(schemaType); in setSchemaTypeDisplayedBySystem() 332 mSchemasNotDisplayedBySystem.remove(schemaType); in setSchemaTypeDisplayedBySystem() 334 mSchemasNotDisplayedBySystem.add(schemaType); in setSchemaTypeDisplayedBySystem() 369 @NonNull String schemaType, in addRequiredPermissionsForSchemaTypeVisibility() 371 Objects.requireNonNull(schemaType); in addRequiredPermissionsForSchemaTypeVisibility() 378 Set<Set<Integer>> visibleToPermissions = mSchemasVisibleToPermissions.get(schemaType); in addRequiredPermissionsForSchemaTypeVisibility() 381 mSchemasVisibleToPermissions.put(schemaType, visibleToPermissions); in addRequiredPermissionsForSchemaTypeVisibility() 389 public Builder clearRequiredPermissionsForSchemaTypeVisibility(@NonNull String schemaType) { in clearRequiredPermissionsForSchemaTypeVisibility() argument 390 Objects.requireNonNull(schemaType); in clearRequiredPermissionsForSchemaTypeVisibility() [all …]
|
D | GetSchemaResponse.java | 290 public Builder addSchemaTypeNotDisplayedBySystem(@NonNull String schemaType) { in addSchemaTypeNotDisplayedBySystem() argument 291 Objects.requireNonNull(schemaType); in addSchemaTypeNotDisplayedBySystem() 296 mSchemasNotDisplayedBySystem.add(schemaType); in addSchemaTypeNotDisplayedBySystem() 323 @NonNull String schemaType, @NonNull Set<PackageIdentifier> packageIdentifiers) { in setSchemaTypeVisibleToPackages() 324 Objects.requireNonNull(schemaType); in setSchemaTypeVisibleToPackages() 331 mSchemasVisibleToPackages.putParcelableArrayList(schemaType, bundles); in setSchemaTypeVisibleToPackages() 369 @NonNull String schemaType, in setRequiredPermissionsForSchemaTypeVisibility() 372 Objects.requireNonNull(schemaType); in setRequiredPermissionsForSchemaTypeVisibility() 390 schemaType, visibleToPermissionsBundle); in setRequiredPermissionsForSchemaTypeVisibility()
|
D | GetByDocumentIdRequest.java | 175 @NonNull String schemaType, @NonNull Collection<String> propertyPaths) { in addProjection() 176 Objects.requireNonNull(schemaType); in addProjection() 184 mProjectionTypePropertyPaths.put(schemaType, propertyPathsList); in addProjection() 207 @NonNull String schemaType, @NonNull Collection<PropertyPath> propertyPaths) { in addProjectionPaths() 208 Objects.requireNonNull(schemaType); in addProjectionPaths() 214 return addProjection(schemaType, propertyPathsList); in addProjectionPaths()
|
D | VisibilityDocument.java | 255 String schemaType = searchSchema.getSchemaType(); in toVisibilityDocuments() local 259 schemasNotDisplayedBySystem.contains(schemaType)); in toVisibilityDocuments() 261 if (schemasVisibleToPackages.containsKey(schemaType)) { in toVisibilityDocuments() 262 documentBuilder.addVisibleToPackages(schemasVisibleToPackages.get(schemaType)); in toVisibilityDocuments() 265 if (schemasVisibleToPermissions.containsKey(schemaType)) { in toVisibilityDocuments() 267 schemasVisibleToPermissions.get(schemaType)); in toVisibilityDocuments()
|
D | SearchSpec.java | 376 for (String schemaType : schemaTypes) { in getPropertyWeights() 377 Bundle propertyPathBundle = typePropertyWeightsBundle.getBundle(schemaType); in getPropertyWeights() 383 typePropertyWeightsMap.put(schemaType, propertyPathWeights); in getPropertyWeights() 403 for (String schemaType : schemaTypes) { in getPropertyWeightPaths() 404 Bundle propertyPathBundle = typePropertyWeightsBundle.getBundle(schemaType); in getPropertyWeightPaths() 411 typePropertyWeightsMap.put(schemaType, propertyPathWeights); in getPropertyWeightPaths() 1022 @NonNull String schemaType, @NonNull Map<String, Double> propertyPathWeights) { in setPropertyWeights() 1023 Objects.requireNonNull(schemaType); in setPropertyWeights() 1041 mTypePropertyWeights.putBundle(schemaType, propertyPathBundle); in setPropertyWeights() 1087 @NonNull String schemaType, in setPropertyWeightPaths() [all …]
|
D | AppSearchSchema.java | 167 public Builder(@NonNull String schemaType) { in Builder() argument 168 Objects.requireNonNull(schemaType); in Builder() 169 mSchemaType = schemaType; in Builder() 1096 public Builder(@NonNull String propertyName, @NonNull String schemaType) { in Builder() argument 1098 mSchemaType = Objects.requireNonNull(schemaType); in Builder()
|
D | GenericDocument.java | 1028 public Builder(@NonNull String namespace, @NonNull String id, @NonNull String schemaType) { in Builder() argument 1031 Objects.requireNonNull(schemaType); in Builder() 1037 mBundle.putString(GenericDocument.SCHEMA_TYPE_FIELD, schemaType); in Builder() 1104 public BuilderType setSchemaType(@NonNull String schemaType) { in setSchemaType() argument 1105 Objects.requireNonNull(schemaType); in setSchemaType() 1107 mBundle.putString(GenericDocument.SCHEMA_TYPE_FIELD, schemaType); in setSchemaType()
|
D | SetSchemaResponse.java | 319 @NonNull String schemaType, in MigrationFailure() argument 324 mBundle.putString(SCHEMA_TYPE_FIELD, Objects.requireNonNull(schemaType)); in MigrationFailure()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchResultToProtoConverterTest.java | 50 final String schemaType = prefix + "schema"; in testToSearchResultProto() local 54 DocumentProto.newBuilder().setUri(id).setNamespace(namespace).setSchema(schemaType); in testToSearchResultProto() 61 .setSchema(schemaType); in testToSearchResultProto() 78 SchemaTypeConfigProto.newBuilder().setSchemaType(schemaType).build(); in testToSearchResultProto() 80 ImmutableMap.of(prefix, ImmutableMap.of(schemaType, schemaTypeConfigProto)); in testToSearchResultProto() 111 final String schemaType = prefix + "schema"; in testToSearchResultProtoWithDoublyNested() local 115 DocumentProto.newBuilder().setUri(id).setNamespace(namespace).setSchema(schemaType); in testToSearchResultProtoWithDoublyNested() 122 .setSchema(schemaType); in testToSearchResultProtoWithDoublyNested() 145 SchemaTypeConfigProto.newBuilder().setSchemaType(schemaType).build(); in testToSearchResultProtoWithDoublyNested() 147 ImmutableMap.of(prefix, ImmutableMap.of(schemaType, schemaTypeConfigProto)); in testToSearchResultProtoWithDoublyNested()
|
D | SearchSpecToProtoConverterTest.java | 289 String schemaType = "schemaType"; in testToScoringSpecProto() local 295 .setPropertyWeights(schemaType, ImmutableMap.of("property1", 2.0)) in testToScoringSpecProto() 308 prefix + schemaType, in testToScoringSpecProto() 314 .setSchemaType(prefix + schemaType) in testToScoringSpecProto()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreMigrationHelperFromV0.java | 112 static boolean isDeprecatedType(@NonNull String schemaType) { in isDeprecatedType() argument 113 return schemaType.equals(DEPRECATED_VISIBILITY_SCHEMA_TYPE) in isDeprecatedType() 114 || schemaType.equals(DEPRECATED_PACKAGE_SCHEMA_TYPE); in isDeprecatedType() 253 @NonNull String schemaType) { in getOrCreateBuilder() argument 254 VisibilityDocumentV1.Builder builder = documentBuilderMap.get(schemaType); in getOrCreateBuilder() 256 builder = new VisibilityDocumentV1.Builder(/*id=*/ schemaType); in getOrCreateBuilder() 257 documentBuilderMap.put(schemaType, builder); in getOrCreateBuilder()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | ObserverManager.java | 200 @NonNull String schemaType, in onDocumentChange() argument 210 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in onDocumentChange() 214 if (!matchesSpec(schemaType, observerInfo.mObserverSpec)) { in onDocumentChange() 228 packageName, databaseName, namespace, schemaType); in onDocumentChange() 306 public boolean isSchemaTypeObserved(@NonNull String packageName, @NonNull String schemaType) { in isSchemaTypeObserved() argument 314 if (matchesSpec(schemaType, observerInfo.mObserverSpec)) { in isSchemaTypeObserved() 331 @NonNull String schemaType, in getObserversForSchemaType() argument 340 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in getObserversForSchemaType() 343 if (!matchesSpec(schemaType, observerInfo.mObserverSpec)) { in getObserversForSchemaType() 452 @NonNull String schemaType, @NonNull ObserverSpec observerSpec) { in matchesSpec() [all …]
|
D | AppSearchImpl.java | 815 for (String schemaType : rewrittenSchemaResults.mDeletedPrefixedTypes) { in doSetSchemaNoChangeNotificationLocked() 816 removeFromMap(mSchemaMapLocked, prefix, schemaType); in doSetSchemaNoChangeNotificationLocked() 1858 String schemaType = null; in remove() local 1873 schemaType = PrefixUtil.removePrefix(getResult.getDocument().getSchema()); in remove() 1896 if (schemaType != null) { in remove() 1901 schemaType, in remove() 2083 String schemaType = PrefixUtil.removePrefix(group.getSchema()); in dispatchChangeNotificationsAfterRemoveByQueryLocked() local 2090 schemaType, in dispatchChangeNotificationsAfterRemoveByQueryLocked() 2519 String schemaType = existingSchema.getTypes(i).getSchemaType(); in rewriteSchema() local 2520 SchemaTypeConfigProto newProto = newTypesToProto.remove(schemaType); in rewriteSchema() [all …]
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/util/ |
D | SchemaMigrationUtil.java | 64 String schemaType = entry.getKey(); in getActiveMigrators() local 66 if (existingTypes.contains(schemaType) in getActiveMigrators() 68 activeMigrators.put(schemaType, migrator); in getActiveMigrators()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | AppSearchMigrationHelper.java | 101 void queryAndTransform(@NonNull String schemaType, @NonNull Migrator migrator, in queryAndTransform() argument 114 .addFilterSchemas(schemaType) in queryAndTransform()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchDao.java | 78 String schemaType = genericDocument.getSchemaType(); in iterateSearchResults() local 81 if (schemaType.equals(cls.getSimpleName())) { in iterateSearchResults()
|