History log of /frameworks/base/core/java/android/view/textclassifier/EntityConfidence.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0d9fbb9bd15fb1c6eae171d316a2de65aaffeb48 28-Nov-2017 Jan Althaus <jalt@google.com> Making TextClassifier helper objects parcelable

- EntityConfidence is no longer generic because it doesn't mix well with
being Parcelable.
- Deprecated OnClick listeners in TextClassification as they can't be
parceled. (Outright removed the secondary listeners that were not part
of any release)
- Classes that were present in previous releases have their parceling
factored out into ParcelableWrapper helper classes for backwards
compatibility.

Bug: 67609167
Test: Added
Change-Id: I820ca4abc6b80f90007ab4424bc5df2a14f797b0
/frameworks/base/core/java/android/view/textclassifier/EntityConfidence.java
bbe43dfd97c01364e46df452be4c99536d64e4fb 30-Nov-2017 Jan Althaus <jalt@google.com> Storage refactor for EntityConfidence

Caching the sorted entity list so users don't need to be careful to cache
the result of getEntities (previously dont by TextSelection and
TextClassification, but not TextLink). Also switched to ArrayMap as it's
better suited for small maps like the ones generated by the classifier.

Test: Ran FrameworksCoreTests
Change-Id: I08cc9f72146ccab88b6a3624f3775a366c814f7a
/frameworks/base/core/java/android/view/textclassifier/EntityConfidence.java
a6096f6c4c56c4937b52efb593d4333db301d6ad 08-Mar-2017 Abodunrinwa Toki <toki@google.com> TextClassifier: Multiple entities & confidence scores.

- Updates JNI layer to support multiple entities & confidence scores
- Updates code to include multiple entities & confidence scores
- Fixes EntityConfidence sorting to be descending order

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.textclassifier.cts.TextClassificationManagerTest
Bug: 35153211

Change-Id: I4878fe7573f5cb7f3eafb1b50c7baf331a336cb1
/frameworks/base/core/java/android/view/textclassifier/EntityConfidence.java
f001fefff3745c29e2ff6903d69ad921df1ea277 05-Jan-2017 Abodunrinwa Toki <toki@google.com> Update TextAssistant interface.

Rename to TextClassifier
Move to android.view.textclassifier package
Adds getTextClassifierInfo(...)
Changes addLinks(...) to getLinks(...)

This CL also integrates this interface with framework components
and passes a context to TextClassificationManager.

Test: Tests will be added with implementation.
Bug: 34661057
Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f
/frameworks/base/core/java/android/view/textclassifier/EntityConfidence.java