summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextViewRichContentReceiver.java
Commit message (Collapse)AuthorAgeFilesLines
* Update RichContentReceiver API (now OnReceiveContentCallback)Nikita Dubrovsky2020-09-251-153/+0
| | | | | | | | | | | Bug: 163718378 Bug: 165632620 Bug: 152068298 Test: Unit tests atest CtsWidgetTestCases:TextViewOnReceiveContentCallbackTest atest CtsViewTestCases:ViewTest atest FrameworksCoreTests:TextViewProcessTextTest Change-Id: I3fa65b47c920a9d1ddad88a79e60864dc8109753
* Fix AutofillValueTest#autofillEmptyTextValue.Joanne Chung2020-07-061-3/+0
| | | | | | | | | | | | | The new added API for rich content(ag/9884022) denies to autofill empty text. However, Autofill allows us to fill an empty text. We should not cause a compatibility issue. Bug: 159035197 Test: atest android.autofillservice.cts.AutofillValueTest#\ autofillEmptyTextValue Test: atest FrameworksCoreTests:AutofillValueTest Change-Id: Ieb5b82bfe4bf77abd151c61ea4cf9125b8fe61f5
* Add debug logging for RichContentReceiverNikita Dubrovsky2020-04-191-0/+14
| | | | | | Bug: 152068298 Test: manual Change-Id: I05becdd9d7d8668397f6002b1b8cc26f02bc60ef
* Integrate ACTION_PROCESS_TEXT with RichContentReceiverNikita Dubrovsky2020-04-161-11/+16
| | | | | | | | | Bug: 152068298 Bug: 152808432 Test: Ran existing/new tests for ACTION_PROCESS_TEXT atest FrameworksCoreTests:TextViewTest atest FrameworksCoreTests:TextViewProcessTextTest Change-Id: Idf88839f96087cdc403ea1b5413c238413e005d3
* Add unified API for inserting rich content (e.g. pasting an image)Nikita Dubrovsky2020-03-311-0/+137
The new callback provides a single API that apps can implement to support the different ways in which rich content may be inserted. The API is added to TextView and unifies the following code paths: * paste from the clipboard (TextView.paste) * content insertion from the IME (InputConnection.commitContent) * drag and drop (Editor.onDrop) * autofill (TextView.autofill) Corresponding API in support lib: aosp/1200800 Bug: 152068298 Test: Manual and unit tests atest FrameworksCoreTests:TextViewRichContentReceiverTest atest FrameworksCoreTests:AutofillValueTest atest FrameworksCoreTests:TextViewActivityTest Change-Id: I6e03a398ccb6fa5526d0a282fc114f4e80285099