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:
@@ -64,7 +64,7 @@ public class TextClassifierPerfTest {
|
||||
Context context = InstrumentationRegistry.getTargetContext();
|
||||
TextClassificationManager textClassificationManager =
|
||||
context.getSystemService(TextClassificationManager.class);
|
||||
mTextClassifier = textClassificationManager.getTextClassifier();
|
||||
mTextClassifier = textClassificationManager.getLocalTextClassifier();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user