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

Commit 7f699d43 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix TextViewPRecomputedTextPerfTest"

parents d641d64a d39ded73
Loading
Loading
Loading
Loading
+8 −4
Original line number Original line Diff line number Diff line
@@ -343,13 +343,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.setText(text);
            textView.measure(width, height);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();
            state.resumeTiming();


            textView.onDraw(c);
            textView.onDraw(c);
            node.endRecording();
        }
        }
    }
    }


@@ -369,13 +370,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.setText(text);
            textView.measure(width, height);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();
            state.resumeTiming();


            textView.onDraw(c);
            textView.onDraw(c);
            node.endRecording();
        }
        }
    }
    }


@@ -397,13 +399,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.setText(text);
            textView.measure(width, height);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();
            state.resumeTiming();


            textView.onDraw(c);
            textView.onDraw(c);
            node.endRecording();
        }
        }
    }
    }


@@ -426,13 +429,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.setText(text);
            textView.measure(width, height);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();
            state.resumeTiming();


            textView.onDraw(c);
            textView.onDraw(c);
            node.endRecording();
        }
        }
    }
    }
}
}