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

Commit b98f747c authored by John Spurlock's avatar John Spurlock
Browse files

QS: Basic cellular data detail panel.

Change-Id: I1f19a8bf3e01d7f1d49e82d7096a215c863eab61
parent 85702567
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
    <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />

    <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />

    <!-- Physical hardware -->
    <uses-permission android:name="android.permission.MANAGE_USB" />
+82 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <TextView
        android:id="@android:id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="@style/TextAppearance.QS.DataUsage" />

    <TextView
        android:id="@+id/usage_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="@style/TextAppearance.QS.DataUsage.Usage" />

    <com.android.systemui.qs.DataUsageGraph
        android:id="@+id/usage_graph"
        android:layout_width="match_parent"
        android:layout_height="8dp"
        android:layout_marginBottom="@dimen/qs_panel_padding"
        android:layout_marginTop="8dp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/usage_carrier_text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textAppearance="@style/TextAppearance.QS.DataUsage" />

        <TextView
            android:id="@+id/usage_info_top_text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textAppearance="@style/TextAppearance.QS.DataUsage" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="4dp"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/usage_period_text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textAppearance="@style/TextAppearance.QS.DataUsage.Secondary" />

        <TextView
            android:id="@+id/usage_info_bottom_text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textAppearance="@style/TextAppearance.QS.DataUsage.Secondary" />
    </LinearLayout>

</LinearLayout>
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
@@ -36,12 +36,14 @@
    <color name="qs_batterymeter_frame_color">#FF404040</color>
    <color name="system_primary_color">#ff263238</color>
    <color name="system_secondary_color">#ff384248</color>
    <color name="system_accent_color">#ff7fcac3</color>
    <color name="system_accent_color">#ff80CBC4</color><!-- deep teal 200 -->
    <color name="system_error_color">#fff0592b</color>
    <color name="qs_tile_divider">#29ffffff</color><!-- 16% white -->
    <color name="qs_tile_text">#B3FFFFFF</color><!-- 70% white -->
    <color name="qs_subhead">#66FFFFFF</color><!-- 40% white -->
    <color name="status_bar_clock_color">#FFFFFFFF</color>
    <color name="data_usage_secondary">#99FFFFFF</color><!-- 60% white -->
    <color name="data_usage_graph_track">#33FFFFFF</color><!-- 20% white -->
    <color name="status_bar_clock_color">#33FFFFFF</color>

    <!-- Tint color for the content on the notification overflow card. -->
    <color name="keyguard_overflow_content_color">#ff686868</color>
+4 −0
Original line number Diff line number Diff line
@@ -546,6 +546,10 @@
    <string name="quick_settings_notifications_label">Notifications</string>
    <!-- QuickSettings: Flashlight [CHAR LIMIT=NONE] -->
    <string name="quick_settings_flashlight_label">Flashlight</string>
    <!-- QuickSettings: Cellular detail panel title [CHAR LIMIT=NONE] -->
    <string name="quick_settings_cellular_detail_title">Cellular data</string>
    <!-- QuickSettings: Cellular detail panel, data usage title [CHAR LIMIT=NONE] -->
    <string name="quick_settings_cellular_detail_data_usage">Data usage</string>

    <!-- Recents: The empty recents string. [CHAR LIMIT=NONE] -->
    <string name="recents_empty_message">No recent apps</string>
+14 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@

    <style name="TextAppearance.QS.DetailItemSecondary">
        <item name="android:textSize">14sp</item>
        <item name="android:textColor">#7fcac3</item>
        <item name="android:textColor">@color/system_accent_color</item>
    </style>

    <style name="TextAppearance.QS.DetailButton">
@@ -196,6 +196,19 @@
        <item name="android:fontFamily">sans-serif-medium</item>
    </style>

    <style name="TextAppearance.QS.DataUsage">
        <item name="android:textSize">14sp</item>
    </style>

    <style name="TextAppearance.QS.DataUsage.Usage">
        <item name="android:textSize">36sp</item>
        <item name="android:textColor">@color/system_accent_color</item>
    </style>

    <style name="TextAppearance.QS.DataUsage.Secondary">
        <item name="android:textColor">@color/data_usage_secondary</item>
    </style>

    <style name="BaseBrightnessDialogContainer">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
Loading