Only one simple method of the lib is used, that doesn't need to include the medium size lib. Bug: 159102753 Test: TaskStackChangedListenerTest Change-Id: I312c75a366bdfc5a9017c32443732b1ac96797ab
77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
//########################################################################
|
|
// Build WmTests package
|
|
//########################################################################
|
|
|
|
// Include all test java files.
|
|
filegroup {
|
|
name: "wmtests-sources",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
],
|
|
}
|
|
|
|
genrule {
|
|
name: "wmtests.protologsrc",
|
|
srcs: [
|
|
":protolog-groups",
|
|
":wmtests-sources",
|
|
],
|
|
tools: ["protologtool"],
|
|
cmd: "$(location protologtool) transform-protolog-calls " +
|
|
"--protolog-class com.android.internal.protolog.common.ProtoLog " +
|
|
"--protolog-impl-class com.android.internal.protolog.ProtoLogImpl " +
|
|
"--protolog-cache-class 'com.android.server.wm.ProtoLogCache' " +
|
|
"--loggroups-class com.android.internal.protolog.ProtoLogGroup " +
|
|
"--loggroups-jar $(location :protolog-groups) " +
|
|
"--output-srcjar $(out) " +
|
|
"$(locations :wmtests-sources)",
|
|
out: ["wmtests.protolog.srcjar"],
|
|
}
|
|
|
|
android_test {
|
|
name: "WmTests",
|
|
|
|
// We only want this apk build for tests.
|
|
srcs: [":wmtests.protologsrc"],
|
|
|
|
static_libs: [
|
|
"frameworks-base-testutils",
|
|
"services.core",
|
|
"androidx.test.runner",
|
|
"androidx.test.rules",
|
|
"mockito-target-extended-minus-junit4",
|
|
"platform-test-annotations",
|
|
"servicestests-utils",
|
|
"testng",
|
|
"truth-prebuilt",
|
|
"testables",
|
|
"ub-uiautomator",
|
|
"hamcrest-library",
|
|
],
|
|
|
|
libs: [
|
|
"android.hardware.power-java",
|
|
"android.test.mock",
|
|
"android.test.base",
|
|
"android.test.runner",
|
|
],
|
|
|
|
// These are not normally accessible from apps so they must be explicitly included.
|
|
jni_libs: [
|
|
"libdexmakerjvmtiagent",
|
|
"libstaticjvmtiagent",
|
|
],
|
|
|
|
platform_apis: true,
|
|
test_suites: ["device-tests"],
|
|
|
|
certificate: "platform",
|
|
|
|
dxflags: ["--multi-dex"],
|
|
|
|
optimize: {
|
|
enabled: false,
|
|
},
|
|
|
|
}
|