This allows an app to show a voice search button and invoke a voice interaction session for use within the activity. Once the activity exits, the session is stopped. Test application has a new activity that demonstrates it with the test voice interaction service. This initial version is functional enough for an integration test, with some more tests and improvements to come later. Bug: 22791070 Change-Id: Ib1e5bc8cae1fde40570c999b9cf4bb29efe4916d
74 lines
3.7 KiB
XML
74 lines
3.7 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.test.voiceinteraction">
|
|
|
|
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
|
|
<uses-permission android:name="android.permission.READ_LOGS" />
|
|
|
|
<application>
|
|
<activity android:name="VoiceInteractionMain" android:label="Voice Interaction"
|
|
android:theme="@android:style/Theme.Material">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name="AssistProxyActivity"
|
|
android:label="Test Assist Proxy"
|
|
android:theme="@android:style/Theme.NoDisplay"
|
|
android:excludeFromRecents="true"
|
|
android:noHistory="true"
|
|
android:taskAffinity="">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.ASSIST" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name="SettingsActivity"
|
|
android:label="Voice Interaction Settings">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
<service android:name="MainInteractionService"
|
|
android:label="Test Voice Interaction Service"
|
|
android:permission="android.permission.BIND_VOICE_INTERACTION"
|
|
android:process=":interactor">
|
|
<meta-data android:name="android.voice_interaction"
|
|
android:resource="@xml/interaction_service" />
|
|
<intent-filter>
|
|
<action android:name="android.service.voice.VoiceInteractionService" />
|
|
</intent-filter>
|
|
</service>
|
|
<service android:name="MainInteractionSessionService"
|
|
android:permission="android.permission.BIND_VOICE_INTERACTION"
|
|
android:process=":session">
|
|
</service>
|
|
<service android:name="MainRecognitionService"
|
|
android:label="Test Voice Interaction Service">
|
|
<intent-filter>
|
|
<action android:name="android.speech.RecognitionService" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
<meta-data android:name="android.speech" android:resource="@xml/recognition_service" />
|
|
</service>
|
|
<activity android:name="TestInteractionActivity" android:label="Voice Interaction Target"
|
|
android:theme="@android:style/Theme.Material.Light">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.VOICE" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name="StartVoiceInteractionActivity" android:label="In-Activity Voice"
|
|
android:theme="@android:style/Theme.Material.Light">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
</application>
|
|
</manifest>
|