/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverterTest.java | 21 import android.app.appsearch.GenericDocument; 44 private static final GenericDocument DOCUMENT_PROPERTIES_1 = 45 new GenericDocument.Builder<GenericDocument.Builder<?>>( 49 private static final GenericDocument DOCUMENT_PROPERTIES_2 = 50 new GenericDocument.Builder<GenericDocument.Builder<?>>( 65 GenericDocument document = in testDocumentProtoConvert() 66 new GenericDocument.Builder<GenericDocument.Builder<?>>( in testDocumentProtoConvert() 128 GenericDocument convertedGenericDocument = in testDocumentProtoConvert() 165 GenericDocument convertedDocument = in testConvertDocument_whenPropertyHasEmptyList() 168 GenericDocument expectedDocument = in testConvertDocument_whenPropertyHasEmptyList() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImplTest.java | 29 import android.app.appsearch.GenericDocument; 445 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testTriggerCheckOptimizeByMutationSize() 505 GenericDocument validDoc = in testReset() 506 new GenericDocument.Builder<>("namespace1", "id1", "Type1").build(); in testReset() 632 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testRewriteSearchSpec_oneInstance() 675 GenericDocument document1 = in testRewriteSearchSpec_twoInstances() 676 new GenericDocument.Builder<>("namespace", "id", "typeA").build(); in testRewriteSearchSpec_twoInstances() 679 GenericDocument document2 = in testRewriteSearchSpec_twoInstances() 680 new GenericDocument.Builder<>("namespace", "id", "typeB").build(); in testRewriteSearchSpec_twoInstances() 720 GenericDocument document = new GenericDocument.Builder<>("namespace", "id", "type").build(); in testRewriteSearchSpec_ignoresSearchSpecSchemaFilters() [all …]
|
D | AppSearchLoggerTest.java | 25 import android.app.appsearch.GenericDocument; 392 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initializeWithDocuments_success() 393 GenericDocument doc2 = new GenericDocument.Builder<>("namespace", "id2", "Type1").build(); in testLoggingStats_initializeWithDocuments_success() 445 GenericDocument doc1 = new GenericDocument.Builder<>("namespace", "id1", "Type1").build(); in testLoggingStats_initialize_failure() 500 GenericDocument document = in testLoggingStats_putDocument_success() 501 new GenericDocument.Builder<>("namespace", "id", "type") in testLoggingStats_putDocument_success() 547 GenericDocument document = in testLoggingStats_putDocument_failure() 548 new GenericDocument.Builder<>("namespace", "id", "type") in testLoggingStats_putDocument_failure() 596 GenericDocument document1 = in testLoggingStats_search_success() 597 new GenericDocument.Builder<>("namespace", "id1", "type") in testLoggingStats_search_success() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/app/ |
D | GenericDocumentTest.java | 29 GenericDocument inDoc = in testRecreateFromParcel() 30 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testRecreateFromParcel() 36 new GenericDocument.Builder<>("namespace", "id2", "schema2") in testRecreateFromParcel() 56 GenericDocument outDoc = new GenericDocument(outBundle); in testRecreateFromParcel() 72 GenericDocument doc = in testPutLargeDocument_exceedLimit() 73 new GenericDocument.Builder<>("namespace", "id1", "schema1") in testPutLargeDocument_exceedLimit()
|
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/ |
D | PutDocumentsRequest.java | 35 private final List<GenericDocument> mDocuments; 37 PutDocumentsRequest(List<GenericDocument> documents) { in PutDocumentsRequest() 43 public List<GenericDocument> getGenericDocuments() { in getGenericDocuments() 49 private ArrayList<GenericDocument> mDocuments = new ArrayList<>(); 54 public Builder addGenericDocuments(@NonNull GenericDocument... documents) { in addGenericDocuments() 63 @NonNull Collection<? extends GenericDocument> documents) { in addGenericDocuments()
|
D | GenericDocument.java | 50 public class GenericDocument { class 104 public GenericDocument(@NonNull Bundle bundle) { in GenericDocument() method in GenericDocument 119 protected GenericDocument(@NonNull GenericDocument document) { in GenericDocument() method in GenericDocument 256 GenericDocument document = new GenericDocument((Bundle) rawValue); in getProperty() 257 return new GenericDocument[] {document}; in getProperty() 292 GenericDocument[] documents = new GenericDocument[bundles.length]; in getProperty() 309 documents[i] = new GenericDocument((Bundle) bundles[i]); in getProperty() 690 public GenericDocument getPropertyDocument(@NonNull String path) { in getPropertyDocument() 692 GenericDocument[] propertyArray = getPropertyDocumentArray(path); in getPropertyDocument() 811 public GenericDocument[] getPropertyDocumentArray(@NonNull String path) { in getPropertyDocumentArray() [all …]
|
D | Migrator.java | 67 public abstract GenericDocument onUpgrade( in onUpgrade() 68 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onUpgrade() 89 public abstract GenericDocument onDowngrade( in onDowngrade() 90 int currentVersion, int finalVersion, @NonNull GenericDocument document); in onDowngrade()
|
D | SearchResult.java | 55 @Nullable private GenericDocument mDocument; 77 public GenericDocument getGenericDocument() { in getGenericDocument() 80 new GenericDocument(Objects.requireNonNull(mBundle.getBundle(DOCUMENT_FIELD))); in getGenericDocument() 163 private GenericDocument mGenericDocument; 180 public Builder setGenericDocument(@NonNull GenericDocument document) { in setGenericDocument() 309 @Nullable final GenericDocument mDocument; 320 MatchInfo(@NonNull Bundle bundle, @Nullable GenericDocument document) { in MatchInfo() 422 private static String getPropertyValues(GenericDocument document, String propertyName) { in getPropertyValues()
|
/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/external/ |
D | AppSearchTestUtils.java | 24 import android.app.appsearch.GenericDocument; 45 public static List<GenericDocument> doGet( in doGet() 47 AppSearchBatchResult<String, GenericDocument> result = in doGet() 53 List<GenericDocument> list = new ArrayList<>(ids.length); in doGet() 60 public static List<GenericDocument> doGet( in doGet() 62 AppSearchBatchResult<String, GenericDocument> result = in doGet() 67 List<GenericDocument> list = new ArrayList<>(ids.size()); in doGet() 74 public static List<GenericDocument> convertSearchResultsToDocuments( in convertSearchResultsToDocuments() 77 List<GenericDocument> documents = new ArrayList<>(results.size()); in convertSearchResultsToDocuments()
|
D | AppSearchEmail.java | 24 import android.app.appsearch.GenericDocument; 31 public class AppSearchEmail extends GenericDocument { 88 public AppSearchEmail(@NonNull GenericDocument document) { in AppSearchEmail() 154 public static class Builder extends GenericDocument.Builder<Builder> {
|
D | AppSearchSessionShim.java | 105 ListenableFuture<AppSearchBatchResult<String, GenericDocument>> getByDocumentId( in getByDocumentId()
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/converter/ |
D | GenericDocumentToProtoConverter.java | 21 import android.app.appsearch.GenericDocument; 44 private static final GenericDocument[] EMPTY_DOCUMENT_ARRAY = new GenericDocument[0]; 51 public static DocumentProto toDocumentProto(@NonNull GenericDocument document) { in toDocumentProto() 92 } else if (property instanceof GenericDocument[]) { in toDocumentProto() 93 GenericDocument[] documentValues = (GenericDocument[]) property; in toDocumentProto() 125 public static GenericDocument toGenericDocument( in toGenericDocument() 130 GenericDocument.Builder<?> documentBuilder = in toGenericDocument() 131 new GenericDocument.Builder<>( in toGenericDocument() 172 GenericDocument[] values = new GenericDocument[property.getDocumentValuesCount()]; in toGenericDocument() 188 @NonNull GenericDocument.Builder<?> documentBuilder, in setEmptyProperty()
|
D | SearchResultToProtoConverter.java | 22 import android.app.appsearch.GenericDocument; 106 GenericDocument document = in toSearchResult()
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/ |
D | VisibilityDocument.java | 21 import android.app.appsearch.GenericDocument; 24 class VisibilityDocument extends GenericDocument { 53 public VisibilityDocument(@NonNull GenericDocument genericDocument) { in VisibilityDocument() 63 public GenericDocument[] getVisibleToPackages() { in getVisibleToPackages() 68 public static class Builder extends GenericDocument.Builder<VisibilityDocument.Builder> {
|
D | VisibleToPackagesDocument.java | 21 import android.app.appsearch.GenericDocument; 29 class VisibleToPackagesDocument extends GenericDocument { 62 VisibleToPackagesDocument(@NonNull GenericDocument genericDocument) { in VisibleToPackagesDocument() 80 public static class Builder extends GenericDocument.Builder<VisibleToPackagesDocument.Builder> {
|
D | VisibilityStoreImpl.java | 23 import android.app.appsearch.GenericDocument; 175 GenericDocument[] visibleToPackagesDocuments = in VisibilityStoreImpl()
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/ |
D | AppSearchSessionUnitTest.java | 121 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage() 174 GenericDocument document1 = new GenericDocument.Builder<>("namespace", "id1", in testGetEmptyNextPage_multiPages() 176 GenericDocument document2 = new GenericDocument.Builder<>("namespace", "id2", in testGetEmptyNextPage_multiPages() 178 GenericDocument document3 = new GenericDocument.Builder<>("namespace", "id3", in testGetEmptyNextPage_multiPages() 206 List<GenericDocument> outDocs = new ArrayList<>(); in testGetEmptyNextPage_multiPages()
|
/frameworks/base/core/java/android/content/pm/ |
D | AppSearchPerson.java | 23 import android.app.appsearch.GenericDocument; 35 public class AppSearchPerson extends GenericDocument { 45 public AppSearchPerson(@NonNull GenericDocument document) { in AppSearchPerson() 107 public static class Builder extends GenericDocument.Builder<Builder> {
|
D | AppSearchShortcutInfo.java | 24 import android.app.appsearch.GenericDocument; 51 public class AppSearchShortcutInfo extends GenericDocument { 314 public AppSearchShortcutInfo(@NonNull GenericDocument document) { in AppSearchShortcutInfo() 438 public static List<GenericDocument> toGenericDocuments( in toGenericDocuments() 440 final List<GenericDocument> docs = new ArrayList<>(shortcuts.size()); in toGenericDocuments() 449 public static class Builder extends GenericDocument.Builder<Builder> { 648 final GenericDocument[] documents = new GenericDocument[persons.length]; in setPersons() 924 private static Person[] parsePerson(@Nullable final GenericDocument[] persons) { in parsePerson() 928 final GenericDocument document = persons[i]; in parsePerson()
|
/frameworks/base/apex/appsearch/framework/api/ |
D | current.txt | 138 …android.app.appsearch.BatchResultCallback<java.lang.String,android.app.appsearch.GenericDocument>); 155 public class GenericDocument { 156 ctor protected GenericDocument(@NonNull android.app.appsearch.GenericDocument); 166 …method @Nullable public android.app.appsearch.GenericDocument getPropertyDocument(@NonNull String); 167 …method @Nullable public android.app.appsearch.GenericDocument[] getPropertyDocumentArray(@NonNull … 180 …public static class GenericDocument.Builder<BuilderType extends android.app.appsearch.GenericDocum… 181 ctor public GenericDocument.Builder(@NonNull String, @NonNull String, @NonNull String); 182 method @NonNull public android.app.appsearch.GenericDocument build(); 186 …uilderType setPropertyDocument(@NonNull String, @NonNull android.app.appsearch.GenericDocument...); 229 …ic abstract android.app.appsearch.GenericDocument onDowngrade(int, int, @NonNull android.app.appse… [all …]
|
/frameworks/base/apex/appsearch/framework/java/android/app/appsearch/ |
D | AppSearchMigrationHelper.java | 187 GenericDocument document; in readAndTransform() 196 GenericDocument newDocument; in readAndTransform() 230 public static GenericDocument readDocumentFromInputStream( in readDocumentFromInputStream() 244 return new GenericDocument(bundle); in readDocumentFromInputStream()
|
D | AppSearchSession.java | 284 List<GenericDocument> documents = request.getGenericDocuments(); in put() 328 @NonNull BatchResultCallback<String, GenericDocument> callback) { in getByDocumentId() 348 AppSearchBatchResult.Builder<String, GenericDocument> in getByDocumentId() 355 GenericDocument document; in getByDocumentId() 357 document = new GenericDocument(bundleEntry.getValue()); in getByDocumentId()
|
/frameworks/base/apex/appsearch/testing/java/com/android/server/appsearch/testing/ |
D | AppSearchSessionShimImpl.java | 27 import android.app.appsearch.GenericDocument; 137 public ListenableFuture<AppSearchBatchResult<String, GenericDocument>> getByDocumentId( in getByDocumentId() 139 SettableFuture<AppSearchBatchResult<String, GenericDocument>> future = in getByDocumentId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 52 import android.app.appsearch.GenericDocument; 654 private Map<String, Map<String, GenericDocument>> mDocumentMap = new ArrayMap<>(1); 703 final List<GenericDocument> docs = new ArrayList<>(documentBundles.size()); in putDocuments() 705 docs.add(new GenericDocument(bundle)); in putDocuments() 710 Map<String, GenericDocument> docMap = mDocumentMap.get(key); in putDocuments() 711 for (GenericDocument doc : docs) { in putDocuments() 736 final Map<String, GenericDocument> docs = mDocumentMap.get(key); in getDocuments() 763 final List<GenericDocument> documents = new ArrayList<>(mDocumentMap.get(key).values()); in query() 767 for (GenericDocument document : documents) { in query() 841 final Map<String, GenericDocument> docs = mDocumentMap.get(key); in removeByDocumentId()
|
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/ |
D | AppSearchManagerService.java | 27 import android.app.appsearch.GenericDocument; 503 GenericDocument document = new GenericDocument(documentBundles.get(i)); in putDocuments() 591 GenericDocument document = instance.getAppSearchImpl().getDocument( in getDocuments() 908 GenericDocument document; in putDocumentsFromFile()
|