diff options
author | John Reck <jreck@google.com> | 2019-02-20 17:39:52 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2019-02-22 14:24:28 -0800 |
commit | e57475e6c9bf1ba463b51f5214c8d9f1c794070d (patch) | |
tree | d7b12f0258d35ae2f880ff76da5c3e73691bd24f /apct-tests | |
parent | ab5938c3077371d1770d87316342526e28cadacb (diff) |
Address API council feedback
Bug: 125027187
Bug: 125026102
Bug: 125026678
Bug: 125026234
Bug: 125027586
Bug: 125026476
Bug: 125026103
Bug: 125026237
Bug: 125027248
Bug: 125026475
Bug: 125027487
Test: RenderNodeTests
Change-Id: Ic63ea7a3cfe359a7dff0c1b46e534e499f7e928b
Diffstat (limited to 'apct-tests')
3 files changed, 15 insertions, 15 deletions
diff --git a/apct-tests/perftests/core/src/android/graphics/perftests/RenderNodePerfTest.java b/apct-tests/perftests/core/src/android/graphics/perftests/RenderNodePerfTest.java index e7fe235e0ea8..e805ab912fc1 100644 --- a/apct-tests/perftests/core/src/android/graphics/perftests/RenderNodePerfTest.java +++ b/apct-tests/perftests/core/src/android/graphics/perftests/RenderNodePerfTest.java @@ -71,7 +71,7 @@ public class RenderNodePerfTest { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); RenderNode node = RenderNode.create("LinearLayout", null); while (state.keepRunning()) { - node.startRecording(100, 100); + node.beginRecording(100, 100); node.endRecording(); } } @@ -86,7 +86,7 @@ public class RenderNodePerfTest { while (state.keepRunning()) { for (int i = 0; i < nodes.length; i++) { - nodes[i].startRecording(100, 100); + nodes[i].beginRecording(100, 100); } for (int i = nodes.length - 1; i >= 0; i--) { nodes[i].endRecording(); diff --git a/apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java b/apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java index bd7522d0359e..8a6c60f44702 100644 --- a/apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java +++ b/apct-tests/perftests/core/src/android/text/StaticLayoutPerfTest.java @@ -265,7 +265,7 @@ public class StaticLayoutPerfTest { state.pauseTiming(); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); state.resumeTiming(); layout.draw(c); @@ -282,7 +282,7 @@ public class StaticLayoutPerfTest { final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); state.resumeTiming(); layout.draw(c); @@ -299,7 +299,7 @@ public class StaticLayoutPerfTest { final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); state.resumeTiming(); layout.draw(c); @@ -316,7 +316,7 @@ public class StaticLayoutPerfTest { final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); Canvas.freeTextLayoutCaches(); state.resumeTiming(); @@ -334,7 +334,7 @@ public class StaticLayoutPerfTest { final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); Canvas.freeTextLayoutCaches(); state.resumeTiming(); @@ -353,7 +353,7 @@ public class StaticLayoutPerfTest { mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT), PAINT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); state.resumeTiming(); layout.draw(c); @@ -371,7 +371,7 @@ public class StaticLayoutPerfTest { mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT), PAINT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); state.resumeTiming(); layout.draw(c); @@ -389,7 +389,7 @@ public class StaticLayoutPerfTest { mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT), PAINT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); Canvas.freeTextLayoutCaches(); state.resumeTiming(); @@ -408,7 +408,7 @@ public class StaticLayoutPerfTest { mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT), PAINT); final StaticLayout layout = StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); - final RecordingCanvas c = node.startRecording(1200, 200); + final RecordingCanvas c = node.beginRecording(1200, 200); Canvas.freeTextLayoutCaches(); state.resumeTiming(); diff --git a/apct-tests/perftests/core/src/android/widget/TextViewPrecomputedTextPerfTest.java b/apct-tests/perftests/core/src/android/widget/TextViewPrecomputedTextPerfTest.java index 0bc9ee4e53ab..55d54e452040 100644 --- a/apct-tests/perftests/core/src/android/widget/TextViewPrecomputedTextPerfTest.java +++ b/apct-tests/perftests/core/src/android/widget/TextViewPrecomputedTextPerfTest.java @@ -344,7 +344,7 @@ public class TextViewPrecomputedTextPerfTest { textView.setText(text); textView.measure(width, height); textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); - final RecordingCanvas c = node.startRecording( + final RecordingCanvas c = node.beginRecording( textView.getMeasuredWidth(), textView.getMeasuredHeight()); textView.nullLayouts(); Canvas.freeTextLayoutCaches(); @@ -371,7 +371,7 @@ public class TextViewPrecomputedTextPerfTest { textView.setText(text); textView.measure(width, height); textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); - final RecordingCanvas c = node.startRecording( + final RecordingCanvas c = node.beginRecording( textView.getMeasuredWidth(), textView.getMeasuredHeight()); textView.nullLayouts(); Canvas.freeTextLayoutCaches(); @@ -400,7 +400,7 @@ public class TextViewPrecomputedTextPerfTest { textView.setText(text); textView.measure(width, height); textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); - final RecordingCanvas c = node.startRecording( + final RecordingCanvas c = node.beginRecording( textView.getMeasuredWidth(), textView.getMeasuredHeight()); textView.nullLayouts(); Canvas.freeTextLayoutCaches(); @@ -430,7 +430,7 @@ public class TextViewPrecomputedTextPerfTest { textView.setText(text); textView.measure(width, height); textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); - final RecordingCanvas c = node.startRecording( + final RecordingCanvas c = node.beginRecording( textView.getMeasuredWidth(), textView.getMeasuredHeight()); textView.nullLayouts(); Canvas.freeTextLayoutCaches(); |