32 Commits

Author SHA1 Message Date
Alan Viverette
51efddbd3b Remove unnecessary casts on calls to findViewById
Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
2017-04-14 11:15:50 -04:00
Alan Viverette
db7423cd8d Automatic casts for more findViewById implementations
Bug: 24137209
Test: make -j32
Change-Id: I423297a78e63d74eb44fd14747fc3890a9c42937
2017-04-04 14:07:20 -04:00
Dan Shi
7f2afd2dff Add test configs to apct tests under frameworks/base
TouchLatency is needed by test TouchLatencyJankTestWear
UiBench is needed by test UiBenchJankTests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
make -j32 TouchLatency TouchLatencyJankTestWear  && \
tradefed.sh run template/local --template:map test=TouchLatencyJankTestWear \
      --test-tag testname --log-level-display VERBOSE
make -j32 UiBenchJankTests UiBench  && \
tradefed.sh run template/local --template:map test=UiBenchJankTests \
      --test-tag testname --log-level-display VERBOSE

Change-Id: I63f23e3a21ad1343607953958fb7bb0a5fb8c343
2017-03-21 00:05:14 -07:00
Stan Iliev
010b6a58c7 Add UiBench jank and macrobench tests for saveLayer performance
Create 2 jank tests and 1 macrobench that measure saveLayer
performance:
- Fling a ListView, which has a vertical fading edge.
- Draw a canvas with 20 saveLayer/restore interleaved with other
drawText and drawRect ops.

Test: built and ran UiBench jank and macrobench tests.
Change-Id: I5a50feb7431d597c92c7a49031505d41f397d175
2017-01-31 15:13:08 -05:00
Stan Iliev
bf25627558 Create a jank test to measure clipped ListView performance (part 2)
Write a new UiBench test that opens and closes navigation drawer
on top of a trivial ListView.

Test: Built and ran UiBench tests.
Change-Id: I25413e27f78c756bb48e6dcaa92990592bb5b9de
2017-01-27 16:16:26 -05:00
Stan Iliev
6337f4fb27 Create a new jank test to measure HW layer resize performance
Write a jank test that is animating height and width of a View
backed by a HW layer.

Test: built angler-userdebug and ran UiBench jank tests.
Change-Id: I69eccb73b6fb887549506c80590892665051ee2f
2017-01-06 14:28:56 -05:00
Chris Craik
58d30ae209 Add SlowNestedRecyclerViewActivity
Bug: 31063101
Test: adb shell am instrument -e iterations 10 -w -e class com.android.uibench.janktests.UiBenchJankTests#testSlowNestedRecyclerViewFling com.android.uibench.janktests/android.test.InstrumentationTestRunner

Change-Id: I43e988e889f356323c9aea099f0efc6a04556f11
2016-10-12 16:21:20 -07:00
John Reck
e692f31fd6 Add a graph to jitter test
Test: manual
Change-Id: I914c0852d801d9cd5c4f14cc5a9cfae4b64ff334
2016-10-06 18:06:32 -07:00
John Reck
03a1edfe7f Jitter-specific test exploration
Test: manual, run the RenderingJitter activity
Change-Id: Id6ae9ed471bf02ed3015d369cdf5ea248898bbc2
2016-10-06 15:58:03 -07:00
Chris Craik
1d01d31503 Slow RecyclerView item binding benchmark am: 58427a62ac am: 3346f28b28
am: bb6491755b

Change-Id: I6154d52beba54f5c7cbbcd9c0714f3b873d35117
2016-09-16 22:40:28 +00:00
Chris Craik
58427a62ac Slow RecyclerView item binding benchmark
bug:27106058
bug:31063101

Change-Id: Ib903a31be707ba16fccf95cbbe24cd0f0b3baee3
2016-09-13 14:45:53 -07:00
Pablo Ceballos
812bf0130c UiBench: Fix camera distance for GlTextureView
Change-Id: Ieab2080c8b0a4baa3e844a2a616cdc9f4d4e8101
2016-08-05 17:45:39 +00:00
Chris Craik
5d2a453ab4 Fix ShadowGrid in UiBench
fixes: 30013642

Refactor Fragment to not be anonymous, support lib hates those.

Change-Id: Ia0e282b4b5ff7abf1a50b42ad2497d3c3344ccbc
(cherry picked from commit 9f0fa995c57cedf4e4a707955e55e17ea9116ffe)
2016-07-13 16:00:10 -07:00
Sergey Vasilinets
50f67331ca UiBench: add NotificationShadeActivity
Change-Id: I67a80c35b04bc8fba092b224b19de9cddbd98f6f
2016-07-08 11:11:06 -07:00
Chris Craik
2759f9333d Fix UiBench MainActivity fragment
fixes: 30015965

