Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca7433e2 authored by Tony Mak's avatar Tony Mak
Browse files

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
parent 8c83a07c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public class TextClassifierPerfTest {
        Context context = InstrumentationRegistry.getTargetContext();
        TextClassificationManager textClassificationManager =
                context.getSystemService(TextClassificationManager.class);
        mTextClassifier = textClassificationManager.getTextClassifier();
        mTextClassifier = textClassificationManager.getLocalTextClassifier();
    }

    @Test