23 Commits

Author SHA1 Message Date
John Reck
60bf972d48 Merge "Fix pause/resume timing" 2016-10-18 20:27:41 +00:00
John Reck
306928c49d Port Parcel benchmarks to APCT
Test: ran benchmarks
Change-Id: I5b4fad7e1183c8634df4f02bd71701b37fdbc3be
2016-10-17 15:29:17 -07:00
John Reck
c1d6ba4053 Fix pause/resume timing
Test: run SystemPerfTest#testPauseResumeOverhead

Change-Id: Icc34355e29f3a6ba8f7d73a904bf549d2685eee4
2016-10-17 13:49:16 -07:00
John Reck
295f9af9a8 Add a couple simple canvas benchmarks
Test: Manual, run the benchmark

Change-Id: I944b0e958e5df800f493af9e41a6202308301fc1
2016-10-14 14:57:52 -07:00
John Reck
62e5fea855 Greatly reduce BenchmarkState overhead
CL reduces BenchmarkState to minimal levels. It also adds
a warmup loop to get things going first before starting measurements.

With this change with clocks /not/ locked on bullhead the test for
RenderNodeJniOverhead is showing a stable (0ns std dev) result
of 54ns, which is approximately the expected amount.

Test: Ran a few perf benchmarks

Change-Id: If01e455884711ebd9cfb89f076efa19dc0b5436d
2016-10-13 08:41:35 -07:00
Seigo Nonaka
eb22e31f7f Introduce Typeface.createXX performance tests.
BUG:29142734
Test: Performed following commands
mmma -j1024 ./frameworks/base/apct-tests/perftests/core/
adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk
adb shell am instrument -w \
com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner

Change-Id: I8e5ef3bf729f981d20dc88736d8a1a3d6b972c55
2016-10-03 19:58:02 +09:00
Seigo Nonaka
36e0f12892 Fix test failure due to out of UI thread runnning.
After Ie8c42d60a0bff7636795a958a475058798061fe5,
ActivityTestRule is no longer a subclass of UiThreadTestRule, and looks
like the new UiThreadTest annotation is not working for Parameterized
test. As a temporary fix, use runOnUiThread instead of @UiThreadTest.

Change-Id: I69d035864259c1f0765d52ebc53634d3ef8ef84a
2016-09-16 12:13:30 +09:00
Keisuke Kuroyanagi
fe1a3b6f03 Merge changes from topic 'ksk_long_text_edit'
* changes:
  Always redraw text that protrude from line bounds.
  Lazy RenderNode creation to improve performance.
2016-09-08 04:37:17 +00:00
Keisuke Kuroyanagi
9612120965 Merge "Edit long text performance test." 2016-09-08 04:37:17 +00:00
Keisuke Kuroyanagi
f5af4a344e Always redraw text that protrude from line bounds.
With I63af3a6ecbf92, we create RenderNode lazily, but
blocks containing contents that protrude from line top or
bottom cannot be simply lazily redrawn after edit or
scroll.
With this CL, we check if the contents protrude from line
top or bottom by comparing the text bounds with relevant
font metrics values and we always redrawn such blocks after
edit or scroll.

Bug: 27889485
Change-Id: I666da5eeb39f780c341597f347bfcba21eb34295
2016-09-05 17:45:37 +09:00
Teng-Hui Zhu
022113ad0d Workaround the issue that parameterized test don't support @UiThreadTest
When the test infrastructure support it, this change should be reverted.
b/30746303

Change-Id: Ice181d93f4f1210bcd2c8566e61c90035fe12ec5
2016-08-30 15:06:28 -07:00
Teng-Hui Zhu
17e76971a1 Move RenderNodePerfTest to the merged package
Change-Id: I4eaa1cf058a83d6c9fbbde2bd97d9638c1152ae8
2016-08-30 13:44:30 -07:00
John Reck
7a9a4eca14 Merge & fix package names
Merge core, graphics, and misc into one
test suite as the split is unneccessary.

Also cleans up package names

Change-Id: I82da6cd69b3a52c63770465780ac98628af334ca
2016-08-26 09:43:03 -07:00
Keisuke Kuroyanagi
b7ff1333fe Edit long text performance test.
Bug: 27889485

Change-Id: I5784c79fe8b291476f5f76b2760cc2d9fd7d9011
2016-08-19 23:05:02 +09:00
Chris Craik
51dd1e51ec Add misc apct perf tests
Includes test for Log.d(), and System.nanoTime().

Also unifies Android.mk format, and package usage.

Change-Id: I90039eff1c2c2d59afe75c4a808a29b67f3176f3
2016-08-17 17:14:34 -07:00
Teng-Hui Zhu
2c33e3085d Double check the layout test running on UI thread
Change-Id: I7628040868ab1cc047c2f891d91c88ab01815c9d
2016-07-12 16:10:45 -07:00
Tenghui Zhu
19c6ae310c Merge "Add layout perf test into APCT" 2016-07-12 20:41:59 +00:00
Teng-Hui Zhu
a9cebd628c Add layout perf test into APCT
Change-Id: I32971176cdf60e8848180f2c923ca2f88fc19e4d
2016-07-12 10:52:49 -07:00
Seigo Nonaka
2a154e2940 Introduce backspace benchmark tests.
Bug: 29142734
Change-Id: I186a2019e883881ee8001848f4ae2076ed551f5b
2016-07-07 15:50:26 +09:00
Seigo Nonaka
e3f1762c35 Add cursor movement perftest.
Bug: 29142734
Change-Id: Ia2c140f676ed78754d6dc819ac49d19f8f0b8ba2
2016-07-01 13:55:04 +09:00
Teng-Hui Zhu
119265d05e Use new Rule to report status when success
b/28980976

Change-Id: Ib5e718ca8bfa2753eedcc40d41843f202c8c23cb
2016-06-27 14:07:00 -07:00
Teng-Hui Zhu
57fc7599e8 Update VectorDrawablePerfTest to use JUnit 4
Merge StubActivity into utils.
b/28980976

Change-Id: I2ea53d5b6e3e508b2f83846940dc617f1fdff248
2016-06-22 15:43:45 -07:00
Teng-Hui Zhu
23d1fdded5 Refactor the java side APCT perf test
Relocate everything into apct-tests/
Setup the share static java lib for the common code and use it.

b/28980976

Change-Id: I74c80c0b54ad18ee5fc44da43249d3c88fb926e2
2016-06-21 16:11:31 -07:00