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

Commit 1d36d0fc authored by Chris Craik's avatar Chris Craik
Browse files

TileBenchmark label addition

bug:5062896

Now uses previously unused methods, and has better labelling.

Change-Id: Icc6ec7d1ac915b594c26854aea31710e3f23633c
parent bac9cd68
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -236,8 +236,10 @@ public class PlaybackGraphs {
            int yPos = LABELOFFSET;
            canvas.drawText(label, xPos, yPos, whiteLabels);
            for (int statIndex = 0; statIndex < Stats.length; statIndex++) {
                label = resources.getString(R.string.format_stat,
                        mStats[metricIndex][statIndex]);
                String statLabel = resources.getString(
                        Stats[statIndex].getLabelId()).substring(0,3);
                label = statLabel + " " + resources.getString(
                        R.string.format_stat, mStats[metricIndex][statIndex]);
                yPos = LABELOFFSET + (1 + statIndex) * PlaybackView.TILE_SCALE
                        / 2;
                canvas.drawText(label, xPos, yPos, whiteLabels);
+2 −2
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public class ProfileActivity extends Activity {
        mMovementSpinner = (Spinner) findViewById(R.id.movement);
        mUrl = (EditText) findViewById(R.id.url);
        mWeb = (ProfiledWebView) findViewById(R.id.web);
        mCallback = new ProfileCallback() {
        setCallback(new ProfileCallback() {
            @SuppressWarnings("unchecked")
            @Override
            public void profileCallback(RunData data) {
@@ -232,7 +232,7 @@ public class ProfileActivity extends Activity {
                mCaptureButton.setChecked(false);
                setTestingState(TestingState.STOP_TESTING);
            }
        };
        });

        // Inspect button (opens PlaybackActivity)
        mInspectButton.setOnClickListener(new OnClickListener() {