Loading core/java/android/view/textclassifier/TextClassifierImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,8 @@ public final class TextClassifierImpl implements TextClassifier { new File("/data/misc/textclassifier/lang_id.model"); // Actions private static final String ACTIONS_FACTORY_MODEL_FILENAME_REGEX = "actions_suggestions.model"; private static final String ACTIONS_FACTORY_MODEL_FILENAME_REGEX = "actions_suggestions\\.(.*)\\.model"; private static final File UPDATED_ACTIONS_MODEL = new File("/data/misc/textclassifier/actions_suggestions.model"); Loading core/tests/coretests/src/android/view/textclassifier/intent/LegacyIntentClassificationFactoryTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,9 @@ public class LegacyIntentClassificationFactoryTest { null, null, null, null); null, 0, 0); List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( InstrumentationRegistry.getContext(), Loading Loading @@ -98,7 +100,9 @@ public class LegacyIntentClassificationFactoryTest { null, null, null, null); null, 0, 0); List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( InstrumentationRegistry.getContext(), Loading core/tests/coretests/src/android/view/textclassifier/intent/TemplateClassificationIntentFactoryTest.java +12 −4 Original line number Diff line number Diff line Loading @@ -82,7 +82,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, createRemoteActionTemplates()); createRemoteActionTemplates(), 0, 0); List<LabeledIntent> intents = mTemplateClassificationIntentFactory.create( Loading Loading @@ -121,7 +123,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, createRemoteActionTemplates()); createRemoteActionTemplates(), 0, 0); List<LabeledIntent> intents = mTemplateClassificationIntentFactory.create( Loading Loading @@ -156,7 +160,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, null); null, 0, 0); mTemplateClassificationIntentFactory.create( InstrumentationRegistry.getContext(), Loading Loading @@ -189,7 +195,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, new RemoteActionTemplate[0]); new RemoteActionTemplate[0], 0, 0); mTemplateClassificationIntentFactory.create( InstrumentationRegistry.getContext(), Loading Loading
core/java/android/view/textclassifier/TextClassifierImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,8 @@ public final class TextClassifierImpl implements TextClassifier { new File("/data/misc/textclassifier/lang_id.model"); // Actions private static final String ACTIONS_FACTORY_MODEL_FILENAME_REGEX = "actions_suggestions.model"; private static final String ACTIONS_FACTORY_MODEL_FILENAME_REGEX = "actions_suggestions\\.(.*)\\.model"; private static final File UPDATED_ACTIONS_MODEL = new File("/data/misc/textclassifier/actions_suggestions.model"); Loading
core/tests/coretests/src/android/view/textclassifier/intent/LegacyIntentClassificationFactoryTest.java +6 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,9 @@ public class LegacyIntentClassificationFactoryTest { null, null, null, null); null, 0, 0); List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( InstrumentationRegistry.getContext(), Loading Loading @@ -98,7 +100,9 @@ public class LegacyIntentClassificationFactoryTest { null, null, null, null); null, 0, 0); List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( InstrumentationRegistry.getContext(), Loading
core/tests/coretests/src/android/view/textclassifier/intent/TemplateClassificationIntentFactoryTest.java +12 −4 Original line number Diff line number Diff line Loading @@ -82,7 +82,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, createRemoteActionTemplates()); createRemoteActionTemplates(), 0, 0); List<LabeledIntent> intents = mTemplateClassificationIntentFactory.create( Loading Loading @@ -121,7 +123,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, createRemoteActionTemplates()); createRemoteActionTemplates(), 0, 0); List<LabeledIntent> intents = mTemplateClassificationIntentFactory.create( Loading Loading @@ -156,7 +160,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, null); null, 0, 0); mTemplateClassificationIntentFactory.create( InstrumentationRegistry.getContext(), Loading Loading @@ -189,7 +195,9 @@ public class TemplateClassificationIntentFactoryTest { null, null, null, new RemoteActionTemplate[0]); new RemoteActionTemplate[0], 0, 0); mTemplateClassificationIntentFactory.create( InstrumentationRegistry.getContext(), Loading