Home
last modified time | relevance | path

Searched refs:removePrefix (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/util/
DPrefixUtilTest.java85 assertThat(PrefixUtil.removePrefix("foo$bar/id")).isEqualTo("id"); in testRemovePrefix()
86 assertThat(PrefixUtil.removePrefix("foo/bar")).isEqualTo("bar"); in testRemovePrefix()
92 assertThrows(AppSearchException.class, () -> PrefixUtil.removePrefix("foo$bar")); in testRemovePrefix_missingDelimiter()
97 e = assertThrows(AppSearchException.class, () -> PrefixUtil.removePrefix("foo")); in testRemovePrefix_missingDelimiter()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/util/
DPrefixUtil.java108 public static String removePrefix(@NonNull String prefixedString) throws AppSearchException { in removePrefix() method in PrefixUtil
205 documentBuilder.setSchema(removePrefix(documentBuilder.getSchema())); in removePrefixesFromDocument()
206 documentBuilder.setNamespace(removePrefix(documentBuilder.getNamespace())); in removePrefixesFromDocument()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverter.java22 import static com.android.server.appsearch.external.localstorage.util.PrefixUtil.removePrefix;
621 namespace = removePrefix(prefixedNamespace); in getNamespaceToPrefixedNamespaces()
662 namespace = removePrefix(prefixedNamespace); in getPackageAndNamespaceToPrefixedNamespaces()
699 schema = removePrefix(prefixedSchema); in getSchemaToPrefixedSchemas()
737 schema = removePrefix(prefixedSchema); in getPackageAndSchemaToPrefixedSchemas()
DGenericDocumentToProtoConverter.java290 result.add(PrefixUtil.removePrefix(prefixedParentType)); in getUnprefixedParentSchemaTypes()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DSearchSpecToProtoConverterTest.java945 assertThat(PrefixUtil.removePrefix(grouping1.getEntryGroupings(0).getNamespace())) in testToResultSpecProto_groupByNamespace()
946 .isEqualTo(PrefixUtil.removePrefix(grouping1.getEntryGroupings(1).getNamespace())); in testToResultSpecProto_groupByNamespace()
951 assertThat(PrefixUtil.removePrefix(grouping2.getEntryGroupings(0).getNamespace())) in testToResultSpecProto_groupByNamespace()
952 .isEqualTo(PrefixUtil.removePrefix(grouping2.getEntryGroupings(1).getNamespace())); in testToResultSpecProto_groupByNamespace()
993 assertThat(PrefixUtil.removePrefix(grouping1.getEntryGroupings(0).getSchema())) in testToResultSpecProto_groupBySchema()
994 .isEqualTo(PrefixUtil.removePrefix(grouping1.getEntryGroupings(1).getSchema())); in testToResultSpecProto_groupBySchema()
999 assertThat(PrefixUtil.removePrefix(grouping2.getEntryGroupings(0).getSchema())) in testToResultSpecProto_groupBySchema()
1000 .isEqualTo(PrefixUtil.removePrefix(grouping2.getEntryGroupings(1).getSchema())); in testToResultSpecProto_groupBySchema()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DSchemaCache.java220 public Set<String> removePrefix(@NonNull String prefix) { in removePrefix() method in SchemaCache
DAppSearchImpl.java1909 schemaType = PrefixUtil.removePrefix(getResult.getDocument().getSchema()); in remove()
2020 String shortTypeName = PrefixUtil.removePrefix(prefixedType); in removeByQuery()
2118 String namespace = PrefixUtil.removePrefix(group.getNamespace()); in dispatchChangeNotificationsAfterRemoveByQueryLocked()
2119 String schemaType = PrefixUtil.removePrefix(group.getSchema()); in dispatchChangeNotificationsAfterRemoveByQueryLocked()
2426 Set<String> removedSchemas = mSchemaCacheLocked.removePrefix(removedPrefix); in prunePackageData()