/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | GetSchemaResponse.java | 371 public @NonNull Builder addSchemaTypeNotDisplayedBySystem(@NonNull String schemaType) { in addSchemaTypeNotDisplayedBySystem() argument 372 Objects.requireNonNull(schemaType); in addSchemaTypeNotDisplayedBySystem() 375 getOrCreateVisibilityConfigBuilder(schemaType); in addSchemaTypeNotDisplayedBySystem() 388 public @NonNull Builder clearSchemaTypeNotDisplayedBySystem(@NonNull String schemaType) { in clearSchemaTypeNotDisplayedBySystem() argument 389 Objects.requireNonNull(schemaType); in clearSchemaTypeNotDisplayedBySystem() 392 getVisibilityConfigBuilder(schemaType); in clearSchemaTypeNotDisplayedBySystem() 421 @NonNull String schemaType, @NonNull Set<PackageIdentifier> packageIdentifiers) { in setSchemaTypeVisibleToPackages() 422 Objects.requireNonNull(schemaType); in setSchemaTypeVisibleToPackages() 426 getOrCreateVisibilityConfigBuilder(schemaType); in setSchemaTypeVisibleToPackages() 440 public @NonNull Builder clearSchemaTypeVisibleToPackages(@NonNull String schemaType) { in clearSchemaTypeVisibleToPackages() argument [all …]
|
D | SetSchemaRequest.java | 484 @NonNull String schemaType, boolean displayed) { in setSchemaTypeDisplayedBySystem() 485 Objects.requireNonNull(schemaType); in setSchemaTypeDisplayedBySystem() 488 mSchemasNotDisplayedBySystem.remove(schemaType); in setSchemaTypeDisplayedBySystem() 490 mSchemasNotDisplayedBySystem.add(schemaType); in setSchemaTypeDisplayedBySystem() 533 @NonNull String schemaType, in addRequiredPermissionsForSchemaTypeVisibility() 535 Objects.requireNonNull(schemaType); in addRequiredPermissionsForSchemaTypeVisibility() 542 Set<Set<Integer>> visibleToPermissions = mSchemasVisibleToPermissions.get(schemaType); in addRequiredPermissionsForSchemaTypeVisibility() 545 mSchemasVisibleToPermissions.put(schemaType, visibleToPermissions); in addRequiredPermissionsForSchemaTypeVisibility() 554 @NonNull String schemaType) { in clearRequiredPermissionsForSchemaTypeVisibility() 555 Objects.requireNonNull(schemaType); in clearRequiredPermissionsForSchemaTypeVisibility() [all …]
|
D | InternalVisibilityConfig.java | 66 String schemaType = searchSchema.getSchemaType(); in toInternalVisibilityConfigs() local 68 new InternalVisibilityConfig.Builder(schemaType) in toInternalVisibilityConfigs() 70 schemasNotDisplayedBySystem.contains(schemaType)); in toInternalVisibilityConfigs() 72 Set<PackageIdentifier> visibleToPackages = schemasVisibleToPackages.get(schemaType); in toInternalVisibilityConfigs() 79 Set<Set<Integer>> visibleToPermissionSets = schemasVisibleToPermissions.get(schemaType); in toInternalVisibilityConfigs() 86 PackageIdentifier publiclyVisibleTargetPackage = publiclyVisibleSchemas.get(schemaType); in toInternalVisibilityConfigs() 91 Set<SchemaVisibilityConfig> visibleToConfigs = schemasVisibleToConfigs.get(schemaType); in toInternalVisibilityConfigs() 154 @Param(id = 1) @NonNull String schemaType, in InternalVisibilityConfig() 159 mSchemaType = Objects.requireNonNull(schemaType); in InternalVisibilityConfig() 241 public Builder(@NonNull String schemaType) { in Builder() argument [all …]
|
D | GetByDocumentIdRequest.java | 198 @NonNull String schemaType, @NonNull Collection<String> propertyPaths) { in addProjection() 199 Objects.requireNonNull(schemaType); in addProjection() 207 mProjectionTypePropertyPaths.putStringArrayList(schemaType, propertyPathsList); in addProjection() 229 @NonNull String schemaType, @NonNull Collection<PropertyPath> propertyPaths) { in addProjectionPaths() 230 Objects.requireNonNull(schemaType); in addProjectionPaths() 236 return addProjection(schemaType, propertyPathsList); in addProjectionPaths()
|
D | SetSchemaResponse.java | 334 @Param(id = 3) @NonNull String schemaType, in MigrationFailure() 339 mSchemaType = schemaType; in MigrationFailure() 356 @NonNull String schemaType, in MigrationFailure() argument 360 mSchemaType = schemaType; in MigrationFailure()
|
D | SearchSpec.java | 606 for (String schemaType : schemaTypes) { in getPropertyWeights() 607 Bundle propertyPathBundle = mTypePropertyWeightsField.getBundle(schemaType); in getPropertyWeights() 615 typePropertyWeightsMap.put(schemaType, propertyPathWeights); in getPropertyWeights() 634 for (String schemaType : schemaTypes) { in getPropertyWeightPaths() 635 Bundle propertyPathBundle = mTypePropertyWeightsField.getBundle(schemaType); in getPropertyWeightPaths() 645 typePropertyWeightsMap.put(schemaType, propertyPathWeights); in getPropertyWeightPaths() 1707 @NonNull String schemaType, @NonNull Map<String, Double> propertyPathWeights) { in setPropertyWeights() 1708 Objects.requireNonNull(schemaType); in setPropertyWeights() 1726 mTypePropertyWeights.putBundle(schemaType, propertyPathBundle); in setPropertyWeights() 1790 @NonNull String schemaType, in setPropertyWeightPaths() [all …]
|
D | AppSearchSchema.java | 85 @Param(id = 1) @NonNull String schemaType, in AppSearchSchema() 89 mSchemaType = Objects.requireNonNull(schemaType); in AppSearchSchema() 221 public Builder(@NonNull String schemaType) { in Builder() argument 222 mSchemaType = Objects.requireNonNull(schemaType); in Builder() 240 public @NonNull AppSearchSchema.Builder setSchemaType(@NonNull String schemaType) { in setSchemaType() argument 241 Objects.requireNonNull(schemaType); in setSchemaType() 243 mSchemaType = schemaType; in setSchemaType() 1610 public Builder(@NonNull String propertyName, @NonNull String schemaType) { in Builder() argument 1612 mSchemaType = Objects.requireNonNull(schemaType); in Builder()
|
D | GenericDocument.java | 1134 public Builder(@NonNull String namespace, @NonNull String id, @NonNull String schemaType) { in Builder() argument 1137 Objects.requireNonNull(schemaType); in Builder() 1140 mDocumentParcelBuilder = new GenericDocumentParcel.Builder(namespace, id, schemaType); in Builder() 1207 public @NonNull BuilderType setSchemaType(@NonNull String schemaType) { in setSchemaType() argument 1208 Objects.requireNonNull(schemaType); in setSchemaType() 1209 mDocumentParcelBuilder.setSchemaType(schemaType); in setSchemaType()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreMigrationHelperFromV0.java | 113 static boolean isDeprecatedType(@NonNull String schemaType) { in isDeprecatedType() argument 114 return schemaType.equals(DEPRECATED_VISIBILITY_SCHEMA_TYPE) in isDeprecatedType() 115 || schemaType.equals(DEPRECATED_PACKAGE_SCHEMA_TYPE); in isDeprecatedType() 251 @NonNull String schemaType) { in getOrCreateBuilder() argument 252 VisibilityDocumentV1.Builder builder = documentBuilderMap.get(schemaType); in getOrCreateBuilder() 254 builder = new VisibilityDocumentV1.Builder(/* id= */ schemaType); in getOrCreateBuilder() 255 documentBuilderMap.put(schemaType, builder); in getOrCreateBuilder()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchResultToProtoConverterTest.java | 57 String schemaType = "schema"; in testToSearchResultProto() local 59 final String prefixedSchemaType = prefix + schemaType; in testToSearchResultProto() 134 .isEqualTo(ImmutableMap.of(schemaType, ImmutableList.of(parentSchemaType))); in testToSearchResultProto() 150 final String schemaType = prefix + "schema"; in testToSearchResultProtoWithDoublyNested() local 154 DocumentProto.newBuilder().setUri(id).setNamespace(namespace).setSchema(schemaType); in testToSearchResultProtoWithDoublyNested() 161 .setSchema(schemaType); in testToSearchResultProtoWithDoublyNested() 184 SchemaTypeConfigProto.newBuilder().setSchemaType(schemaType).build(); in testToSearchResultProtoWithDoublyNested() 186 ImmutableMap.of(prefix, ImmutableMap.of(schemaType, schemaTypeConfigProto)); in testToSearchResultProtoWithDoublyNested()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | ObserverManager.java | 206 @NonNull String schemaType, in onDocumentChange() argument 216 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in onDocumentChange() 220 if (!matchesSpec(schemaType, observerInfo.mObserverSpec)) { in onDocumentChange() 234 packageName, databaseName, namespace, schemaType); in onDocumentChange() 312 public boolean isSchemaTypeObserved(@NonNull String packageName, @NonNull String schemaType) { in isSchemaTypeObserved() argument 320 if (matchesSpec(schemaType, observerInfo.mObserverSpec)) { in isSchemaTypeObserved() 336 @NonNull String schemaType, in getObserversForSchemaType() argument 345 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in getObserversForSchemaType() 348 if (!matchesSpec(schemaType, observerInfo.mObserverSpec)) { in getObserversForSchemaType() 458 @NonNull String schemaType, @NonNull ObserverSpec observerSpec) { in matchesSpec() [all …]
|
D | SchemaCache.java | 270 public void removeFromSchemaMap(@NonNull String prefix, @NonNull String schemaType) { in removeFromSchemaMap() argument 272 Objects.requireNonNull(schemaType); in removeFromSchemaMap() 276 schemaTypeMap.remove(schemaType); in removeFromSchemaMap()
|
D | AppSearchImpl.java | 885 for (String schemaType : rewrittenSchemaResults.mDeletedPrefixedTypes) { in doSetSchemaNoChangeNotificationLocked() 886 mSchemaCacheLocked.removeFromSchemaMap(prefix, schemaType); in doSetSchemaNoChangeNotificationLocked() 2561 String schemaType = null; in remove() local 2576 schemaType = PrefixUtil.removePrefix(getResult.getDocument().getSchema()); in remove() 2601 if (schemaType != null) { in remove() 2606 schemaType, in remove() 2774 String schemaType = PrefixUtil.removePrefix(group.getSchema()); in dispatchChangeNotificationsAfterRemoveByQueryLocked() local 2781 schemaType, in dispatchChangeNotificationsAfterRemoveByQueryLocked() 3301 String schemaType = existingSchema.getTypes(i).getSchemaType(); in rewriteSchema() local 3302 SchemaTypeConfigProto newProto = newTypesToProto.remove(schemaType); in rewriteSchema() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/appsearchtypes/ |
D | AppFunctionDocument.java | 41 public static String getSchemaNameForPackage(@NonNull String pkg, @NonNull String schemaType) { in getSchemaNameForPackage() argument 42 return schemaType + "-" + Objects.requireNonNull(pkg); in getSchemaNameForPackage() 88 @NonNull String schemaType) { in Builder() argument 92 getSchemaNameForPackage(packageName, Objects.requireNonNull(schemaType))); in Builder()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/safeparcel/ |
D | GenericDocumentParcel.java | 110 @Param(id = 3) @NonNull String schemaType, in GenericDocumentParcel() 119 schemaType, in GenericDocumentParcel() 137 @NonNull String schemaType, in GenericDocumentParcel() argument 146 mSchemaType = Objects.requireNonNull(schemaType); in GenericDocumentParcel() 285 public Builder(@NonNull String namespace, @NonNull String id, @NonNull String schemaType) { in Builder() argument 288 mSchemaType = Objects.requireNonNull(schemaType); in Builder() 356 public @NonNull Builder setSchemaType(@NonNull String schemaType) { in setSchemaType() argument 357 Objects.requireNonNull(schemaType); in setSchemaType() 358 mSchemaType = schemaType; in setSchemaType()
|
D | PropertyConfigParcel.java | 93 @Param(id = 4) @Nullable String schemaType, in PropertyConfigParcel() 104 mSchemaType = schemaType; in PropertyConfigParcel() 220 @NonNull String schemaType, in createForDocument() argument 226 Objects.requireNonNull(schemaType), in createForDocument()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | AppFunctionDocumentParserImpl.java | 332 String schemaType = in parseAppFunctionsIntoMapForGivenSchemas() local 337 AppFunctionDocument.getSchemaNameForPackage(packageName, schemaType); in parseAppFunctionsIntoMapForGivenSchemas() 342 packageName, "", mIndexerPackageName, schemaType); in parseAppFunctionsIntoMapForGivenSchemas() 384 @NonNull String schemaType, in buildGenericDocumentFromXmlElement() argument 406 schemaType, in buildGenericDocumentFromXmlElement() 460 "No id found for document of type: " + schemaType); in buildGenericDocumentFromXmlElement() 494 String schemaType = entry.getKey(); in buildQualifiedPropertyNameToPropertyConfigMap() local 500 String propertyPath = createQualifiedPropertyName(schemaType, property.getName()); in buildQualifiedPropertyNameToPropertyConfigMap() 551 @NonNull String schemaType, @NonNull String propertyName) { in createQualifiedPropertyName() 552 return Objects.requireNonNull(schemaType) + "#" + Objects.requireNonNull(propertyName); in createQualifiedPropertyName()
|
D | AppFunctionSchemaParser.java | 285 String schemaType = in computePropertyConfigFromXsdType() local 287 nestedSchemaTypes.add(schemaType); in computePropertyConfigFromXsdType() 288 return new AppSearchSchema.DocumentPropertyConfig.Builder(name, schemaType) in computePropertyConfigFromXsdType()
|
/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/service/java/com/android/server/appsearch/external/localstorage/usagereporting/ |
D | TakenActionGenericDocument.java | 93 @NonNull String schemaType, in Builder() argument 98 Objects.requireNonNull(schemaType)); in Builder()
|
D | SearchActionGenericDocument.java | 78 public Builder(@NonNull String namespace, @NonNull String id, @NonNull String schemaType) { in Builder() argument 82 Objects.requireNonNull(schemaType), in Builder()
|
D | ClickActionGenericDocument.java | 90 public Builder(@NonNull String namespace, @NonNull String id, @NonNull String schemaType) { in Builder() argument 94 Objects.requireNonNull(schemaType), in Builder()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/ |
D | PersonEnterpriseTransformer.java | 87 @NonNull String packageName, @NonNull String databaseName, @NonNull String schemaType) { in shouldTransform() argument 88 return schemaType.equals(Person.SCHEMA_TYPE) in shouldTransform()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/isolated_storage_service/ |
D | IcingSearchEngine.java | 192 public GetSchemaTypeResultProto getSchemaType(@NonNull String schemaType) { in getSchemaType() argument 195 resultData = mEngine.getSchemaType(schemaType); in getSchemaType() 471 public DeleteBySchemaTypeResultProto deleteBySchemaType(@NonNull String schemaType) { in deleteBySchemaType() argument 474 resultData = mEngine.deleteBySchemaType(schemaType); in deleteBySchemaType()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | AppSearchMigrationHelper.java | 131 @NonNull String schemaType, in queryAndTransform() 153 .addFilterSchemas(schemaType) in queryAndTransform()
|