3429 Commits

Author SHA1 Message Date
Hugo Benichi
2abde827c5 DO NOT MERGE Stricter NetworkNotificationManagerTest
am: a865790a5b

Change-Id: I94ea5c6994d181e730ec4f49e98001eb81ed8740
2016-12-20 06:49:08 +00:00
Hugo Benichi
a865790a5b DO NOT MERGE Stricter NetworkNotificationManagerTest
This patch changes NetworkNotificationManagerTest to populate extraInfo
of NetworkInfo in order to catch regressions in malformed format Strings
of log statements in NetworkNotificationManager.

Test: verified that the test fails when reintroducing the format String
bug.
Bug: 33737715

Change-Id: If14063554b8246d9d80cd222cb41c30dee121c5a
2016-12-20 05:02:28 +00:00
Hugo Benichi
7f907b0341 DO NOT MERGE Network notifications: revamp keying scheme
am: 84daaea8fd

Change-Id: Ibad7d0210b2c69826462b781f43a82d65849ebfb
2016-12-19 08:29:23 +00:00
Hugo Benichi
04507a635b DO NOT MERGE Unit tests for NetworkNotificationManager
am: d3da17a260

Change-Id: I873ea4a5625c526d61017967604305ada548f907
2016-12-19 08:29:11 +00:00
Hugo Benichi
84daaea8fd DO NOT MERGE Network notifications: revamp keying scheme
This patch changes the (tag: String, id: Int) keying scheme for network
notifications so that TRON notification counters can count network
related notifications unambiguously.

TRON instruments all notifications shown for package "android" as well
as user interactions with these Notifications. These counters are
grouped by id. However the network notifications ("no internet" dialog,
"captive portal sign in" dialog, ...) use a static tag and a dynamic id
for keying notifications, preventing the counters to correctly
aggregate. In addition there is also the risk of collision with other
SystemUi notification ids not managed by NetworkNotificationManager.

In order to make the TRON counters useful for network notifications,
the id is now encoding the network notification type in a stable way
while the tag is used to uniquely identify network notifications.

Test: change covered by previously added new unit tests.
Bug: 32198726
Bug: 33030620

(cherry picked from commit fb2609d3eee1c7a4dda889c000f32183a044978a)

Change-Id: Iadf7f15da38de28587090ed0395f15c24d4ad442
2016-12-15 20:31:11 +09:00
Hugo Benichi
d3da17a260 DO NOT MERGE Unit tests for NetworkNotificationManager
Test: new unit test, no functional changes.
Bug: 32198726

(cherry picked from commit 74264329da5c52fbbafc1d20457056fdeabe19dc)

Change-Id: Ib8a725cdd8c708ccb9cffad62321e0db8b27e593
2016-12-15 14:32:02 +09:00
John Reck
579e3667e3 DO NOT MERGE: Add TouchLatency test
am: 91e2e7f460

Change-Id: I1eeed0e4aea8dbe2d963b38cfe9d79449e1a17d2
2016-12-06 20:13:49 +00:00
John Reck
91e2e7f460 DO NOT MERGE: Add TouchLatency test
Change-Id: Ic3a788f6b06bf6477ab23b183fb8c76ae8870b6b
(cherry picked from commit d136ce902c0be4a0cfb8e9d1288ba931ceaf88b4)
2016-12-06 01:23:43 +00:00
Chris Craik
bb6491755b Slow RecyclerView item binding benchmark am: 58427a62ac
am: 3346f28b28

Change-Id: I65f2f0f35e887171d271a7c25b687ed57cfd219d
2016-09-16 22:24:06 +00:00
Chris Craik
3346f28b28 Slow RecyclerView item binding benchmark
am: 58427a62ac

Change-Id: I55d2333c4630fd539d9fdc22a15023e5f4d8c25c
2016-09-16 22:15:31 +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
Teng-Hui Zhu
4ad89dafb2 Remove redundant code am: 4ebc5986a8
am: 82907dfd36

Change-Id: Ia55faf872466f837ea1b7c327ffc30590d781d60
2016-09-02 17:53:59 +00:00
Teng-Hui Zhu
4ebc5986a8 Remove redundant code
This can save both system image size and run time memory usage.
Every byte counts. :)

b/30956516

Change-Id: I1af0455fe488e3122f6cf8e8fca5a5a43a4614f2
2016-08-31 14:30:37 -07:00
Yuanlang Song
4dadfe9e72 Work around to get ride of NPE in app startup test am: eaf08cf7d0
am: 832ec72c38

Change-Id: Ia06a591cec41b2546d99411e51741bfdbe5c7886
2016-08-02 00:50:19 +00:00
Yuanlang Song
eaf08cf7d0 Work around to get ride of NPE in app startup test
bug: 30374599
Change-Id: I9050ba6ac6283734c345e4e7f9f56f34e1477c7a
2016-08-01 12:11:57 -07:00
Chris Craik
afc5673bdb Merge \"Fix ShadowGrid in UiBench\" into nyc-mr1-dev
am: 0c05a3dd1c

