Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 486c19ad authored by Martin Brabham's avatar Martin Brabham
Browse files

CMFileManager: add usage stats by mime type

Change-Id: I92ffb45ec3ef0dc6feb8b8129bcb0fedf442ba54
parent 3a587806
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -62,6 +62,18 @@
      android:grantUriPermissions="true"
      android:exported="true" />

    <provider
      android:authorities="com.cyanogenmod.filemanager.providers.index"
      android:name=".providers.MimeTypeIndexProvider"/>

    <service
      android:name=".service.MimeTypeIndexService"
      android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.cyanogenmod.filemanager.ACTION_START_INDEX"/>
      </intent-filter>
    </service>

    <activity
      android:name=".activities.NavigationActivity"
      android:label="@string/app_name"
+38 −0
Original line number Diff line number Diff line
<?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.
 -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:weightSum="1.0"
    android:gravity="center_vertical">

    <View
        android:id="@+id/v_legend_swatch"
        android:layout_width="10dp"
        android:layout_height="10dp"
        android:layout_weight=".2"/>

    <TextView
        android:id="@+id/tv_legend_title"
        android:textSize="@dimen/legend_title_textSize"
        android:paddingLeft="@dimen/legend_title_paddingLeft"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight=".8"/>

</LinearLayout>
+15 −0
Original line number Diff line number Diff line
@@ -351,4 +351,19 @@
    </TableLayout>
  </LinearLayout>

  <GridLayout
    android:id="@+id/ll_legend"
    android:gravity="center"
    android:layout_centerHorizontal="true"
    android:visibility="invisible"
    android:layout_below="@id/filesystem_tab_diskusage"
    android:orientation="horizontal"
    android:columnCount="4"
    android:columnOrderPreserved="true"
    android:rowOrderPreserved="true"
    android:useDefaultMargins="true"
    android:padding="@dimen/legend_padding"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

</RelativeLayout>
+26 −0
Original line number Diff line number Diff line
@@ -65,4 +65,30 @@
    <color name="material_palette_blue_primary">#1E88E5</color>
    <color name="material_palette_blue_primary_dark">#1976D2</color>
    <color name="actionbar_palette_blue_primary">#1E88E5</color>


    <!-- Disk usage blue -->
    <color name="material_palette_blue_1">#64B5F6</color>
    <color name="material_palette_blue_2">#2196F3</color>
    <color name="material_palette_blue_3">#1976D2</color>
    <color name="material_palette_blue_4">#0D47A1</color>

    <!-- Disk usage green -->
    <color name="material_palette_green_1">#DCE775</color>
    <color name="material_palette_green_2">#CDDC39</color>
    <color name="material_palette_green_3">#AFB42B</color>
    <color name="material_palette_green_4">#827717</color>

    <!-- Disk usage orange -->
    <color name="material_palette_orange_1">#FFB74D</color>
    <color name="material_palette_orange_2">#FF9800</color>
    <color name="material_palette_orange_3">#F57C00</color>
    <color name="material_palette_orange_4">#E65100</color>

    <!-- Disk usage pink -->
    <color name="material_palette_pink_1">#F06292</color>
    <color name="material_palette_pink_2">#E91E63</color>
    <color name="material_palette_pink_3">#C2185B</color>
    <color name="material_palette_pink_4">#880E4F</color>

</resources>
+6 −0
Original line number Diff line number Diff line
@@ -124,4 +124,10 @@
    <dimen name="scrim_layout_elevation">10dp</dimen>
    <!-- Drawer header height -->
    <dimen name="drawer_header_height">150dp</dimen>

    <!-- usage graph stuff -->
    <dimen name="legend_title_textSize">9sp</dimen>
    <dimen name="legend_title_paddingLeft">3dp</dimen>
    <dimen name="legend_padding">10dp</dimen>

</resources>
Loading