10 Commits

Author SHA1 Message Date
Anton Hansson
a3e79fbb8c frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 17:15:21 +00:00
Sudheer Shanka
2d0278b09f Update user perf tests to report only mean.
Test: bit MultiUserPerfTests:android.multiuser.UserLifecycleTests
Change-Id: Ib70123217c54b469844ce65ec52b7e7ed5b5998d
2017-07-12 18:15:02 -07:00
Sudheer Shanka
a319f8b35d Update test names in UserLifecycleTest.
Test: bit MultiUserPerfTests:android.multiuser.UserLifecycleTest
Change-Id: I49908f8da023a419b79124cc2f366f6d5e8a066d
2017-07-11 15:28:48 -07:00
Sudheer Shanka
5f76e1fa85 Fix UserLifecycleTest.
Bug: 62058707
Test: bit MultiUserPerfTests:android.multiuser.UserLifecycleTest
Change-Id: I8667190f001f609040a977a19aa956d7064ccc18
2017-06-29 12:08:48 -07:00
Tony Mak
ec7c6963bd Increase the timeout and add stopping managed profile test
The dashbaord suggests that multiple tests are always capped at the same
value due to the timeout. To collect the actual metric, set a larger
timeout value, 10s for now.

Also, added a test to stop managed profile user. However, the test is
still finishing surprisingly fast because of the empty broadcast queue.


Bug: 62096041

Test: adb shell am instrument -e class android.multiuser.UserLifecycleTest -w com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ia52db17525d9eb960c9a8c860cdb52c0f487e5f1
2017-05-31 16:06:02 +01:00
Sudheer Shanka
dc589ac82b Update usage of ActivityManagerNative.
- Remove references to ActivityManagerProxy.
- Add isSystemReady to ActivityManager.

Bug: 30977067
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts
      adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \
          -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
2016-11-14 11:27:12 -08: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
Sudheer Shanka
2c4522cc1b Add usermanager related perf tests - part2
- Add onLockedBootComplete callback to UserSwitchObserver.

Bug: 30948225
Test: adb shell am instrument -e class android.multiuser.UserLifecycleTest -w com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner
Change-Id: I87533094805a81fbd85d4f492e637b3304ecd5e2
2016-09-08 13:30:34 -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
Sudheer Shanka
53c23fdd5c Add usermanager related perf tests - part1
Bug: 30948225
Change-Id: I0668a012435e9954729e5085fdb4b1f5ce422d97
2016-08-19 16:36:23 -07:00