summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorOli Lan <olilan@google.com>2021-02-25 14:40:59 +0000
committerOli Lan <olilan@google.com>2021-03-10 18:00:30 +0000
commit7e568c91776b13911af517ead723a7a87cff0c10 (patch)
tree90892d44ef7ac1b4766536b907326a0352ba2ddd /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent44d2d8f916657ea2a11fe6967843bbf98f306a08 (diff)
Add text classification results to clip description and clip data.
With this change, text classification is performed on text in clip data when it is set as the primary clip, if it is below a certain length. This allows information about which entities (e.g. URLs, addresses) are present in the text to be added to the ClipDescription. With toast notifications being added when an app accesses clipboard, this change will allow apps to tell if clipboard contains information they are interested in before they access the clip data. This will allow unnecessary clipboard accesses to be avoided. If entities are detected in the clip data, the results of classification are added to the ClipData so that users of this API do not then need to repeat text classification themselves in order to locate the entities. Bug: 180577441 Test: new CTS tests added to ClipDescriptionTest Change-Id: I334db4805b8b72e0e00c721fe6efe64ec0661a8a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions