diff options
author | Mathieu Chartier <mathieuc@google.com> | 2019-11-05 11:32:42 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-11-05 11:32:42 -0800 |
commit | c76acf401b21b423fe986a07ee820194edb0fedf (patch) | |
tree | 3940278e4eb0ed920dae88c95062a274231330d6 /tests/BootImageProfileTest | |
parent | 3f80cd26ded60c3f569ec2b8ecfc7637f945dc7b (diff) | |
parent | 6f66c0c23754b766a9d61fe1ac47e7a5fcc47406 (diff) |
Merge "Add test for system server method sampling" am: d2408367f3 am: 5248e93661
am: 6f66c0c237
Change-Id: If7fbc5a0bdebae13596c5bba8abf343679d6f801
Diffstat (limited to 'tests/BootImageProfileTest')
-rw-r--r-- | tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java b/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java index ead4a28beff4..74aaec1eee34 100644 --- a/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java +++ b/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java @@ -108,13 +108,18 @@ public class BootImageProfileTest implements IDeviceTest { // Test the profile contents contain common methods for core-oj that would normally be AOT // compiled. res = mTestDevice.executeShellCommand("profman --dump-classes-and-methods --profile-file=" - + SYSTEM_SERVER_PROFILE + " --apk=/apex/com.android.art/javalib/core-oj.jar"); + + SYSTEM_SERVER_PROFILE + " --apk=/apex/com.android.art/javalib/core-oj.jar" + + " --apk=/system/framework/services.jar"); boolean sawObjectInit = false; + boolean sawPmInit = false; for (String line : res.split("\n")) { if (line.contains("Ljava/lang/Object;-><init>()V")) { sawObjectInit = true; + } else if (line.contains("Lcom/android/server/pm/PackageManagerService;-><init>")) { + sawPmInit = true; } } assertTrue("Did not see Object.<init> in " + res, sawObjectInit); + assertTrue("Did not see PackageManagerService.<init> in " + res, sawPmInit); } } |