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

Commit 23d1fdde authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

Refactor the java side APCT perf test

Relocate everything into apct-tests/
Setup the share static java lib for the common code and use it.

b/28980976

Change-Id: I74c80c0b54ad18ee5fc44da43249d3c88fb926e2
parent afcde2d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ LOCAL_MODULE_TAGS := tests

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test apct-perftests-utils

LOCAL_PACKAGE_NAME := CorePerfTests

+2 −6
Original line number Diff line number Diff line
@@ -20,8 +20,7 @@ import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import android.perftest.BenchmarkState;

import android.perftests.utils.BenchmarkState;
import android.support.test.filters.LargeTest;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.rule.ActivityTestRule;
@@ -74,9 +73,6 @@ public class TextViewSetTextLocalePerfTest {
            textView.setTextLocale(mSecondLocale);
        }

        Log.i("TextViewSetTextLocalePerfTest", mMetricKey + ": " + state.summaryLine());
        final Bundle status = new Bundle();
        status.putLong(mMetricKey, state.median());
        InstrumentationRegistry.getInstrumentation().sendStatus(Activity.RESULT_OK, status);
        state.sendFullStatusReport(InstrumentationRegistry.getInstrumentation(), mMetricKey);
    }
}
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@ include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_STATIC_JAVA_LIBRARIES := apct-perftests-utils

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_SRC_FILES := $(call all-java-files-under, src)

Loading