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" |
| 19 | package="com.android.cts.net.hostside.app2" |
| 20 | android:sharedUserId="com.android.cts.net.hostside.apps" > |
| 21 | |
| 22 | <!-- This application is used to listen to RESTRICT_BACKGROUND_CHANGED intents and store |
| 23 | them in a shared preferences which is then read by the test app. |
| 24 | It defines 2 listeners, one in the manifest and another dynamically registered by |
| 25 | a service. |
| 26 | --> |
| 27 | <application> |
| 28 | <service android:name=".MyService" /> |
| 29 | |
| 30 | <receiver android:name=".MyBroadcastReceiver" > |
| 31 | <intent-filter> |
| 32 | <action android:name="android.net.conn.RESTRICT_BACKGROUND_CHANGED" /> |
| 33 | </intent-filter> |
| 34 | </receiver> |
| 35 | </application> |
| 36 | |
| 37 | </manifest> |