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

Commit fd93ada4 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Log a mapping from parameter numbers to combinations.

Test: atest CorePerfTests:android.libcore.regression.CipherPerfTest
Bug: 369089925
Flag: TEST_ONLY
Change-Id: I6023674d35f4f3278e1bb1ad3ce650bd91727fc9
parent 45b826a7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.libcore.regression;

import android.perftests.utils.BenchmarkState;
import android.perftests.utils.PerfStatusReporter;
import android.util.Log;

import androidx.test.filters.LargeTest;

@@ -47,6 +48,8 @@ import javax.crypto.spec.IvParameterSpec;
@RunWith(JUnitParamsRunner.class)
@LargeTest
public class CipherPerfTest {
    private static final String TAG = "android.libcore.regression.CipherPerfTest";

    @Rule public PerfStatusReporter mPerfStatusReporter = new PerfStatusReporter();

    public static Collection getCases() {
@@ -71,6 +74,10 @@ public class CipherPerfTest {
                    }
                    for (int keySize : keySizes) {
                        for (int inputSize : inputSizes) {
                            Log.i(TAG,
                                    "param[" + params.size() + "] = " + mode.name() + ", "
                                            + padding.name() + ", " + keySize + ", " + inputSize
                                            + ", " + implementation.name());
                            params.add(
                                    new Object[] {
                                        mode, padding, keySize, inputSize, implementation