Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2016 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" |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 19 | package="com.android.cts.net.hostside.app2" > |
Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 20 | |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 21 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 22 | <uses-permission android:name="android.permission.INTERNET" /> |
| 23 | |
| 24 | <!-- |
| 25 | This application is used to listen to RESTRICT_BACKGROUND_CHANGED intents and store |
| 26 | them in a shared preferences which is then read by the test app. These broadcasts are |
| 27 | handled by 2 listeners, one defined the manifest and another dynamically registered by |
Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 28 | a service. |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 29 | |
| 30 | The manifest-defined listener also handles ordered broadcasts used to share data with the |
| 31 | test app. |
Lorenzo Colitti | cbcfb98 | 2016-04-15 16:27:49 +0900 | [diff] [blame^] | 32 | |
| 33 | This application also provides a service, RemoteSocketFactoryService, that the test app can |
| 34 | use to open sockets to remote hosts as a different user ID. |
Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 35 | --> |
| 36 | <application> |
Felipe Leme | 6cd41f6 | 2016-04-29 16:48:14 -0700 | [diff] [blame] | 37 | <activity android:name=".MyActivity" android:exported="true"/> |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 38 | <service android:name=".MyService" android:exported="true"/> |
Felipe Leme | eb7e505 | 2016-03-29 17:31:25 -0700 | [diff] [blame] | 39 | <service android:name=".MyForegroundService" android:exported="true"/> |
Lorenzo Colitti | cbcfb98 | 2016-04-15 16:27:49 +0900 | [diff] [blame^] | 40 | <service android:name=".RemoteSocketFactoryService" android:exported="true"/> |
Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 41 | |
| 42 | <receiver android:name=".MyBroadcastReceiver" > |
| 43 | <intent-filter> |
| 44 | <action android:name="android.net.conn.RESTRICT_BACKGROUND_CHANGED" /> |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 45 | <action android:name="com.android.cts.net.hostside.app2.action.GET_COUNTERS" /> |
Felipe Leme | 6cd41f6 | 2016-04-29 16:48:14 -0700 | [diff] [blame] | 46 | <action android:name="com.android.cts.net.hostside.app2.action.GET_RESTRICT_BACKGROUND_STATUS" /> |
Felipe Leme | a0f49f2 | 2016-02-18 10:43:54 -0800 | [diff] [blame] | 47 | <action android:name="com.android.cts.net.hostside.app2.action.CHECK_NETWORK" /> |
Felipe Leme | 5b35136 | 2016-01-27 14:49:54 -0800 | [diff] [blame] | 48 | </intent-filter> |
| 49 | </receiver> |
| 50 | </application> |
| 51 | |
Lorenzo Colitti | cbcfb98 | 2016-04-15 16:27:49 +0900 | [diff] [blame^] | 52 | </manifest> |