add xml report
- add getDeviceInfo command to get information from client
- rename ModelBuilderTest test case xml (all.xml gone)
- reduce buffer size for AudioTrack if data size is small
- add -s option
- generate XML report similar to CtsVerifier and zip the result.
Change-Id: Ic28e0234cfdb848ba1a2f91cc57f15bfdefafd87
diff --git a/suite/audio_quality/test/ClientInterfaceTest.cpp b/suite/audio_quality/test/ClientInterfaceTest.cpp
index b72be9b..88e502b 100644
--- a/suite/audio_quality/test/ClientInterfaceTest.cpp
+++ b/suite/audio_quality/test/ClientInterfaceTest.cpp
@@ -49,6 +49,15 @@
// all done in SetUp
}
+TEST_F(ClientInterfaceTest, getDeviceInfoTest) {
+ ClientImpl* client = reinterpret_cast<ClientImpl*>(mClient);
+ android::sp<RemoteAudio>& audio(client->getAudio());
+ android::String8 info;
+
+ ASSERT_TRUE(audio->getDeviceInfo(info));
+ LOGD("device info %s", info.string());
+}
+
TEST_F(ClientInterfaceTest, PlayTest) {
ClientImpl* client = reinterpret_cast<ClientImpl*>(mClient);
android::sp<RemoteAudio>& audio(client->getAudio());