Now allows capturing multiple events under the same event metric. Added unit tests for configuration generation and command-line interpretation. Refactored configuration into an inner class and added functionality using TDD. Also updated TestDrive & LocalDrive tools to check ANDROID_SERIAL as well as the -s parameter when multiple devices are connected, and improved error messages. Bug: 149914234 Test: atest --host test/com/android/statsd/shelltools/testdrive/*.java Test: out/host/linux-x86/bin/statsd_testdrive -s <SERIAL> 90 Test: out/host/linux-x86/bin/statsd_localdrive -s <SERIAL> get-data 90 Change-Id: I4e756c2b132a22d66ccaf7b3346fe4fbf1f6f1fb
47 lines
991 B
Plaintext
47 lines
991 B
Plaintext
java_binary_host {
|
|
name: "statsd_localdrive",
|
|
manifest: "localdrive_manifest.txt",
|
|
srcs: [
|
|
"src/com/android/statsd/shelltools/localdrive/*.java",
|
|
"src/com/android/statsd/shelltools/Utils.java",
|
|
],
|
|
static_libs: [
|
|
"platformprotos",
|
|
"guava",
|
|
],
|
|
}
|
|
|
|
java_library_host {
|
|
name: "statsd_testdrive_lib",
|
|
srcs: [
|
|
"src/com/android/statsd/shelltools/testdrive/*.java",
|
|
"src/com/android/statsd/shelltools/Utils.java",
|
|
],
|
|
static_libs: [
|
|
"platformprotos",
|
|
"guava",
|
|
],
|
|
}
|
|
|
|
|
|
java_binary_host {
|
|
name: "statsd_testdrive",
|
|
manifest: "testdrive_manifest.txt",
|
|
static_libs: [
|
|
"statsd_testdrive_lib",
|
|
],
|
|
}
|
|
|
|
java_test_host {
|
|
name: "statsd_testdrive_test",
|
|
test_suites: ["general-tests"],
|
|
srcs: ["test/com/android/statsd/shelltools/testdrive/*.java"],
|
|
static_libs: [
|
|
"statsd_testdrive_lib",
|
|
"junit",
|
|
"platformprotos",
|
|
"guava",
|
|
],
|
|
}
|
|
|