summaryrefslogtreecommitdiffstats
path: root/tests/VoiceInteraction/res
diff options
context:
space:
mode:
authorBarnaby James <bjames@google.com>2014-07-07 10:51:06 -0700
committerBarnaby James <bjames@google.com>2014-07-11 10:34:50 -0700
commitd3fdb8bed8e836786253f9cd5ab640c7c5ed8501 (patch)
tree46a17309ceb85bb5d6abc0660fab799a0207924b /tests/VoiceInteraction/res
parentca249dc6342a7c6678ca3b7f1dabe0e32d3d902e (diff)
downloadframeworks_base-d3fdb8bed8e836786253f9cd5ab640c7c5ed8501.zip
frameworks_base-d3fdb8bed8e836786253f9cd5ab640c7c5ed8501.tar.gz
frameworks_base-d3fdb8bed8e836786253f9cd5ab640c7c5ed8501.tar.bz2
Add VoiceInteraction request type for successful actions.
Add CompleteVoiceRequest to VoiceInteractor to allow apps to indicate when a voice interaction was successfully completed. Change-Id: I1481cfe96e9e2495d88a7a4fb62263bdd1e03c54
Diffstat (limited to 'tests/VoiceInteraction/res')
-rw-r--r--tests/VoiceInteraction/res/layout/test_interaction.xml7
-rw-r--r--tests/VoiceInteraction/res/layout/voice_interaction_session.xml5
-rw-r--r--tests/VoiceInteraction/res/values/strings.xml2
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/res/layout/test_interaction.xml b/tests/VoiceInteraction/res/layout/test_interaction.xml
index 4c0c67a..d55736f 100644
--- a/tests/VoiceInteraction/res/layout/test_interaction.xml
+++ b/tests/VoiceInteraction/res/layout/test_interaction.xml
@@ -35,6 +35,13 @@
android:textColor="#ffffffff"
/>
+ <Button android:id="@+id/complete"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:text="@string/completeVoice"
+ />
+
<Button android:id="@+id/abort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/tests/VoiceInteraction/res/layout/voice_interaction_session.xml b/tests/VoiceInteraction/res/layout/voice_interaction_session.xml
index 142d781..002f350 100644
--- a/tests/VoiceInteraction/res/layout/voice_interaction_session.xml
+++ b/tests/VoiceInteraction/res/layout/voice_interaction_session.xml
@@ -50,6 +50,11 @@
android:layout_height="wrap_content"
android:text="@string/confirm"
/>
+ <Button android:id="@+id/complete"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/complete"
+ />
<Button android:id="@+id/abort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/tests/VoiceInteraction/res/values/strings.xml b/tests/VoiceInteraction/res/values/strings.xml
index 70baa52..7eec90c 100644
--- a/tests/VoiceInteraction/res/values/strings.xml
+++ b/tests/VoiceInteraction/res/values/strings.xml
@@ -19,7 +19,9 @@
<string name="start">Start</string>
<string name="confirm">Confirm</string>
<string name="abort">Abort</string>
+ <string name="complete">Complete</string>
<string name="abortVoice">Abort Voice</string>
+ <string name="completeVoice">Complete Voice</string>
</resources>