OSDN Git Service

Updates to the sound trigger test app
authorChris Thornton <thorntonc@google.com>
Fri, 1 Jul 2016 05:05:51 +0000 (22:05 -0700)
committerChris Thornton <thorntonc@google.com>
Thu, 7 Jul 2016 22:00:15 +0000 (15:00 -0700)
commitdfa7c3b0dc623d6394b068ccd66b2fa7ddd6aa57
treefc1286362baf8962122de51cbf3ec235ad14e576
parent018a2058246d1f034d25adbd69502e6b2eb81fc7
Updates to the sound trigger test app

Moved the logic for talking to the system service into a service in the
app - this now lets you close the activity and still be able to receive
events. Additionally, we get CLI support using commands with the intent
com.android.intent.action.MANAGE_SOUND_TRIGGER.

Bug: 29073629

Change-Id: Ie904b73b4414f2c9fded013aeb5e6c6c3a67f5d3
tests/SoundTriggerTestApp/AndroidManifest.xml
tests/SoundTriggerTestApp/res/layout/main.xml
tests/SoundTriggerTestApp/res/values/strings.xml
tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerTestActivity.java [new file with mode: 0644]
tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerTestService.java [new file with mode: 0644]
tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerUtil.java
tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/TestSoundTriggerActivity.java [deleted file]