Change-Id: Ib0bdaa1f80e05f6409cbeb643e0708fac684b097
2016-07-14 02:18:58 +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
Chris Thornton
1a4507cb8e Merge \"Fix a few log messages that didn\'t have a space in the SoundTriggerTestApp\" into nyc-mr1-dev
am: ea7999dc3f

Change-Id: I27952804de098e92c50907d47198dd747f272e31
2016-07-13 02:09:12 +00:00
Chris Thornton
2d2ba9d089 Fix a few log messages that didn't have a space in the SoundTriggerTestApp
Change-Id: If3b5ac6533429843d4be733bd31f2bb83e1d5971
2016-07-12 17:16:42 -07:00
Gopinath Elanchezhian
c6696ae7a6 Merge \\"App launch - Test app changes\\" into nyc-dev am: 8fabbb89c0
am: 2b6700a27b

Change-Id: Idb5094bfaab92982890c13dc9639ab45480acad6
2016-07-12 16:27:09 +00:00
Gopinath
8c5eb63835 Merge \"App launch - Test app changes\" into nyc-dev
am: 8fabbb89c0

Change-Id: I0b14fe4a4dd9414d9fe9d15980e8058a7b3d9e29
2016-07-12 16:11:01 +00:00
Gopinath
2b6700a27b Merge \"App launch - Test app changes\" into nyc-dev
am: 8fabbb89c0

Change-Id: I304e8791b2ea72bd527fa0c8abd2c748c90e866c
2016-07-12 16:09:18 +00:00
Gopinath Elanchezhian
8fabbb89c0 Merge "App launch - Test app changes" into nyc-dev 2016-07-12 16:02:43 +00:00
Chris Craik
0fc003e675 Merge \"Fix UiBench MainActivity fragment\" into nyc-mr1-dev
am: 8b31db3621

Change-Id: I597e28d025569fec839ca7b02ea03b054a582a94
2016-07-09 00:37:54 +00:00
Chris Craik
8b31db3621 Merge "Fix UiBench MainActivity fragment" into nyc-mr1-dev 2016-07-09 00:31:59 +00:00
Chris Thornton
8ce7b9b6ff Merge \"Updates to the sound trigger test app\" into nyc-mr1-dev
am: e1fdcc49fd

Change-Id: I84028121d101f417e2c55450b2a95041f33d2d40
2016-07-08 18:01:33 +00:00
Gopinath
164cca0b34 App launch - Test app changes
1) Drop cache between app launches Bug 29564205
2) Trace capture while launching app Bug 26779882
3) Simple Perf while launching app Bug 29249860
4) Launch order which could be cyclic or sequential

Change-Id: I0c883e7feb7e07474b045835fd56a97d8a126552
2016-07-07 17:42:08 -07:00
Chris Thornton
dfa7c3b0dc Updates to the sound trigger test app
Moved the logic for talking to the system service into a service in the
app - this now lets you close the activity and still be able to receive
events. Additionally, we get CLI support using commands with the intent
com.android.intent.action.MANAGE_SOUND_TRIGGER.

Bug: 29073629

Change-Id: Ie904b73b4414f2c9fded013aeb5e6c6c3a67f5d3
2016-07-07 15:00:15 -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
Joe Fernandez
a9f24e556b Merge \\"Docs: Job-scheduling doc for new DAC Performance section.\\" into nyc-dev am: 1f64ea546b
am: 9f64b020bd

Change-Id: Ie964e0588bdbd1d9b667eb05cb58e25bac837d9b
2016-07-01 23:21:01 +00:00
TreeHugger Robot
9f64b020bd Merge "Allow voice interaction window to control system bars" into nyc-mr1-dev 2016-07-01 23:16:07 +00:00
Jorim Jaggi
90859bc4ce Allow voice interaction window to control system bars
Fixes: 29777675
Change-Id: I452bfa46cfdeb6ffa1f36c718df9bc7184fa74f7
2016-07-01 14:36:10 -07:00
Robert Carr
0dbe6db014 Merge changes I38cff63b,Id3739bbc,If052cd8c into nyc-mr1-dev
am: 30efa24b11

Change-Id: I9ed6ae1f45221ff702162a1608bb8db7059058f5
2016-07-01 19:38:49 +00:00
Robert Carr
fd10cd1989 Force CROSSFADE rotation when launching from double tap gesture.
When activity transition triggers a rotation change, the starting
window will normally be the top window at the time we try
to select the window animation. However, these layout params won't
have the apps rotation animation set (as the client code will set that
on the real window, not the starting window). Eventually we would
like to add API to specify rotation animation via manifest to solve
this problem cleanly. In the mean time, we can force a specific rotation
animation from the double tap gesture, and clean up some camera
ugliness. We accomplish this by attaching an animation hint to
ActivityOptions.

