Home
last modified time | relevance | path

Searched refs:visibleToPermissions (Results 1 – 9 of 9) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityToDocumentConverter.java309 Set<Integer> visibleToPermissions = in convertVisibilityConfigFromProto() local
311 builder.addRequiredPermissions(visibleToPermissions); in convertVisibilityConfigFromProto()
334 Set<Set<Integer>> visibleToPermissions = schemaVisibilityConfig.getRequiredPermissions(); in convertSchemaVisibilityConfigToProto() local
335 if (!visibleToPermissions.isEmpty()) { in convertSchemaVisibilityConfigToProto()
336 for (Set<Integer> allRequiredPermissions : visibleToPermissions) { in convertSchemaVisibilityConfigToProto()
381 Set<Set<Integer>> visibleToPermissions = schemaVisibilityConfig.getRequiredPermissions(); in createVisibilityDocument() local
382 if (!visibleToPermissions.isEmpty()) { in createVisibilityDocument()
384 new GenericDocument[visibleToPermissions.size()]; in createVisibilityDocument()
386 for (Set<Integer> allRequiredPermissions : visibleToPermissions) { in createVisibilityDocument()
DVisibilityDocumentV1.java195 Builder setVisibleToPermissions(@NonNull Set<Integer> visibleToPermissions) { in setVisibleToPermissions() argument
196 Objects.requireNonNull(visibleToPermissions); in setVisibleToPermissions()
197 setPropertyLong(PERMISSION_PROPERTY, toLongs(visibleToPermissions)); in setVisibleToPermissions()
DVisibilityStoreMigrationHelperFromV1.java133 for (Set<Integer> visibleToPermissions : visibleToPermissionSets) { in toVisibilityDocumentsV2()
134 latestVisibilityDocumentBuilder.addVisibleToPermissions(visibleToPermissions); in toVisibilityDocumentsV2()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DGetSchemaResponse.java219 Set<Set<Integer>> visibleToPermissions = in getRequiredPermissionsForSchemaTypeVisibility() local
221 if (!visibleToPermissions.isEmpty()) { in getRequiredPermissionsForSchemaTypeVisibility()
224 Collections.unmodifiableSet(visibleToPermissions)); in getRequiredPermissionsForSchemaTypeVisibility()
442 for (Set<Integer> visibleToPermissions : visibleToPermissionSets) { in setRequiredPermissionsForSchemaTypeVisibility()
443 visibilityConfigBuilder.addVisibleToPermissions(visibleToPermissions); in setRequiredPermissionsForSchemaTypeVisibility()
DInternalVisibilityConfig.java81 for (Set<Integer> visibleToPermissions : visibleToPermissionSets) { in toInternalVisibilityConfigs()
82 builder.addVisibleToPermissions(visibleToPermissions); in toInternalVisibilityConfigs()
292 public Builder addVisibleToPermissions(@NonNull Set<Integer> visibleToPermissions) { in addVisibleToPermissions() argument
294 mVisibilityConfigBuilder.addRequiredPermissions(visibleToPermissions); in addVisibleToPermissions()
DSchemaVisibilityConfig.java220 public Builder addRequiredPermissions(@NonNull Set<Integer> visibleToPermissions) { in addRequiredPermissions() argument
221 Objects.requireNonNull(visibleToPermissions); in addRequiredPermissions()
223 mRequiredPermissions.add(new VisibilityPermissionConfig(visibleToPermissions)); in addRequiredPermissions()
DSetSchemaRequest.java450 Set<Set<Integer>> visibleToPermissions = mSchemasVisibleToPermissions.get(schemaType); in addRequiredPermissionsForSchemaTypeVisibility() local
451 if (visibleToPermissions == null) { in addRequiredPermissionsForSchemaTypeVisibility()
452 visibleToPermissions = new ArraySet<>(); in addRequiredPermissionsForSchemaTypeVisibility()
453 mSchemasVisibleToPermissions.put(schemaType, visibleToPermissions); in addRequiredPermissionsForSchemaTypeVisibility()
455 visibleToPermissions.add(permissions); in addRequiredPermissionsForSchemaTypeVisibility()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImpl.java281 Set<Set<Integer>> visibleToPermissions = visibilityConfig.getRequiredPermissions(); in isSchemaVisibleToPermission() local
282 if (visibleToPermissions.isEmpty() || callerAttributionSource == null) { in isSchemaVisibleToPermission()
287 for (Set<Integer> allRequiredPermissions : visibleToPermissions) { in isSchemaVisibleToPermission()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DAppSearchImpl.java939 Set<Set<Integer>> visibleToPermissions = in getSchema() local
941 if (!visibleToPermissions.isEmpty()) { in getSchema()
943 new ArraySet<>(visibleToPermissions.size()); in getSchema()
944 for (Set<Integer> permissionList : visibleToPermissions) { in getSchema()