• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18          package="com.android.keychain.tests">
19
20    <uses-permission android:name="android.permission.INTERNET"/>
21
22    <!--
23        Install the activity and disable battery optimization (so the KeyChainServiceTest can be
24        run in the background):
25        adb install out/target/product/${TARGET_PRODUCT}/data/app/KeyChainTests/KeyChainTests.apk
26        Then navigate to Settings -> Battery -> ... -> Battery optimization -> select All Apps
27        Find com.android.keychain.tests and select Do Not Optimize.
28
29        Alternatively, the following command can be used to exclude the test services from
30        the background execution restriction for 2 minutes:
31        adb shell cmd deviceidle tempwhitelist -d 120000 com.android.keychain.tests
32
33        To run service:
34        adb shell am startservice -n com.android.keychain.tests/.KeyChainServiceTest
35        One has to inspect the ADB log to find out about test failures.
36
37        To run activity:
38        adb shell am start -n com.android.keychain.tests/com.android.keychain.tests.KeyChainTestActivity
39    -->
40    <application>
41        <service android:name="com.android.keychain.tests.KeyChainServiceTest">
42            <intent-filter>
43                <action android:name="com.android.keychain.tests.KeyChainServiceTest"/>
44            </intent-filter>
45        </service>
46        <activity android:name="com.android.keychain.tests.KeyChainTestActivity">
47            <intent-filter>
48                <action android:name="com.android.keychain.tests.KeyChainTestActivity"/>
49            </intent-filter>
50        </activity>
51        <activity android:name="com.android.keychain.tests.KeyChainSocketTestActivity">
52            <intent-filter>
53                <action android:name="com.android.keychain.tests.KeyChainSocketTestActivity"/>
54            </intent-filter>
55        </activity>
56    </application>
57</manifest>
58