summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2018-06-26 23:08:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-26 23:08:02 +0000
commit70608c6f3f61fa618a5c7bae167fa93c8c37fbbc (patch)
treeb870cd83d52fff4e2e5151c39f72abad24bc612c
parent8891eef66d2ae468515c56078b2bcd23955674d4 (diff)
parentf1ea71cca982e46fba6c718f73cd5ef2bba226a7 (diff)
downloadsvox-oreo-vts-release.tar.gz
Merge "Snap for 4857239 from 68406cc3de6a2f0aea279c23bd4d8a836757ba0b to oreo-vts-release" into oreo-vts-releaseandroid-vts-8.0_r9android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10oreo-vts-release
-rwxr-xr-xpico/AndroidManifest.xml16
-rwxr-xr-xpico/src/com/svox/pico/Pico.java42
2 files changed, 58 insertions, 0 deletions
diff --git a/pico/AndroidManifest.xml b/pico/AndroidManifest.xml
index a7634e2..54a7924 100755
--- a/pico/AndroidManifest.xml
+++ b/pico/AndroidManifest.xml
@@ -72,6 +72,22 @@
</intent-filter>
</activity>
+ <activity android:enabled="true" android:name=".Pico"
+ android:hasCode="false" android:label="@string/app_name"
+ android:theme="@android:style/Theme.Translucent.NoTitleBar">
+ <intent-filter>
+ <action android:name="android.intent.action.START_TTS_ENGINE" />
+ <category android:name="android.intent.category.tts_engine.PICO" />
+ <category android:name="android.intent.category.tts_lang.eng" />
+ <category android:name="android.intent.category.tts_lang.eng.USA" />
+ <category android:name="android.intent.category.tts_lang.eng.GBR" />
+ <category android:name="android.intent.category.tts_lang.fra" />
+ <category android:name="android.intent.category.tts_lang.deu" />
+ <category android:name="android.intent.category.tts_lang.ita" />
+ <category android:name="android.intent.category.tts_lang.spa" />
+ </intent-filter>
+ </activity>
+
<provider android:name=".providers.SettingsProvider"
android:authorities="com.svox.pico.providers.SettingsProvider" />
</application>
diff --git a/pico/src/com/svox/pico/Pico.java b/pico/src/com/svox/pico/Pico.java
new file mode 100755
index 0000000..b8ab7d1
--- /dev/null
+++ b/pico/src/com/svox/pico/Pico.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.svox.pico;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+/*
+ * The Java portion of this TTS plugin engine app does nothing.
+ * This activity is only here so that the native code can be
+ * wrapped up inside an apk file.
+ *
+ * The file path structure convention is that the native library
+ * implementing TTS must be a file placed here:
+ * /data/data/<PACKAGE_NAME>/lib/libtts<ACTIVITY_NAME_LOWERCASED>.so
+ * Example:
+ * /data/data/com.svox.pico/lib/libttspico.so
+ */
+
+public class Pico extends Activity {
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ // The Java portion of this does nothing.
+ // This activity is only here so that everything
+ // can be wrapped up inside an apk file.
+ finish();
+ }
+}