From ca7433e2da35d91610dc9a1ee0933f569e42b8d5 Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Mon, 11 Feb 2019 17:08:44 +0000 Subject: [PATCH] Use local textclassifier in perf test Reason: We are more interested in the performance of the textclassifier in AOSP, rather than AiAi Test: adb shell am instrument -w -e class android.textclassifier.TextClassifierPerfTest com.android.perftests.core/androidx.test.runner.AndroidJUnitRunner Change-Id: I00ccc1c4fb5c5469e029d2f70474ddbab65a5732 --- .../core/src/android/textclassifier/TextClassifierPerfTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java b/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java index ec46a75bd8074..c506aec624d17 100644 --- a/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java +++ b/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java @@ -64,7 +64,7 @@ public class TextClassifierPerfTest { Context context = InstrumentationRegistry.getTargetContext(); TextClassificationManager textClassificationManager = context.getSystemService(TextClassificationManager.class); - mTextClassifier = textClassificationManager.getTextClassifier(); + mTextClassifier = textClassificationManager.getLocalTextClassifier(); } @Test