summaryrefslogtreecommitdiff
path: root/core/java/android/content/ContentCaptureOptions.java
Commit message (Collapse)AuthorAgeFilesLines
* Do not flush when sending view tree appearing event.Kai Li2023-03-221-6/+34
| | | | | | | | | | | | | | This can mitigate the IPC spam by half, since the view tree appearing event always comes with a view tree appeared event, and we just need to flush at the view tree appeared time. BYPASS_INCLUSIVE_LANGUAGE_REASON=existing API Bug: 269435271 Change-Id: I0ba3f7df7d6b511d155ac9509826d39633b668f6 Merged-in: I0ba3f7df7d6b511d155ac9509826d39633b668f6 Test: some unit tests & I've manually tested it locally. (cherry picked from commit 624070c95db4ca427a053a5430fac857c51d04f8)
* Allow translation cts can add itself into allowlist for content captureJoanne Chung2021-03-041-1/+2
| | | | | | | | | | | | | The UiTranslationManager APIs need the token that report by the content capture, we need to have a test ContentCaptureService for translation cts to test UiTranslationManager. So we also allow translation cts can add itself into allow list. Bug: 179047265 Test: atest CtsContentCaptureServiceTestCases Test: atest CtsTranslationTestCases to make sure the service can be connected Change-Id: I15874ce6fc68dbb5fba0a51cf74899d2dec9bae1
* API: Suppress existing NullableCollections lintsAdrian Roos2021-02-011-0/+3
| | | | | | | Bug: 152525509 Bug: 154763999 Test: make checkapi Change-Id: Iecd0927e6be5496b2fbd1a49396db5439257ffe4
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-09-141-2/+2
| | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Test: none Bug: 168334533 Exempt-From-Owner-Approval: docs updates Change-Id: I53003332717baf57dc088b2f6b969cdb1863f65e
* Fixed content capture whitelist for specific activities.Felipe Leme2019-04-191-11/+35
| | | | | | | | | | | | Test: manual verification (it cannot be fully verified using the current CTS setup) Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.WhitelistTest Test: atest FrameworksCoreTests:android.content.ContentCaptureOptionsTest Test: atest CtsContentCaptureServiceTestCases # sanity check Test: m update-api Fixes: 130573023 Merged-In: I2c76a01bd98c4154c4c59099f1368232d2dba80d Change-Id: I2c76a01bd98c4154c4c59099f1368232d2dba80d
* Implemented ContentCaptureConditions APIs.Felipe Leme2019-03-281-6/+11
| | | | | | | | | | | Test: atest ContentCaptureConditionTest \ CustomViewActivityTest#testContentCaptureConditions \ CustomViewActivityTest#testContentCaptureConditions_otherPackage Test: atest CtsContentCaptureServiceTestCases # sanity check (minus usual flakiness) Fixes: 129266058 Change-Id: I199c3ae99fa6b407da64562a71d8d7581ebf80e6
* Added a "lite" flag on ContentCaptureOptions.Felipe Leme2019-03-211-1/+34
| | | | | | | | | | | | It will be used to let activities from the ContentCapture service package to use the ContentCaptureManager APIs (such as isContentCaptureFeatureEnabled()), without triggering content capture per se. Bug: 122958583 Test: manual verification Test: atest CtsContentCaptureServiceTestCases # sanity check Change-Id: I0305fa9f3adb68e6faff80afcb965ae4643f2992
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Optimized Content Capture workflow by caching some state at the application ↵Felipe Leme2019-02-201-0/+176
level. Content Capture for an activity and/or package is only available when the Content Capture service explicitly whitelists it. As the whitelist is kept at system-server level, it's better to fetch that info when the application is started and cache it locally, so we can optimize the ContentCaptureManager APIs to return quickly when it's disabled. This CL also caches other values such as the buffer parameters. Test: atest CtsContentCaptureServiceTestCases Bug: 120494182 Bug: 121202151 Change-Id: I9d5211bca496ffa85ba9efc2a7bb32411834b787