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
This commit is contained in:
Tony Mak
2019-02-11 17:08:44 +00:00
parent 8c83a07c36
commit ca7433e2da

View File

@@ -64,7 +64,7 @@ public class TextClassifierPerfTest {
Context context = InstrumentationRegistry.getTargetContext();
TextClassificationManager textClassificationManager =
context.getSystemService(TextClassificationManager.class);
mTextClassifier = textClassificationManager.getTextClassifier();
mTextClassifier = textClassificationManager.getLocalTextClassifier();
}
@Test