Home | History | Annotate | Download | only in input
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2015 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License.
     16   -->
     17 
     18 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     19     package="com.android.tv.testinput">
     20 
     21     <uses-sdk android:targetSdkVersion="23" android:minSdkVersion="23"/>
     22 
     23      <!-- Required to update or read existing channel and program information in TvProvider. -->
     24     <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" />
     25     <!-- Required to update channel and program information in TvProvider. -->
     26     <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" />
     27 
     28     <application android:label="@string/sample_tv_input"
     29             android:icon="@drawable/android_48dp"
     30             android:theme="@android:style/Theme.Holo.Light.NoActionBar" >
     31         <!-- Launched by the TV app before it uses TestTvInputService to set up channels for this
     32         input. -->
     33         <activity android:name=".TestTvInputSetupActivity" >
     34             <intent-filter>
     35                 <action android:name="android.intent.action.MAIN" />
     36             </intent-filter>
     37         </activity>
     38         <service android:name=".TestTvInputService"
     39             android:permission="android.permission.BIND_TV_INPUT"
     40             android:label="@string/simple_input_label">
     41             <!-- Required filter used by the system to launch our account service. -->
     42             <intent-filter>
     43                 <action android:name="android.media.tv.TvInputService" />
     44             </intent-filter>
     45             <!-- An XML file which describes this input. This provides a pointer to the
     46             TestTvInputSetupActivity to the system/TV app. -->
     47             <meta-data android:name="android.media.tv.input"
     48                 android:resource="@xml/testtvinputservice" />
     49         </service>
     50         <service android:name=".TestInputControlService" android:exported="true"/>
     51 
     52     </application>
     53 
     54     <instrumentation
     55             android:name=".instrument.TestSetupInstrumentation"
     56             android:label="Test Setup Instrument"
     57             android:targetPackage="com.android.tv.testinput" />
     58 
     59     <uses-feature
     60         android:name="android.hardware.touchscreen"
     61         android:required="false" />
     62     <uses-feature
     63         android:name="android.software.leanback"
     64         android:required="true" />
     65     <!-- Required to expose this app in the store only when the device has TV input framework
     66     with the TV app. -->
     67     <uses-feature
     68         android:name="android.software.live_tv"
     69         android:required="true" />
     70 </manifest>
     71