diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-04-03 21:13:25 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-04-05 14:31:43 -0700 |
commit | 313f7d8c5759fd29a98c710ceb9339d27b8e62fa (patch) | |
tree | 9275d0f9e2627535813e517a8e99319a7941c5d5 /res/xml | |
parent | 9f55ae28789754dafeed5c68468d45135d46199e (diff) | |
download | packages_apps_settings-313f7d8c5759fd29a98c710ceb9339d27b8e62fa.zip packages_apps_settings-313f7d8c5759fd29a98c710ceb9339d27b8e62fa.tar.gz packages_apps_settings-313f7d8c5759fd29a98c710ceb9339d27b8e62fa.tar.bz2 |
Controls to set expensive (metered) networks.
Add UI to change metered flag on NetworkPolicy, and support Wi-Fi
policies per-SSID. Create Wi-Fi policies as needed, but leave cycle
undefined.
Only show and mutate mobile policies when SIM state is ready.
Bug: 3001465, 3291052
Change-Id: I481a202fe0e68fc2f5adfd3b3a6f40347d2b168c
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/data_usage_metered_prefs.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/res/xml/data_usage_metered_prefs.xml b/res/xml/data_usage_metered_prefs.xml new file mode 100644 index 0000000..7ec3059 --- /dev/null +++ b/res/xml/data_usage_metered_prefs.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <Preference + android:summary="@string/data_usage_metered_body" + android:persistent="false" + android:selectable="false" /> + + <PreferenceCategory + android:key="mobile" + android:title="@string/data_usage_metered_mobile" + android:persistent="false" /> + + <PreferenceCategory + android:key="wifi" + android:title="@string/data_usage_metered_wifi" + android:persistent="false" /> + +</PreferenceScreen> |