Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2013 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" |
Ihab Awad | c17294c | 2014-08-04 19:23:37 -0700 | [diff] [blame] | 18 | coreApp="true" |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 19 | package="com.android.server.telecom.tests" |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 20 | android:debuggable="true"> |
Yorke Lee | 7c65acd | 2014-06-04 11:11:03 -0700 | [diff] [blame] | 21 | |
Yorke Lee | 1cbe702 | 2015-08-31 18:22:15 -0700 | [diff] [blame] | 22 | <uses-sdk |
| 23 | android:minSdkVersion="23" |
Thomas Stuart | b9694ff | 2022-09-27 15:02:26 -0700 | [diff] [blame] | 24 | android:targetSdkVersion="33" /> |
Yorke Lee | 1cbe702 | 2015-08-31 18:22:15 -0700 | [diff] [blame] | 25 | |
yongnamcha | 6369032 | 2022-09-22 09:43:48 +0000 | [diff] [blame] | 26 | <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/> |
xiaotonj | 7478a78 | 2023-10-30 15:25:21 -0700 | [diff] [blame] | 27 | <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" /> |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame] | 28 | <!-- TODO: Needed because we call BluetoothAdapter.getDefaultAdapter() statically, and |
| 29 | BluetoothAdapter is a final class. --> |
| 30 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
Thomas Stuart | b9694ff | 2022-09-27 15:02:26 -0700 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
wescande | 6362811 | 2021-08-16 16:47:48 +0200 | [diff] [blame] | 32 | <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame] | 33 | <!-- TODO: Needed because we call ActivityManager.getCurrentUser() statically. --> |
| 34 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
Hall Liu | 9156bae | 2016-12-01 17:40:29 -0800 | [diff] [blame] | 35 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame] | 36 | <uses-permission android:name="android.permission.MANAGE_USERS" /> |
Tyler Gunn | b1a95a7 | 2014-07-23 14:08:19 -0700 | [diff] [blame] | 37 | |
Tyler Gunn | 42ef808 | 2015-11-24 15:34:34 -0800 | [diff] [blame] | 38 | <!-- Used to access TelephonyManager APIs --> |
| 39 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
tonyzhu | 919ffa9 | 2018-10-01 16:28:52 +0800 | [diff] [blame] | 40 | <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> |
Tyler Gunn | 42ef808 | 2015-11-24 15:34:34 -0800 | [diff] [blame] | 41 | |
Kurt Dresner | 933add5 | 2020-10-01 17:53:32 -0700 | [diff] [blame] | 42 | <!-- Used to access Projection State APIs --> |
| 43 | <uses-permission android:name="android.permission.READ_PROJECTION_STATE"/> |
| 44 | |
Grace Jia | ba2e174 | 2021-04-21 17:01:53 -0700 | [diff] [blame] | 45 | <!-- Used to access PlatformCompat APIs --> |
| 46 | <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> |
| 47 | <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" /> |
Grant Menke | cc4f8bb | 2024-07-02 16:06:55 -0700 | [diff] [blame] | 48 | |
Grace Jia | 383126c | 2022-11-30 15:27:20 -0800 | [diff] [blame] | 49 | <!-- Used to register NotificationListenerService --> |
| 50 | <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" /> |
Grace Jia | ba2e174 | 2021-04-21 17:01:53 -0700 | [diff] [blame] | 51 | |
Grant Menke | cc4f8bb | 2024-07-02 16:06:55 -0700 | [diff] [blame] | 52 | <!-- Used to query the audio framework to determine if a notification sound should play. --> |
| 53 | <uses-permission android:name="android.permission.QUERY_AUDIO_STATE"/> |
| 54 | |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 55 | <application android:label="@string/app_name" |
| 56 | android:debuggable="true"> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 57 | <uses-library android:name="android.test.runner" /> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 58 | </application> |
| 59 | |
| 60 | <!-- |
| 61 | The prefered way is to use 'runtest': |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 62 | runtest telecom-unit |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 63 | |
| 64 | runtest is a wrapper around 'adb shell'. The low level shell command is: |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 65 | adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 66 | |
| 67 | To run a single test case: |
Santos Cordon | f78a72f | 2016-01-21 22:10:32 +0000 | [diff] [blame] | 68 | adb shell am instrument -w -e class com.android.server.telecom.tests.unit.FooUnitTest \ |
| 69 | com.android.server.telecom.tests/android.test.InstrumentationTestRunner |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 70 | --> |
KOUSHIK PANUGANTI | 7d11166 | 2019-03-15 15:46:39 -0700 | [diff] [blame] | 71 | <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame] | 72 | android:targetPackage="com.android.server.telecom.tests" |
| 73 | android:label="Telecomm application tests" |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 74 | android:debuggable="true"/> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 75 | </manifest> |