Searched refs:model_options (Results 1 – 5 of 5) sorted by relevance
223 ModelOptions model_options; in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage() local224 if (ReadSelectionModelOptions(fd, &model_options)) { in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage()225 return env->NewStringUTF(model_options.language().c_str()); in Java_android_view_textclassifier_SmartSelection_nativeGetLanguage()235 ModelOptions model_options; in Java_android_view_textclassifier_SmartSelection_nativeGetVersion() local236 if (ReadSelectionModelOptions(fd, &model_options)) { in Java_android_view_textclassifier_SmartSelection_nativeGetVersion()237 return model_options.version(); in Java_android_view_textclassifier_SmartSelection_nativeGetVersion()
31 ModelOptions model_options; in ModelParamsBuilder() local34 model_options = in ModelParamsBuilder()120 if (!model_options.use_shared_embeddings()) { in ModelParamsBuilder()
127 bool ReadSelectionModelOptions(int fd, ModelOptions* model_options);
209 bool ReadSelectionModelOptions(int fd, ModelOptions* model_options) { in ReadSelectionModelOptions() argument226 *model_options = in ReadSelectionModelOptions()
37 ModelOptions model_options; in TEST() local38 ASSERT_TRUE(ReadSelectionModelOptions(fd, &model_options)); in TEST()41 EXPECT_EQ("en", model_options.language()); in TEST()42 EXPECT_GT(model_options.version(), 0); in TEST()