Bug: 28838855
Change-Id: If052cd8cbae76651da43f3b4c590cd9dcc1afc0f
2016-07-01 11:05:40 -07:00
Yorke Lee
11e3bf5d30 Merge \\"Limit global drags to apps targeting SDK 24 and above\\" into nyc-dev am: f33af2285b
am: 3d80871032

Change-Id: I2f7745317f6ae0932d7c16469b500847e465a912
2016-06-16 21:27:50 +00:00
Yorke Lee
3d80871032 Merge \"Limit global drags to apps targeting SDK 24 and above\" into nyc-dev
am: f33af2285b

Change-Id: I539f39cfea50f34dade2141829b21d422809b09f
2016-06-16 21:22:22 +00:00
Yorke Lee
599cf6bc4a Merge \"Limit global drags to apps targeting SDK 24 and above\" into nyc-dev
am: f33af2285b

Change-Id: If4d9abfb81929f8366fc9acc7978816d55117fbc
2016-06-16 21:21:57 +00:00
Dan Willemsen
04e9d830b0 resolve merge conflicts of 20d55a7 to stage-aosp-master am: 5f551b3fdc
am: fd1854cdfa

Change-Id: I6942aa753a512f0a24725de0ea72ed20c067ad15
2016-06-16 17:07:15 +00:00
Dan Willemsen
5f551b3fdc resolve merge conflicts of 20d55a7 to stage-aosp-master
Change-Id: Ie2a1beb527ab60f8a3966a14e66330e69a148b59
2016-06-16 09:54:28 -07:00
Yorke Lee
0e85247195 Limit global drags to apps targeting SDK 24 and above
Bug: 29127791

Change-Id: Ib5f85a207bdb79eeac0418fda78e452d225761bc
2016-06-16 09:35:40 -07:00
Dan Willemsen
9b3bc98425 Remove unused link to libcutils
This library is built against the NDK, so it shouldn't be linking to
platform libraries. It should also be pulling <android/log.h> from the
NDK headers, so remove the system/core/include include directory.

Change-Id: Ie9d6514f43492401697907aee4df56bdbf4e1926
2016-06-15 21:14:28 -07:00
Christopher Wiley
b360229ffa Merge \"Create frameworks-base-testutils lib\" into nyc-mr1-dev
am: d8cdb3ef4b

Change-Id: I398541c5b521b9b5bcf9bd3d8bda46e06e750dd7
2016-06-08 21:00:31 +00:00
Christopher Wiley
1c811fa468 Create frameworks-base-testutils lib
( cherry-pick 07630f6bd3dbc91e2622cedfd1a21822b5f1f4b5 )

This permits sharing of test components used in connectivity tests.
Rename the MockLooper to TestLooper, reflecting that it is not a
true mock, but a manually controlled Looper for use in tests.

Bug: 28848133
Test: Tests consuming this library pass.

Change-Id: I57e11f9544c7bffdb02739ab2a921512b1b11874
2016-06-07 10:00:08 -07:00
Jorim Jaggi
acfed07f72 Merge "Add new attributes for wallpaper info" into nyc-mr1-dev
am: c27660d45a

* commit 'c27660d45a920af49c9e53b1cabaa32fd4b3046c':
  Add new attributes for wallpaper info

Change-Id: I3dc04d70f50809ff20ec0fb23e0c3265450ff621
2016-06-04 00:27:04 +00:00
Jorim Jaggi
526505da25 Add new attributes for wallpaper info
Adjust test wallpaper to use these attributes.

Also fix some issues where wallpaper got laid out differently in the preview
mode.

Bug: 28770685
Change-Id: I259f3884f5f2c0b723a6a5ce012d45170f64c4c7
2016-06-03 15:50:31 -07:00
John Reck
35f1b42421 Merge "Change overdraw test to use windowbackground" into nyc-dev am: 34979a3af6
am: fa33b23ee8

* commit 'fa33b23ee81d91a5c344be60039f27590ed0b194':
  Change overdraw test to use windowbackground

Change-Id: Ib45ac99f10c3f511b54d1c8c5e06db141a125965
2016-05-27 03:46:30 +00:00
John Reck
769c456bc1 Merge "Change overdraw test to use windowbackground" into nyc-dev
am: 34979a3af6

* commit '34979a3af6dbb6e3e33a83e5cb939ea3c8c000c7':
  Change overdraw test to use windowbackground

Change-Id: Ie116603fc53999dd4251d940b5d5ee783684ac8e
2016-05-26 23:17:16 +00: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
Chad Brubaker
d58e7b2d15 Merge "Support TrustedCertificateStore.findAllIssuers" 2016-05-12 19:18:47 +00:00
Chad Brubaker
d4b6c696e1 Support TrustedCertificateStore.findAllIssuers
(cherry-picked from commit aa6c3c3e252252b80c3900bd4c1ff27d37265c6d)
Change-Id: I176ec42c9907e50ee218e4fb352b530ca797be46
2016-05-12 11:15:47 -07:00