summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorLasse Brudeskar Vikås <bvx89.at.cs@gmail.com>2014-01-19 22:01:57 +0100
committerPawit Pornkitprasan <p.pawit@gmail.com>2014-12-27 11:14:41 +0700
commit161e1c75acbadae42ab9d9f55a23f2e27fab8e83 (patch)
tree4853d459674ec5c6e134ddbe3a5f350fbdd5017f /res
parent7a1c801909778e005a264d9b35926e31922fd732 (diff)
downloadandroid_packages_providers_DownloadProvider-161e1c75acbadae42ab9d9f55a23f2e27fab8e83.tar.gz
android_packages_providers_DownloadProvider-161e1c75acbadae42ab9d9f55a23f2e27fab8e83.tar.bz2
android_packages_providers_DownloadProvider-161e1c75acbadae42ab9d9f55a23f2e27fab8e83.zip
Add Download Speeds in notification
This commit adds the ability to show the current total download speed Screenshots: http://goo.gl/M3eRNR ps7 : remove download site, and make speed to bit/sec ps8 : make speed to byte/sec and cleanup ps9 : revert to B/sec ps10: fix some formatting issues ps13: rebased Conflicts: res/values/cm_strings.xml src/com/android/providers/downloads/DownloadNotifier.java Change-Id: I801dbe61c7ee59d0c1d14d5851ad6dc3a7678499
Diffstat (limited to 'res')
-rw-r--r--res/values/cm_plurals.xml33
-rw-r--r--res/values/cm_strings.xml19
2 files changed, 52 insertions, 0 deletions
diff --git a/res/values/cm_plurals.xml b/res/values/cm_plurals.xml
new file mode 100644
index 00000000..b201ff51
--- /dev/null
+++ b/res/values/cm_plurals.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 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.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Phrase describing a time duration using seconds [CHAR LIMIT=16] -->
+ <plurals name="duration_seconds">
+ <item quantity="one"><xliff:g id="count">%d</xliff:g> sec</item>
+ <item quantity="other"><xliff:g id="count">%d</xliff:g> secs</item>
+ </plurals>
+ <!-- Phrase describing a time duration using minutes [CHAR LIMIT=16] -->
+ <plurals name="duration_minutes">
+ <item quantity="one"><xliff:g id="count">%d</xliff:g> min</item>
+ <item quantity="other"><xliff:g id="count">%d</xliff:g> mins</item>
+ </plurals>
+ <!-- Phrase describing a time duration using hours [CHAR LIMIT=16] -->
+ <plurals name="duration_hours">
+ <item quantity="one"><xliff:g id="count">%d</xliff:g> hr</item>
+ <item quantity="other"><xliff:g id="count">%d</xliff:g> hrs</item>
+ </plurals>
+</resources>
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
new file mode 100644
index 00000000..fb6f06c3
--- /dev/null
+++ b/res/values/cm_strings.xml
@@ -0,0 +1,19 @@
+<?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.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="download_speed_text"><xliff:g id="text">%1$s</xliff:g>, <xliff:g id="size" example="230 kB">%2$s</xliff:g>/s</string>
+</resources>