summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2018-10-25 21:30:40 +0100
committerTony Mak <tonymak@google.com>2018-11-02 11:19:44 +0000
commitba22842144d679b612d87a3a58c0240370e9230a (patch)
treef12e890ac02f994576e26cd368a8d2445a66fca8 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent7eeac900b621d5d7dedb531f6c6da0c43840421a (diff)
Refactor model listing / selection code to support other types of model
Currently, listModelFiles and findBestModelFile methods only support annotator model. But we want to extend them to support other models as well, like langID and actions. Thus, introducing ModelFileManager, which provides listModelFiles and findBestModelFile. ModelFileManager takes a Supplier<List<ModelFile>> to list model files. For different types of model, we just need to provide a different supplier to the ModelFileManager. There should be no behavior change. Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/ModelFileManagerTest.java Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/TextClassificationManagerTest.java Change-Id: I4fc3fd1c9246383ee5d906792bb14b96dbf0a79f
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions