summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/layout/app_ops_details_item.xml18
-rw-r--r--res/menu/appops_manager.xml26
-rw-r--r--res/values/cm_plurals.xml10
-rw-r--r--res/values/cm_strings.xml14
4 files changed, 64 insertions, 4 deletions
diff --git a/res/layout/app_ops_details_item.xml b/res/layout/app_ops_details_item.xml
index 1124ec7..eb206ae 100644
--- a/res/layout/app_ops_details_item.xml
+++ b/res/layout/app_ops_details_item.xml
@@ -54,6 +54,18 @@
android:id="@+id/op_time"
android:layout_column="1"
android:layout_row="1"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_gravity="fill_horizontal|top"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textAlignment="viewStart" />
+
+ <TextView
+ android:id="@+id/op_counts"
+ android:layout_column="1"
+ android:layout_row="2"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal|top"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textAlignment="viewStart" />
@@ -65,7 +77,8 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="8dip"
android:layout_column="2"
- android:layout_row="1"
+ android:layout_row="0"
+ android:layout_rowSpan="3"
android:padding="8dip"
android:focusable="false"
android:entries="@+array/app_ops_permissions" />
@@ -77,7 +90,8 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="8dip"
android:layout_column="2"
- android:layout_row="1"
+ android:layout_row="0"
+ android:layout_rowSpan="3"
android:padding="8dip"
android:focusable="false"
android:clickable="true" />
diff --git a/res/menu/appops_manager.xml b/res/menu/appops_manager.xml
new file mode 100644
index 0000000..f89b738
--- /dev/null
+++ b/res/menu/appops_manager.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The CyanogenMod 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.
+-->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/show_user_apps"
+ android:title="@string/app_ops_show_user_apps"
+ android:checkable="true" />
+ <item android:id="@+id/show_system_apps"
+ android:title="@string/app_ops_show_system_apps"
+ android:checkable="true" />
+ <item android:id="@+id/reset_counters"
+ android:title="@string/app_ops_reset_counters" />
+</menu>
diff --git a/res/values/cm_plurals.xml b/res/values/cm_plurals.xml
index 6fb1e3e..d9b3a31 100644
--- a/res/values/cm_plurals.xml
+++ b/res/values/cm_plurals.xml
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013-2014 The CyanogenMod 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.
@@ -16,4 +19,9 @@
<item quantity="one"><xliff:g id="seconds">%d</xliff:g> second</item>
<item quantity="other"><xliff:g id="seconds">%d</xliff:g> seconds</item>
</plurals>
-</resources> \ No newline at end of file
+
+ <plurals name="app_ops_count">
+ <item quantity="one">once</item>
+ <item quantity="other">%d times</item>
+ </plurals>
+</resources>
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 90baf4d..80dcfc4 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -490,6 +490,19 @@
<string name="app_ops_permissions_ignored">Ignored</string>
<string name="app_ops_permissions_always_ask">Always ask</string>
+ <!-- App ops detail -->
+ <string name="app_ops_entry_summary"><xliff:g id="op">%1$s</xliff:g> (used <xliff:g id="count">%2$s</xliff:g>)</string>
+ <string name="app_ops_allowed_count">Allowed <xliff:g id="count" example="2 times">%s</xliff:g></string>
+ <string name="app_ops_ignored_count">Denied <xliff:g id="count" example="2 times">%s</xliff:g></string>
+ <string name="app_ops_both_count">Allowed <xliff:g id="count">%1$s</xliff:g>, denied <xliff:g id="count">%2$s</xliff:g></string>
+
+ <!-- App ops menu options -->
+ <string name="app_ops_show_user_apps">Show user apps</string>
+ <string name="app_ops_show_system_apps">Show built-in apps</string>
+ <string name="app_ops_reset_counters">Reset allow/deny counters</string>
+ <string name="app_ops_reset_confirm_title">Confirm counters reset</string>
+ <string name="app_ops_reset_confirm_mesg">Are you sure you wish to reset counters?</string>
+
<string name="ok">OK</string>
<!-- Hostname setting -->
@@ -939,7 +952,6 @@
<string name="block_notifications_title">Filter notifications</string>
<string name="block_notifications_summary">Manage ignored notifications and filters</string>
<string name="no_filters_title">No filters set</string>
- <string name="app_ops_ignored_count">Denied <xliff:g id="count" example="2 times">%s</xliff:g></string>
<!-- Anonymous Statistics #CM -->
<!-- About device screen, list item title. Takes the user to the screen about opting in or out of anonymous statistics. -->