summaryrefslogtreecommitdiff
path: root/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-11-05 11:32:42 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-05 11:32:42 -0800
commitc76acf401b21b423fe986a07ee820194edb0fedf (patch)
tree3940278e4eb0ed920dae88c95062a274231330d6 /tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java
parent3f80cd26ded60c3f569ec2b8ecfc7637f945dc7b (diff)
parent6f66c0c23754b766a9d61fe1ac47e7a5fcc47406 (diff)
Merge "Add test for system server method sampling" am: d2408367f3 am: 5248e93661
am: 6f66c0c237 Change-Id: If7fbc5a0bdebae13596c5bba8abf343679d6f801
Diffstat (limited to 'tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java')
-rw-r--r--tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java7
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);
}
}