Changes included:
* 517c1ee: Schema Migration API updates to match API council recommendations.
* 407144d: Refactor some migration helper methods to Utils class.
* 2297b3a: Add a test for migrate to a nonexistent schema.
* 16a38d0: Log the PutDocumentStats in AppSearchImpl
Bug: 178060626
Bug: 179804862
Bug: 173532925
Test: Presubmit
Change-Id: I8b879bc9a5f30f9be3ce08d07dc60f4b177fb11b
Changes included:
* bdc86ce: Remove parameters from javadocs for methods that differ in framework.
* c8e1f21: Add logger interface for AppSearch
* 1de2a5a: Remove parameters from javadocs for methods that differ in framework.
Bug: 173532925
Test: Presubmit
Change-Id: Ia27d60be83b6ac3a6ad53ceb9bda58d5bd91bcb7
Changes included:
* 1fc8203: Add getAll() API to AppSearchBatchResult as recommended by API council
* aa94928: Updates to Query Documentation
* 63badf5: Create flavours of all Session tests to run against both backends.
* 03e917e: Move the decision to optimize out of AppSearchImpl.
* 4909a2f: Make AppSearchImpl closeable.
* 3ebce41: Fix and enforce MixedMutabilityReturnType errorprone warnings
* 6994b7e: Update documentation for GetByUri
* 4f632ca: Preinitialize map to proper size.
* efeb70b: Update documentation for RemoveByUriRequest
* daecb8a: Refactor SetSchemaResponse to merge SetSchemaResult
* 2682de4: SetSchemaResponse will be only returned in successful case.
* f0f0ec4: Update documentation for GenericDocument
Bug: 178060626
Bug: 179416188
Bug: 175763859
Bug: 175801531
Bug: 162450968
Bug: 179407490
Bug: 171758893
Test: Presubmit
Change-Id: I3937e877a84b6255a5ca0fd343a3de28ebaea174
Now that the visibility APIs are exposed, we can properly @link to the
methods in the documentation.
Bug: 169883602
Test: presubmit
Change-Id: Ic5e9cb5f4279077cae72a566a631163ca7dd7264
Included changes:
* 0532abb: Rename DataClassFactory to DocumentClassFactory.
* c44176d: Update Get and Remove request objects with API council feedback.
* 1910709: Remove all remaining references to 'data class'.
* f8a5243: Fix a potential bug in BundleUtil.deepHashCode() if iteration order changes.
* 3b50162: Remove redundant logic for sorting keys.
* 2964d35: Revert "Remove redundant logic for sorting keys."
Bug: 171340471
Bug: 175763859
Bug: 178741022
Test: Presubmit
Change-Id: I5c2ec332d0f0e07913ffcec9e2dc1ef9634b33da
Changes included:
* 081c412: Remove spam logs from GenericDocumentToPlatformConverter.
* 69df01d: Fix an issue with nested documents after serialization.
* 0197939: Update Jetpack API usages to build against the latest SDK.
* 843f415: Rename @AppSearchDocument to @Document.
* 37adb0f: Update docs around database name.
* 19383f8: Apply naming changes to AppSearchSession and GlobalSearchSession.
* 8359c2b: Update SetSchemaRequest to comply with API council requirements.
* 4b04aba: Update PutDocumentsRequest APIs to align with API council guidance.
* 3c8ebfb: Update SearchSpec APIs to match API council recommendations.
Bug: 174614009
Bug: 178540467
Bug: 175763859
Bug: 171340471
Test: Presubmit
Change-Id: I4649ffe1d1c94b0c6125943772d33c6fb38d0006
Take the client's context package name and pass it across binder so we
can forward it to AppSearchImpl. We'll no longer be getting package name
from UID, but we'll still verify that the package name belongs to the
binder calling UID.
Bug: 177752194
Test: presubmit
Change-Id: I8aef10594a6130790e28fa34d87ab89717159d79
Included changes:
* a8bcc3: Add database name to SearchResult.
* 8f855e: Support new framework APIs for visibility in the platform
backend.
* 01f349: Unhide AppSearchSession.close() by extends Closeable
* 7cb0c4: Add Closeable to GlobalSearchSession.
* cf37e4: Update AppSearch to be in sync google3 update aosp/1551754
Bug: 175637134
Bug: 169883602
Bug: 177278213
Test: presubmit
Change-Id: Ia71431441ee4b32fa248604aead1f28ea1fe45ea
Included changes:
* ebd84f: Further fixes and improvements to export script.
* 968bbd: Copy AppSearchSession, GlobalSearchSession and SearchResults into shims.
* a0d314: Refactor tests involving AppSearchSession into base and concrete class.
* 8d652e: Remove spam logs from GenericDocument.
* 11e8f8: Update AppSearch to be in sync google3 update aosp/1541514.
* cdd6f7: Add package name to SearchResult.
Bug: 176519441
Bug: 175801531
Bug: 174614009
Bug: 169883602
Test: Presubmit
Change-Id: I4cf2d830294b41909b6d41adb7925ddebc1d01eb
Changes included:
#efb600e:Add Closeable to AppSearchSession, allow it persist data to disk.
Bug: 162450968
Test: presubmit
Change-Id: Ib00cf83e41f0e3e2f79b4c46d9a50407e72bd9bb
* e2124eb: Switch from throwing AssertionError to using a Truth assertion.
* 2ff6b81: Remove FutureUtils.map.
* 40eb8b5: Add projection to the SearchSpec.
Also, ports GlobalSearchSessionTest to platform for the first time.
Bug: 170997047
Bug: 162450968
Bug: 175661706
Bug: 170539682
Test: AppSearchSessionTest, GlobalSearchSessionTest
Change-Id: I9bdfb69b4d36b194c2c4038fb053f6237af9412a
Included changes:
* 8b9027a: Unhide visibility APIs on SetSchemaRequest.
* 9079d15: Support collections of subclasses in SetSchemaRequest builder
* 3a36aa7: Snapshot global query results in tests.
* afbdc54: Fix errors cause by AppSearchImpl.reset.
* 2463600: Place CTS tests and test utils into the right places.
* 92cd45a: Remove AppSearchResult from methods returning a single value.
Bug: 169883602
Bug: 171914169
Bug: 175430168
Bug: 170997047
Bug: 162450968
Test: AppSearchSessionTest
Change-Id: I01101e7928e0a0526412f5905ff5d6afa645042b
Included changes:
* caf5d9: Add a uri prefix to visibility store documents.
* 5b26a8: Minor comment fix in AppSearchSession
* 31b691: Add package visibility APIs for schema types.
* d36a2c: Require a package name in AppSearchImpl.
Bug: 169883602
Bug: 162450968
Test: Presubmit
Change-Id: I155145e4b14a271f3012cb7b5efbbe1b7ba27a18
User could never call an uninitialized SearchSession, so convert and
propagate the initialize error in getInstace to user for every call is
unnecessary.
Split createInstace for initialization, and getInstance for other calls.
Removed AppSearchException from getInstace's signature.
Test: presubmit
Bug: 162450968
Change-Id: I925506ad0f6540b060c77ed2a535737ee71f781c
Java package paths and the overall API is unaffected.
This makes it much easier to maintain the export script. Prior to this
CL, the export script had an allowlist of framework files to leave
alone. This list was badly out of date and hard to maintain in
lockstep with framework.
There are no functional changes in this CL.
Bug: 162450968
Test: m -j, framework-appsearch.stubs.source-update-current-api, presubmit
Change-Id: I5a91f4afb1cfe2aa5e514d5f3159bf212f7de03b
* 31db05: Move visibility settings into SetSchemaRequest.
* af6646: Support retrieving the current database's schema.
* 468ec2: Minor comment fix.
* b67963: Refactor AppSearchImpl to use List instead of Set.
* 1ae2bc: Delete an assertion that bundle.equals(bundle).
Bug: 169883602
Bug: 172260083
Bug: 162450968
Bug: 174825775
Test: Presubmit
Change-Id: I485bc9d1d9980467f6bdde1f36b077c0a3e7f5b4