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

Commit 351c73a0 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "TileBenchmark label addition"

parents b389bdfb 1d36d0fc
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() {