Changes ListFragment to no longer be anonymous (so it can be properly
recreated from instance state).

Change-Id: I521fb9bf7306a07d5179ad945d64e8977640cc5b
(cherry picked from commit 0ede07d4bd59b4a2108fda1cd4ab767cc0058fb8)
2016-07-07 12:39:42 -07:00
Sergei Vasilinetc
1d3a08ba89 Merge "UiBench: add NavigationDrawerActivity." 2016-07-01 20:58:41 +00:00
Sergey Vasilinets
de396b3289 UiBench: add NavigationDrawerActivity.
This is implementation generated by AndroidStudio with small tweaks

Change-Id: I1a9b6673d9f89d480efd4c01746f8225226d8f32
2016-07-01 18:31:49 +00:00
Chris Craik
9f0fa995c5 Fix ShadowGrid in UiBench
Refactor Fragment to not be anonymous, support lib hates those.

Change-Id: Ia0e282b4b5ff7abf1a50b42ad2497d3c3344ccbc
2016-07-01 10:46:18 -07:00
Chris Craik
39126b131e Merge "Add InvalidateTreeActivity UiBench case" 2016-07-01 06:30:35 +00:00
TreeHugger Robot
fd9f5e60f1 Merge "UiBench: bump tools ang gradle versions to newer ones" 2016-07-01 02:13:16 +00:00
Sergey Vasilinets
27dd5a35e1 UiBench: bump tools ang gradle versions to newer ones
Change-Id: I6416e1a739afd1769ef223aa898e0e03771f078f
2016-06-30 16:28:20 -07:00
Chris Craik
7ff5cf7375 Add InvalidateTreeActivity UiBench case
Change-Id: I9c411c656502d3b73e4fceba4fc084dce28743d1
2016-06-30 16:19:52 -07:00
Chris Craik
0ede07d4bd Fix UiBench MainActivity fragment
Changes ListFragment to no longer be anonymous (so it can be properly
recreated from instance state).

Change-Id: I521fb9bf7306a07d5179ad945d64e8977640cc5b
2016-06-30 15:54:31 -07:00
John Reck
2ccaf6a448 Change overdraw test to use windowbackground
Bug: 28786023

Fixes an issue where the first couple frames would
be extremely slow due to the simpleness of HWUI's
overdraw rejection optimization.

Change-Id: I1fe3d83f7e2e0eb3299124b00b9f877c2c3aebf9
2016-05-26 14:36:42 -07:00
Chris Craik
e706ef6b9e Add WebView scroll activity to UiBench
bug:28095056

Change-Id: Id1379d5a30835ef7285e729a3632cfef233d73a3
2016-04-18 13:29:58 -07:00
Hyungtae Tim Kim
e62b8a858d UiBench adapted for TV
ActivityTransition needs to show all images regardless of
device orientation, so that UiBench jank test could be run
on TV in landscape mode.

Bug: 27354151
Change-Id: I7d2d0158b73411d48421bf3e05517c15e4c0ac4d
2016-02-25 21:56:21 +09:00
Md Haque
d68e8cb51b Adding recyclerview and activity transition to UiBench
Change-Id: Ief31c6ed7f6b798893256f79b41e8a6ccbc3f3c7
2015-09-14 11:28:15 -07:00
Chris Craik
4cbf5efdc2 Add tests for text layout cache
Change-Id: I605391de1e0772821dd2a5ad6f829aea1f63c25b
2015-09-01 16:33:15 -07:00
Chris Craik
b3dba557f6 Add Dialog list, shadow, inflation tests
Change-Id: I39a18854248e7b4783fb7475c7aa9cc258a3c394
2015-08-31 17:26:32 -07:00
Chris Craik
baf4129946 Add initial GPU/text/invalidate UiBench workloads
Change-Id: I6c6f1f90973dc67014d0fdbf0028052a8341c292
2015-08-31 15:56:48 -07:00
Chris Craik
65b04b617f Add a few benchmarks to UiBench
Change-Id: I108d4eee8cded1c8ec57b3986d01acb1b49f334a
2015-08-27 15:48:24 -07:00
Chris Craik
8a1c0e8513 Initial commit of UiBench
Change-Id: Ia2b5bcb70e0d078db4e9d5fb9361bb78c1158141
2015-08-26 17:55:07 -07:00