summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CacheManager.cpp
diff options
context:
space:
mode:
authorAbodunrinwa Toki <toki@google.com>2018-12-11 00:35:11 +0000
committerTony Mak <tonymak@google.com>2018-12-14 15:49:01 +0800
commit37ccedcc1255bf6f6b45d491d55e6cefa481d839 (patch)
tree33b55692c6a3301825422bb2a2e81a665e0eec86 /libs/hwui/renderthread/CacheManager.cpp
parentc4359bf17fa46d444019a9cc371f1002764d43c6 (diff)
Introduce TextClassifierEvent
This serves as a general TextClassifier event object for reporting any textclassifier event and will replace the SelectionEvent class. Example: // Smart link clicked. new TextClassifierEvent.Builder(CATEGORY_LINKIFY, TYPE_LINK_CLICKED) .setEventContext(new TextClassificationContext.Builder( pkgname, WIDGET_TYPE_TEXTVIEW) .build()) .setEntityType(TextClassifier.EMAIL) .setResultId(textclassification.getId()) .setEventIndex(0) .setEventTime(now) .setStart(0) .setEnd(3) .build(); Bug: 120837847 Test: See related cts CL Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts \ frameworks/base/core/tests/coretests/src/android/view/textclassifier Change-Id: Ifd84a45fc5c46ffdb200dcb9600f6a470ce792bb
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
0 files changed, 0 insertions, 0 deletions