summaryrefslogtreecommitdiff
path: root/apct-tests
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2019-02-11 17:08:44 +0000
committerTony Mak <tonymak@google.com>2019-02-11 17:13:40 +0000
commitca7433e2da35d91610dc9a1ee0933f569e42b8d5 (patch)
tree0dc3db932f73d5a2d793d11912b21034b7d8d589 /apct-tests
parent8c83a07c367482c4a68be33e02e030a59a1f144f (diff)
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
Diffstat (limited to 'apct-tests')
-rw-r--r--apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java b/apct-tests/perftests/core/src/android/textclassifier/TextClassifierPerfTest.java
index ec46a75bd807..c506aec624d1 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