/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverterTest.java | 23 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.createPrefix; 94 String prefix1 = PrefixUtil.createPrefix("package", "database1"); in testToSearchSpecProto() 95 String prefix2 = PrefixUtil.createPrefix("package", "database2"); in testToSearchSpecProto() 157 String prefix1 = PrefixUtil.createPrefix("package", "database1"); in testToSearchSpecProtoWithJoinSpec() 158 String prefix2 = PrefixUtil.createPrefix("package", "database2"); in testToSearchSpecProtoWithJoinSpec() 218 String prefix1 = PrefixUtil.createPrefix("package", "database1"); in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() 219 String prefix2 = PrefixUtil.createPrefix("package", "database2"); in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() 295 String prefix = PrefixUtil.createPrefix("package", "database1"); in testToScoringSpecProto() 440 String personPrefix = PrefixUtil.createPrefix("contacts", "database"); in testToResultSpecProto_grouping_withJoinSpec_packageFilter() 441 String actionPrefix = PrefixUtil.createPrefix("aiai", "database"); in testToResultSpecProto_grouping_withJoinSpec_packageFilter() [all …]
|
D | SearchSuggestionSpecToProtoConverterTest.java | 49 String prefix1 = PrefixUtil.createPrefix("package", "database"); in testToProto() 90 String prefix1 = PrefixUtil.createPrefix("package", "database"); in testToProto_propertyFilters()
|
D | SnippetTest.java | 45 private static final String PREFIX = PrefixUtil.createPrefix(PACKAGE_NAME, DATABASE_NAME);
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/ |
D | VisibilityCheckerImplTest.java | 293 String prefix = PrefixUtil.createPrefix("package", "database"); in testIsSchemaSearchableByCaller_noVisibilityConfig_defaultPlatformVisible() 367 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_defaultPlatformVisible() 382 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_enterpriseNotPlatformVisible() 397 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_platformHidden() 414 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_defaultNotVisibleToPackages() 442 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_visibleToPackages() 472 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_enterpriseNotVisibleToPackages() 490 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_visibleToPermissions() 525 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_enterpriseNotVisibleToPermissions_withoutEnterpriseAccessPermission() 552 String prefix = PrefixUtil.createPrefix("package", "database"); in testSetSchema_enterpriseVisibleToPermissions_withEnterpriseAccessPermission() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | SchemaCacheTest.java | 19 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.createPrefix; 36 String prefix = createPrefix("package", "database"); in testGetSchemaTypesWithDescendants() 71 String prefix = createPrefix("package", "database"); in testGetSchemaTypesWithDescendants_multipleLevel()
|
D | AppSearchImplTest.java | 23 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.createPrefix; 200 createPrefix("package", "newDatabase"), existingSchemaBuilder, newSchema); in testRewriteSchema_addType() 301 createPrefix("package", "existingDatabase"), in testRewriteSchema_rewriteType() 336 createPrefix("package", "existingDatabase"), in testRewriteSchema_deleteType() 394 addPrefixToDocument(actualDocument, createPrefix("package", "databaseName")); in testAddDocumentTypePrefix() 4925 String prefix = PrefixUtil.createPrefix("package", "database1"); in testSetVisibility() 4970 String prefix1 = PrefixUtil.createPrefix("package1", "database"); in testSetVisibility_existingVisibilitySettingRetains() 5013 String prefix2 = PrefixUtil.createPrefix("package2", "database"); in testSetVisibility_existingVisibilitySettingRetains() 5074 String prefix = PrefixUtil.createPrefix("package", "database1"); in testSetVisibility_removeVisibilitySettings() 5143 String prefix = PrefixUtil.createPrefix("package", "database1"); in testRemoveVisibility_noRemainingSettings() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/util/ |
D | PrefixUtilTest.java | 35 assertThat(PrefixUtil.createPrefix("foo", "bar")).isEqualTo("foo$bar/"); in testCreatePrefix() 36 assertThat(PrefixUtil.createPrefix("pkg", "")).isEqualTo("pkg$/"); in testCreatePrefix() 37 assertThat(PrefixUtil.createPrefix("", "db")).isEqualTo("$db/"); in testCreatePrefix()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImpl.java | 24 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.createPrefix; 746 String prefix = createPrefix(packageName, databaseName); in doSetSchemaNoChangeNotificationLocked() 892 String prefix = createPrefix(packageName, databaseName); in getSchema() 1004 String prefix = createPrefix(packageName, databaseName); in getNamespaces() 1055 String prefix = createPrefix(packageName, databaseName); in putDocument() 1238 String prefix = createPrefix(packageName, databaseName); in globalGetDocument() 1279 String prefix = createPrefix(packageName, databaseName); in getDocument() 1315 String prefix = createPrefix(packageName, databaseName); in getDocumentProtoByIdLocked() 1334 String finalNamespace = createPrefix(packageName, databaseName) + namespace; in getDocumentProtoByIdLocked() 1399 String prefix = createPrefix(packageName, databaseName); in query() [all …]
|
D | ObserverManager.java | 215 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in onDocumentChange() 287 prefix = PrefixUtil.createPrefix(targetPackageName, databaseName); in onSchemaChange() 345 String prefixedSchema = PrefixUtil.createPrefix(packageName, databaseName) + schemaType; in getObserversForSchemaType()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | Denylist.java | 195 String prefix = PrefixUtil.createPrefix(packageName, databaseName); in addEntry() 230 String prefix = PrefixUtil.createPrefix(packageName, databaseName); in checkDeniedPackageDatabase()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreTest.java | 129 String prefix = PrefixUtil.createPrefix("packageName", "databaseName"); in testSetAndGetVisibility() 217 String prefix = PrefixUtil.createPrefix("packageName", "databaseName"); in testRecoverBrokenVisibilitySchema() 230 String prefix = PrefixUtil.createPrefix("packageName", "databaseName"); in testSetGetAndRemoveOverlayVisibility()
|
D | VisibilityStoreMigrationHelperFromV1Test.java | 98 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from1()
|
D | VisibilityStoreMigrationFromV2Test.java | 128 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from2()
|
D | VisibilityStoreMigrationHelperFromV0Test.java | 83 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from0()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityStoreMigrationHelperFromV0.java | 127 return DEPRECATED_ID_PREFIX + PrefixUtil.createPrefix(packageName, databaseName); in getDeprecatedVisibilityDocumentId()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/ |
D | PrefixUtil.java | 47 public static String createPrefix(@NonNull String packageName, @NonNull String databaseName) { in createPrefix() method in PrefixUtil
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | SearchSpecToProtoConverter.java | 19 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.createPrefix; 658 String emptyDatabasePrefix = createPrefix(packageName, /* databaseName= */ ""); in getPackageAndNamespaceToPrefixedNamespaces() 733 String emptyDatabasePrefix = createPrefix(packageName, /*database*/ ""); in getPackageAndSchemaToPrefixedSchemas()
|