diff options
author | nchalko <nchalko@google.com> | 2018-02-02 10:59:23 -0800 |
---|---|---|
committer | Nick Chalko <nchalko@google.com> | 2018-02-02 13:43:38 -0800 |
commit | 374bab7adcba29bf4e272b88afff420933fed5a9 (patch) | |
tree | b75f7fd44d1f0848de713756efe0f561df7675dd | |
parent | 9ad3ddb6de75fbe62cc69b59db184936ae5846d2 (diff) | |
download | TV-374bab7adcba29bf4e272b88afff420933fed5a9.tar.gz |
Add AndroidManifiest.xml and move resources to SampleDvbTuner dir
PiperOrigin-RevId: 184305729
Change-Id: I708c7057d638f08b1a84da02bea791bf7578fd82
-rwxr-xr-x | tuner/SampleDvbTuner/AndroidManifest.xml | 92 | ||||
-rw-r--r-- | tuner/SampleDvbTuner/ResourceManifest.xml | 24 | ||||
-rw-r--r-- | tuner/SampleDvbTuner/res/mipmap-hdpi/ic_launcher.png (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-hdpi/ic_launcher.png) | bin | 3750 -> 3750 bytes | |||
-rw-r--r-- | tuner/SampleDvbTuner/res/mipmap-mdpi/ic_launcher.png (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-mdpi/ic_launcher.png) | bin | 2218 -> 2218 bytes | |||
-rw-r--r-- | tuner/SampleDvbTuner/res/mipmap-xhdpi/ic_launcher.png (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xhdpi/ic_launcher.png) | bin | 4847 -> 4847 bytes | |||
-rw-r--r-- | tuner/SampleDvbTuner/res/mipmap-xxhdpi/ic_launcher.png (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxhdpi/ic_launcher.png) | bin | 7784 -> 7784 bytes | |||
-rw-r--r-- | tuner/SampleDvbTuner/res/mipmap-xxxhdpi/ic_launcher.png (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxxhdpi/ic_launcher.png) | bin | 11119 -> 11119 bytes | |||
-rw-r--r-- | tuner/SampleDvbTuner/res/values/strings.xml (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/values/strings.xml) | 0 | ||||
-rw-r--r-- | tuner/SampleDvbTuner/res/xml/sample_dvb_tvinputservice.xml (renamed from tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/xml/sample_dvb_tvinputservice.xml) | 0 |
9 files changed, 116 insertions, 0 deletions
diff --git a/tuner/SampleDvbTuner/AndroidManifest.xml b/tuner/SampleDvbTuner/AndroidManifest.xml new file mode 100755 index 00000000..cf4d1600 --- /dev/null +++ b/tuner/SampleDvbTuner/AndroidManifest.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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. +--> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.tv.tuner.sample.dvb" > + + <uses-sdk + android:minSdkVersion="23" + android:targetSdkVersion="26" /> + + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> +s + <uses-permission android:name="android.permission.READ_CONTENT_RATING_SYSTEMS" /> + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.READ_TV_LISTINGS" /> + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> + <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" /> + <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" /> + + <!-- Permissions/feature for USB tuner --> + <uses-permission android:name="android.permission.DVB_DEVICE" /> + + <uses-feature + android:name="android.hardware.usb.host" + android:required="false" /> + + <!-- Limit only for Android TV --> + <uses-feature + android:name="android.software.leanback" + android:required="true" /> + <uses-feature + android:name="android.software.live_tv" + android:required="true" /> + <uses-feature + android:name="android.hardware.touchscreen" + android:required="false" /> + + <application + android:name="com.android.tv.tuner.sample.dvb.app.SampleDvbTuner" + android:icon="@mipmap/ic_launcher" + android:label="@string/sample_dvb_tuner_app_name" > + <activity + android:name="com.google.android.gms.common.api.GoogleApiActivity" + android:exported="false" + android:theme="@android:style/Theme.Translucent.NoTitleBar" /> + + <meta-data + android:name="com.google.android.gms.version" + android:value="@integer/google_play_services_version" /> + + <activity + android:name="com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity" + android:configChanges="keyboard|keyboardHidden" + android:exported="true" + android:label="@string/sample_dvb_tuner_app_name" + android:launchMode="singleInstance" + android:theme="@style/Theme.Setup.GuidedStep" > + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + </intent-filter> + </activity> + + <service + android:name="com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerInputService" + android:label="@string/sample_dvb_tuner_app_name" + android:permission="android.permission.BIND_TV_INPUT" + android:process="com.google.android.tv.tuner.sample.dvb.tvinput" > + <intent-filter> + <action android:name="android.media.tv.TvInputService" /> + </intent-filter> + + <meta-data + android:name="android.media.tv.input" + android:resource="@xml/sample_dvb_tvinputservice" /> + </service> + </application> + +</manifest>
\ No newline at end of file diff --git a/tuner/SampleDvbTuner/ResourceManifest.xml b/tuner/SampleDvbTuner/ResourceManifest.xml new file mode 100644 index 00000000..e13f9584 --- /dev/null +++ b/tuner/SampleDvbTuner/ResourceManifest.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 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. + --> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.tv.tuner.sample.dvb" xmlns:tools="http://schemas.android.com/tools"> + + <uses-sdk android:targetSdkVersion="26" android:minSdkVersion="23"/> + + <!-- Only used for resources--> +</manifest> diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-hdpi/ic_launcher.png b/tuner/SampleDvbTuner/res/mipmap-hdpi/ic_launcher.png Binary files differindex b5c51706..b5c51706 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-hdpi/ic_launcher.png +++ b/tuner/SampleDvbTuner/res/mipmap-hdpi/ic_launcher.png diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-mdpi/ic_launcher.png b/tuner/SampleDvbTuner/res/mipmap-mdpi/ic_launcher.png Binary files differindex 66297216..66297216 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-mdpi/ic_launcher.png +++ b/tuner/SampleDvbTuner/res/mipmap-mdpi/ic_launcher.png diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xhdpi/ic_launcher.png b/tuner/SampleDvbTuner/res/mipmap-xhdpi/ic_launcher.png Binary files differindex f259d1c9..f259d1c9 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xhdpi/ic_launcher.png +++ b/tuner/SampleDvbTuner/res/mipmap-xhdpi/ic_launcher.png diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxhdpi/ic_launcher.png b/tuner/SampleDvbTuner/res/mipmap-xxhdpi/ic_launcher.png Binary files differindex 421cd08b..421cd08b 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxhdpi/ic_launcher.png +++ b/tuner/SampleDvbTuner/res/mipmap-xxhdpi/ic_launcher.png diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxxhdpi/ic_launcher.png b/tuner/SampleDvbTuner/res/mipmap-xxxhdpi/ic_launcher.png Binary files differindex 91be3220..91be3220 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/mipmap-xxxhdpi/ic_launcher.png +++ b/tuner/SampleDvbTuner/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/values/strings.xml b/tuner/SampleDvbTuner/res/values/strings.xml index 04b9e1bf..04b9e1bf 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/values/strings.xml +++ b/tuner/SampleDvbTuner/res/values/strings.xml diff --git a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/xml/sample_dvb_tvinputservice.xml b/tuner/SampleDvbTuner/res/xml/sample_dvb_tvinputservice.xml index f0e4a636..f0e4a636 100644 --- a/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/res/xml/sample_dvb_tvinputservice.xml +++ b/tuner/SampleDvbTuner/res/xml/sample_dvb_tvinputservice.xml |