diff options
author | Adam He <adamhe@google.com> | 2021-03-05 16:36:44 -0800 |
---|---|---|
committer | Adam He <adamhe@google.com> | 2021-03-22 11:38:50 -0700 |
commit | 7c3a6e37a26fdbde77936bb9fd0876456ab05075 (patch) | |
tree | 0d2915f071d8e6f346e7416bbd3ff844e9a9a1b6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 80e8713490d1567d4e0de354414698744f5a5933 (diff) |
Add API for TranslationContext
* TranslationContext holds source/dest specs, replacing spec pairs in
methods.
* TranslationCapability holds information on the translation models, as well
as a helper method to generate a TranslationContext for creating
translators.
* TCapability is meant to hold information about the translation models, and
provide information/flag on what the translator can support, versus the
TContext which will indicate exactly which supported flags should be
used and activated by the models.
* Added TM.getTranslationCapabilities, and add/remove TCapabilityUpdateListener
Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: I2ab7a3eadcbbc9e13f8f33bf9c51cda69f30fdb7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions