OSDN Git Service

TextClassifier updates
authorAbodunrinwa Toki <toki@google.com>
Fri, 24 Mar 2017 21:43:13 +0000 (21:43 +0000)
committerAbodunrinwa Toki <toki@google.com>
Mon, 27 Mar 2017 16:53:24 +0000 (17:53 +0100)
commitd2d1399a62087b4e9e36aca5d53f628b4c06e1d7
tree38bff2d0316e8971ebe8b9dcfa19f451553901ab
parent2858ad3a4b9d6c0a715ce1506eaec257b5d7cebd
TextClassifier updates

- Increase the size of the text sent as context to the classifier
- Pass regex match hints to the classifer

Test: Build still works. Regex hints logged correctly. The hints won't
matter until we've actually passed in this values to native code. Native
library test will be written and I've got a tracker bug to write more robust Java tests.

Bug: 35416389
Bug: 36584397

Change-Id: I29e56189b388b36dc0cc7a8bb13ef237ff55be7b
core/java/android/view/textclassifier/SmartSelection.java
core/java/android/view/textclassifier/TextClassifierImpl.java
core/java/android/widget/SelectionActionModeHelper.java