aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2012-09-28 02:16:14 +0200
committerjruesga <jorge@ruesga.com>2012-09-28 02:16:14 +0200
commit3265a4edfe815e744df981f7f6bdc8fb72875895 (patch)
tree7cd56d71f5256636cdf4669ea7d38c008026b0a0
parentfd69dc576aa1b6204eb1914bc8187ea139a81183 (diff)
downloadandroid_packages_apps_CMFileManager-3265a4edfe815e744df981f7f6bdc8fb72875895.tar.gz
android_packages_apps_CMFileManager-3265a4edfe815e744df981f7f6bdc8fb72875895.tar.bz2
android_packages_apps_CMFileManager-3265a4edfe815e744df981f7f6bdc8fb72875895.zip
Initial mime types and drawables
Initial commit for mime type, extensions and drawables for commons file types.
-rw-r--r--res/drawable-hdpi/ic_fso_type_audio.pngbin0 -> 1500 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_binary.pngbin0 -> 776 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_compress.pngbin3404 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_image.pngbin0 -> 3073 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_markup_document.pngbin0 -> 565 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_pdf.pngbin3271 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_text.pngbin3340 -> 0 bytes
-rw-r--r--res/drawable-hdpi/ic_fso_type_video.pngbin0 -> 1465 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_audio.pngbin0 -> 1001 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_binary.pngbin0 -> 611 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_compress.pngbin1712 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_image.pngbin0 -> 2040 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_markup_document.pngbin0 -> 420 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_pdf.pngbin1661 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_text.pngbin1634 -> 0 bytes
-rw-r--r--res/drawable-mdpi/ic_fso_type_video.pngbin0 -> 1289 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_default.pngbin2525 -> 2616 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_audio.pngbin0 -> 2512 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_binary.pngbin0 -> 923 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_compress.pngbin4379 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_image.pngbin0 -> 3094 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_markup_document.pngbin0 -> 688 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_pdf.pngbin4076 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_text.pngbin4345 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/ic_fso_type_video.pngbin0 -> 1356 bytes
-rw-r--r--res/drawable/fso_type_audio.xml (renamed from res/drawable/fso_type_pdf.xml)2
-rw-r--r--res/drawable/fso_type_binary.xml (renamed from res/drawable/fso_type_compress.xml)2
-rw-r--r--res/drawable/fso_type_image.xml (renamed from res/drawable/fso_type_text.xml)2
-rw-r--r--res/drawable/fso_type_markup_document.xml22
-rw-r--r--res/drawable/fso_type_video.xml22
-rw-r--r--res/raw/mime_types.properties137
31 files changed, 181 insertions, 6 deletions
diff --git a/res/drawable-hdpi/ic_fso_type_audio.png b/res/drawable-hdpi/ic_fso_type_audio.png
new file mode 100644
index 00000000..35c1f549
--- /dev/null
+++ b/res/drawable-hdpi/ic_fso_type_audio.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_binary.png b/res/drawable-hdpi/ic_fso_type_binary.png
new file mode 100644
index 00000000..661fdb75
--- /dev/null
+++ b/res/drawable-hdpi/ic_fso_type_binary.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_compress.png b/res/drawable-hdpi/ic_fso_type_compress.png
deleted file mode 100644
index a2531e46..00000000
--- a/res/drawable-hdpi/ic_fso_type_compress.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_image.png b/res/drawable-hdpi/ic_fso_type_image.png
new file mode 100644
index 00000000..3c9b3dbd
--- /dev/null
+++ b/res/drawable-hdpi/ic_fso_type_image.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_markup_document.png b/res/drawable-hdpi/ic_fso_type_markup_document.png
new file mode 100644
index 00000000..fdc5b7ba
--- /dev/null
+++ b/res/drawable-hdpi/ic_fso_type_markup_document.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_pdf.png b/res/drawable-hdpi/ic_fso_type_pdf.png
deleted file mode 100644
index 0bd55274..00000000
--- a/res/drawable-hdpi/ic_fso_type_pdf.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_text.png b/res/drawable-hdpi/ic_fso_type_text.png
deleted file mode 100644
index f614fc8a..00000000
--- a/res/drawable-hdpi/ic_fso_type_text.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-hdpi/ic_fso_type_video.png b/res/drawable-hdpi/ic_fso_type_video.png
new file mode 100644
index 00000000..a37f7642
--- /dev/null
+++ b/res/drawable-hdpi/ic_fso_type_video.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_audio.png b/res/drawable-mdpi/ic_fso_type_audio.png
new file mode 100644
index 00000000..ccbd1cbb
--- /dev/null
+++ b/res/drawable-mdpi/ic_fso_type_audio.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_binary.png b/res/drawable-mdpi/ic_fso_type_binary.png
new file mode 100644
index 00000000..e8ad6426
--- /dev/null
+++ b/res/drawable-mdpi/ic_fso_type_binary.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_compress.png b/res/drawable-mdpi/ic_fso_type_compress.png
deleted file mode 100644
index 520dd476..00000000
--- a/res/drawable-mdpi/ic_fso_type_compress.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_image.png b/res/drawable-mdpi/ic_fso_type_image.png
new file mode 100644
index 00000000..467f1ac8
--- /dev/null
+++ b/res/drawable-mdpi/ic_fso_type_image.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_markup_document.png b/res/drawable-mdpi/ic_fso_type_markup_document.png
new file mode 100644
index 00000000..58fd6b40
--- /dev/null
+++ b/res/drawable-mdpi/ic_fso_type_markup_document.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_pdf.png b/res/drawable-mdpi/ic_fso_type_pdf.png
deleted file mode 100644
index c1090ea9..00000000
--- a/res/drawable-mdpi/ic_fso_type_pdf.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_text.png b/res/drawable-mdpi/ic_fso_type_text.png
deleted file mode 100644
index e6afa0b7..00000000
--- a/res/drawable-mdpi/ic_fso_type_text.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_fso_type_video.png b/res/drawable-mdpi/ic_fso_type_video.png
new file mode 100644
index 00000000..fc074b89
--- /dev/null
+++ b/res/drawable-mdpi/ic_fso_type_video.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_default.png b/res/drawable-xhdpi/ic_fso_default.png
index 2327046f..a5c1eeda 100644
--- a/res/drawable-xhdpi/ic_fso_default.png
+++ b/res/drawable-xhdpi/ic_fso_default.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_audio.png b/res/drawable-xhdpi/ic_fso_type_audio.png
new file mode 100644
index 00000000..b48818b1
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fso_type_audio.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_binary.png b/res/drawable-xhdpi/ic_fso_type_binary.png
new file mode 100644
index 00000000..b5afef86
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fso_type_binary.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_compress.png b/res/drawable-xhdpi/ic_fso_type_compress.png
deleted file mode 100644
index b75a6f20..00000000
--- a/res/drawable-xhdpi/ic_fso_type_compress.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_image.png b/res/drawable-xhdpi/ic_fso_type_image.png
new file mode 100644
index 00000000..92e24b33
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fso_type_image.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_markup_document.png b/res/drawable-xhdpi/ic_fso_type_markup_document.png
new file mode 100644
index 00000000..e3c45593
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fso_type_markup_document.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_pdf.png b/res/drawable-xhdpi/ic_fso_type_pdf.png
deleted file mode 100644
index 41df7075..00000000
--- a/res/drawable-xhdpi/ic_fso_type_pdf.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_text.png b/res/drawable-xhdpi/ic_fso_type_text.png
deleted file mode 100644
index 64d3c597..00000000
--- a/res/drawable-xhdpi/ic_fso_type_text.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fso_type_video.png b/res/drawable-xhdpi/ic_fso_type_video.png
new file mode 100644
index 00000000..7f220503
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fso_type_video.png
Binary files differ
diff --git a/res/drawable/fso_type_pdf.xml b/res/drawable/fso_type_audio.xml
index 76ac88b7..7dc83309 100644
--- a/res/drawable/fso_type_pdf.xml
+++ b/res/drawable/fso_type_audio.xml
@@ -17,6 +17,6 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/ic_fso_default"/>
- <item android:drawable="@drawable/ic_fso_type_pdf"/>
+ <item android:drawable="@drawable/ic_fso_type_audio"/>
</layer-list> \ No newline at end of file
diff --git a/res/drawable/fso_type_compress.xml b/res/drawable/fso_type_binary.xml
index 701906f8..2f48f644 100644
--- a/res/drawable/fso_type_compress.xml
+++ b/res/drawable/fso_type_binary.xml
@@ -17,6 +17,6 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/ic_fso_default"/>
- <item android:drawable="@drawable/ic_fso_type_compress"/>
+ <item android:drawable="@drawable/ic_fso_type_binary"/>
</layer-list> \ No newline at end of file
diff --git a/res/drawable/fso_type_text.xml b/res/drawable/fso_type_image.xml
index 4f28b152..c1ee8e77 100644
--- a/res/drawable/fso_type_text.xml
+++ b/res/drawable/fso_type_image.xml
@@ -17,6 +17,6 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/ic_fso_default"/>
- <item android:drawable="@drawable/ic_fso_type_text"/>
+ <item android:drawable="@drawable/ic_fso_type_image"/>
</layer-list> \ No newline at end of file
diff --git a/res/drawable/fso_type_markup_document.xml b/res/drawable/fso_type_markup_document.xml
new file mode 100644
index 00000000..4b99ee69
--- /dev/null
+++ b/res/drawable/fso_type_markup_document.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ** Copyright (C) 2012 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item android:drawable="@drawable/ic_fso_default"/>
+ <item android:drawable="@drawable/ic_fso_type_markup_document"/>
+
+</layer-list> \ No newline at end of file
diff --git a/res/drawable/fso_type_video.xml b/res/drawable/fso_type_video.xml
new file mode 100644
index 00000000..7fecb88d
--- /dev/null
+++ b/res/drawable/fso_type_video.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ** Copyright (C) 2012 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item android:drawable="@drawable/ic_fso_default"/>
+ <item android:drawable="@drawable/ic_fso_type_video"/>
+
+</layer-list> \ No newline at end of file
diff --git a/res/raw/mime_types.properties b/res/raw/mime_types.properties
index f4c7b921..f772a6d0 100644
--- a/res/raw/mime_types.properties
+++ b/res/raw/mime_types.properties
@@ -21,6 +21,137 @@
# <extension> = <mime type> | <drawable>
#
-pdf = application/pdf | fso_type_pdf
-txt = text/plain | fso_type_text
-zip = application/zip | fso_type_compress
+# Binary
+so = application/octet-stream | fso_type_binary
+
+# Text
+htm = text/html | fso_type_markup_document
+html = text/html | fso_type_markup_document
+
+# Image
+bmp = image/bmp | fso_type_image
+cgm = image/cgm | fso_type_image
+g3 = image/g3fax | fso_type_image
+gif = image/gif | fso_type_image
+ief = image/ief | fso_type_image
+jpe = image/jpeg | fso_type_image
+jpeg = image/jpeg | fso_type_image
+jpg = image/jpeg | fso_type_image
+png = image/png | fso_type_image
+btif = image/prs.btif | fso_type_image
+svg = image/svg+xml | fso_type_image
+svgz = image/svg+xml | fso_type_image
+tif = image/tiff | fso_type_image
+tiff = image/tiff | fso_type_image
+psd = image/vnd.adobe.photoshop | fso_type_image
+djv = image/vnd.djvu | fso_type_image
+djvu = image/vnd.djvu | fso_type_image
+dwg = image/vnd.dwg | fso_type_image
+dxf = image/vnd.dxf | fso_type_image
+fbs = image/vnd.fastbidsheet | fso_type_image
+fpx = image/vnd.fpx | fso_type_image
+fst = image/vnd.fst | fso_type_image
+mmr = image/vnd.fujixerox.edmics-mmr | fso_type_image
+rlc = image/vnd.fujixerox.edmics-rlc | fso_type_image
+mdi = image/vnd.ms-modi | fso_type_image
+npx = image/vnd.net-fpx | fso_type_image
+wbmp = image/vnd.wap.wbmp | fso_type_image
+xif = image/vnd.xiff | fso_type_image
+ras = image/x-cmu-raster | fso_type_image
+cmx = image/x-cmx | fso_type_image
+fh = image/x-freehand | fso_type_image
+fh4 = image/x-freehand | fso_type_image
+fh5 = image/x-freehand | fso_type_image
+fh7 = image/x-freehand | fso_type_image
+fhc = image/x-freehand | fso_type_image
+ico = image/x-icon | fso_type_image
+pcx = image/x-pcx | fso_type_image
+pct = image/x-pict | fso_type_image
+pic = image/x-pict | fso_type_image
+pnm = image/x-portable-anymap | fso_type_image
+pbm = image/x-portable-bitmap | fso_type_image
+pgm = image/x-portable-graymap | fso_type_image
+ppm = image/x-portable-pixmap | fso_type_image
+rgb = image/x-rgb | fso_type_image
+xbm = image/x-xbitmap | fso_type_image
+xpm = image/x-xpixmap | fso_type_image
+xwd = image/x-xwindowdump | fso_type_image
+
+# Audio
+adp = audio/adpcm | fso_type_audio
+au = audio/basic | fso_type_audio
+snd = audio/basic | fso_type_audio
+kar = audio/midi | fso_type_audio
+mid = audio/midi | fso_type_audio
+midi = audio/midi | fso_type_audio
+rmi = audio/midi | fso_type_audio
+mp4a = audio/mp4 | fso_type_audio
+m2a = audio/mpeg | fso_type_audio
+m3a = audio/mpeg | fso_type_audio
+mp2 = audio/mpeg | fso_type_audio
+mp2a = audio/mpeg | fso_type_audio
+mp3 = audio/mpeg | fso_type_audio
+mpga = audio/mpeg | fso_type_audio
+oga = audio/ogg | fso_type_audio
+ogg = audio/ogg | fso_type_audio
+spx = audio/ogg | fso_type_audio
+eol = audio/vnd.digital-winds | fso_type_audio
+dts = audio/vnd.dts | fso_type_audio
+dtshd = audio/vnd.dts.hd | fso_type_audio
+lvp = audio/vnd.lucent.voice | fso_type_audio
+pya = audio/vnd.ms-playready.media.pya | fso_type_audio
+ecelp4800 = audio/vnd.nuera.ecelp4800 | fso_type_audio
+ecelp7470 = audio/vnd.nuera.ecelp7470 | fso_type_audio
+ecelp9600 = audio/vnd.nuera.ecelp9600 | fso_type_audio
+aac = audio/x-aac | fso_type_audio
+aif = audio/x-aiff | fso_type_audio
+aifc = audio/x-aiff | fso_type_audio
+aiff = audio/x-aiff | fso_type_audio
+m3u = audio/x-mpegurl | fso_type_audio
+wax = audio/x-ms-wax | fso_type_audio
+wma = audio/x-ms-wma | fso_type_audio
+ra = audio/x-pn-realaudio | fso_type_audio
+ram = audio/x-pn-realaudio | fso_type_audio
+rmp = audio/x-pn-realaudio-plugin | fso_type_audio
+wav = audio/x-wav | fso_type_audio
+
+# Video
+3gp = video/3gpp | fso_type_video
+3g2 = video/3gpp2 | fso_type_video
+h261 = video/h261 | fso_type_video
+h263 = video/h263 | fso_type_video
+h264 = video/h264 | fso_type_video
+jpgv = video/jpeg | fso_type_video
+jpgm = video/jpm | fso_type_video
+jpm = video/jpm | fso_type_video
+mj2 = video/mj2 | fso_type_video
+mjp2 = video/mj2 | fso_type_video
+mp4 = video/mp4 | fso_type_video
+mp4v = video/mp4 | fso_type_video
+mpg4 = video/mp4 | fso_type_video
+m1v = video/mpeg | fso_type_video
+m2v = video/mpeg | fso_type_video
+mpa = video/mpeg | fso_type_video
+mpe = video/mpeg | fso_type_video
+mpeg = video/mpeg | fso_type_video
+mpg = video/mpeg | fso_type_video
+ogv = video/ogg | fso_type_video
+mov = video/quicktime | fso_type_video
+qt = video/quicktime | fso_type_video
+fvt = video/vnd.fvt | fso_type_video
+m4u = video/vnd.mpegurl | fso_type_video
+mxu = video/vnd.mpegurl | fso_type_video
+pyv = video/vnd.ms-playready.media.pyv | fso_type_video
+viv = video/vnd.vivo | fso_type_video
+f4v = video/x-f4v | fso_type_video
+fli = video/x-fli | fso_type_video
+flv = video/x-flv | fso_type_video
+m4v = video/x-m4v | fso_type_video
+asf = video/x-ms-asf | fso_type_video
+asx = video/x-ms-asf | fso_type_video
+avi = video/x-msvideo | fso_type_video
+wm = video/x-ms-wm | fso_type_video
+wmv = video/x-ms-wmv | fso_type_video
+wmx = video/x-ms-wmx | fso_type_video
+wvx = video/x-ms-wvx | fso_type_video
+movie = video/x-sgi-movie | fso_type_video \ No newline at end of file