Migrate voice features into the open-source LatinIME. This includes
the change to logging to remove any private dependencies and use
broadcast intents to VoiceSearch instead.
I have audited this code and it appears good to go for open-source,
but would appreciate a second pair of eyes.
Still to do after submitting this CL:
* Reintroduce Amith's memory leak fix (37557) which was the only CL
added to LatinIME since the last merge over to the private copy.
* Make some changes to allow LatinIME to work without voice search
installed. Currently I believe it will show the mic but fail if
you press it. We need to base the visibility on the mic on the
availability of the service.
* Fix this code to use the new Gservices framework, it's still trying
to use the old one.
diff --git a/res/xml/prefs.xml b/res/xml/prefs.xml
index d5075c5..74a2bcb 100644
--- a/res/xml/prefs.xml
+++ b/res/xml/prefs.xml
@@ -37,6 +37,12 @@
android:defaultValue="true"
/>
+ <CheckBoxPreference
+ android:key="enable_voice_input"
+ android:title="@string/enable_voice"
+ android:persistent="false"
+ android:defaultValue="@bool/voice_input_default"
+ />
<PreferenceScreen
android:title="@string/language_selection_title">
<intent