summaryrefslogtreecommitdiff
path: root/tests/BootImageProfileTest/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Disable JIT in BootImageProfileTest.Jiakai Zhang2021-08-091-3/+14
| | | | | | | | When JIT is enabled, it is possible that some methods are inlined and therefore not captured in the profile. Test: atest BootImageProfileTest Bug: 194975422 Change-Id: I6fc99cb596646e365f50cfb8484f792039d8b222
* Make BootImageProfileTest less flakyMathieu Chartier2020-03-061-3/+2
| | | | | | | | | | | | | | Number one flake is when the system server process is killed before SIGUSR1. Change this case to be non fatal. Increase number of retry iterations in case the package manager is very slow to start and get a JIT sample. Hopefully fixes the other flake where PackageManagerService.<init> is not seen in the profile. Test: atest BootImageProfileTest Bug: 149802360 Change-Id: I52ac80f15d8efe152dea81b75a82faa4da1b8600
* Use shell commands instead of ITestDevice for BootImageProfile testMathieu Chartier2020-02-251-17/+17
| | | | | | | | | | | | | For some reason, ITestDevice property getting and setting is flaky on GCE. This causes frequent test failures. (cherry-picked from commit 94d9a21ccb34ab2567ef173e460350220c8ac658) Test: tested on cuddlefish device Bug: 149802360 Merged-In: Iba48c173bdea2d55d8f2aa7f0fa382628582fe1c Change-Id: Iba48c173bdea2d55d8f2aa7f0fa382628582fe1c
* Make BootImageProfileTest less flakyMathieu Chartier2020-02-251-17/+50
| | | | | | | | | | | | | Use the system properties instead of phenotype since GMS can change the values more arbitrarily for PH properties. Test: manual Bug: 149645847 (cherry-picked from commit 599079b3814535b098fde9ffa8589dae1adecede) Merged-In: If0a716075597f45e95b8357480e4b4a7c52fbb2a Change-Id: If0a716075597f45e95b8357480e4b4a7c52fbb2a
* Merge "Set boot image profile properties in a loop for BootImageProfileTest" ↵Automerger Merge Worker2020-02-121-4/+30
|\ | | | | | | | | | | am: 33905aa38d am: c0800cfc20 am: 68d208e6fa Change-Id: I39a6773363e49b6517cca4761b0221b5ccc3618d
| * Set boot image profile properties in a loop for BootImageProfileTestMathieu Chartier2020-02-111-4/+30
| | | | | | | | | | | | | | | | | | Set the properties in a loop to attempt and prevent flakiness if properties aren't set by the time the tests starts. Bug: 148649139 Test: atest BootImageProfileTest Change-Id: I9a51770d687c93e0eb8829c277e1ec0a33d7c481
| * Add retry loop for BootImageProfileTestMathieu Chartier2019-11-111-33/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case the package manager is not yet started, retry saving the profile up to 20 times to give it time. Should fix test flakiness. Also addresses previous review comment. Bug: 144048260 Bug: 139883463 Test: atest BootImageProfileTest (cherry-picked from commit 233c33956bab083650b7ef608e8ac9d446dba75a) Merged-In: I12e101447d2a42fb0fcad7ad3427750c3ce89a79 Change-Id: I12e101447d2a42fb0fcad7ad3427750c3ce89a79
* | Add retry loop for BootImageProfileTestMathieu Chartier2019-11-111-35/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | In case the package manager is not yet started, retry saving the profile up to 20 times to give it time. Should fix test flakiness. Also addresses previous review comment. Bug: 144048260 Bug: 139883463 Test: atest BootImageProfileTest Change-Id: I12e101447d2a42fb0fcad7ad3427750c3ce89a79
* | Merge "Add test for system server method sampling" am: d2408367f3 am: 5248e93661Mathieu Chartier2019-11-051-1/+6
|\| | | | | | | | | | | am: 6f66c0c237 Change-Id: If7fbc5a0bdebae13596c5bba8abf343679d6f801
| * Add test for system server method samplingMathieu Chartier2019-11-041-1/+6
| | | | | | | | | | | | | | | | Verify that the package manager constructor is in the profile. Bug: 139883463 Test: atest BootImageProfileTest Change-Id: I53350be972771c246c95f623eeb1289c59c9ba84
* | Fix test for renamed frameworks.jarMathieu Chartier2019-10-291-0/+2
|/ | | | | | | | The frameworks jar was renamed to framework-minus-apex.jar. Test: atest BootImageProfileTest Bug: 139883463 Change-Id: I12d321f8458c584e3d262128d534e6f3c18b12a0
* Fix waiting for system server to be running for BootImageProfileTestMathieu Chartier2019-10-231-6/+13
| | | | | | | | | | | | | | In the case where system server was not yet running, the invalid pid would cause the test to fail instead of doing the 20 retry loop. Fixed the logic to handle this case. Presumably fixes test flakyness. Bug: 143223380 Bug: 139883463 Test: atest ./tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java Change-Id: I4bac03e7f377058479f75daaa0d57608614bf329
* Use phenotype properties for boot image profile testMathieu Chartier2019-10-111-2/+4
| | | | | | | | | Use these properties instead of system properties to get coverage. Bug: 139883463 Test: atest BootImageProfileTest Change-Id: I9275913ef109b5aaf0bdca6c07da8f102ecdc701
* Add a test that we get samples for a common core-oj methodMathieu Chartier2019-10-011-0/+13
| | | | | | Test: atest frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java Bug: 139883463 Change-Id: I11d0d98731756da5b9739b18acb5ab140657ca34
* Wait for the profile to not be empty in BootImageProfileTestMathieu Chartier2019-09-241-3/+11
| | | | | | | | | | | Keep trying to force profile saves until it's not empty. This handles the case when the system server isn't started enough to save a profile yet. This can be affected by boot time fluctuations if we don't wait. Test: atest BootImageProfileTest Bug: 139883463 Change-Id: I98b359412f919bd64c2cd2a5b7d6659d1cef113d
* Add test for boot image profile collectionMathieu Chartier2019-09-201-0/+88
Test that the expected properties are set. Test that saving the system server profile contains both the boot image profile and system server profile. The test requires root to run. Bug: 139883463 Test: atest BootImageProfileTest (cherry picked from commit f7849d916ae3d81bf73911fedb5fe38fff33f2af) Change-Id: Id7fa4ecc507864c2855da276025be076e5768df1 Merged-In: I6bb39337ba07be58b7dc2b314a8ee92154256f17