summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2019-03-22 15:35:15 +0000
committerTony Mak <tonymak@google.com>2019-04-05 14:35:13 +0100
commit20fe187bdfe6e3e038f97231141acb79c7d1f52c (patch)
tree9ddc1804134962e7fe6501c7eefcc7ca92a3a51c /libs/hwui/renderthread/DrawFrameTask.cpp
parent3acdae62228f70b5e0913f074bf9726e04d1f5d4 (diff)
Flag to configure model parameters
The objective is to allow us to push model parameters by using a settings flag, without the need of pushing a new model file. Settings.Global#TEXT_CLASSIFIER_ACTION_MODEL_PARAMS stores a comma separated string that contains these three fields: 1. required_model_version 2. required_locales 3. serialized_preconditions To ensure serialized_preconditions is applied to the target model file, TextClassifierImpl only applies the serialized_preconditions when required_model_version and required_locales are both met. Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/ Test: adb shell settings put global text_classifier_action_model_params 'required_model_version=0,required_locales=en,serialized_preconditions=FAAAAAAADgAIAAAAAAAAAAAABAAOAAAAAAAAAA==' Observe that the flag is actually applied in the model. Test: Ensure that finalize is called when the activity is dead. BUG: 123616497 Change-Id: Ie42dcfeee705c83bbb693a5c1a0fedd0821df5e7
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions