Home
last modified time | relevance | path

Searched refs:createPrefix (Results 1 – 17 of 17) sorted by relevance

/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverterTest.java23 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 …]
DSearchSuggestionSpecToProtoConverterTest.java49 String prefix1 = PrefixUtil.createPrefix("package", "database"); in testToProto()
90 String prefix1 = PrefixUtil.createPrefix("package", "database"); in testToProto_propertyFilters()
DSnippetTest.java45 private static final String PREFIX = PrefixUtil.createPrefix(PACKAGE_NAME, DATABASE_NAME);
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/visibilitystore/
DVisibilityCheckerImplTest.java293 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/
DSchemaCacheTest.java19 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()
DAppSearchImplTest.java23 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/
DPrefixUtilTest.java35 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/
DAppSearchImpl.java24 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 …]
DObserverManager.java215 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/
DDenylist.java195 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/
DVisibilityStoreTest.java129 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()
DVisibilityStoreMigrationHelperFromV1Test.java98 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from1()
DVisibilityStoreMigrationFromV2Test.java128 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from2()
DVisibilityStoreMigrationHelperFromV0Test.java83 String prefix = PrefixUtil.createPrefix("package", "database"); in testVisibilityMigration_from0()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreMigrationHelperFromV0.java127 return DEPRECATED_ID_PREFIX + PrefixUtil.createPrefix(packageName, databaseName); in getDeprecatedVisibilityDocumentId()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java47 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/
DSearchSpecToProtoConverter.java19 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()