summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2019-02-15 13:57:38 +0000
committerTony Mak <tonymak@google.com>2019-02-26 12:00:04 +0000
commitac9b4d8d2e5e883f1f2f33fbb56fbf2e72fefaa9 (patch)
tree8b1617e203d15f6817339aab71c535f1788b5576 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent8e95f0bfb9294da0bdbe57f12c616e593aafa5c3 (diff)
Support title_with_entity and title_without_entity
1. Pull out TextClassifierImpl.LabeledIntent to LabeledIntent. 2. LabeledIntent.resolves takes a TitleChooser object, which allow custom logic like "if the resolved app is a browser, use title_with_entity. Otherwise, use title_without_entity". If TitleChooser is not set, the default behavior is to use title_with_entity if provided, use title_without_entity otherwise. 3. For classifyText, we use a TitleChooser that always return title_without_entity. So no behavior change in classifyText. 4. If custom titleChooser returns null, fallback to use the default titleChooser. BUG: 124428508 BUG: 123946471 Test: atest framework/base/core/tests/coretests/src/android/view/textclassifier/ Change-Id: I7299c40ffc57deb9484d493f8c62b220a5a1e7d8
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions